From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Leo Butler <Leo.Butler@umanitoba.ca>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: SymPy from inside Emacs
Date: Sun, 15 May 2022 10:17:16 +0200 [thread overview]
Message-ID: <a2314274-76db-bfd8-46b0-0032ba42ab32@easy-emacs.de> (raw)
In-Reply-To: <87pmkh4iu0.fsf@t14.reltub.ca>
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
next prev parent reply other threads:[~2022-05-15 8:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 7:34 SymPy from inside Emacs Andreas Röhler
2022-05-13 7:47 ` Eli Zaretskii
2022-05-13 8:01 ` Andreas Röhler
2022-05-13 10:38 ` Eli Zaretskii
2022-05-13 10:42 ` Andreas Röhler
2022-05-13 10:46 ` Eli Zaretskii
2022-05-13 10:39 ` Andreas Röhler
2022-05-13 14:18 ` Leo Butler
2022-05-15 8:17 ` Andreas Röhler [this message]
2022-05-13 12:10 ` Daniel Fleischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2314274-76db-bfd8-46b0-0032ba42ab32@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=Leo.Butler@umanitoba.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).