I don't understand which file has the missing brace. Can someone help me understand this error message? Is it complaining about the thesis.sta file?
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./thesis.ltx
LaTeX2e <2018-04-01> patch level 5
(/usr/local/texlive/2018/texmf-dist/tex/latex/extsizes/extreport.cls
Document Class: extreport 1996/10/08 v1.0 Non Standard LaTeX document class
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo)
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/exscale.sty))
(./usepackages.ltx
(/usr/local/texlive/2018/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2018/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
Package geometry Warning: Over-specification in `h'-direction.
`width' (433.62pt) is ignored.
Package geometry Warning: Over-specification in `v'-direction.
`height' (578.15999pt) is ignored.
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/booktabs/booktabs.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/standalone/standalone.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2018/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2018/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(/usr/local/texlive/2018/texmf-dist/tex/latex/currfile/currfile.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/usr/local/texlive/2018/texmf-dist/tex/latex/filehook/filehook.sty))
(./thesis.sta)
! Extra }, or forgotten \endgroup.
l.555 }
%
?
When I remove the thesis.sta file, it compiles fine. However, I don't see any error in the .sta file. Here is its content.
\standalonepreambles
\subpreamble{fig-3.tex}
\usepackage {tikz}\usetikzlibrary {arrows.meta, automata, bending, positioning, shapes.misc}\tikzstyle {automaton}=[shorten >=1pt, >={Stealth[bend,round]}, initial text=]\tikzstyle {accepting}=[accepting by arrow]
\endsubpreamble
\subpreamble{fig-7.tex}
\usepackage {tikz}\usetikzlibrary {arrows.meta, automata, bending, positioning, shapes.misc}\tikzstyle {automaton}=[shorten >=1pt, >={Stealth[bend,round]}, initial text=]\tikzstyle {accepting}=[accepting by arrow]
\endsubpreamble
I'm adding a MWE.
\documentclass{article}
\usepackage[subpreambles=true]{standalone}
\begin{document}
test
} %% this is an error, and will correctly cause compilation to fail, but remove it and complilation still failes until you remove the mwe.st
\end{document}
To reproduce this, compile using latexmk --pdf mwe.ltx. An error is reported because of too many closing } characters. Fix the error, and re-run latexmk, to see the error:
(./mwe.sta)
! Extra }, or forgotten \endgroup.
l.555 }
%