Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tikzLaTeXPackages not used with standAlone-option #100

Closed
minintaequ opened this issue Jan 23, 2015 · 1 comment
Closed

tikzLaTeXPackages not used with standAlone-option #100

minintaequ opened this issue Jan 23, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@minintaequ
Copy link

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?

@krlmlr
Copy link
Collaborator

krlmlr commented Mar 25, 2015

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.

@krlmlr krlmlr self-assigned this Mar 25, 2015
@krlmlr krlmlr modified the milestones: 0.9, 0.8.2 Apr 13, 2015
@krlmlr krlmlr closed this as completed Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants