[Tutkielma-TeX] [darcs] jydiss.cls-muutos: Made it compatible with natbib
Matthieu Weber
mweber at mit.jyu.fi
Tue Mar 11 10:13:27 EET 2008
(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.
Tue Mar 11 10:12:22 EET 2008 Matthieu Weber <mweber at mit.jyu.fi>
* Made it compatible with natbib
diff -rN -u old-jydiss/jydiss.cls new-jydiss/jydiss.cls
--- old-jydiss/jydiss.cls 2008-03-11 10:13:27.169808000 +0200
+++ new-jydiss/jydiss.cls 2008-03-11 10:13:27.169808000 +0200
@@ -898,6 +898,14 @@
\if\diss at art@publish\relax\else {\itshape\diss at art@publish}\fi
\if\diss at art@year\relax\else , \diss at art@year\fi.}
+% Because of NatBib. We don't want NatBib to be used for the ``included
+% articles'' bibliography
+\def\diss@@lbibitem[#1]#2{\item[\@biblabel{#1}\hfill]\if at filesw
+ {\let\protect\noexpand
+ \immediate
+ \write\@auxout{\string\bibcite{#2}{{#1}{}{{}}{{}}}}}\fi\ignorespaces}
+\def\diss at bibitem{\@ifnextchar[\diss@@lbibitem\@bibitem}
+
\newcommand{\artmaketitle}{%
\cleardoublepage
\ifthenelse{\value{articles}=1}{%
@@ -950,7 +958,7 @@
%}
\begingroup
\let\protect\@unexpandable at protect
-\immediate\write\@auxout{\string\@writefile{loar}{\string\bibitem[\artlabel]{\diss at art@label} \artmakebib}}
+\immediate\write\@auxout{\string\@writefile{loar}{\string\diss at bibitem[\artlabel]{\diss at art@label} \artmakebib}}
\endgroup
%\addtocounter{page}{\diss at art@pages}
%\addtocounter{TotPages}{\diss at art@pages}
More information about the Tutkielma-TeX
mailing list