Joseph Vidal-Rosset <joseph.vidal.ros...@gmail.com> writes: > > I guess that I have to put in my .bashrc a command to say that I always > > want to use latex with -shell-escape option , but I am not sure that it > > is the best solution. > > > > -shell-escape is a security risk, allowing arbitrary programs to > execute, but if you are careful about what you allow and don't get > careless, I think it's reasonable to set it once and for all. I do that > because I use minted all the time (it's also needed by some svg package > that I occasionally use). But I do try to be careful about what new > latex packages I install. > > I have just to find how to write this setup in my .bashrc file. If you know > the command line for a Linux user, do not hesitate to > tell me. It will be more quick for me ! >
Sorry, I misspoke: I only set it in org. Most of my latex usage is org->latex->pdf nowadays, so I don't bother to do it from the shell. On the rare occasions when I do it from the command line, I type the option explicitly if needed. My org-latex-pdf-process setting is (setq org-latex-pdf-process '("texi2dvi --shell-escape --pdf %f")) and I'm experimenting with (setq org-latex-pdf-process '("latexmk --shell-escape -pdf -xelatex %f")) HTH, Nick