[Tutkielma-TeX] [darcs] jydiss.cls-muutos: Use \pdfbookmarks instead of \addcontentsline for included articles so they don't show anymore in the TOC

Matthieu Weber matthieu.weber at jyu.fi
Fri Jul 2 15:05:53 EEST 2010


(English below)

Tämä on automaattinen ilmoitus jydiss-luokkaan tai sen dokumentaatioon tehdystä
muutoksesta.  Voit hakea uuden, muutetun version osoitteesta
  http://antti-juhani.kaijanaho.fi/darcs/jydiss/

Alla on tiedot tehdystä muutoksesta.

---

This is an automated notification of a change made to the jydiss document
class or its accompanying documentation.  You can get the new version at
  http://antti-juhani.kaijanaho.fi/darcs/jydiss/

Below, you will find information about the actual change.

Fri Jul  2 15:04:16 EEST 2010  Matthieu Weber <mweber at mit.jyu.fi>
  * Use \pdfbookmarks instead of \addcontentsline for included articles so they don't show anymore in the TOC
diff -rN -u old-jydiss/jydiss.cls new-jydiss/jydiss.cls
--- old-jydiss/jydiss.cls	2010-07-02 15:05:53.082886975 +0300
+++ new-jydiss/jydiss.cls	2010-07-02 15:05:53.082886975 +0300
@@ -1075,8 +1075,11 @@
 \par\vspace{3\baselineskip}
 Reproduced with kind permission of \diss at art@copyright.\par
 \fi
-\refstepcounter{section}
-\addcontentsline{toc}{section}{\HyMakeUppercase{\diss at art@title}}
+%\refstepcounter{section}
+%\addcontentsline{toc}{section}{\HyMakeUppercase{\diss at art@title}}
+\ifdiss at hyperref
+  \pdfbookmark[1]{\diss at art@title}{article.\artlabel}
+\fi
 \cleardoublepage
 }}
 






More information about the Tutkielma-TeX mailing list