Version mismatch error from hyperref and hpdeftex in TeXLive - latex

I am having problems getting hyperref to work with my TeXLive installation. Here is a simple example:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{www.jamescurran.co.nz}{www.jamescurran.co.nz}
\end{document}
which results in this error
Package hyperref Error: Version mismatch!(hyperref) * 2018/11/30 v6.88e: hpdftex.def. \Hy#VersionCheck{hpdftex.def}
Googling only returns to a bug in TeXLive 2016 - I have TeXLive 2019.
Edit this is my logfile:
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex 2019.6.8) 23 JUN 2019 14:34
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**document.tex
(./document.tex
LaTeX2e <2018-12-01>
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c#part=\count80
\c#section=\count81
\c#subsection=\count82
\c#subsubsection=\count83
\c#paragraph=\count84
\c#subparagraph=\count85
\c#figure=\count86
\c#table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/Users/jcur002/Library/texmf/tex/latex/kranz/hyperref.sty
Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
Package: hobsub-hyperref 2016/05/16 v1.14 Bundle oberdiek, subset hyperref (HO)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty
Package: hobsub-generic 2016/05/16 v1.14 Bundle oberdiek, subset generic (HO)
Package: hobsub 2016/05/16 v1.14 Construct package bundles (HO)
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
Package: intcalc 2016/05/16 v1.2 Expandable calculations with integers (HO)
Package: ifpdf 2018/09/07 v3.3 Provides the ifpdf switch
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
Package: pdftexcmds 2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf#primitive is available.
Package pdftexcmds Info: \pdf#ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
Package: pdfescape 2016/05/16 v1.14 Implements pdfTeX's escape features (HO)
Package: bigintcalc 2016/05/16 v1.4 Expandable calculations on big integers (HO
)
Package: bitset 2016/05/16 v1.2 Handle bit-vector datatype (HO)
Package: uniquecounter 2016/05/16 v1.3 Provide unlimited unique counter (HO)
)
Package hobsub Info: Skipping package `hobsub' (already loaded).
Package: letltxmacro 2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
Package: hopatch 2016/05/16 v1.3 Wrapper for package hooks (HO)
Package: xcolor-patch 2016/05/16 xcolor patch
Package: atveryend 2016/05/16 v1.9 Hooks at the very end of document (HO)
Package atveryend Info: \enddocument detected (standard20110627).
Package: atbegshi 2016/06/09 v1.18 At begin shipout hook (HO)
Package: refcount 2016/05/16 v3.5 Data extraction from label references (HO)
Package: hycolor 2016/05/16 v1.8 Color options for hyperref/bookmark (HO)
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV#toks#=\toks14
)
(/usr/local/texlive/2019/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/oberdiek/auxhook.sty
Package: auxhook 2016/05/16 v1.4 Hooks for auxiliary files (HO)
)
(/usr/local/texlive/2019/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
)
\#linkdim=\dimen103
\Hy#linkcounter=\count88
\Hy#pagecounter=\count89
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2018/11/30 v6.88e Hyperref: PDFDocEncoding definition (HO)
Now handling font encoding PD1 ...
... no UTF-8 mapping file for font encoding PD1
)
\Hy#SavedSpaceFactor=\count90
(/usr/local/texlive/2019/texmf-dist/tex/latex/latexconfig/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
Package hyperref Info: Hyper figures OFF on input line 4262.
Package hyperref Info: Link nesting OFF on input line 4267.
Package hyperref Info: Hyper index ON on input line 4270.
Package hyperref Info: Plain pages OFF on input line 4277.
Package hyperref Info: Backreferencing OFF on input line 4282.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4500.
\c#Hy#tempcnt=\count91
(/usr/local/texlive/2019/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip10
Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 4853.
\Fld#menulength=\count92
\Field#Width=\dimen104
\Fld#charsize=\dimen105
Package hyperref Info: Hyper figures OFF on input line 6043.
Package hyperref Info: Link nesting OFF on input line 6048.
Package hyperref Info: Hyper index ON on input line 6051.
Package hyperref Info: backreferencing OFF on input line 6058.
Package hyperref Info: Link coloring OFF on input line 6063.
Package hyperref Info: Link coloring with OCG OFF on input line 6068.
Package hyperref Info: PDF/A mode OFF on input line 6073.
LaTeX Info: Redefining \ref on input line 6113.
LaTeX Info: Redefining \pageref on input line 6117.
\Hy#abspage=\count93
\c#Item=\count94
\c#Hfootnote=\count95
)
Package hyperref Message: Driver (autodetected): hpdftex.
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/hpdftex.def
File: hpdftex.def 2018/11/30 v6.88e Hyperref driver for pdfTeX
! Package hyperref Error: Version mismatch!
(hyperref) * 2012/11/06 v6.83m: hyperref.sty
(hyperref) * 2018/11/30 v6.88e: hpdftex.def.
See the hyperref package documentation for explanation.
Type H <return> for immediate help.
...
l.36 \Hy#VersionCheck{hpdftex.def}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
\Fld#listcount=\count96
\c#bookmark#seq#number=\count97
(/usr/local/texlive/2019/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
Package: rerunfilecheck 2016/05/16 v1.8 Rerun checks for auxiliary files (HO)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
82.
)
\Hy#SectionHShift=\skip43
)
No file document.aux.
\openout1 = `document.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
\AtBeginShipoutBox=\box27
Package hyperref Info: Link coloring OFF on input line 3.
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/gettitlestring.sty
Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO)
)
\c#section#level=\count98
)
LaTeX Info: Redefining \ref on input line 3.
LaTeX Info: Redefining \pageref on input line 3.
LaTeX Info: Redefining \nameref on input line 3.
\#outlinefile=\write3
\openout3 = `document.out'.
! Undefined control sequence.
\hyper#linkurl ...etpdfborder \Hy#setpdfhighlight
\ifx \#urlbordercolor \rel...
l.4 ...w.jamescurran.co.nz}{www.jamescurran.co.nz}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 5.
[1
{/usr/local/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
Package atveryend Info: Empty hook `AfterLastShipout' on input line 5.
(./document.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 5.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 5.
Package rerunfilecheck Warning: File `document.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.
Package rerunfilecheck Info: Checksums for `document.out':
(rerunfilecheck) Before: <no file>
(rerunfilecheck) After: D41D8CD98F00B204E9800998ECF8427E;0.
Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 5.
)
Here is how much of TeX's memory you used:
4148 strings out of 492609
62608 string characters out of 6129049
146228 words of memory out of 5000000
8107 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
28i,4n,21p,176b,317s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on document.pdf (1 page, 13264 bytes).
PDF statistics:
18 PDF objects out of 1000 (max. 8388607)
13 compressed objects within 1 object stream
2 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

