Document Classesproblems with the \author and \and macros

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
tyomero
Posts: 3
Joined: Sat Jul 05, 2008 9:24 pm

problems with the \author and \and macros

Post by tyomero »

Hi, I'm writting a report and I just notice that when I use
the \and macro inside the \author macro like in

Code: Select all

\author{author one\inst{1} \and author two\inst{2} \and author three\inst{3}}
I get the error

Code: Select all

./main.tex:58:Missing \endcsname inserted. \begin
The error doesn't appear whe I use the same macro with just one author like in:

Code: Select all

\author{author one}
But I need to include the other two authors.

If someone can helpme, I'll be thankfull.


PD: I don't know if this has something to do with the problem, but I'm using the llncs template as document class.

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: problems with the \author and \and macros

Post by localghost »

Make sure that you created a list of institutes like described in Section 5 of the documentation of that class.


Best regards and welcome to the board
Thorsten¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

problems with the \author and \and macros

Post by Stefan Kottwitz »

Hi tyomero,

write and instead of \and. \and can be used with \institute but not with \author.

Stefan
LaTeX.org admin
tyomero
Posts: 3
Joined: Sat Jul 05, 2008 9:24 pm

problems with the \author and \and macros

Post by tyomero »

Stefan_K wrote:Hi tyomero,

write and instead of \and. \and can be used with \institute but not with \author.

Stefan
I have used the \and macro within \author before but with different
document classes (article, report, book).

I already tested the same document changing the document's class and
reports no error. I could use another document class, but the congress wich
I'm to send the article does specify that I must use de llncs template.

For the moment I've used a temporary solution but again, if someone know how to solve this error, please post it.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

problems with the \author and \and macros

Post by Stefan Kottwitz »

Hi tyomero,
tyomero wrote: I have used the \and macro within \author before but with different
document classes (article, report, book).
That's the point, with different document classes. Have a look at the llncs documentation, between line 321 and 355, this issue is documented.
An example of the documentation:

Code: Select all

\author{Ivar Ekeland\inst{1} and Roger Temam\inst{2}}
Further it's said: Unlike usual \LaTeX{} the \verb|\and| command is used with the
\verb|\institute| and not with the \verb|\author| command.


Stefan
LaTeX.org admin
tyomero
Posts: 3
Joined: Sat Jul 05, 2008 9:24 pm

Re: problems with the \author and \and macros

Post by tyomero »

Thanks a lot. I think I didn't really read the documentation that well... Sorry.
Post Reply