davidcarlisle / dpctex

Assorted TeX packages
93 stars 30 forks source link

[mylatex] Undefined control sequence #30

Closed Darylgolden closed 2 years ago

Darylgolden commented 2 years ago

When attempting to compile

\documentclass[preview]{standalone}

\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}

\begin{align*}
\psi(x) = 1.67
\end{align*}

\end{document}

I get

C:\Users\Daryl\dev\speedup-latex>latex -ini mylatex.ltx 1db01b6b2822b336.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021/W32TeX) (INITEX)
 restricted \write18 enabled.
(c:/texlive/2021/texmf-dist/tex/latex/mylatex/mylatex.ltx
! Undefined control sequence.
l.126 \makeatletter

?
Darylgolden commented 2 years ago

Should have read the past issues. latex -ini "&pdflatex" mylatex.ltx 1db01b6b2822b336.tex works

Darylgolden commented 2 years ago

However, I can't seem to get the file to compile:

C:\Users\Daryl\dev\speedup-latex>latex -fmt=mylatex.fmt 1db01b6b2822b336.aux
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021/W32TeX) (preloaded format=mylatex.fmt)
 restricted \write18 enabled.
entering extended mode
(./1db01b6b2822b336.aux
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-05>
CUSTOMISED FORMAT. Preloaded files:
        .
standalone.cls    2018/03/26 v1.3a Class to compile TeX sub-files standalone
shellesc.sty    2019/11/08 v1.0c unified shell escape interface for LaTeX
ifluatex.sty    2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
   iftex.sty    2022/02/03 v1.0f TeX engine tests
 xkeyval.sty    2020/11/20 v2.8 package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
standalone.cfg    2018/03/26 v1.3a Default configuration file for 'standalone'
class
 article.cls    2021/10/04 v1.4n Standard LaTeX document class
  size10.clo    2021/10/04 v1.4n Standard LaTeX file (size option)
 preview.sty    2017/04/24 12.3 (AUCTeX/preview-latex)
luatex85.sty    2016/06/15 v1.4 pdftex aliases for luatex
prtightpage.def
   babel.sty    2022/02/13 3.71 The Babel package
 english.ldf    2017/06/06 v3.3r English support from the babel system
 amsmath.sty    2021/10/15 v2.17l AMS math features
 amstext.sty    2021/08/26 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2021/08/26 v2.02 operator names
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
    umsa.fd    2013/01/14 v3.01 AMS symbols A
    umsb.fd    2013/01/14 v3.01 AMS symbols B
        .
)
Runaway argument?
! File ended while scanning use of ^^M.
<inserted text>
                \par
<*> 1db01b6b2822b336.aux

?
! Emergency stop.
<inserted text>
                \par
<*> 1db01b6b2822b336.aux

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on 1db01b6b2822b336.log.

1db01b6b2822b336.log

C:\Users\Daryl\dev\speedup-latex>pdflatex "&mylatex" 1db01b6b2822b336.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./1db01b6b2822b336.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-05>
CUSTOMISED FORMAT. Preloaded files:
        .
standalone.cls    2018/03/26 v1.3a Class to compile TeX sub-files standalone
shellesc.sty    2019/11/08 v1.0c unified shell escape interface for LaTeX
ifluatex.sty    2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
   iftex.sty    2022/02/03 v1.0f TeX engine tests
 xkeyval.sty    2020/11/20 v2.8 package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
standalone.cfg    2018/03/26 v1.3a Default configuration file for 'standalone'
class
 article.cls    2021/10/04 v1.4n Standard LaTeX document class
  size10.clo    2021/10/04 v1.4n Standard LaTeX file (size option)
 preview.sty    2017/04/24 12.3 (AUCTeX/preview-latex)
luatex85.sty    2016/06/15 v1.4 pdftex aliases for luatex
prtightpage.def
   babel.sty    2022/02/13 3.71 The Babel package
 english.ldf    2017/06/06 v3.3r English support from the babel system
 amsmath.sty    2021/10/15 v2.17l AMS math features
 amstext.sty    2021/08/26 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2021/08/26 v2.02 operator names
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
    umsa.fd    2013/01/14 v3.01 AMS symbols A
    umsb.fd    2013/01/14 v3.01 AMS symbols B
        .
(c:/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
No file 1db01b6b2822b336.aux.
Preview: Fontsize 10pt
Preview: PDFoutput 1
! Extra \endgroup.
\endpreview ->\ifhmode \unskip \fi \endgroup

l.13 \end{document}

1db01b6b2822b336.log

davidcarlisle commented 2 years ago

Sorry I can't guess what you want


latex -fmt=mylatex.fmt 1db01b6b2822b336.aux

to do, aux files are never designed to be given to tex on the commandline?

For general help questions rather than bug reports it's better to use a site such as https://tex.stackexchange.com

I'll close this as you solved the original issue. Please feel free to open another issue if you have a reproducible file showing a bug.