emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Good way to pre/view LaTeX-lines?
@ 2019-10-27 15:01 Dmitrii Korobeinikov
  2019-10-27 15:07 ` William Denton
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitrii Korobeinikov @ 2019-10-27 15:01 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

Hi,

I am looking for a comfortable way to view LaTeX (for math formulas) in
org-mode.
I am not working with whole LaTeX files however, but rather with occasional
lines of LaTeX inside an org-mode file.

Good possibilities could be:
1. rendering a LaTeX-line *in the minibuffer* (when a cursor is placed on
that line), or
2. rendering right there in the buffer.

Emacs can show images, so these can't be too hard, right?

Anyone know how to make this work?

Best,
Dmitrii

[-- Attachment #2: Type: text/html, Size: 544 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Good way to pre/view LaTeX-lines?
  2019-10-27 15:01 Good way to pre/view LaTeX-lines? Dmitrii Korobeinikov
@ 2019-10-27 15:07 ` William Denton
  2019-10-27 19:27   ` Dmitrii Korobeinikov
  0 siblings, 1 reply; 7+ messages in thread
From: William Denton @ 2019-10-27 15:07 UTC (permalink / raw)
  To: Dmitrii Korobeinikov; +Cc: emacs-orgmode

On 27 October 2019, Dmitrii Korobeinikov wrote:

> I am looking for a comfortable way to view LaTeX (for math formulas) in
> org-mode.

This shows how:

https://orgmode.org/org.html#Previewing-LaTeX-fragments

I don't use it often, but it works very nicely.

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: https://listeningtoart.org/
https://www.miskatonic.org/         ---   GHG.EARTH: https://ghg.earth/
Caveat lector.                      ---   STAPLR: https://staplr.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Good way to pre/view LaTeX-lines?
  2019-10-27 15:07 ` William Denton
@ 2019-10-27 19:27   ` Dmitrii Korobeinikov
  2019-10-28  1:07     ` briangpowell .
  2019-10-28  1:22     ` Ivan Tadeu Ferreira Antunes Filho
  0 siblings, 2 replies; 7+ messages in thread
From: Dmitrii Korobeinikov @ 2019-10-27 19:27 UTC (permalink / raw)
  To: William Denton; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1524 bytes --]

> https://orgmode.org/org.html#Previewing-LaTeX-fragments

Thank you, William! This is great.

After some digging, I still gotta wonder about a few things though.
1. Is there some sort of live-editing feature? By that I mean, being able
to view the result (in a seperate buffer or minibuffer or even on the next
line) as you type out the expression. In particular, it would be nice to
know how to show an image in the minibuffer (and if possible at all) and
how to effectively feed what's under cursor to the latex backend and get
the image.
2. It would be handy to autoremove the image overlay when the cursor is on
the fragment (and restore it when goes outside). I think no redraw should
be necessary unless the the formula is edited.

I guess I would have to dig into org-toggle-latex-fragment to know how to
do these, but any help/pointers would be appreciated.

Regards,
Dmitrii

вс, 27 окт. 2019 г. в 21:07, William Denton <wtd@pobox.com>:

> On 27 October 2019, Dmitrii Korobeinikov wrote:
>
> > I am looking for a comfortable way to view LaTeX (for math formulas) in
> > org-mode.
>
> This shows how:
>
> https://orgmode.org/org.html#Previewing-LaTeX-fragments
>
> I don't use it often, but it works very nicely.
>
> Bill
> --
> William Denton :: Toronto, Canada   ---   Listening to Art:
> https://listeningtoart.org/
> https://www.miskatonic.org/         ---   GHG.EARTH: https://ghg.earth/
> Caveat lector.                      ---   STAPLR: https://staplr.org/
>

[-- Attachment #2: Type: text/html, Size: 2409 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Good way to pre/view LaTeX-lines?
  2019-10-27 19:27   ` Dmitrii Korobeinikov
@ 2019-10-28  1:07     ` briangpowell .
  2019-10-29 21:52       ` Dmitrii Korobeinikov
  2019-10-28  1:22     ` Ivan Tadeu Ferreira Antunes Filho
  1 sibling, 1 reply; 7+ messages in thread
From: briangpowell . @ 2019-10-28  1:07 UTC (permalink / raw)
  To: Dmitrii Korobeinikov; +Cc: William Denton, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2008 bytes --]

* Suggest reviewing these free software packages:
https://itsfoss.com/latex-editors-linux/

** LyX and/or Kile are my faves

** Suggest trying these free software packages too

apt-get install imaxima
apt-get install maxima
apt-get install maxima-emacs
apt-get install texlive
apt-get install texlive-math-extra







On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korobeinikov <dim1212k@gmail.com>
wrote:

> > https://orgmode.org/org.html#Previewing-LaTeX-fragments
>
> Thank you, William! This is great.
>
> After some digging, I still gotta wonder about a few things though.
> 1. Is there some sort of live-editing feature? By that I mean, being able
> to view the result (in a seperate buffer or minibuffer or even on the next
> line) as you type out the expression. In particular, it would be nice to
> know how to show an image in the minibuffer (and if possible at all) and
> how to effectively feed what's under cursor to the latex backend and get
> the image.
> 2. It would be handy to autoremove the image overlay when the cursor is on
> the fragment (and restore it when goes outside). I think no redraw should
> be necessary unless the the formula is edited.
>
> I guess I would have to dig into org-toggle-latex-fragment to know how to
> do these, but any help/pointers would be appreciated.
>
> Regards,
> Dmitrii
>
> вс, 27 окт. 2019 г. в 21:07, William Denton <wtd@pobox.com>:
>
>> On 27 October 2019, Dmitrii Korobeinikov wrote:
>>
>> > I am looking for a comfortable way to view LaTeX (for math formulas) in
>> > org-mode.
>>
>> This shows how:
>>
>> https://orgmode.org/org.html#Previewing-LaTeX-fragments
>>
>> I don't use it often, but it works very nicely.
>>
>> Bill
>> --
>> William Denton :: Toronto, Canada   ---   Listening to Art:
>> https://listeningtoart.org/
>> https://www.miskatonic.org/         ---   GHG.EARTH: https://ghg.earth/
>> Caveat lector.                      ---   STAPLR: https://staplr.org/
>>
>

[-- Attachment #2: Type: text/html, Size: 3402 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Good way to pre/view LaTeX-lines?
  2019-10-27 19:27   ` Dmitrii Korobeinikov
  2019-10-28  1:07     ` briangpowell .
@ 2019-10-28  1:22     ` Ivan Tadeu Ferreira Antunes Filho
  2019-10-29 21:54       ` Dmitrii Korobeinikov
  1 sibling, 1 reply; 7+ messages in thread
From: Ivan Tadeu Ferreira Antunes Filho @ 2019-10-28  1:22 UTC (permalink / raw)
  To: Dmitrii Korobeinikov; +Cc: William Denton, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]

for 2 I have adapted a solution from jkitchin:

https://ivanaf.com/Automatic_Latex_Fragment_Toggling_in_org-mode.html

----
*Ivan Tadeu Ferreira Antunes Filho*


On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korobeinikov <dim1212k@gmail.com>
wrote:

> > https://orgmode.org/org.html#Previewing-LaTeX-fragments
>
> Thank you, William! This is great.
>
> After some digging, I still gotta wonder about a few things though.
> 1. Is there some sort of live-editing feature? By that I mean, being able
> to view the result (in a seperate buffer or minibuffer or even on the next
> line) as you type out the expression. In particular, it would be nice to
> know how to show an image in the minibuffer (and if possible at all) and
> how to effectively feed what's under cursor to the latex backend and get
> the image.
> 2. It would be handy to autoremove the image overlay when the cursor is on
> the fragment (and restore it when goes outside). I think no redraw should
> be necessary unless the the formula is edited.
>
> I guess I would have to dig into org-toggle-latex-fragment to know how to
> do these, but any help/pointers would be appreciated.
>
> Regards,
> Dmitrii
>
> вс, 27 окт. 2019 г. в 21:07, William Denton <wtd@pobox.com>:
>
>> On 27 October 2019, Dmitrii Korobeinikov wrote:
>>
>> > I am looking for a comfortable way to view LaTeX (for math formulas) in
>> > org-mode.
>>
>> This shows how:
>>
>> https://orgmode.org/org.html#Previewing-LaTeX-fragments
>>
>> I don't use it often, but it works very nicely.
>>
>> Bill
>> --
>> William Denton :: Toronto, Canada   ---   Listening to Art:
>> https://listeningtoart.org/
>> https://www.miskatonic.org/         ---   GHG.EARTH: https://ghg.earth/
>> Caveat lector.                      ---   STAPLR: https://staplr.org/
>>
> _______________________________________________
> Ita mailing list
> Ita@mit.edu
> http://mailman.mit.edu/mailman/listinfo/ita
>

[-- Attachment #2: Type: text/html, Size: 3537 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Good way to pre/view LaTeX-lines?
  2019-10-28  1:07     ` briangpowell .
@ 2019-10-29 21:52       ` Dmitrii Korobeinikov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitrii Korobeinikov @ 2019-10-29 21:52 UTC (permalink / raw)
  To: briangpowell .; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2263 bytes --]

Cool, I didn't know about maxima. I will look into trying it out. Thanks!

Regards,
Dmitrii

пн, 28 окт. 2019 г. в 07:08, briangpowell . <briangpowellms@gmail.com>:

> * Suggest reviewing these free software packages:
> https://itsfoss.com/latex-editors-linux/
>
> ** LyX and/or Kile are my faves
>
> ** Suggest trying these free software packages too
>
> apt-get install imaxima
> apt-get install maxima
> apt-get install maxima-emacs
> apt-get install texlive
> apt-get install texlive-math-extra
>
>
>
>
>
>
>
> On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korobeinikov <dim1212k@gmail.com>
> wrote:
>
>> > https://orgmode.org/org.html#Previewing-LaTeX-fragments
>>
>> Thank you, William! This is great.
>>
>> After some digging, I still gotta wonder about a few things though.
>> 1. Is there some sort of live-editing feature? By that I mean, being able
>> to view the result (in a seperate buffer or minibuffer or even on the next
>> line) as you type out the expression. In particular, it would be nice to
>> know how to show an image in the minibuffer (and if possible at all) and
>> how to effectively feed what's under cursor to the latex backend and get
>> the image.
>> 2. It would be handy to autoremove the image overlay when the cursor is
>> on the fragment (and restore it when goes outside). I think no redraw
>> should be necessary unless the the formula is edited.
>>
>> I guess I would have to dig into org-toggle-latex-fragment to know how to
>> do these, but any help/pointers would be appreciated.
>>
>> Regards,
>> Dmitrii
>>
>> вс, 27 окт. 2019 г. в 21:07, William Denton <wtd@pobox.com>:
>>
>>> On 27 October 2019, Dmitrii Korobeinikov wrote:
>>>
>>> > I am looking for a comfortable way to view LaTeX (for math formulas) in
>>> > org-mode.
>>>
>>> This shows how:
>>>
>>> https://orgmode.org/org.html#Previewing-LaTeX-fragments
>>>
>>> I don't use it often, but it works very nicely.
>>>
>>> Bill
>>> --
>>> William Denton :: Toronto, Canada   ---   Listening to Art:
>>> https://listeningtoart.org/
>>> https://www.miskatonic.org/         ---   GHG.EARTH: https://ghg.earth/
>>> Caveat lector.                      ---   STAPLR: https://staplr.org/
>>>
>>

[-- Attachment #2: Type: text/html, Size: 3940 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Good way to pre/view LaTeX-lines?
  2019-10-28  1:22     ` Ivan Tadeu Ferreira Antunes Filho
@ 2019-10-29 21:54       ` Dmitrii Korobeinikov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitrii Korobeinikov @ 2019-10-29 21:54 UTC (permalink / raw)
  To: Ivan Tadeu Ferreira Antunes Filho; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2595 bytes --]

>> https://ivanaf.com/Automatic_Latex_Fragment_Toggling_in_org-mode.html

Exactly what I wanted. I will be using this.

BTW just as a minor point, no need for setq when byte-compiling,
https://www.gnu.org/software/emacs/manual/html_node/elisp/Compilation-Functions.html#Compilation-Functions
/This function byte-compiles the function definition of symbol, replacing
the previous definition with the compiled one./

And thank you!

Regards,
Dmitrii

пн, 28 окт. 2019 г. в 07:22, Ivan Tadeu Ferreira Antunes Filho <
ivanaf@mit.edu>:

> for 2 I have adapted a solution from jkitchin:
>
> https://ivanaf.com/Automatic_Latex_Fragment_Toggling_in_org-mode.html
>
> ----
> *Ivan Tadeu Ferreira Antunes Filho*
>
>
> On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korobeinikov <dim1212k@gmail.com>
> wrote:
>
>> > https://orgmode.org/org.html#Previewing-LaTeX-fragments
>>
>> Thank you, William! This is great.
>>
>> After some digging, I still gotta wonder about a few things though.
>> 1. Is there some sort of live-editing feature? By that I mean, being able
>> to view the result (in a seperate buffer or minibuffer or even on the next
>> line) as you type out the expression. In particular, it would be nice to
>> know how to show an image in the minibuffer (and if possible at all) and
>> how to effectively feed what's under cursor to the latex backend and get
>> the image.
>> 2. It would be handy to autoremove the image overlay when the cursor is
>> on the fragment (and restore it when goes outside). I think no redraw
>> should be necessary unless the the formula is edited.
>>
>> I guess I would have to dig into org-toggle-latex-fragment to know how to
>> do these, but any help/pointers would be appreciated.
>>
>> Regards,
>> Dmitrii
>>
>> вс, 27 окт. 2019 г. в 21:07, William Denton <wtd@pobox.com>:
>>
>>> On 27 October 2019, Dmitrii Korobeinikov wrote:
>>>
>>> > I am looking for a comfortable way to view LaTeX (for math formulas) in
>>> > org-mode.
>>>
>>> This shows how:
>>>
>>> https://orgmode.org/org.html#Previewing-LaTeX-fragments
>>>
>>> I don't use it often, but it works very nicely.
>>>
>>> Bill
>>> --
>>> William Denton :: Toronto, Canada   ---   Listening to Art:
>>> https://listeningtoart.org/
>>> https://www.miskatonic.org/         ---   GHG.EARTH: https://ghg.earth/
>>> Caveat lector.                      ---   STAPLR: https://staplr.org/
>>>
>> _______________________________________________
>> Ita mailing list
>> Ita@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/ita
>>
>

[-- Attachment #2: Type: text/html, Size: 4684 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-29 21:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-27 15:01 Good way to pre/view LaTeX-lines? Dmitrii Korobeinikov
2019-10-27 15:07 ` William Denton
2019-10-27 19:27   ` Dmitrii Korobeinikov
2019-10-28  1:07     ` briangpowell .
2019-10-29 21:52       ` Dmitrii Korobeinikov
2019-10-28  1:22     ` Ivan Tadeu Ferreira Antunes Filho
2019-10-29 21:54       ` Dmitrii Korobeinikov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).