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 like to have my styles for document in a separate file that can be accessed by any document I produce. Unfortunately, this seems to interfere with knitr's ability to add the correct LaTeX packages to the .tex file to then be converted to PDF when trying to output the source code.
I have produced a MWE at https://github.com/stephlocke/knitrhighlighting which shows how using an off file setup doc (rootdoc.Rnw) errors whilst including the content (rootdoc2.Rnw) does not.
Ideally, knitr should add any package setup after an \include{} or \input{} statement if it appears before \begin{document}
The text was updated successfully, but these errors were encountered:
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
I like to have my styles for document in a separate file that can be accessed by any document I produce. Unfortunately, this seems to interfere with knitr's ability to add the correct LaTeX packages to the .tex file to then be converted to PDF when trying to output the source code.
I have produced a MWE at https://github.com/stephlocke/knitrhighlighting which shows how using an off file setup doc (rootdoc.Rnw) errors whilst including the content (rootdoc2.Rnw) does not.
Ideally, knitr should add any package setup after an \include{} or \input{} statement if it appears before \begin{document}
The text was updated successfully, but these errors were encountered: