3

I'm looking to configure kile-livepreview on Ubuntu with -shell-escape so that when I've saved the minted environment is compiled.

I'm successfully configured the PDFLatex and it works flawlessly. I couldn't find any information about how to configure it under Kile's configure menu or kilerc.

Is it possible to modify it?

kelalaka
  • 395

1 Answers1

3

Yes, it is possible. Open kilerc and navigate to the section [Tool/LivePreview-PDFLaTeX/Default]. Add -shell-escape to the options field under this section.

abrac
  • 198
  • 7
  • Are there any GUI to achieve this? – kelalaka Sep 27 '20 at 08:07
  • Not that I know of. But you can easily use a text editor. You usually use Ctrl+F in most text editors to search for

    [Tool/LivePreview-PDFLaTeX/Default]

    Once you're there you'll find a line that starts with options (mine looked like this: options=-synctex=1 -interaction=nonstopmode -output-directory=%dir_target %source).

    Prepend -shell-escape to the options so that you get something like this:

    options=-synctex=1 -shell-escape -interaction=nonstopmode -output-directory=%dir_target %source

    – abrac Sep 27 '20 at 16:44
  • No problem with finding and editing the file. Maybe you can enrich your answer with the above comment. – kelalaka Sep 27 '20 at 17:34
  • 1
    For the ones on Windows with Kile installed from Microsoft Store I had trouble finding kilerc file: dir /s %userprofile%\kilerc Open with notepad, find Tool/LivePreview-PDFLaTeX and in options add -shell-escape: options=-shell-escape -synctex=1 -interaction=nonstopmode -output-directory=%dir_target %source – Manuel Alves Feb 09 '22 at 11:59