latex formula error mentions log file that does not exist (but ought to)
Summary:
can't insert formula into SVG document : with default formula, a small dialog appears for a fraction of a second the disappears (formula was not visible straight away, this confused me, but now I can't reproduce because I lost the latex code). with a simpler formula, I get an error warning that font is missing, directing me to a log file that doesn't exist.
Steps to reproduce:
- open Inkscape
- Extensions -> Render -> Formula (pdflatex)
- type in a formula, e.g.
l.5 -\frac{1}{n}
, omit to enclose it in $$ (I thought it was implicit, since the extension is called "insert Formula") - click "apply"
What happened?
a error message comes up (see below), suggesting that the dollar signs are missing (as most of you know, these latex compiler errors are not trivial to understand)
What should have happened?
a formula "should" have appeared (or not since it was not enclosed properly) ; but what really should have happened is a log at /tmp/inktmp00_dyrux/input.log
An exception occurred during LaTeX compilation:
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021 Gentoo Linux) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(/tmp/inktmp00_dyrux/input.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/usr/share/texmf-dist/tex/latex/standalone/standalone.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(/usr/share/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texmf-dist/tex/generic/iftex/ifluatex.sty
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/share/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/share/texmf-dist/tex/latex/standalone/standalone.cfg)
(/usr/share/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2021/03/17 v3.33 KOMA-Script document class (report)
(/usr/share/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrlfile.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrlogo.sty)))))
(/usr/share/texmf-dist/tex/latex/koma-script/tocbasic.sty)
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <15> not available
(Font) size <14.4> substituted on input line 2451.
(/usr/share/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea Warning: DIV for 15.0pt and used papersize
(typearea) not defined!
(typearea) Using DIV=calc.
DIV calculation for typearea with good linewidth.
)) (/usr/share/texmf-dist/tex/latex/preview/preview.sty
(/usr/share/texmf-dist/tex/generic/luatex85/luatex85.sty)
(/usr/share/texmf-dist/tex/latex/preview/prtightpage.def)))
(/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
No file input.aux.
Preview: Fontsize 15pt
Preview: PDFoutput 1
! Missing $ inserted.
<inserted text>
$
l.5 -\frac{1}{n}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on /tmp/inktmp00_dyrux/input.log.
Version info
Inkscape 1.2.1 (9c6d41e410, 2022-07-14)
Edited by Nathan Lee