-
Notifications
You must be signed in to change notification settings - Fork 26
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 make tikzDevice invoke (pdf|xe|lua)latex with -shell-escape ? #172
Comments
We really need to switch to |
How ?
Apparently, there is no tinytex-specific option. An the doc doesn't say pip about it. Unless you mean the |
Note that tikzDevice does not use tinytex at the moment. If it does in the future, the option would be |
I tried :
to no avail. Same error :
Ditto for :
Really stuck... |
You don't need to try anything, because I don't think the current version of tikzDevice supports custom arguments for the LaTeX engine. |
Okay. My current conclusion is that One might write shell script calling LaTeX with the needed flag and trying to convince IMHO, it's either a design error or a bug. That should be fixed. Even if LaTeX user are scarce... Since But I'm not yet convinced of the necessity of such a package. More on this in a future issue, either here or in a tinytex issue : I need to think it over... BTW : the dependency of |
The tikzDevice package does not depend on tinytex (at least currently). The dependency in knitr has been documented: https://github.com/yihui/knitr/releases/tag/v1.19 tinytex is a fairly lightweight R dependency, and I should make it clear that it does not require TinyTeX (the custom LaTeX distribution). You can use whatever your favorite LaTeX distribution is. I'm not interested in convincing you of the many advantages of tinytex including the possibility of setting |
Two things :
And again : your work on So don't take my remarks as gratuitous criticism : I aim to constructive criticism (but my aim might be somewhat shaky...). Since I still think that |
I have proposed a (partial) solution to this annoyance. There remains problems probably attributable to the way HTH, |
I am stuck with the following problem :
I a .Rnw file, i want to use the
minted
package, which needs to write files and therefore uses the-shell-escape
flag on the latex command line. This is done automagically by my working environment (emacs
+ AUCTeX).When
knitr
ing a.Rnw
file with an R chink generating a figure :tikzDevice
builds a.tex
file using (most of) the master file's preamble (hence uses\usepackage{minted}
if present).tikzDevice
calls (pdf|xe|lua)latex on this file, without using the-shell-escape
flagThe first invocation of
tikz
fails with the message :This log file has :
tikzDevice
currently does not seem to offer a way to add this flag to the (pdf|xe|lua)latex invocation (I checked that this cannot be done by settingtikzDefaultEngine
).It goes without saying that the same .Rnw file without
\usepackage{minted}
compiles perfectly...I'm stuck...
The text was updated successfully, but these errors were encountered: