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

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

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

Postby []Gwladys » Fri Aug 28, 2020 8:49 am

Shalom,

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

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. 1: section
  2. ! Extra }, or forgotten \endgroup.
  3. \endminipage ...pagefalse \color@endgroup \egroup
  4. \expandafter \@iiiparbox \...
  5. l.131 \end{minipage}
  6. \\[3cm]
  7. ?


from
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{minipage}[t]{0.4\textwidth}
  2. \begin{flushright} \large
  3. \emph{Principal supervisor:} \\
  4. {\supname} % Dr. Pius Sungeng Prasetyo
  5. \emph{First reader:} \\
  6. \newcommand{\supnameSecond} % Dr. Anthony Kent
  7. \emph{Supervisor:} \\
  8. \newcommand{\supnameThird} % Sanerya Hendrawan, Ph.D
  9. \emph{Supervisor:} \\
  10. \newcommand{\supnameForth} % Dr. Rulyusa Pratikto
  11. \end{flushright}
  12. \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.
Reason: added code formatting

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

Postby Ijon Tichy » Fri Aug 28, 2020 10:48 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.,
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \newcommand{\supnameForth} % Dr. Rulyusa Pratikto
  2. \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.

[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

Postby []Gwladys » Fri Aug 28, 2020 12:09 pm

@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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \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: 314
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Fri Aug 28, 2020 12:50 pm

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{minipage}[t]{0.4\textwidth}
  2. \begin{flushright} \large
  3. \emph{Principal supervisor:} \\
  4. \supname
  5. \emph{First reader:} \\
  6. \supnameSecond
  7. \emph{Supervisor:} \\
  8. \supnameThird
  9. \emph{Supervisor:} \\
  10. \supnameForth
  11. \end{flushright}
  12. \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.

[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

Postby []Gwladys » Sat Aug 29, 2020 9:43 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
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{minipage}[t]{0.4\textwidth}
  2. \begin{flushright} \large
  3. \emph{Principal supervisor:} \\
  4. {\supname} %
  5. \emph{First reader:} \\
  6. {\supname} %
  7. \emph{Supervisor:} \\
  8. {\supname} %
  9. \emph{Supervisor:} \\
  10. {\supname} %
  11. \end{flushright}
  12. \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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \end{flushleft}
  2. \end{minipage}
  3. \begin{minipage}[t]{0.4\textwidth}
  4. \begin{flushright} \large
  5. \emph{Principal supervisor:} \\
  6. {\supname} %
  7. \emph{First reader:} \\
  8. \newcommand{\supnameSecond} %
  9. \emph{Supervisor:} \\
  10. \newcommand{\supnameThird} %
  11. \emph{Supervisor:} \\
  12. \newcommand{\supnameForth} %
  13. \end{flushright}
  14. \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] [Expand/Collapse] [Download] ({untitled.tex})
  1. 1: section
  2. ! Extra }, or forgotten \endgroup.
  3. \endminipage ...pagefalse \color@endgroup \egroup
  4. \expandafter \@iiiparbox \...
  5. l.131 \end{minipage}
  6. \\[3cm]
  7. ?

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
(13.81 KiB) Downloaded 12 times
Last edited by cgnieder on Sat Aug 29, 2020 9:57 am, edited 1 time in total.
Reason: added code formatting

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

Postby Ijon Tichy » Sat Aug 29, 2020 10:56 am

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{minipage}[t]{0.4\textwidth}
  2. \begin{flushleft} \large
  3. \emph{Author:}\\
  4. {\authorname} % Gwladys Nicimbikije
  5. \end{flushleft}
  6. \end{minipage}
  7. \begin{minipage}[t]{0.4\textwidth}
  8. \begin{flushright} \large
  9. \emph{Principal supervisor:} \\
  10. {\supname} % Dr. Pius Sungeng Prasetyo
  11. \emph{First reader:} \\
  12. \supervisorSecond % Dr. Anthony Kant
  13. \emph{Supervisor:} \\
  14. \supervisorThird % Sanerya Hendrawan, Ph.D
  15. \emph{Supervisor:} \\
  16. \supervisorForth % Dr. Rulyusa Pratikto
  17. \end{flushright}
  18. \end{minipage}\\[3cm]


Please read an introduction to LaTeX!

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Aug 29, 2020 4:38 pm

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

Postby []Gwladys » Tue Sep 01, 2020 8:39 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

[]Gwladys
Posts: 5
Joined: Fri Aug 28, 2020 8:34 am

Postby []Gwladys » Tue Sep 01, 2020 8:40 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?

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Sep 02, 2020 5:10 am

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.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 3 guests