* orgtbl-mode --> orgsrc-mode, orgtbl-insert-table-or-matrix--> orgsrc-execute-block
@ 2017-08-05 8:16 Uwe Brauer
0 siblings, 0 replies; only message in thread
From: Uwe Brauer @ 2017-08-05 8:16 UTC (permalink / raw)
To: emacs-orgmode
Hi
I like orgtbl-mode and orgtbl-insert-table-or-matrix in latex files a
lot, since they simplify considerably the construction of tables and
matrixes.
I am looking for a similar functionality for src-code-blocks.
The idea is to insert, surrounded by a comment environment,
src-code-blocks, to execute them via org-babel and to insert the results
into the latex file, very similar to what orgtbl-insert-table-or-matrix
does.
Something like this
% BEGIN RECEIVE ORGSCR this
% END RECEIVE ORGSRC this
\begin{comment}
#+ORGTBL: SEND this orgsrc-to-latex
|/|<>|
| |4 |
#+begin_src matlab
X=[1,2,3,4,5,6,7];
res=mean(X)
#+end_src
\end{comment}
resulting in
% BEGIN RECEIVE ORGSCR this
res=3.5
% END RECEIVE ORGSRC this
\begin{comment}
#+ORGTBL: SEND this orgsrc-to-latex
|/|<>|
| |4 |
#+begin_src matlab
X=[1,2,3,4,5,6,7];
res=mean(X)
#+end_src
\end{comment}
Does such a functionality already exist?
Thanks
Uwe Brauer
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-05 8:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-05 8:16 orgtbl-mode --> orgsrc-mode, orgtbl-insert-table-or-matrix--> orgsrc-execute-block Uwe Brauer
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).