emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* latex preview in latex block
@ 2016-04-09 15:25 Jérémie Juste
  2016-04-10  7:00 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Jérémie Juste @ 2016-04-09 15:25 UTC (permalink / raw)
  To: emacs-org list

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

Hello,

Is it possible to activate the latex preview in org-mode within in latex
bloc?
My idea was to comment the table when I get the output. I noticed also that
preview does not work with the table environment but works fine with the
tablular environment.

This does not work
#+BEGIN_SRC Latex
\begin{align*}
y = x^2
\end{align*}
#+END_SRC


This fragment works fine.
\begin{align*}
y = x^2
\end{align*}

Best regards
-- 
Jeremie Juste

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

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

* Re: latex preview in latex block
  2016-04-09 15:25 latex preview in latex block Jérémie Juste
@ 2016-04-10  7:00 ` Nicolas Goaziou
  2016-04-10 18:39   ` Jeremie Juste
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2016-04-10  7:00 UTC (permalink / raw)
  To: Jérémie Juste; +Cc: emacs-org list

Hello,

Jérémie Juste <jeremiejuste@gmail.com> writes:

> Is it possible to activate the latex preview in org-mode within in latex
> bloc?

It isn't possible out of the box. Org doesn't look at the contents of
src blocks, which are supposed to be written in a foreign language.

However, you can probably write a function for your own use, starting
from `org-format-latex'.

Regards,

-- 
Nicolas Goaziou

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

* Re: latex preview in latex block
  2016-04-10  7:00 ` Nicolas Goaziou
@ 2016-04-10 18:39   ` Jeremie Juste
  0 siblings, 0 replies; 4+ messages in thread
From: Jeremie Juste @ 2016-04-10 18:39 UTC (permalink / raw)
  To: emacs-org list; +Cc: mail

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Jérémie Juste <jeremiejuste@gmail.com> writes:
>
>> Is it possible to activate the latex preview in org-mode within in latex
>> bloc?
>
> It isn't possible out of the box. Org doesn't look at the contents of
> src blocks, which are supposed to be written in a foreign language.
>
> However, you can probably write a function for your own use, starting
> from `org-format-latex'.
>
> Regards,


Thanks for the lead, I'll give it a try post the code back
here if it works.

Best regards,

Jeremie

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

* latex preview in latex block
@ 2016-04-13  9:32 Jérémie Juste
  0 siblings, 0 replies; 4+ messages in thread
From: Jérémie Juste @ 2016-04-13  9:32 UTC (permalink / raw)
  To: emacs-org list, mail

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

Hello,
>
> Jérémie Juste <jeremiejuste@gmail.com> writes:
>
>> Is it possible to activate the latex preview in org-mode within in latex
>> bloc?

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
> It isn't possible out of the box. Org doesn't look at the contents of
> src blocks, which are supposed to be written in a foreign language.
>
> However, you can probably write a function for your own use, starting
> from `org-format-latex'.
>
> Regards,


Actually, there is a simpler way of previewing the latex code from the
output of a babel source block. We just need to specify   :results output
raw. For example

#+begin_src R :results output raw
       <some code that will output a latex table>
#+end_src

Best regards

Jeremie Juste

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

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

end of thread, other threads:[~2016-04-13  9:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-09 15:25 latex preview in latex block Jérémie Juste
2016-04-10  7:00 ` Nicolas Goaziou
2016-04-10 18:39   ` Jeremie Juste
  -- strict thread matches above, loose matches on Subject: below --
2016-04-13  9:32 Jérémie Juste

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