Add support for Inkscape's builtin LaTeX rendering
Hej, it is indeed a VERY COOL tool. I was missing the latex support and I manage to modify my local copy so it does work with latex.
I am very sure I am missing some details but I still believe having the proper LaTeX support would come handy for some people.
since the problem when using the latex export is the graphicspath I included a line that modifies the pdf_tex files AND the way the graphics are included had to me modified... is probably not the best solution but it seems to work for me.
NOTE: I am using the previous version without the option for the output file
- After exporting the file from inkscape withe line
`inkscape $inkfile -z -C -i '$id' -j -A $outfile.pdf --export-latex`;
I included the following line:
`sed -i 's $id $overlay_path/& g' $overlay_path/$id.pdf_tex`;
- The overlay.tex file is like this:
printf TEXFILE "
\% Layer \"%s\"
\\begin{textblock}{1}(0,0)
\\only<%s>{{\\def\\svgwidth{\\paperwidth}\\input{%s.pdf_tex}}}
\\end{textblock}\n", $label,$overlay_spec,$outfile;
- then from the .tex file just input the overlay.tex file as always.
I hope you incorporate the LaTeX support or get some ideas on how to do it properly. Cheers and thanks for the good work.
/Pico Edit: code markup
I've opened a pull request (https://github.com/jbohren/beamerscape/pull/5) for a re-implementation of the algorithm that handles this correctly.