Font size in the Latex Export
Hi, I wonder if it is possible to change the fontsize for the LaTeX export, e.g. to small, for all Latex inputs in the drawing. Maybe there is a python script which generates the Latex code and where I could add a \small Latex command. Thank you in advance for your answers.
On 15-06-11 10:09, Jan Schmidtbauer wrote:
Hi, I wonder if it is possible to change the fontsize for the LaTeX export, e.g. to small, for all Latex inputs in the drawing. Maybe there is a python script which generates the Latex code and where I could add a \small Latex command. Thank you in advance for your answers.
For individual labels you could just put \small in the text. I know it's not very pretty, but it works (and is a bit more flexible). Also, it might be possible to put something before (and after) the actual input of the .tex file to change the default font size.
Thank you for the quick reply, of course I could insert a \small in every Latex input. To change it in the generated Latex file would be elegant but not if I had to do it by hand. In Inkscape 0.47 I used these feature as a plug-in svg2latex and there was a corresponding Python file, were I changed the font size. Unfortunately, now the Latex export is included in Inkscape and I can't find this Python file anymore.
Am 15.06.2011 10:52, schrieb Jasper van de Gronde:
On 15-06-11 10:09, Jan Schmidtbauer wrote:
Hi, I wonder if it is possible to change the fontsize for the LaTeX export, e.g. to small, for all Latex inputs in the drawing. Maybe there is a python script which generates the Latex code and where I could add a \small Latex command. Thank you in advance for your answers.
For individual labels you could just put \small in the text. I know it's not very pretty, but it works (and is a bit more flexible). Also, it might be possible to put something before (and after) the actual input of the .tex file to change the default font size.
EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Am 15.06.2011 11:00, schrieb Jan Schmidtbauer:
Thank you for the quick reply, of course I could insert a \small in every Latex input. To change it in the generated Latex file would be elegant but not if I had to do it by hand. In Inkscape 0.47 I used these feature as a plug-in svg2latex and there was a corresponding Python file, were I changed the font size. Unfortunately, now the Latex export is included in Inkscape and I can't find this Python file anymore.
The file eqtexsvg.py is the one, which is in /usr/share/inkscape/extensions here.
If you replace the line
tex.write(equation)
with
tex.write('\small' + equation)
it should work, replace 'small' with whatever size u want. Ugly hack, but worx. :-)
HTH.
Cheerz, Lars
Hi and thank you for your hint. Unfortunately, I was talking about another feature. The former svg2latex is now in the pdf-export dialog. (see this link: http://wiki.inkscape.org/wiki/index.php/Release_notes/0.48#New_LaTeX_export_...). I guess this function is not part of a Python script anymore.
Am 20.06.2011 17:19, schrieb Lars Behrens:
Am 15.06.2011 11:00, schrieb Jan Schmidtbauer:
Thank you for the quick reply, of course I could insert a \small in every Latex input. To change it in the generated Latex file would be elegant but not if I had to do it by hand. In Inkscape 0.47 I used these feature as a plug-in svg2latex and there was a corresponding Python file, were I changed the font size. Unfortunately, now the Latex export is included in Inkscape and I can't find this Python file anymore.
The file eqtexsvg.py is the one, which is in /usr/share/inkscape/extensions here.
If you replace the line
tex.write(equation)
with
tex.write('\small' + equation)
it should work, replace 'small' with whatever size u want. Ugly hack, but worx. :-)
HTH.
Cheerz, Lars
EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On 20-6-2011 21:00, Jan Schmidtbauer wrote:
Hi and thank you for your hint. Unfortunately, I was talking about another feature. The former svg2latex is now in the pdf-export dialog. (see this link: http://wiki.inkscape.org/wiki/index.php/Release_notes/0.48#New_LaTeX_export_...). I guess this function is not part of a Python script anymore.
svg2latex is still available for download if you google for it. If you think your idea is worth adding to the pdf+latex export in Inkscape, go ahead and report it here: https://bugs.launchpad.net/inkscape (your particular request requires some thinking about how best to go about these things, and I won't have time to work on it soon)
Ciao, Johan
participants (4)
-
Jan Schmidtbauer
-
Jasper van de Gronde
-
Johan Engelen
-
Lars Behrens