Theses, Books, Title pages1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by []Gwladys »

Shalom,

I encounter this while compiling template downloaded from http://www.latextemplates.com/

Code: Select all

1: section
! Extra }, or forgotten \endgroup.
\endminipage ...pagefalse \color@endgroup \egroup 
                                                  \expandafter \@iiiparbox \...
l.131 \end{minipage}
                    \\[3cm]
?


from

Code: Select all

\begin{minipage}[t]{0.4\textwidth}
\begin{flushright} \large
\emph{Principal supervisor:} \\
{\supname} % Dr. Pius Sungeng Prasetyo  
\emph{First reader:} \\
\newcommand{\supnameSecond} % Dr. Anthony Kent  
\emph{Supervisor:} \\
\newcommand{\supnameThird} % Sanerya Hendrawan, Ph.D  
\emph{Supervisor:} \\
\newcommand{\supnameForth} % Dr. Rulyusa Pratikto  
\end{flushright}
\end{minipage}\\[3cm]
I have gone through but unable to see the extra }, would someone advice me what to do?

With kind regards,
Gwladys
Last edited by cgnieder on Sat Aug 29, 2020 9:55 am, edited 1 time 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

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by Ijon Tichy »

\newcommand has two mandatory arguments, but it seems that you try to use it with only one. So they always consume the next (non comment) token as argument, i.e.,

Code: Select all

\newcommand{\supnameForth} % Dr. Rulyusa Pratikto
\end{flushright}
defines \supnameForth as \end. Therefore the \end{flushright} is not a \end of environment flushright any longer.

BTW: All these \newcommand do not make any sense, because they became invalid with the end of the environment and are not used anywhere inside the environment. So I think, this is a XY problem and you should explain (and show with a Infominimal working example) what you try to do.

BTW: Please use code tags to mark the code in your postings. For blockcode you should use [​code]…[/code]. For inline code you can use the [​latex]…[/latex]. Both are available from the toolbar.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by []Gwladys »

@Ijon Tichy many thanks for your reply. I just try your suggestion 'defines \supnameForth as \end. Therefore the \end{flushright} is not a \end of environment flushright any longer.' however the problem is still persisting.
It seems like it is on this \end{minipage}\\[3cm]

I don't understand/see where this } is misplaced

About

Code: Select all

\newcommand
what else should I do because when before I run without them it fell into error

Point well taken into consideration about the post code tag usage. I hope this time it works

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

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by Ijon Tichy »

I never told you, that you should define \supnameForth. I told you, that all these \newcommand you are already using are wrong. And I told you, that you should explain, what you try to do. Maybe you just wanted:

Code: Select all

\begin{minipage}[t]{0.4\textwidth}
\begin{flushright} \large
\emph{Principal supervisor:} \\
\supname
\emph{First reader:} \\
\supnameSecond
\emph{Supervisor:} \\
\supnameThird
\emph{Supervisor:} \\
\supnameForth
\end{flushright}
\end{minipage}\\[3cm]
But this is only a speculation. Once again: If you need more help, please show us a Infominimal working example and tell us, what you are trying to do with that code. If you do not, I cannot help and will not try again.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by []Gwladys »

@Ijon Tichy
All start from here trying to modify the thesis information. The Latex template version 2.5 (27/8/2017). I need to run the title page with more than one supervisor’s name. And my pdfTex version is 3.14159265-2.6-1.40.21(MikTex 20.7)

The template only suggests

Code: Select all

\supervisor{Dr. James \textsc{Smith}} % Your supervisor's name, this is used in the title page, print it elsewhere with \supname
I compiled first in this following way

Code: Select all

\begin{minipage}[t]{0.4\textwidth}
\begin{flushright} \large
\emph{Principal supervisor:} \\
{\supname} % 
\emph{First reader:} \\
{\supname} % 
\emph{Supervisor:} \\
{\supname} % 
\emph{Supervisor:} \\
{\supname} % 
\end{flushright}
\end{minipage}\\[3cm]
And it was successfully compiled pdf tex works except it came with the same name of the principal supervisor for the 3 others because in the thesis information it appears ‘Your supervisor's name, this is used in the title page, print it elsewhere with \supname

So I made these commands because without \newcommand it was impossible to go further

Code: Select all

\end{flushleft}
\end{minipage}
\begin{minipage}[t]{0.4\textwidth}
\begin{flushright} \large
\emph{Principal supervisor:} \\
{\supname} % 
\emph{First reader:} \\
\newcommand{\supnameSecond} % 
\emph{Supervisor:} \\
\newcommand{\supnameThird} % 
\emph{Supervisor:} \\
\newcommand{\supnameForth} % 
\end{flushright}
\end{minipage}\\[3cm]
Which seemed to pass for each name except the pdfLaTex+MakeIndex+BibTex console output stuck on line 131 \end{minipage}\\[3cm]

By saying

Code: Select all

1: section
! Extra }, or forgotten \endgroup.
\endminipage ...pagefalse \color@endgroup \egroup 
\expandafter \@iiiparbox \...
l.131 \end{minipage}
\\[3cm]
?
tell us, what you are trying to do with that code.
@Ijon Tichy I am trying to run this title page it is stuck on line 131... I attach the texworks as well...

Please let me know what to do I have tried before without these \newcommand[/latexa] even before I posted here it did not work out...
Following is the attachment
[attachment=0]main.tex[/attachment]
Attachments
main.tex
(13.81 KiB) Downloaded 600 times
Last edited by cgnieder on Sat Aug 29, 2020 9:57 am, edited 1 time in total.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by Ijon Tichy »

As I already told, the \newcommand commands are completely nonsense here. \newcommand has two mandatory arguments and is used to define a macro/command, but not to get the content of a macro. I think, you want something like:

Code: Select all

\begin{minipage}[t]{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
{\authorname} % Gwladys Nicimbikije 
\end{flushleft}
\end{minipage}
\begin{minipage}[t]{0.4\textwidth}
\begin{flushright} \large
\emph{Principal supervisor:} \\
{\supname} % Dr. Pius Sungeng Prasetyo  
\emph{First reader:} \\
\supervisorSecond  % Dr. Anthony Kant 
\emph{Supervisor:} \\
\supervisorThird  % Sanerya Hendrawan, Ph.D 
\emph{Supervisor:} \\
\supervisorForth  % Dr. Rulyusa Pratikto 
\end{flushright}
\end{minipage}\\[3cm]
Please read an introduction to LaTeX!
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by []Gwladys »

Many thanks, @Ijon Tichy. By working on this piece of thesis I will constantly learn and get to build knowledge about the LaTex. It seems like the amount of tutorials watched and readings about basic notion do not suffice; the practice has its own challenge. You are right I will keep reading the introduction to LaTex
[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by []Gwladys »

Johannes_B, I have given a read to the link provided. Would it be possible to have something about math formula, symbols, image/figures, tables, etc?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

Post by Johannes_B »

No. Read an introduction to LaTeX.

I personally wouldn't recommend to use the template. It doesn't do anything useful. Templates just confuse new users.

A topic that was often discussed in the past.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply