Discussion:
LNCS class and hyperref package: missing outline as PDF bookmarks
(too old to reply)
Michael Schneider
2011-11-28 14:50:58 UTC
Permalink
Hi!

I am using the LNCS (Lecture Notes in Computer Science) document class
in version 2.17, together with the hyperref package, using pdflatex.
The LNCS class file is available from

<ftp://ftp.springer.de/pub/tex/latex/llncs/latex2e/llncs2e.zip>

When using hyperref with the standard "article" class, the Acrobat PDF
viewer shows me the document outline (sections, subsections, etc.) as
a tree of bookmarks. However, when I switch to class "llncs", then the
outline is not shown anymore, only the document title is shown. I
wasn't able so far to make the outline appear.

Below, you find a full example showing the problem. You additionally
need the file "llncs.cls" from the link shown above. If you change the
document class to "article", then you will see the document outline in
Acrobat. Any ideas?

Cheers,
Michael

<<< START LATEX DOCUMENT >>>

\documentclass{llncs}
%\documentclass{article}

\usepackage[english]{babel}
\usepackage[pdftex]{hyperref}

% ==================== PDF Information ===================

\hypersetup{pdftitle={Title}}
\hypersetup{pdfauthor={My Self}}

% ========== TITLE ==========

\title{My Title}
\author{My Self}

% ========== BODY ==========

\begin{document}
\maketitle
\begin{abstract}
My abstract.
\end{abstract}
\section{A Section}
My contents.
\section{Another Section}
Bla.
\end{document}

<<< STOP LATEX DOCUMENT >>>
Scott Pakin
2011-11-29 22:05:36 UTC
Permalink
Post by Michael Schneider
I am using the LNCS (Lecture Notes in Computer Science) document class
in version 2.17, together with the hyperref package, using pdflatex.
The LNCS class file is available from
<ftp://ftp.springer.de/pub/tex/latex/llncs/latex2e/llncs2e.zip>
When using hyperref with the standard "article" class, the Acrobat PDF
viewer shows me the document outline (sections, subsections, etc.) as
a tree of bookmarks. However, when I switch to class "llncs", then the
outline is not shown anymore, only the document title is shown. I
wasn't able so far to make the outline appear.
The last time I used LNCS format was in 2005, and I experienced
similar problems back then. Commenting out the following lines from
version 2.13 of llncs.cls worked for me; perhaps the same will work
for you with version 2.17:

607) \setcounter{tocdepth}{0}
929) \if!\the\toctitle!\addcontentsline{toc}{title}{\@title}\else
930) \addcontentsline{toc}{title}{\the\toctitle}\fi
954) \addcontentsline{toc}{author}{\***@uthor}%

-- Scott
Michael Schneider
2011-12-04 07:38:30 UTC
Permalink
Hi Scott!

Yes, this really works!

But now seeing your solution, it appears to me that the LNCS class
surpresses the table of contents /deliberately/. I don't understand
why Springer chose this behavior, but I will then have to stick with
it.

Nevertheless, many thanks for your help!

Cheers,
Michael
Post by Scott Pakin
Post by Michael Schneider
I am using the LNCS (Lecture Notes in Computer Science) document class
in version 2.17, together with the hyperref package, using pdflatex.
The LNCS class file is available from
   <ftp://ftp.springer.de/pub/tex/latex/llncs/latex2e/llncs2e.zip>
When using hyperref with the standard "article" class, the Acrobat PDF
viewer shows me the document outline (sections, subsections, etc.) as
a tree of bookmarks. However, when I switch to class "llncs", then the
outline is not shown anymore, only the document title is shown. I
wasn't able so far to make the outline appear.
The last time I used LNCS format was in 2005, and I experienced
similar problems back then.  Commenting out the following lines from
version 2.13 of llncs.cls worked for me; perhaps the same will work
   607) \setcounter{tocdepth}{0}
   930)    \addcontentsline{toc}{title}{\the\toctitle}\fi
-- Scott
Lars Madsen
2011-12-04 14:49:39 UTC
Permalink
Post by Michael Schneider
Hi Scott!
Yes, this really works!
But now seeing your solution, it appears to me that the LNCS class
surpresses the table of contents /deliberately/. I don't understand
why Springer chose this behavior, but I will then have to stick with
it.
Nevertheless, many thanks for your help!
Cheers,
Michael
I've helped prepare a few volumes for the LNCS series.

Here the lncs class is used by each contribution author to prepare his
or her article for the volumne.

The volume it self has a toc, but the contributions do not.

Also note that no headers or footers are used by the class. Again this
is because the contributions are gathered up, thus the page numbers are
unknown to the article authors and so is the contents to go into the
headers.

I think the (external) editors for the various LNCS volumes would be
quite happy if authors would please stop messing with the provided
class, i.e. do not change the layout, do not add a toc, do not change
the fonts, do not add hyperlinks, do not add headers or footers
--
/Lars Madsen

DK-TUG president
memoir and mh bundle maintainer
Scott Pakin
2011-12-08 18:58:50 UTC
Permalink
I think the (external) editors for the various LNCS volumes would be quite happy if authors would please stop messing with the provided class, i.e. do not change the layout, do not add a toc, do not change the fonts, do not add hyperlinks, do not add headers or footers
Do hyperlinks really cause grief for the editors? I understand why
rest of the modifications you list are problematic, but I don't see
what's troublesome about hyperlinks.

Just curious,
-- Scott
Lars Madsen
2011-12-08 19:50:27 UTC
Permalink
Post by Scott Pakin
I think the (external) editors for the various LNCS volumes would be quite happy if authors would please stop messing with the provided class, i.e. do not change the layout, do not add a toc, do not change the fonts, do not add hyperlinks, do not add headers or footers
Do hyperlinks really cause grief for the editors? I understand why
rest of the modifications you list are problematic, but I don't see
what's troublesome about hyperlinks.
Just curious,
-- Scott
First of all I do not know if they make the volumes available online. If
they only exist on paper, then it would anoy me having to remove stuff
from the articles that I did not ask the authors to put there.

But I do not know, I have no relation to Spring. It might be an idea to
simply ask Springer.
--
/daleif

DK-TUG president
memoir and mh bundle maintainer
William F Hammond
2011-12-08 20:12:01 UTC
Permalink
Post by Lars Madsen
I think the (external) editors for the various LNCS volumes would be
quite happy if authors would please stop messing with the provided
class, i.e. do not change the layout, do not add a toc, do not
change the fonts, do not add hyperlinks, do not add headers or
footers
This issue is very far from unique to LNCS.

The idea of using 'LaTeX profiles', cf. my talk at tug 2010, would
address it. Certainly Springer should have the wherewithal to
incorporate this approach.

-- Bill

Loading...