beamerscape icon indicating copy to clipboard operation
beamerscape copied to clipboard

Add support for Inkscape's builtin LaTeX rendering

Open jbohren opened this issue 13 years ago • 2 comments

jbohren avatar Dec 13 '12 20:12 jbohren

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

  1. 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`;
  1. 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;
  1. 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

donpicoro avatar Nov 14 '13 15:11 donpicoro

I've opened a pull request (https://github.com/jbohren/beamerscape/pull/5) for a re-implementation of the algorithm that handles this correctly.

x49 avatar Mar 20 '18 07:03 x49