emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] orgtbl-mode --> orgsrc-mode, orgtbl-insert-table-or-matrix--> orgsrc


From: Uwe Brauer
Subject: [O] orgtbl-mode --> orgsrc-mode, orgtbl-insert-table-or-matrix--> orgsrc-execute-block
Date: Sat, 05 Aug 2017 08:16:25 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

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 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]