unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dan Hitt <dan.hitt@gmail.com>
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Looking for a way to insert formulas involving sums and integrals into a buffer
Date: Thu, 25 Feb 2021 11:59:42 -0800	[thread overview]
Message-ID: <CAOphizLW9Y9zh5SHSu-Y9-9EAmfChuaBk+JOWnoF20Nqs82nAg@mail.gmail.com> (raw)

Using latex, you can easily write some random formula like
\[
    \int_a^b |f(t)|^2 dt = \sum_{j=0}^{\infty} \alpha_j^2
\]
After you convert the output dvi to pdf, it is easy to read.

I would like to do something like this in an emacs buffer that has loads of
other things in it, without much trouble.  Certainly i wouldn't want to
have to do anything multi-stage (like running latex, or compiling a file).

This would make it easier to keep notes, for example.

Now, what i can do is create an integral sign (using '\int' with tex input
mode in a text buffer), and create a capital sigma (\Sigma).  And there's
even limited creation of subscripts and superscripts, although lots of
symbols (such as \infty) cannot be turned into subscripts or superscripts.

On the other hand, i know that this sort of thing is possible in principle,
because if you look up, e.g., Parseval's identity in the wikipedia, it is
full of formulas.  If you copy/paste a wikipedia formula into an emacs
buffer, you get something that looks a lot like latex.  So somewhere along
the line something is doing something like latex-on-the-fly.

It would be nice, although i guess not required, if parts of formulas could
be colorized or bolded, as is possible in enriched mode.

The main requirement is that it be super-easy, without running additional
processes, and the result should be easily transportable (via copy/paste)
from buffer to buffer.

My version of emacs is 26.1, running on debian 10.

TIA for any info!

dan


             reply	other threads:[~2021-02-25 19:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 19:59 Dan Hitt [this message]
2021-02-25 20:38 ` Looking for a way to insert formulas involving sums and integrals into a buffer Óscar Fuentes
2021-02-25 20:45 ` Garjola Dindi
2021-02-28  6:23 ` Robert Thorpe

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=CAOphizLW9Y9zh5SHSu-Y9-9EAmfChuaBk+JOWnoF20Nqs82nAg@mail.gmail.com \
    --to=dan.hitt@gmail.com \
    --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).