TexTex - Latex plugin for inkscape

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

TexTex - Latex plugin for inkscape

#1 Post by darkcity »

TexTex - Latex plugin for Inkscape. The Latex script can be modified after being inserted (ie it isn't a one way process).
http://pav.iki.fi/software/textext/

Requirements-

python-2.6-lxmlnumpy-cut-i486.pet http://murga-linux.com/puppy/viewtopic.php?t=73176 (general for Inkscape plugins)

Python+-2.6.4-i486.pet http://www.murga-linux.com/puppy/viewtopic.php?t=49138 (for pygtk)

pdf2svg-0.2.2-i486.pet http://puppylinuxstuff.meownplanet.net/ ... 2-i486.pet

TexText-0.4.4.pet http://puppylinuxstuff.meownplanet.net/ ... -0.4.4.pet (the plugin)

Ensure a Latex system is installed - check using latex -v and pdflatex -v

For example the texlive-2011-FULLAPP.sfs http://www.murga-linux.com/puppy/viewto ... 288#590288


Requires library libpoppler.so.13 or later.
Make a link called libpoppler.so.13 to the latest libpoppler.
For example in Slacko 5.6 make a relative symlink called libpoppler.so.13 to /usr/lib/libpoppler.so.26.0.0

---
error examples

no pdflatex command present-
Traceback (most recent call last):
File "textext.py", line 210, in cb_ok
self.callback(self.text, self.preamble_file, self.scale_factor)
File "textext.py", line 369, in <lambda>
converter_cls, old_node))
File "textext.py", line 387, in do_convert
new_node = converter.convert(text, preamble_file, scale_factor)
File "textext.py", line 875, in convert
return PdfConverterBase.convert(self, *a, **kw)
File "textext.py", line 750, in convert
self.tex_to_pdf(latex_text, preamble_file)
File "textext.py", line 727, in tex_to_pdf
exec_command(['pdflatex', self.tmp('tex')] + latexOpts)
File "textext.py", line 592, in exec_command
raise RuntimeError("Command %s failed: %s" % (' '.join(cmd), e))
RuntimeError: Command pdflatex /tmp/tmp86l_b3/tmp.tex -interaction=nonstopmode -halt-on-error failed: [Errno 2] No such file or directory
The Latex interpreter is quite fussy, expect long error if it doesn't like something-
Traceback (most recent call last):
File "textext.py", line 210, in cb_ok
self.callback(self.text, self.preamble_file, self.scale_factor)
File "textext.py", line 369, in <lambda>
converter_cls, old_node))
File "textext.py", line 387, in do_convert
new_node = converter.convert(text, preamble_file, scale_factor)
File "textext.py", line 875, in convert
return PdfConverterBase.convert(self, *a, **kw)
File "textext.py", line 750, in convert
self.tex_to_pdf(latex_text, preamble_file)
File "textext.py", line 727, in tex_to_pdf
exec_command(['pdflatex', self.tmp('tex')] + latexOpts)
File "textext.py", line 596, in exec_command
% (' '.join(cmd), p.returncode, out + err))
RuntimeError: Command pdflatex /tmp/tmpUmfIz9/tmp.tex -interaction=nonstopmode -halt-on-error failed (code 1): This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(/tmp/tmpUmfIz9/tmp.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo))

LaTeX Warning: Unused global option(s):
[a0].

No file tmp.aux.
! Missing $ inserted.
<inserted text>
$
l.7 \cos
A \cos B &= \frac{1}{2}\left[ \cos(A-B)+\cos(A+B) \right] \\
?
! Emergency stop.
<inserted text>
$
l.7 \cos
A \cos B &= \frac{1}{2}\left[ \cos(A-B)+\cos(A+B) \right] \\
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on tmp.log.
May require reboot after everything's installed.

Also see wiki page http://puppylinux.org/wikka/TexText
Attachments
exampletextex.png
(36.98 KiB) Downloaded 2610 times

Post Reply