Re: [Inkscape-user] Importing from LaTeX... (good one!)
Sorry, the previous mail has a couple of errors in the attached files!
Francesc Serra Graells wrote:
On Monday 17 October 2005 09:34 am, Francesc Serra Graells wrote:
....
After some tests, I think that a transparent way to implement the above feature could be through the following script:
- Open a text box to input TeX commands (e.g. text)
- Run copy header.tex + text + footer.tex > clip.tex
- Run pdfelatex clip.tex
- Run pstoedit -dt -f svg clip.pdf clip.svg
- File-Import: clip.svg
- Run delete clip.*
where header.tex could be something like:
\documentclass{article} \usepackage[latin1]{inputenc} \usepackage[english]{babel} \usepackage[T1]{fontenc} \begin{document} \thispagestyle{empty}
and footer.tex:
\end{document}
I have tested this path manually under MSWindows using pstoedit 3.42 without problems. I know the SVG backend of pstoedit is not freeware, but as long as text is converted to curves by -dt, the output does not seem distorted (e.g. fontname distortion).
Does Inkscape supply any scripting to perform all the above tasks in order to integrate them as a simple menu option?
Thanks for your answers.
Best regards,
Paco
Hi myself (again),
#$%! it was just a Perl error. Finally, here are the files to be located in the Inkscape\share\extensions directory:
latex2svg.inx : Inkscape extension interface latex2svg.pl : Perl script
Also, a simple LaTeX header example is supplied (latex2svg.tex)...
This extension effectively creates the latex2svg-clip.svg file in the selected temp directory with all the compiled LaTeX material.
The question is, how can I execute in the *.inx file an automatic File->Import action for such a file???
Thanks in advance!
Paco
participants (1)
-
Francesc Serra Graells