Incompatibility between the emaxima LaTeX mode and the knitr R package.



Emmanuel Charpentier <emm.charpentier at free.fr> writes:

> Dear Yihui, dear list,
>
> Many thanks for this very prompt answer : this second suggestion worked
> perfectly.
>
> I'll try to see whether a \LaTeX macro can be used to deterine if the
> current compilation is made for DVI or PDF. If so, the relevant package
> options could be determined at weaving time.

See the ifpdf package.

https://en.wikibooks.org/wiki/LaTeX/Tips_and_Tricks#Generic_header

-- 
Leo Butler                <l_butler at users.sourceforge.net>
SDF Public Access UNIX System -   http://sdf.lonestar.org