* inline code block within export block
@ 2016-11-21 20:02 Charles Millar
2016-11-21 22:17 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Charles Millar @ 2016-11-21 20:02 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Hi,
What is the syntax so that the inline source code will evaluate (SUMMARY
is a table elsewhere in the buffer)?
#+begin_export latex
some test here src_latex[:var
printthis=SUMMARY[-1,-1]]{\numprint{printthis}}
#+end_export
The above src_latex block evaluates if it is not within an export block.
I have used a comma at the start of the code block and well as before
and after.
Charlie Millar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: inline code block within export block
2016-11-21 20:02 inline code block within export block Charles Millar
@ 2016-11-21 22:17 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-11-21 22:17 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode@gnu.org
Hello,
Charles Millar <millarc@verizon.net> writes:
> What is the syntax so that the inline source code will evaluate (SUMMARY
> is a table elsewhere in the buffer)?
>
> #+begin_export latex
>
> some test here src_latex[:var
> printthis=SUMMARY[-1,-1]]{\numprint{printthis}}
>
> #+end_export
>
> The above src_latex block evaluates if it is not within an export
> block.
Export block are a special case of verbatim blocks. No data is processed
within. However (inline) source code can generate appropriate wrapper
around its result.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-21 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-21 20:02 inline code block within export block Charles Millar
2016-11-21 22:17 ` Nicolas Goaziou
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).