The problem seems to be an old version of hyperref installed in your personal texmf tree: /Users/jcur002/Library/texmf/tex/latex/kranz/hyperref.sty
This package version conflicts with the other package files. Once this file is removed, the up-to-date version from the texlive tree should be used and the version mismatch solved.

Related

Manim can't compile Latex "latex error converting to dvi."

I tried compiling the following code:
class I3(Scene):
def construct(self):
z = Tex("e^{i\theta}=\cos(\theta)+i\sin(\theta)")
self.add(z)
self.wait(5)
But I got this error:
ValueError: latex error converting to dvi. See log output above or the log file: media/Tex/d946638dc8ff7097.log
The .log file mentioned is:
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (MiKTeX 22.3) (preloaded format=latex 2022.7.16) 17 JUL 2022 18:20
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./media/Tex/d946638dc8ff7097.tex
(media/Tex/d946638dc8ff7097.tex
LaTeX2e <2022-06-01> patch level 3
L3 programming layer <2022-06-16> (C:\Program Files\MiKTeX\tex/latex/standalone
\standalone.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(C:\Program Files\MiKTeX\tex/latex/tools\shellesc.sty
Package: shellesc 2019/11/08 v1.0c unified shell escape interface for LaTeX
Package shellesc Info: Restricted shell escape enabled on input line 77.
) (C:\Program Files\MiKTeX\tex/generic/iftex\ifluatex.sty
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
(C:\Program Files\MiKTeX\tex/generic/iftex\iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
)) (C:\Program Files\MiKTeX\tex/latex/xkeyval\xkeyval.sty
Package: xkeyval 2022/06/16 v2.9 package option processing (HA)
(C:\Program Files\MiKTeX\tex/generic/xkeyval\xkeyval.tex (C:\Program Files\MiKT
eX\tex/generic/xkeyval\xkvutils.tex
\XKV#toks=\toks16
\XKV#tempa#toks=\toks17
(C:\Program Files\MiKTeX\tex/generic/xkeyval\keyval.tex))
\XKV#depth=\count185
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
\sa#internal=\count186
\c#sapage=\count187
(C:\Program Files\MiKTeX\tex/latex/standalone\standalone.cfg
File: standalone.cfg 2018/03/26 v1.3a Default configuration file for 'standalon
e' class
) (C:\Program Files\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(C:\Program Files\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c#part=\count188
\c#section=\count189
\c#subsection=\count190
\c#subsubsection=\count191
\c#paragraph=\count192
\c#subparagraph=\count193
\c#figure=\count194
\c#table=\count195
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/preview\preview.sty
Package: preview 2017/04/24 13.1 (AUCTeX/preview-latex)
(C:\Program Files\MiKTeX\tex/latex/luatex85\luatex85.sty
Package: luatex85 2016/06/15 v1.4 pdftex aliases for luatex
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/preview\prtightpage.def
\PreviewBorder=\dimen139
)
\pr#snippet=\count196
\pr#box=\box51
\pr#output=\toks18
)) (C:\Program Files\MiKTeX\tex/generic/babel\babel.sty
Package: babel 2022/06/06 3.76 The Babel package
\babel#savecnt=\count197
\U#D=\dimen140
\l#unhyphenated=\language79
(C:\Program Files\MiKTeX\tex/generic/babel\txtbabel.def)
\bbl#readstream=\read2
\bbl#dirlevel=\count198
*************************************
* Local config file bblopts.cfg used
*
(C:\Program Files\MiKTeX\tex/latex/arabi\bblopts.cfg
File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of
babel
) (C:\Program Files\MiKTeX\tex/latex/babel-english\english.ldf
Language: english 2017/06/06 v3.3r English support from the babel system
Package babel Info: Hyphen rules for 'canadian' set to \l#english
(babel) (\language0). Reported on input line 102.
Package babel Info: Hyphen rules for 'australian' set to \l#ukenglish
(babel) (\language73). Reported on input line 105.
Package babel Info: Hyphen rules for 'newzealand' set to \l#ukenglish
(babel) (\language73). Reported on input line 108.
)) (C:\Program Files\MiKTeX\tex/generic/babel/locale/en\babel-english.tex
Package babel Info: Importing font and identification data for english
(babel) from babel-en.ini. Reported on input line 11.
) (C:\Program Files\MiKTeX\tex/latex/base\inputenc.sty
Package: inputenc 2021/02/14 v1.3d Input encoding file
\inpenc#prehook=\toks19
\inpenc#posthook=\toks20
) (C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (C:\Program Files\MiKTeX\tex/latex/lm\lmodern.sty
Package: lmodern 2015/05/01 v1.6.1 Latin Modern Fonts
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n --> OT1/lmr/m/n on input line 22.
LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
(Font) OML/cmm/m/it --> OML/lmm/m/it on input line 23.
LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
(Font) OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 24.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 25.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it --> OML/lmm/b/it on input line 27.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 28.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 29.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 31.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal'
(Font) OT1/cmss/m/n --> OT1/lmss/m/n on input line 32.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it --> OT1/lmr/m/it on input line 33.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 34.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 35.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 36.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 37.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 38.
) (C:\Program Files\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2022/04/08 v2.17n AMS math features
\#mathmargin=\skip49
For additional information on amsmath, use the `?' option.
(C:\Program Files\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(C:\Program Files\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\#emptytoks=\toks21
\ex#=\dimen141
)) (C:\Program Files\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise#=\dimen142
) (C:\Program Files\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2022/04/08 v2.04 operator names
)
\inf#bad=\count199
LaTeX Info: Redefining \frac on input line 234.
\uproot#=\count266
\leftroot#=\count267
LaTeX Info: Redefining \overline on input line 399.
LaTeX Info: Redefining \colon on input line 410.
\classnum#=\count268
\DOTSCASE#=\count269
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox#=\box52
\strutbox#=\box53
LaTeX Info: Redefining \big on input line 722.
LaTeX Info: Redefining \Big on input line 723.
LaTeX Info: Redefining \bigg on input line 724.
LaTeX Info: Redefining \Bigg on input line 725.
\big#size=\dimen143
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
\macc#depth=\count270
LaTeX Info: Redefining \bmod on input line 905.
LaTeX Info: Redefining \pmod on input line 910.
LaTeX Info: Redefining \smash on input line 940.
LaTeX Info: Redefining \relbar on input line 970.
LaTeX Info: Redefining \Relbar on input line 971.
\c#MaxMatrixCols=\count271
\dotsspace#=\muskip16
\c#parentequation=\count272
\dspbrk#lvl=\count273
\tag#help=\toks22
\row#=\count274
\column#=\count275
\maxfields#=\count276
\andhelp#=\toks23
\eqnshift#=\dimen144
\alignsep#=\dimen145
\tagshift#=\dimen146
\tagwidth#=\dimen147
\totwidth#=\dimen148
\lineht#=\dimen149
\#envbody=\toks24
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay#stack=\toks25
LaTeX Info: Redefining \[ on input line 2953.
LaTeX Info: Redefining \] on input line 2954.
) (C:\Program Files\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(C:\Program Files\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
)) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/doublestroke\dsfont.sty
Package: dsfont 1995/08/01 v0.1 Double stroke roman fonts
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/setspace\setspace.sty
Package: setspace 2011/12/19 v6.7a set line spacing
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/tipa\tipa.sty
Package: tipa 2002/08/08 TIPA version 1.1
(C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
(C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/tipa\t3enc.def
File: t3enc.def 2001/12/31 T3 encoding
Now handling font encoding T3 ...
... no UTF-8 mapping file for font encoding T3
LaTeX Font Info: Trying to load font information for T1+lmss on input line 3
57.
(C:\Program Files\MiKTeX\tex/latex/lm\t1lmss.fd
File: t1lmss.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
))
LaTeX Font Info: Trying to load font information for T1+lmr on input line 11
2.
(C:\Program Files\MiKTeX\tex/latex/lm\t1lmr.fd
File: t1lmr.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
))) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/relsize\relsize.sty
Package: relsize 2013/03/29 ver 4.1
) (C:\Program Files\MiKTeX\tex/latex/base\textcomp.sty
Package: textcomp 2020/02/02 v2.0n Standard LaTeX package
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/jknappen\mathrsfs.sty
Package: mathrsfs 1996/01/01 Math RSFS package v1.0 (jk)
\symrsfs=\mathgroup6
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/fundus-calligra\calligra.sty
Package: calligra 2012/04/10 v1.9 LaTeX package calligra
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/wasysym\wasysym.sty
Package: wasysym 2020/01/19 v2.4 Wasy-2 symbol support package
\symwasy=\mathgroup7
LaTeX Font Info: Overwriting symbol font `wasy' in version `bold'
(Font) U/wasy/m/n --> U/wasy/b/n on input line 93.
) (C:\Program Files\MiKTeX\tex/latex/ragged2e\ragged2e.sty
Package: ragged2e 2021/12/15 v3.1 ragged2e Package
\CenteringLeftskip=\skip52
\RaggedLeftLeftskip=\skip53
\RaggedRightLeftskip=\skip54
\CenteringRightskip=\skip55
\RaggedLeftRightskip=\skip56
\RaggedRightRightskip=\skip57
\CenteringParfillskip=\skip58
\RaggedLeftParfillskip=\skip59
\RaggedRightParfillskip=\skip60
\JustifyingParfillskip=\skip61
\CenteringParindent=\skip62
\RaggedLeftParindent=\skip63
\RaggedRightParindent=\skip64
\JustifyingParindent=\skip65
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/physics\physics.sty
Package: physics
(C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse.sty (C:\Program Fil
es\MiKTeX\tex/latex/l3kernel\expl3.sty
Package: expl3 2022-06-16 L3 programming layer (loader)
(C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-dvips.def
File: l3backend-dvips.def 2022-04-20 L3 backend support: dvips
\l__pdf_internal_box=\box54
\g__pdf_backend_object_int=\count277
\l__pdf_backend_content_box=\box55
\l__pdf_backend_model_box=\box56
\g__pdf_backend_annotation_int=\count278
\g__pdf_backend_link_int=\count279
\g__pdf_backend_link_sf_int=\count280
))
Package: xparse 2022-06-22 L3 Experimental document command parser
)) (C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty
Package: xcolor 2022/06/12 v2.14 LaTeX color extensions (UK)
(C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: dvips.def on input line 227.
(C:\Program Files\MiKTeX\tex/latex/graphics-def\dvips.def
File: dvips.def 2017/06/20 v3.1d Graphics/color driver for dvips
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex-dev/graphics\mathcolor.ltx)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1353.
Package xcolor Info: Model `RGB' extended on input line 1369.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1371.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1372.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1373.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1374.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1375.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1376.
) (C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/microtype\microtype.sty
Package: microtype 2022/06/23 v3.0f Micro-typographical refinements (RS)
(C:\Program Files\MiKTeX\tex/latex/etoolbox\etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb#tempcnta=\count281
)
\MT#toks=\toks26
\MT#tempbox=\box57
\MT#count=\count282
LaTeX Info: Redefining \noprotrusionifhmode on input line 1045.
LaTeX Info: Redefining \leftprotrusion on input line 1046.
LaTeX Info: Redefining \rightprotrusion on input line 1056.
LaTeX Info: Redefining \textls on input line 1234.
\MT#outer#kern=\dimen150
LaTeX Info: Redefining \textmicrotypecontext on input line 1858.
\MT#listname#count=\count283
(C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/microtype\microtype-pdftex.def
File: microtype-pdftex.def 2022/06/23 v3.0f Definitions specific to pdftex (RS)
LaTeX Info: Redefining \lsstyle on input line 900.
LaTeX Info: Redefining \lslig on input line 900.
\MT#outer#space=\skip66
)
Package microtype Info: Loading configuration file microtype.cfg.
(C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/microtype\microtype.cfg
File: microtype.cfg 2022/06/23 v3.0f microtype main configuration file (RS)
))
No file d946638dc8ff7097.aux.
\openout1 = `d946638dc8ff7097.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 24.
LaTeX Font Info: ... okay on input line 24.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 24.
LaTeX Font Info: ... okay on input line 24.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 24.
LaTeX Font Info: ... okay on input line 24.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 24.
LaTeX Font Info: ... okay on input line 24.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 24.
LaTeX Font Info: ... okay on input line 24.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 24.
LaTeX Font Info: ... okay on input line 24.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 24.
LaTeX Font Info: ... okay on input line 24.
LaTeX Font Info: Checking defaults for T3/cmr/m/n on input line 24.
LaTeX Font Info: Trying to load font information for T3+cmr on input line 24
.
(C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/tipa\t3cmr.fd
File: t3cmr.fd 2001/12/31 TIPA font definitions
)
LaTeX Font Info: ... okay on input line 24.
Preview: Fontsize 10pt
LaTeX Info: Redefining \microtypecontext on input line 24.
Package microtype Info: Applying patch `item' on input line 24.
Package microtype Info: Applying patch `toc' on input line 24.
Package microtype Info: Applying patch `eqnum' on input line 24.
Package microtype Info: Applying patch `footnote' on input line 24.
Package microtype Info: Generating DVI output.
Package microtype Info: Character protrusion enabled (level 2).
Package microtype Info: Using default protrusion set `alltext'.
Package microtype Info: No font expansion.
Package microtype Info: No adjustment of tracking.
Package microtype Info: No adjustment of interword spacing.
Package microtype Info: No adjustment of character kerning.
(C:\Users\selae\AppData\Roaming\MiKTeX\tex/latex/microtype\mt-cmr.cfg
File: mt-cmr.cfg 2013/05/19 v2.2 microtype config. file: Computer Modern Roman
(RS)
)
! Missing $ inserted.
<inserted text>
$
l.27 e^
{i heta}=\cos( heta)+i\sin( heta)
Here is how much of TeX's memory you used:
8382 strings out of 478352
131308 string characters out of 2846893
474783 words of memory out of 3000000
26693 multiletter control sequences out of 15000+600000
478062 words of font info for 34 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
72i,2n,77p,1025b,170s stack positions out of 10000i,1000n,20000p,200000b,80000s
No pages of output.
This code actually does work:
class I3(Scene):
def construct(self):
z = Tex("LaTeX")
self.add(z)
self.wait(5)
Which makes me believe there are some missing packages, after some digging around I've seen some people suggest to ran latex tex_template.tex in the manimlib folder but I couldn't find this folder anywhere on my computer. What causes this problem and how can I fix it?
You did not mention whether you are using manimgl or the community maintained version of Manim, but judging from the error I guess you are running the community maintained version (from manim import *).
In that case, Tex renders TeX in normal mode, and MathTex inserts your string in an align*-environment (and thus, in math mode). This is what the error towards the end of your log file complains about:
! Missing $ inserted.
<inserted text>
$
l.27 e^
{i heta}=\cos( heta)+i\sin( heta)
This actually also reveals a second problem with your code, given that \t has been replaced by spaces: \ is a special character in Python strings; to actually write a \ you need to escape it by writing \\ -- or, alternatively, use a raw string by putting a r before your string.
TL;DR, this is what you want:
class I3(Scene):
def construct(self):
z = MathTex(r"e^{i\theta}=\cos(\theta)+i\sin(\theta)")
self.add(z)
self.wait(5)

Generation of PDF file with XeLatex

I installed TexMaker, MikTex and a font package.
I try to run a code on TexMaker, which tells me to compile with XeLatex because of the packages used.
When I run with XeLatex, there don't seem to be mistake, but no PDF is generated. I can't understand why.
And following is the backlog.
Do you know why I can't generate PDF file?
Thanks for answers
This is XeTeX, Version 3.141592653-2.6-0.999993 (MiKTeX 21.12) (preloaded format=xelatex 2022.3.9) 9 MAR 2022 22:41
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./cv.tex
(cv.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2021-11-22>
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c#part=\count179
\c#section=\count180
\c#subsection=\count181
\c#subsubsection=\count182
\c#paragraph=\count183
\c#subparagraph=\count184
\c#figure=\count185
\c#table=\count186
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/marvosym\marvosym.sty
Package: marvosym 2011/07/20 v2.2 Martin Vogel's Symbols font definitions
) (C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/fontspec\fontspec.st
y
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/l3packages/xparse\xpar
se.sty
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/l3kernel\expl3.sty
Package: expl3 2021-11-22 L3 programming layer (loader)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-xe
tex.def
File: l3backend-xetex.def 2021-10-18 L3 backend support: XeTeX
()
\c__kernel_sys_dvipdfmx_version_int=\count187
\l__color_backend_stack_int=\count188
\g__color_backend_stack_int=\count189
\g__graphics_track_int=\count190
\l__pdf_internal_box=\box50
\g__pdf_backend_object_int=\count191
\g__pdf_backend_annotation_int=\count192
\g__pdf_backend_link_int=\count193
))
Package: xparse 2021-11-12 L3 Experimental document command parser
)
Package: fontspec 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/fontspec\fontspec-xete
x.sty
Package: fontspec-xetex 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTe
X
\l__fontspec_script_int=\count194
\l__fontspec_language_int=\count195
\l__fontspec_strnum_int=\count196
\l__fontspec_tmp_int=\count197
\l__fontspec_tmpa_int=\count198
\l__fontspec_tmpb_int=\count199
\l__fontspec_tmpc_int=\count266
\l__fontspec_em_int=\count267
\l__fontspec_emdef_int=\count268
\l__fontspec_strong_int=\count269
\l__fontspec_strongdef_int=\count270
\l__fontspec_tmpa_dim=\dimen139
\l__fontspec_tmpb_dim=\dimen140
\l__fontspec_tmpc_dim=\dimen141
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/base\fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/fontspec\fontspec.cfg)
))
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/xelatex/xunicode\xunicode.st
y
File: xunicode.sty 2011/09/09 v0.981 provides access to latin accents and many
other characters in Unicode lower plane
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/tipa\t3enc.def
File: t3enc.def 2001/12/31 T3 encoding
)
\tipaTiiicode=\count271
\tipasavetokens=\toks16
\tipachecktokens=\toks17
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.sty
Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV#toks#=\toks18
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.
cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: xetex.def on input line 107.
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\xetex.def
File: xetex.def 2021/03/18 v5.0k Graphics/color driver for xetex
))
\Gin#req#height=\dimen142
\Gin#req#width=\dimen143
)) (C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/url\url.sty
\Urlmuskip=\muskip16
Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/parskip\parskip.sty
Package: parskip 2021-03-14 v2.0h non-zero parskip adjustments
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/kvoptions\kvoptions.st
y
Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/ltxcmds\ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/kvsetkeys\kvsetkeys.
sty
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
))
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/etoolbox\etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb#tempcnta=\count272
)) (C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics\color.sty
Package: color 2021/10/11 v1.3b Standard LaTeX Color (DPC)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package color Info: Driver file: xetex.def on input line 149.
) (C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/xcolor\xcolor.sty
Package: xcolor 2021/10/31 v2.13 LaTeX color extensions (UK)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Package option `usenames' ignored on input line 218.
Package xcolor Info: Driver file: xetex.def on input line 227.
LaTeX Info: Redefining \color on input line 711.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1368.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1370.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1371.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1372.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1373.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1374.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1375.
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/graphics\dvipsnam.def
File: dvipsnam.def 2016/06/17 v3.0m Driver-dependent file (DPC,SPQR)
))
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/layaureo\layaureo.sty
Package: layaureo 2004/09/16 v0.2
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/geometry\geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/iftex\ifvtex.sty
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty
Package: iftex 2020/03/06 v1.0d TeX engine tests
))
\Gm#cnth=\count273
\Gm#cntv=\count274
\c#Gm#tempcnt=\count275
\Gm#bindingoffset=\dimen144
\Gm#wd#mp=\dimen145
\Gm#odd#mp=\dimen146
\Gm#even#mp=\dimen147
\Gm#layoutwidth=\dimen148
\Gm#layoutheight=\dimen149
\Gm#layouthoffset=\dimen150
\Gm#layoutvoffset=\dimen151
\Gm#dimlist=\toks19
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/geometry\geometry.cfg)
) (C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/tools\calc.sty
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc#Acount=\count276
\calc#Bcount=\count277
\calc#Adimen=\dimen152
\calc#Bdimen=\dimen153
\calc#Askip=\skip49
\calc#Bskip=\skip50
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc#Ccount=\count278
\calc#Cskip=\skip51
)
\LA#MargineRilegatura=\skip52
\LA#LarghezzaTesto=\skip53
\LA#AltezzaTesto=\skip54
\LA#MargineSinistro=\skip55
\LA#MargineSuperiore=\skip56
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/supertabular\supertabu
lar.sty
Package: supertabular 2020/02/02 v4.1g the supertabular environment
\c#tracingst=\count279
\ST#wd=\dimen154
\ST#rightskip=\skip57
\ST#leftskip=\skip58
\ST#parfillskip=\skip59
\ST#pageleft=\dimen155
\ST#headht=\dimen156
\ST#tailht=\dimen157
\ST#pagesofar=\dimen158
\ST#pboxht=\dimen159
\ST#lineht=\dimen160
\ST#prevht=\dimen161
\ST#toadd=\dimen162
\ST#dimen=\dimen163
\ST#pbox=\box51
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/titlesec\titlesec.sty
Package: titlesec 2021/07/05 v2.14 Sectioning titles
\ttl#box=\box52
\beforetitleunit=\skip60
\aftertitleunit=\skip61
\ttl#plus=\dimen164
\ttl#minus=\dimen165
\ttl#toksa=\toks20
\titlewidth=\dimen166
\titlewidthlast=\dimen167
\titlewidthfirst=\dimen168
) (C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\hyperref.st
y
Package: hyperref 2021-06-07 v7.00m Hypertext links for LaTeX
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/pdftexcmds\pdftexcmd
s.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/infwarerr\infwarerr.
sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
Package pdftexcmds Info: \pdf#primitive is available.
Package pdftexcmds Info: \pdf#ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode not found.
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/kvdefinekeys\kvdefin
ekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/pdfescape\pdfescape.
sty
Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/hycolor\hycolor.sty
Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/letltxmacro\letltxmacr
o.sty
Package: letltxmacro 2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/auxhook\auxhook.sty
Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
)
\#linkdim=\dimen169
\Hy#linkcounter=\count280
\Hy#pagecounter=\count281
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\pd1enc.def
File: pd1enc.def 2021-06-07 v7.00m Hyperref: PDFDocEncoding definition (HO)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\hyperref-lang
patches.def
File: hyperref-langpatches.def 2021-06-07 v7.00m Hyperref: patches for babel la
nguages
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/intcalc\intcalc.sty
Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO)
)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/etexcmds\etexcmds.st
y
Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
)
\Hy#SavedSpaceFactor=\count282
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\puenc.def
File: puenc.def 2021-06-07 v7.00m Hyperref: PDF Unicode definition (HO)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/latex/hyperref\puenc-greekba
sic.def
File: puenc-greekbasic.def 2021-06-07 v7.00m Hyperref: PDF Unicode definition (
greek block) (HO)
))
Package hyperref Info: Hyper figures OFF on input line 4192.
Package hyperref Info: Link nesting OFF on input line 4197.
Package hyperref Info: Hyper index ON on input line 4200.
Package hyperref Info: Plain pages OFF on input line 4207.
Package hyperref Info: Backreferencing OFF on input line 4212.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4445.
\c#Hy#tempcnt=\count283
LaTeX Info: Redefining \url on input line 4804.
\XeTeXLinkMargin=\dimen170
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/bitset\bitset.sty
Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO)
(C:\Users\XXX\AppData\Local\Programs\MiKTeX\tex/generic/bigintcalc\bigintcal
c.sty
Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO
)
))
\Fld#menulength=\count284
\Field#Width=\dimen171
\Fld#charsize=\dimen172
Package hyperref Info: Hyper figures OFF on

