From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Tadeu Ferreira Antunes Filho Subject: Re: Good way to pre/view LaTeX-lines? Date: Sun, 27 Oct 2019 21:22:39 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009ab91d0595ee56ef" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45440) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOtkG-0002RC-FO for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 21:22:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOtkE-0006XG-NR for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 21:22:56 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:38145 helo=outgoing.mit.edu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iOtkE-0006Wm-Is for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 21:22:54 -0400 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (authenticated bits=0) (User authenticated as ivanaf@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x9S1MpP8004761 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sun, 27 Oct 2019 21:22:52 -0400 Received: by mail-oi1-f169.google.com with SMTP id s71so4929216oih.11 for ; Sun, 27 Oct 2019 18:22:52 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Dmitrii Korobeinikov Cc: William Denton , emacs-orgmode --0000000000009ab91d0595ee56ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 nex= t > 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 o= n > 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 > > =D0=B2=D1=81, 27 =D0=BE=D0=BA=D1=82. 2019 =D0=B3. =D0=B2 21:07, William D= enton : > >> On 27 October 2019, Dmitrii Korobeinikov wrote: >> >> > I am looking for a comfortable way to view LaTeX (for math formulas) i= n >> > 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 > --0000000000009ab91d0595ee56ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
for 2 I have adapted a solution from jkitchin:
<= div>

----
Ivan Tadeu Ferreira Antunes Filho=C2=A0=


On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korob= einikov <dim1212= k@gmail.com> wrote:
>=C2=A0https:/= /orgmode.org/org.html#Previewing-LaTeX-fragments

Tha= nk you, William! This is great.

After some digging, I still gotta wo= nder about a few things though.
1. Is there some sort of live-editing fe= ature? 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 curs= or to the latex backend and get the image.
2. It would be handy to autor= emove 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 fo= rmula is edited.

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

Regards,
Dmitrii

=D0=B2=D1=81, 27 = =D0=BE=D0=BA=D1=82. 2019 =D0=B3. =D0=B2 21:07, William Denton <wtd@pobox.com>:
On 27 October 2019, Dmit= rii Korobeinikov wrote:

> I am looking for a comfortable way to view LaTeX (for math formulas) i= n
> 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=C2=A0 =C2=A0---=C2=A0 =C2=A0Listening to = Art: https://listeningtoart.org/
https://www.miskatonic.org/=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0---=C2= =A0 =C2=A0GHG.EARTH: https://ghg.earth/
Caveat lector.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ---=C2=A0 =C2=A0STAPLR: https://staplr.org/
_______________________________________________
Ita mailing list
Ita@mit.edu
http://mailman.mit.edu/mailman/listinfo/ita
--0000000000009ab91d0595ee56ef--