GeneralExtra /endgroup

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
SpaceCadef
Posts: 2
Joined: Fri Mar 19, 2021 11:52 am

Extra /endgroup

Post by SpaceCadef »

Hello,

*Issue resolved. The mistake was an extra \end{document} in the subfile. So for other new users that could be an error giving that error message.

Original post:

I'm new to Latex and would appriciate any help I could get.

I'm attempting to use the subfiles package but am running into some problems. The subfile compiles without errors.

The error is:

"Extra /endgroup

/Subfile@Subfiles...}{\filename@base}\endgroup

1.28\subfile{Sections/04 eksamen}"

I've tried changing the name of the file, but with no success.

I have the following main.tex code:

Code: Select all


\documentclass{article}

\usepackage{subfiles}
\begin{document}

\maketitle

\newpage
\subfile{Sections/04 eksamen}

\end{document}


and the following
Last edited by SpaceCadef on Fri Mar 19, 2021 7:07 pm, edited 4 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Extra /endgroup

Post by Ijon Tichy »

I cannot test your example, because it is neither a complete Infominimal working example nor marked correctly as code. However, AFAIK you should either avoid spaces in filenames or quote the filename using either "…" or '…'.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
SpaceCadef
Posts: 2
Joined: Fri Mar 19, 2021 11:52 am

Extra /endgroup

Post by SpaceCadef »

Ijon Tichy wrote:I cannot test your example, because it is neither a complete Infominimal working example nor marked correctly as code. However, AFAIK you should either avoid spaces in filenames or quote the filename using either "…" or '…'.
Thanks for your links on how to properly post stuff. I resolved the issue myself and providied an explanation in the text. I also editied the original post (though without the subfile).
Post Reply