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

How to not include the default packages? (issue metrics calculation) #221

Open
stla opened this issue Feb 14, 2023 · 1 comment
Open

How to not include the default packages? (issue metrics calculation) #221

stla opened this issue Feb 14, 2023 · 1 comment

Comments

@stla
Copy link

stla commented Feb 14, 2023

Hello,

I don't want to use the getOption("tikzLatexPackages") packages, because it is enough to use:

documentDeclaration = "\\documentclass[tikz]{standalone}\n"

without any package.

But when I try packages = "" or packages = "\n" or packages = NULL, the tikz device does not work: there's some error messages claiming that

TeX was unable to calculate metrics for: m

However if I generate the LaTeX file with the default packages, and I remove the package declarations from this file, I can compile it without any issue.

And there's no m in my plot, it just plot(0, 0, pch = 19).

@stla
Copy link
Author

stla commented Feb 14, 2023

I see now. I have to add at least packages = "\\usepackage{tikz}\n", even though it is not necessary with the class option [tikz] of the document class standalone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant