-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
auto_pdf option not working #1587
Comments
Since I don't use the filename extension: Line 163 in 4cbffa1
includes: in_header option to apply the trick.
I may use the full filename with the extension, but I don't really remember why I didn't. This line of code should be seven years old now. |
You seem to have changed it here eb89efe#r4907995 Wouldn't it be straightforward to switch the order of By the way, it isn't clear to me when the auto_pdf plays a role if this issue is happening, although it seems it does. I just couldn't use the option at all. |
The commit you pointed out didn't really change it. I added a global option to support the full filename. You can set |
…n hook_plot_foo() x is just the filename now; c(basename, ext) was largely for the convenience of LaTeX \includegraphics{}
Perfect, thanks a lot! After testing I understood that if I use the It is though still not clear to me in which cases the auto_pdf is useful without the new option. Would you care to illuminate me? P.S.: while testing I also noticed that in the "Unexpected pdf" case, the size of the plot if controlled by the regular "fig.*" options, whereas when the pdf is actually expected, these options don't apply. Maybe this is a hint if this issue appears again in the future in some other situation. |
A quick question regarding the update. In my case I'm using bookdown and the issue is still there, but I guess once v1.21 is deployed it will be also available for bookdown via devtools? Or am I missing something? |
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. |
It seems setting the global auto_pdf option is not working. The resulting pdf is always preferring the pdf file when available and completely ignoring the global option.
Here is a self-contained test:
The text was updated successfully, but these errors were encountered: