Hot answers tagged


You can use tex4ht to convert the TeX file converted from RMarkdown by Knitr and Pandoc. It supports TikZ and most of LaTeX packages. If you want to convert TikZ code to SVG, it is best to use special driver, which needs to be manually installed unfortunately. To request the driver, add one line to your .rmd file: --- title: "Hello World" author: "Me" date:...


\documentclass{article} \usepackage{hyperref} \usepackage{siunitx} \AtBeginDocument {\pdfstringdefDisableCommands{\def\as{foo}}} \begin{document} \def\as{foo} \section{\as} \end{document}


With xparse, of course ;-) \documentclass{article} \usepackage{xparse} \usepackage{hyperref} \NewExpandableDocumentCommand \foo { s m } {% \IfBooleanTF{#1} {one #2 one}% Starred {two #2 two}% Non-starred } \begin{document} \section{\foo*{bar}} \section{\foo{baz}} \end{document} The command that goes into the PDF bookmark has to be ...


With -render=0 it is not possible to have automatic visible/hidden faces managment. It is a 2D projection of the 3D scene. The only advantage is the vectorized output. When you click on your pdf (with adobe) a 3D rendering engine is launched, the PRC engine of Adobe. If you print it or export the output it is a bitmap image and not vectorized. The main ...


On Unix/Linux (and perhaps others) you can use pdfjam for most of your PDF mangling tasks. That said, why do you need to rearrange pages? LaTeX is quite capable of handling back and forward references.


Based on Phelype Oleinik's solution: one can use the crossreftools package together with some custom code. \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \usepackage{crossreftools} \pdfstringdefDisableCommands{% \let\Cref\crtCref \let\cref\crtcref } \newtheorem{theorem}{Theorem} \...

Only top voted, non community-wiki answers of a minimum length are eligible