I read about the arara cli and some scripting capabilities and im wondering if its possible to make arara use inkscape to convert svg to pdf before includeing them with \includegraphics.

A frend showed me how this works with make but in my case i can not use make because of serveral usage of input.

arara works already, and thats why im seeking for a automaton...

not a working MWE but a idea of what im looking for, see line 4:

% !TEX root = ./main.tex
% !TEX encoding = UTF-8
% !TEX TS-program = arara
% arara: command: if *.svg found("@{ return getCommand('inkscape -D -z --file=$1.svg --export-pdf=$1.pdf --export-latex') }")
% arara: pdflatex
% arara: clean: {extensions: [aux,bib,bbl,blg,glg,glo,gls,idx,ilg,ind,ist,log,lot,out,xml,toc,top,tui,mp]}
  • Out of curiosity: do you know about the svg package which would do exactly this workflow for you? (needs -shell-escape for compiling) – user36296 Oct 18 '18 at 21:17
  • if you convert the svg to pdf first, then the latex document should include the pdf file not the svg file via \includegraphics – David Carlisle Oct 18 '18 at 21:34
  • @DavidCarlisle thats correct. But im seeking for a automated version. – novski Oct 19 '18 at 19:00
  • @novski but as you have it, if arara does the conversion it will be done before pdftex starts so the tex document should reference a pdf file not an svg file. – David Carlisle Oct 19 '18 at 19:03
  • @samcarter i didn't! thanks for that link. I tried to call -shell-escape like this: % arara: pdflatex -shell-escape but that does not work. i don't understand the help in the arara manual so do you know how to call -shell-escape with arara? – novski Oct 19 '18 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.