I am using the following packages for writing a document


%\usepackage[a4paper, inner=2.5cm, outer=2.5cm, top=2.5cm,bottom=2.5cm, bindingoffset=1.25cm, twoside]{geometry}
\usepackage[a4paper, inner=2.5cm, outer=2.5cm, top=3.5cm,bottom=3.5cm, bindingoffset=1.25cm, twoside]{geometry}
% Load the package with the acronym option

\pagestyle{fancy}           % Sets fancy header and footer

This is the error I am getting:

standalone.sty line 555 Extra }, or forgotten \endgroup. }

  • How can this code snippet compile??
    – MS-SPO
    Aug 29, 2022 at 4:25
  • @MS-SPO Sorry, I thought If an error is in the second line only. This could be enough, That's a huge file and confidential too. What to do? Aug 29, 2022 at 4:48
  • 2
    If I make your code snippet compilable by (a) commenting out the instruction \usepackage{glossariX} and (b) appending the code snippet \begin{document} Hello World. \end{document}, I get no errors and or warning messages. Please do tell us more about the mysterious file glossariX.sty. E.g., is it available online? If not, what is in the file? Does your document even need this file?
    – Mico
    Aug 29, 2022 at 5:16
  • 1
    Incidentally, the sequence of instructions \usepackage{lmodern} \usepackage{kpfonts} \usepackage{mathptmx} is absurd. You begin by loading the lmodern text and math font package, then you clobber lmodern with the kpfonts text and math font package, and then you clobber kpfonts with the borderline-obsolete mathptmx text and math font package. Please do go through your preamble and remove the deadwood.
    – Mico
    Aug 29, 2022 at 5:26
  • A separate issue: Which TeX distribution do you employ, and when was it last updated?
    – Mico
    Aug 29, 2022 at 5:29


You must log in to answer this question.

Browse other questions tagged .