emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: edgar@openmail.cc
Cc: emacs-orgmode@gnu.org
Subject: Re: [Feature request] LaTeX blocks preview
Date: Sat, 19 Aug 2017 10:57:12 +0200	[thread overview]
Message-ID: <87378olytz.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <9ec2ba3edfeedf8fb05ec988b8669411@openmail.cc> (edgar@openmail.cc's message of "Mon, 14 Aug 2017 20:33:36 +0000")

Hello,

edgar@openmail.cc writes:

> I would like to ask if it is possible to preview latex blocks. Something 
> like this (replace EXPORT with SRC, if you wish):
>
>          #+BEGIN_EXPORT latex
>          \begin{align}
>            I_{0}
>            & > \max{(\lambda_{f}^{2})}
>            \\
>            & > 2^{2}
>            \\
>            I_{0} & > 4
>          \end{align}
>          #+END_EXPORT
>
> to be previewed in the same way as
>
>          \begin{align}
>            I_{0}
>            & > \max{(\lambda_{f}^{2})}
>            \\
>            & > 2^{2}
>            \\
>            I_{0} & > 4
>          \end{align}

It is not possible in the general case. The export block is not
guaranteed to contain a complete environment; it isn't necessarily
displayable either.

> - Related ::
>    - org-edit-latex-mode
>      There is org-edit-latex-mode, but it requires  some extra work:
>      1. org-edit-special (C-')
>      2. org-edit-latex-preview-at-point (C-c C-p C-p)
>      3. org-edit-src-exit (C-')
>
>      Besides, the preview does not stay in the original Org-mode buffer, 
> but it's lost with step 3.

I think this is an acceptable workaround. I think AucTeX has its own
previewing mechanism, so step 2 may not be required.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-08-19  8:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-14 20:33 [Feature request] LaTeX blocks preview edgar
2017-08-19  8:57 ` Nicolas Goaziou [this message]
2017-08-19 23:53   ` edgar
2017-09-13 14:28   ` edgar

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87378olytz.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=edgar@openmail.cc \
    --cc=emacs-orgmode@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.
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).