help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SymPy from inside Emacs


From: Leo Butler
Subject: Re: SymPy from inside Emacs
Date: Fri, 13 May 2022 14:18:16 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

On Fri, May 13 2022, Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> Am 13.05.22 um 09:47 schrieb Eli Zaretskii:
>>> Date: Fri, 13 May 2022 09:34:14 +0200
>>> From: Andreas Röhler<andreas.roehler@easy-emacs.de>
>>>
>>> the Python module SymPy displays math formulas. Running in a
>>> bash-terminal at Xubuntu that works nicely.
>>>   From Emacs however, the spaces in the upper line are wider than the
>>> chars below.
>>>
>>> See attached sympy.png.
>> I think that's because the · character (or something similar) used to
>> depict the multiplication comes from another font, one that is not
>> fixed-pitch and/or whose width is different from that of the default
>> font.  The spaces are not the cause of this, they come from the
>> default font and are always of the same width.
>>
> Okay, thanks, solved it by installing a truly monospaced font.

Andreas, an alternative solution would be to define a filter function
that filters the sympy output before insertion into the comint buffer.
You could replace the offending characters with better behaved ones
without changing font.

C-h f comint-preoutput-filter-functions

Leo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]