Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Inkscape's builtin LaTeX rendering #2

Open
jbohren opened this issue Dec 13, 2012 · 2 comments
Open

Add support for Inkscape's builtin LaTeX rendering #2

jbohren opened this issue Dec 13, 2012 · 2 comments

Comments

@jbohren
Copy link
Owner

jbohren commented Dec 13, 2012

No description provided.

@donpicoro
Copy link

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

@x49
Copy link

x49 commented Mar 20, 2018

I've opened a pull request (#5) for a re-implementation of the algorithm that handles this correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants