Undefined control sequence \maketitle

17,788 views
Skip to first unread message

Sam

unread,
Jul 29, 2011, 11:01:05 AM7/29/11
to latexus...@googlegroups.com
Hi,

I am writing my thesis. Attached is the necessary files to compile. When I am compiling (pdflatex) I am getting an error:  Undefined control sequence \maketitle

Please help me in resolving the issue.
my_thesis.zip

Peter Flynn

unread,
Jul 29, 2011, 9:03:00 PM7/29/11
to latexus...@googlegroups.com
On Fri, Jul 29, 2011 at 4:01 PM, Sam <samir...@gmail.com> wrote:
Hi,

I am writing my thesis. Attached is the necessary files to compile. When I am compiling (pdflatex) I am getting an error:  Undefined control sequence \maketitle

That's not what it says. Read the log file carefully: if you uncomment the title setup and the \maketitle command, it gives the error:

! Undefined control sequence.
\maketitle ...} \par } \vspace *{0.20cm} {\normal
                                                  in the \par } {\Large \bfs...
l.8    \maketitle

In a LaTeX error message, the error is always the last token on the line immediately following the error message, in this case \normal. The message then says that this occurred while using the \maketitle command on line 8.
 
Please help me in resolving the issue.

It's a bug. Whoever wrote the class should have written \normalfont or perhaps \normalsize on line 146 of PhDthesis.cls — it's impossible to guess which.

It's got a lot other problems, especially with natbib, but the \normal one is easy to fix.

Thank you for making the example to show it: this made it very easy to diagnose.

///Peter

Sam

unread,
Jul 30, 2011, 10:12:41 AM7/30/11
to latexus...@googlegroups.com
Hi Peter,

Even after I make the change (from \normal to \normalsize or \normalfont) in line 146 in PhDthesis.cls file, the error is not going. How did you locate the exact message and place of the error. I am using Kile editor. I am not able to get the error message you were talking about. Does kile have any breakpoint facility?

regrads
Sam

Peter Flynn

unread,
Jul 30, 2011, 11:12:55 AM7/30/11
to latexus...@googlegroups.com
On Sat, Jul 30, 2011 at 3:12 PM, Sam <samir...@gmail.com> wrote:
Hi Peter,

Even after I make the change (from \normal to \normalsize or \normalfont) in line 146 in PhDthesis.cls file, the error is not going. How did you locate the exact message and place of the error.

In the normal way, by looking at the log file. 

I first of all ran the files as you supplied them. There was no error about \normal or \maketitle;  the only errors were about the dvips driver for hyperref (I use pdflatex; but it compensated for that correctly); and warnings from natbib about undefined citations, which is normal on a first run.

So I looked at the thesis_main.tex file and saw you had commented out the \input{thesis_title} and \maketitle commands, so I uncommented them (and the depth counter commands) and ran it again.

This time I got

! Undefined control sequence.
\maketitle ...} \par } \vspace *{0.20cm} {\normal
                                                  in the \par } {\Large \bfs...
l.8    \maketitle
                
! Undefined control sequence.
\maketitle ...{\Large \bfseries {\@specialization
                                                  } \par } \vspace *{0.3cm} ...
l.8    \maketitle

Sorry, I missed the \@specialization error the first time around. That too needs correcting by adding a \specialization{} command in your thesis_title.tex file.

Both of these are down to a poorly-written \maketitle command by whoever designed the class.
 
I am using Kile editor. I am not able to get the error message you were talking about.

Then you must be using a different version of LaTeX or one or more of the packages. However, you need to tell us what isn't working, I'm afraid: my crystal ball is broken.
 
Does kile have any breakpoint facility?

I'm afraid I don't know it well enough. But TeX does: if you run the job from the command line in a terminal, eg

$ latex thesis_main.tex

then it will halt at the first error and ask you for input. It's not very sophisticated, in that you can't examine the internals, but it does let you halt, add input, or abort.

But going on the above, you don't need this. Look at the scrolling log file in Kile (or outside Kile) and see what the errors are.

///Peter


Sam

unread,
Jul 31, 2011, 7:56:40 AM7/31/11
to latexus...@googlegroups.com
Hi Peter,

Thanks for your help. I could successfully resolve the problem.

Now, I am facing another problem - I am trying to automatically generate the list of symbols and thus using nomencl package. I am using \makenomenclature and \printnomenclature to get it printed.

It produces no results. NO nomenclature, No error.

I am baffled, because by running pdflatex in terminal I am not getting any suitable message that is pointing towards the source of the error/warning which may be the reason for dis-functioning of \print(\make)nomenclature.

Aleks Kleyn

unread,
Aug 8, 2011, 2:15:33 AM8/8/11
to latexus...@googlegroups.com

I was thinking about this problem long time ago, but still not sure if this is possible. When we use align we can align equations such that they look accurate. However in this case each line is numbered (I can use \nonumber to skip label in line).  So if I want to have common number for few lines I use matrix or array environment. However, what I can do if I want to give one number for 2nd and 3rd line and want to align equation in 2nd line with equation in first line.

 

For instance

A&=b+c

\\

\begin{array}{r@{\,}l@{\ \ }r@{\,}l}

A&=(b+1)+(c-1)&b=&5

\\

A&=b+c&c=&-2

\end{array}

 

Thank you

Aleks Kleyn

http://alekskleyn.dyndns-home.com:4080/ 

http://sites.google.com/site/AleksKleyn/

http://arxiv.org/a/kleyn_a_1 

http://AleksKleyn.blogspot.com/

http://KleynAleks.blogspot.com/

 

Liow, Dr. Yihsiang

unread,
Aug 8, 2011, 11:17:45 AM8/8/11
to latexus...@googlegroups.com

Do you mean this?

 

\begin{align*}

X &= 1 + 2 + 3 \tag{42} \\

   &= 2 + 3 + 1 \tag{42} \\

   &= 3 + 1 + 2  \\

   &= 3 + 1 + 2 \tag{42} \\

   &= 3 + 1 + 2 \tag{43} \\

   &= 3 + 1 + 2 \tag{43} \\

\end{align*}

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Aug 8, 2011, 11:19:04 AM8/8/11
to latexus...@googlegroups.com
On Mon, Aug 8, 2011 at 7:15 AM, Aleks Kleyn <Aleks...@mailaps.org> wrote:

I was thinking about this problem long time ago, but still not sure if this is possible. When we use align we can align equations such that they look accurate. However in this case each line is numbered (I can use \nonumber to skip label in line).  So if I want to have common number for few lines I use matrix or array environment. However, what I can do if I want to give one number for 2nd and 3rd line and want to align equation in 2nd line with equation in first line.

 

For instance

A&=b+c

\\

\begin{array}{r@{\,}l@{\ \ }r@{\,}l}

A&=(b+1)+(c-1)&b=&5

\\

A&=b+c&c=&-2

\end{array}


That is missing some stuff. Can you send a minimal example that demonstrates what you want?

///Peter

Aleks Kleyn

unread,
Aug 8, 2011, 11:45:03 AM8/8/11
to latexus...@googlegroups.com

In this case you will give number 42 to first and second line. But I want number put between 2 lines. As well I want to get number automatically like usual in equation

Aleks Kleyn

unread,
Aug 8, 2011, 11:56:17 AM8/8/11
to latexus...@googlegroups.com

This is exactly minimal example. Ok, I can add few lines more

\documentclass{amsart}

\scrollmode

\usepackage[unicode]{hyperref}

\begin{document}

\maketitle

\begin{equation}%?? May be I need other environment

A&=b+c

\\

\begin{array}{r@{\,}l@{\ \ }r@{\,}l}

A&=(b+1)+(c-1)&b=&5

\\

A&=b+c&c=&-2

\end{array}

\end{equation}

\end{document}

 

Here I want to have number for first line and common number for lines 2 and 3 and at the same time first = align in all 3 lines.

--

Liow, Dr. Yihsiang

unread,
Aug 8, 2011, 3:59:30 PM8/8/11
to latexus...@googlegroups.com
The example I posted was just to show alignment. You can always use auto numbering like this:

\begin{align}
x &= 1 + 2 & y &= 2 + 1 \notag \\
x &= 1 + 2 & y &= 2 + 1 \label{eq:foo} \\
x &= 1 + 2 & y &= 2 + 1 \label{eq:bar} \\
x &= 1 + 2 & y &= 2 + 1 \tag{\ref{eq:bar}} \\
x &= 1 + 2 & y &= 2 + 1 \notag \\
x &= 1 + 2 & y &= 2 + 1 \label{eq:baz} \\
x &= 1 + 2 & y &= 2 + 1 \tag{\ref{eq:baz}} \\
x &= 1 + 2 & y &= 2 + 1 \tag{\ref{eq:baz}}
\end{align}

In this case, there are 5 "groups" of equations: unnumbered, (1), (2), unnumbered, (3).

Also, do you mean to say that for a group of equations sharing the same eq number, you want the eq number to be printed *once* and also to be vertically centered within that group?

________________________________
From: latexus...@googlegroups.com [latexus...@googlegroups.com] on behalf of Aleks Kleyn [Aleks...@MailAPS.org]
Sent: Monday, August 08, 2011 10:56 AM


To: latexus...@googlegroups.com
Subject: RE: [latexusersgroup] equaions align, numbers

This is exactly minimal example. Ok, I can add few lines more


\documentclass{amsart}
\scrollmode
\usepackage[unicode]{hyperref}
\begin{document}
\maketitle
\begin{equation}%?? May be I need other environment
A&=b+c
\\
\begin{array}{r@{\,}l@{\ \ }r@{\,}l}
A&=(b+1)+(c-1)&b=&5
\\
A&=b+c&c=&-2
\end{array}
\end{equation}
\end{document}

Here I want to have number for first line and common number for lines 2 and 3 and at the same time first = align in all 3 lines.

http://sites.google.com/site/AleksKleyn/<http://sites.google.com/site/alekskleyn/>
http://arxiv.org/a/kleyn_a_1
http://AleksKleyn.blogspot.com/
http://KleynAleks.blogspot.com/<http://kleynaleks.blogspot.com/>

From: latexus...@googlegroups.com [mailto:latexus...@googlegroups.com] On Behalf Of Peter Flynn
Sent: Monday, August 08, 2011 11:19 AM
To: latexus...@googlegroups.com
Subject: Re: [latexusersgroup] equaions align, numbers

Aleks Kleyn

unread,
Aug 8, 2011, 4:39:28 PM8/8/11
to latexus...@googlegroups.com
Yes, you catch idea in the last question. In your example using the same
alignment I want to put label eq:foo not for the second equation but between
first and second lines.

Reply all
Reply to author
Forward
0 new messages