I'm using Tex Text in Inkscape (0.91) on a Mac (OS Sierra) (with MacTex) and it's basically functional, but I can't seem to use a preamble file (.ini). I've tried having a very simple preamble file of \usepackage{amsmath} but that results in the following error output:
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(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latexOpts)
File "textext.py", line 596, in exec_command
% (' '.join(cmd), p.returncode, out + err))
RuntimeError: Command /Library/TeX/texbin/pdflatex /var/folders/cr/6n190wb14px1csr_s38dgp_m0000gp/T/tmpcoRZLT/tmp.tex -interaction=nonstopmode -halt-on-error failed (code 1): This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(/var/folders/cr/6n190wb14px1csr_s38dgp_m0000gp/T/tmpcoRZLT/tmp.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo))
! Undefined control sequence.
l.3 {\rtf
1\ansi\ansicpg1252\cocoartf1504
?
! Emergency stop.
l.3 {\rtf
1\ansi\ansicpg1252\cocoartf1504
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on tmp.log.
Any ideas on what could be causing this error?
\rtf? (Note that, for *TeX-related problems, it is usually very important to post a stripped down and minimal.texfile that produces the error you are trying to fix. This is sometimes called a minimal example. – jon Oct 29 '16 at 01:09\usepackage{ams math}, so there is no line three in this file. – itf Oct 29 '16 at 01:24\usepackage{ams math}(note the space) should fail (I'm surprised to learn it does not; but use\usepackage{amsmath}in the future), but not with the error you are describing. But are you trying to compile your preamble? Because, if not, even the most minimal (but complete) LaTeX file will have at least three lines.... – jon Oct 29 '16 at 01:27\usepackage{amsmath}. I believe TexText tries to compile the preamble (which is a .ini, not .tex file) in order to generate Latex objects in Inkscape. Does the "most minimal (but complete)...three lines" rule apply to .ini preamble files as well? – itf Oct 29 '16 at 18:50