* Looking for a way to insert formulas involving sums and integrals into a buffer
@ 2021-02-25 19:59 Dan Hitt
2021-02-25 20:38 ` Óscar Fuentes
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dan Hitt @ 2021-02-25 19:59 UTC (permalink / raw)
To: Help Gnu Emacs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Looking for a way to insert formulas involving sums and integrals into a buffer
2021-02-25 19:59 Looking for a way to insert formulas involving sums and integrals into a buffer Dan Hitt
@ 2021-02-25 20:38 ` Óscar Fuentes
2021-02-25 20:45 ` Garjola Dindi
2021-02-28 6:23 ` Robert Thorpe
2 siblings, 0 replies; 4+ messages in thread
From: Óscar Fuentes @ 2021-02-25 20:38 UTC (permalink / raw)
To: Dan Hitt; +Cc: Help Gnu Emacs
Dan Hitt <dan.hitt@gmail.com> writes:
> 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).
[snip]
> 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.
Take a look at org-mode:
https://orgmode.org/manual/LaTeX-fragments.html
Org-mode comes built-in with Emacs. The documentation you have installed
( accesible with C-h i ) corresponds to your version, so use them instead of the online
manual I linked to for reference.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Looking for a way to insert formulas involving sums and integrals into a buffer
2021-02-25 19:59 Looking for a way to insert formulas involving sums and integrals into a buffer Dan Hitt
2021-02-25 20:38 ` Óscar Fuentes
@ 2021-02-25 20:45 ` Garjola Dindi
2021-02-28 6:23 ` Robert Thorpe
2 siblings, 0 replies; 4+ messages in thread
From: Garjola Dindi @ 2021-02-25 20:45 UTC (permalink / raw)
To: help-gnu-emacs
On Thu 25-Feb-2021 at 20:59:42 +01, Dan Hitt <dan.hitt@gmail.com> wrote:
> 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).
>
[...]
Would this be useful to you?
https://github.com/TobiasZawada/texfrag
I use it with org-mode and I am very happy with it.
>
> TIA for any info!
>
> dan
>
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Looking for a way to insert formulas involving sums and integrals into a buffer
2021-02-25 19:59 Looking for a way to insert formulas involving sums and integrals into a buffer Dan Hitt
2021-02-25 20:38 ` Óscar Fuentes
2021-02-25 20:45 ` Garjola Dindi
@ 2021-02-28 6:23 ` Robert Thorpe
2 siblings, 0 replies; 4+ messages in thread
From: Robert Thorpe @ 2021-02-28 6:23 UTC (permalink / raw)
To: Dan Hitt; +Cc: help-gnu-emacs
Dan Hitt <dan.hitt@gmail.com> writes:
> 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).
You could try preview-latex. It doesn't put the latex into the same
buffer though, it puts it into a separate buffer.
Still, it could be useful if you don't want an org-mode based solution.
BR,
Robert Thorpe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-28 6:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-25 19:59 Looking for a way to insert formulas involving sums and integrals into a buffer Dan Hitt
2021-02-25 20:38 ` Óscar Fuentes
2021-02-25 20:45 ` Garjola Dindi
2021-02-28 6:23 ` Robert Thorpe
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).