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'm trying to control the number of digits for inline tex output. While this works if the options(digits = x) is set in the same document as the code, if it's set on the parent it is ignored.
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'm trying to control the number of digits for inline tex output. While this works if the options(digits = x) is set in the same document as the code, if it's set on the parent it is ignored.
Here's a simple example:
sample.Rnw:
child.Rnw:
<<>>= x = 1.2109382103921 @ Just a test, $x = \Sexpr{x}$.
Makefile:
all: R -e "require(knitr); knit('sample.Rnw')" pdflatex sample.tex
output of child.tex:
if options(digits=2) is set on child.Rnw, then the output is correct:
correct-child.tex:
relevant info:
Expected behavior: I believe that if an option is set at the parent document, I shouldn't have to repeat it at every child... following DRY.
Thanks for the hard work on this package!
The text was updated successfully, but these errors were encountered: