unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Leo Butler <Leo.Butler@umanitoba.ca>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: SymPy from inside Emacs
Date: Fri, 13 May 2022 14:18:16 +0000	[thread overview]
Message-ID: <87pmkh4iu0.fsf@t14.reltub.ca> (raw)
In-Reply-To: <2159c415-4b47-dffa-aef0-3efb0fc44ca4@easy-emacs.de> ("Andreas Röhler"'s message of "Fri, 13 May 2022 12:39:32 +0200")

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	other threads:[~2022-05-13 14:18 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 [this message]
2022-05-15  8:17       ` Andreas Röhler
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=87pmkh4iu0.fsf@t14.reltub.ca \
    --to=leo.butler@umanitoba.ca \
    --cc=andreas.roehler@easy-emacs.de \
    --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).