You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to produce a standAlone tikz-Plot with an additional package as in the following example:
options(tikzMetricPackages=c(getOption("tikzMetricPackages"), "\\usepackage{siunits}\n"))
options(tikzLaTeXPackages="\\usepackage{siunits}\n")
tikz("Plot.tex", standAlone=TRUE)
plot(1:3, xlab="height in \\centi\\metre")
dev.off()
tikz generates the file, but the preambel is only:
% Created by tikzDevice version 0.8.1 on 2015-01-23 16:41:58% !TEX encoding = UTF-8 Unicode\documentclass[10pt]{article}
\usepackage{tikz}
\usepackage[active,tightpage,psfixbb]{preview}
\PreviewEnvironment{pgfpicture}
\setlength\PreviewBorder{0pt}
\begin{document}
Shouldn't be there the additional package siunits from tikzLaTeXPackages? What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Sorry for my slow reply. I can only guess: Options are case-sensitive in R, have you tried options(tikzLatexPackages=...)? Also, I think the LaTeX package you probably want to use is called siunitx.
I tried to produce a standAlone tikz-Plot with an additional package as in the following example:
tikz generates the file, but the preambel is only:
Shouldn't be there the additional package siunits from tikzLaTeXPackages? What am I doing wrong?
The text was updated successfully, but these errors were encountered: