LaTeX forum ⇒ Theses, Books, Title pages ⇒ 1: section ! Extra }, or forgotten \endgroup. \endminipage ...pagefalse \color@endgroup \egroup

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

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

Shalom,

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

from

I have gone through but unable to see the extra }, would someone advice me what to do?

With kind regards,
Last edited by cgnieder on Sat Aug 29, 2020 9:55 am, edited 1 time in total.

Ijon Tichy
Posts: 362
Joined: Mon Dec 24, 2018 10:12 am
\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.,
\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 minimal 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.

Posts: 5
Joined: Fri Aug 28, 2020 8:34 am
@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

\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,

Ijon Tichy
Posts: 362
Joined: Mon Dec 24, 2018 10:12 am
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:
\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 minimal 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.

Posts: 5
Joined: Fri Aug 28, 2020 8:34 am
@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
\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

\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

Which seemed to pass for each name except the pdfLaTex+MakeIndex+BibTex console output stuck on line 131 \end{minipage}\\[3cm]

By saying
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 [latex]\newcommand[/latexa] even before I posted here it did not work out...
Following is the attachment
main.tex
Last edited by cgnieder on Sat Aug 29, 2020 9:57 am, edited 1 time in total.

Ijon Tichy
Posts: 362
Joined: Mon Dec 24, 2018 10:12 am
\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]

Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Posts: 5
Joined: Fri Aug 28, 2020 8:34 am
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

Posts: 5
Joined: Fri Aug 28, 2020 8:34 am
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?

Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm
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.