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: Andreas Röhler
Subject: Re: SymPy from inside Emacs
Date: Sun, 15 May 2022 10:17:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1


Am 13.05.22 um 16:18 schrieb Leo Butler:
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


Thanks for the hint.

Andreas


reply via email to

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