-
-
Notifications
You must be signed in to change notification settings - Fork 968
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
Safer latex_dependency insertion #2546
Comments
Perhaps using |
Yes definitely - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rmarkdown/R/latex_dependencies.R
Lines 48 to 59 in ee69d59
I wonder if it would be ok to use safer inclusion to avoid potential conflict if this is used in a document where the is already loaded package 🤔
Using
\@ifpackageloaded{pkgname}{}{\usepackage[options]{name}}
If a package needs options to be set though, there is not really a good way to avoid option conflict, unless this is loaded before
documentclass
with\PassOptionsToPackage{options}{pkgname}
Anyhow, I feel
latex_dependency
is not that much used, and if it would be it need to be safer.For thoughts...
The text was updated successfully, but these errors were encountered: