unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Prevent multi-line reformatting of embedded calc results
Date: Thu, 05 Nov 2020 11:43:57 +0100	[thread overview]
Message-ID: <87tuu4jd76.fsf@gmail.com> (raw)
In-Reply-To: <87o8kctcqz.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 05 Nov 2020 08:43:32 +0000")

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Hello all,
>
> TL;DR: how do I control (or prevent) the formatting of the evaluated
> embedded Calc lines?
>
> I use embedded Calc quite a bit.  In one of my use cases, I have a
> specific format expected for the lines as the resulting document is
> post-processed.  In this case, I want all individual Calc expressions,
> including with the => results, to be constrained to a single line each.
>
> If the overall line ends up longer than the window is wide, Calc
> reformats to use multiple lines, breaking at obvious points.  Normally,
> this would be quite desirable but, in my use case, it breaks the
> post-processing.
>
> I can make the window wider (I do have a very wide screen) but this is
> fragile as equations & results get updated automatically and I may not
> notice.

You could override 'math-format-nice-expr' to not do that.

Robert



  reply	other threads:[~2020-11-05 10:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-05  8:43 Prevent multi-line reformatting of embedded calc results Eric S Fraga
2020-11-05 10:43 ` Robert Pluim [this message]
2020-11-05 14:08   ` Eric S Fraga
2020-11-05 14:36     ` Robert Pluim

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=87tuu4jd76.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --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).