pdfLaTeX epstopdf converts all text to monotype font

When including .eps files with \includegraphics and compiling with pdfLaTeX, I get all fonts in monotype font even though the original .eps file has another font specified, e.g. Helvetica or Arial. I've tested both Helvetica and Arial (the latter of which is installed on my Windows 10 system) to make sure it wasn't an issue of whether the font is installed.
Here are the two example eps files I'm using to test it:
https://github.com/skhiggins/test_epstopdf/blob/master/sample_eps_arial.eps
https://github.com/skhiggins/test_epstopdf/blob/master/sample_eps_helvetica.eps
Opening the .eps files in a text editor, I confirmed they declare the fonts as Helvetica and Arial, respectively, using e.g. %%DocumentNeededResources: font Arial. If I open the .eps files using gsview they appear correctly. However, when I compile a pdf in LaTeX the font of the graphs is monotype. (If I run epstopdf in the command line, I also get monotype font.) Here is the LaTeX code that I compile with pdflatex.exe:
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\includegraphics[width=\textwidth]{sample_eps_helvetica.eps}
\includegraphics[width=\textwidth]{sample_eps_arial.eps}
\end{document}
Both graphics appear in the pdf as follows, with a monotype font :
I already tried the obvious things like uninstalling and reinstalling MiKTeX. Here is the log:
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit) (preloaded format=pdflatex 2020.1.10) 10 JAN 2020 10:12
entering extended mode
**C:/Dropbox/Latex_code/test_epstopdf/epstopdf_MWE.tex
(C:/Dropbox/Latex_code/test_epstopdf/epstopdf_MWE.tex
LaTeX2e <2019-10-01> patch level 3
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2019/10/25 v1.4k Standard LaTeX document class
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/base\size12.clo"
File: size12.clo 2019/10/25 v1.4k Standard LaTeX file (size option)
)
\c#part=\count80
\c#section=\count81
\c#subsection=\count82
\c#subsubsection=\count83
\c#paragraph=\count84
\c#subparagraph=\count85
\c#figure=\count86
\c#table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\graphicx.sty"
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\keyval.sty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV#toks#=\toks14
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\graphics.sty"
Package: graphics 2019/11/01 v1.3d Standard LaTeX Graphics (DPC,SPQR)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics\trig.sty"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\graphics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
))
\Gin#req#height=\dimen103
\Gin#req#width=\dimen104
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epstopdf.sty"
Package: epstopdf 2019/11/24 v2.7 Conversion with epstopdf on the fly (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epstopdf-base.sty"
Package: epstopdf-base 2019/11/24 v2.7 Base part for package epstopdf
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\infwarerr.sty"
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/oberdiek\grfext.sty"
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\kvdefinekeys.sty"
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\ltxcmds.sty"
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
))) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/oberdiek\kvoptions.sty"
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/oberdiek\etexcmds.sty"
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/iftex\ifluatex.sty"
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
("C:\Dropbox\Programs\MiKTeX 2.9\tex/generic/iftex\iftex.sty"
Package: iftex 2019/11/07 v1.0c TeX engine tests
))))) ("C:\Dropbox\Programs\MiKTeX 2.9\tex/latex/pdftexcmds\pdftexcmds.sty"
Package: pdftexcmds 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: \pdf#primitive is available.
Package pdftexcmds Info: \pdf#ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
42.
Package grfext Info: Graphics extension search list:
(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 460.
)) (C:\Dropbox\Latex_code\test_epstopdf\build\epstopdf_MWE.aux)
\openout1 = `epstopdf_MWE.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info: ... okay on input line 7.
("C:\Dropbox\Programs\MiKTeX 2.9\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count88
\scratchdimen=\dimen105
\scratchbox=\box27
\nofMPsegments=\count89
\nofMParguments=\count90
\everyMPshowfont=\toks15
\MPscratchCnt=\count91
\MPscratchDim=\dimen106
\MPnumerator=\count92
\makeMPintoPDFobject=\count93
\everyMPtoPDFconversion=\toks16
)
Package epstopdf Info: Source file: <sample_eps_helvetica.eps>
(epstopdf) date: 2020-01-10 10:10:40
(epstopdf) size: 13204 bytes
(epstopdf) Output file: <sample_eps_helvetica-eps-converted-to.pdf>
(epstopdf) date: 2020-01-10 10:12:32
(epstopdf) size: 11003 bytes
(epstopdf) Command: <epstopdf --outfile=sample_eps_helvetica-eps-co
nverted-to.pdf sample_eps_helvetica.eps>
(epstopdf) \includegraphics on input line 9.
Package epstopdf Info: Output file is already uptodate.
pdfTeX warning: pdflatex.exe (file ./sample_eps_helvetica-eps-converted-to.pdf)
: PDF inclusion: found PDF version <1.7>, but at most version <1.5> allowed
<sample_eps_helvetica-eps-converted-to.pdf, id=1, 397.485pt x 289.08pt>
File: sample_eps_helvetica-eps-converted-to.pdf Graphic file (type pdf)
<use sample_eps_helvetica-eps-converted-to.pdf>
Package pdftex.def Info: sample_eps_helvetica-eps-converted-to.pdf used on inp
ut line 9.
(pdftex.def) Requested size: 390.0pt x 283.64493pt.
Package epstopdf Info: Source file: <sample_eps_arial.eps>
(epstopdf) date: 2020-01-10 10:10:40
(epstopdf) size: 13200 bytes
(epstopdf) Output file: <sample_eps_arial-eps-converted-to.pdf>
(epstopdf) date: 2020-01-10 10:12:33
(epstopdf) size: 11003 bytes
(epstopdf) Command: <epstopdf --outfile=sample_eps_arial-eps-conver
ted-to.pdf sample_eps_arial.eps>
(epstopdf) \includegraphics on input line 10.
Package epstopdf Info: Output file is already uptodate.
pdfTeX warning: pdflatex.exe (file ./sample_eps_arial-eps-converted-to.pdf): PD
F inclusion: found PDF version <1.7>, but at most version <1.5> allowed
<sample_eps_arial-eps-converted-to.pdf, id=2, 397.485pt x 289.08pt>
File: sample_eps_arial-eps-converted-to.pdf Graphic file (type pdf)
<use sample_eps_arial-eps-converted-to.pdf>
Package pdftex.def Info: sample_eps_arial-eps-converted-to.pdf used on input l
ine 10.
(pdftex.def) Requested size: 390.0pt x 283.64493pt.
Overfull \hbox (17.62482pt too wide) in paragraph at lines 9--11
[][]
[]
[1
{C:/Users/Sean Higgins/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map} <./sa
mple_eps_helvetica-eps-converted-to.pdf>] [2 <./sample_eps_arial-eps-converted-
to.pdf>] (C:\Dropbox\Latex_code\test_epstopdf\build\epstopdf_MWE.aux) )
Here is how much of TeX's memory you used:
1503 strings out of 492484
22174 string characters out of 3129678
82863 words of memory out of 3000000
5860 multiletter control sequences out of 15000+200000
3938 words of font info for 15 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
57i,4n,32p,365b,115s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Drop
box/Programs/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb>
Output written on C:\Dropbox\Latex_code\test_epstopdf\build\epstopdf_MWE.pdf (2
pages, 27497 bytes).
PDF statistics:
25 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
11 words of extra memory for PDF output out of 10000 (max. 10000000)
I had the same problem, I don't know the reason, but the solution for me was to reinstall Miktex to the previous version (basic-miktex-2.9.6850-x64).

Compile two versions of a document from the same latex source

How to automatically compile two versions of the same document, for example version without answers for the students and another version with answers for myself?
I have a small bash script to do a dual format.
function latex-ans () {
n=$(basename $1 .tex) # strip .tex in filename foo.tex -> foo
ln -s $n.tex $n-ans.tex # create a soft link (for instance foo-ans.tex -> foo.tex)
pdflatex '\def\withanswer{1} \input{'$n-ans'}' && pdflatex $n
% first format the version with answers and then the normal version
rm $n-ans.tex $n-ans.log
% remove useless files
}
If I have a file foo.tex, this commands formats both versions of the file and generates two pdf: foo.pdf and foo-ans.pdf. Thanks to the renaming of foo.tex through the ln -s, it also keeps separate foo.aux and foo-ans.aux to preserve useful information on both versions.
At the latex level, I basically do the same and use the macro \withanswers to configure my packages.
There are several packages that allow to conditionally exclude certain parts of the document, for example the exercise package.
With TeXstudio, the following magic comment can be used to automatically compile both versions at once (including repeated compilation for cross-references, bibliographies, indices etc.):
% !TeX program = latexmk -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode -shell-escape" -jobname=% -pretex="\newcommand{\version}{noanswer}" -usepretex % | latexmk -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode -shell-escape" -jobname=%_solution -pretex="\newcommand{\version}{}" -usepretex % | txs:///view-pdf "?am)_solution.pdf"
\documentclass{article}
% setting a default value in case it is compiled without the magic comment
\ifdefined\version
\else
\def\version{noanswer}
\fi
\usepackage[\version]{exercise}
\begin{document}
\begin{Exercise}[title={Title},label=ex1]
question text
\end{Exercise}
\begin{Answer}[ref={ex1}]
solution
\end{Answer}
\end{document}

Output of fa2latex command from psych causing LaTeX error in pandoc

I am writing a report using knitr in RStudio. Also using the psych package for factor analysis:
```{r, results='asis'}
library(psych)
data(Thurstone)
fa.Thurstone<-fa(Thurstone)
fa2latex(fa.Thurstone)
```
When I run this code chunk it causes an error:
! LaTeX Error: Unknown float option `d'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.124 \begin{scriptsize} \begin{table}[htdp]
pandoc: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43
When I save the TeX code it runs fine in LaTeX, but not in knitr.
Any suggestions on how to resolve this?

Resources