[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] More specific LaTeX output classes
From: |
Ken Williams |
Subject: |
[O] More specific LaTeX output classes |
Date: |
Fri, 2 Dec 2011 15:15:55 -0600 |
If I export the following code to LaTeX:
--------------------------
#+begin_src R
CV.t.hat <- rowMeans(loss)[m]
CV.t.hat
#+end_src
#+results:
: [1] 1.135857
--------------------------
, then it looks like this in the *.tex file:
--------------------------
\begin{verbatim}
CV.t.hat <- rowMeans(loss)[m]
CV.t.hat
\end{verbatim}
\begin{verbatim}
[1] 1.135857
\end{verbatim}
--------------------------
So there's no distinction between input & output, nor between various types of
input (e.g. different programming languages).
Would it be possible for the export process to define various classes that
default to being exactly like 'verbatim', but could be customized? After that,
a next step might be to provide nice defaults that do things like
syntax-highlighting (through the 'minted' package, perhaps), or at least add a
visual marker distinguishing between input & output.
Or of course it's possible some of this is already implemented and I've missed
it. =)
--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com
CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution of any kind is strictly
prohibited. If you are not the intended recipient, please contact the sender
via reply e-mail and destroy all copies of the original message. Thank you.
- [O] More specific LaTeX output classes,
Ken Williams <=