[Tutkielma-TeX] [darcs] gradu2.cls-muutos: Use section instead of chapter when using shortthesis

Matthieu Weber mweber at mit.jyu.fi
Wed May 16 10:31:51 EEST 2007


(English below)

Tämä on automaattinen ilmoitus gradu2-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 gradu2 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.

Wed May 16 10:30:38 EEST 2007  Matthieu Weber <mweber at mit.jyu.fi>
  * Use section instead of chapter when using shortthesis
diff -rN -u old-gradu.cls/gradu2.cls new-gradu.cls/gradu2.cls
--- old-gradu.cls/gradu2.cls	2007-05-16 10:31:50.000000000 +0300
+++ new-gradu.cls/gradu2.cls	2007-05-16 10:31:50.000000000 +0300
@@ -496,6 +496,9 @@
 %\fi
 
 \newcommand{\mainmatter}{
+  \ifshortthesis
+	\clearpage
+	\fi
   \tableofcontents
   \gradu at lof
   \gradu at lot
@@ -712,6 +715,15 @@
   \global\let\copyrightyear\gradu at toolate%  
 }
 
+\ifshortthesis
+\newcommand{\preface}{\section*{\prefacename}
+\addcontentsline{toc}{section}{\prefacename}
+}
+
+\newcommand{\termlist}{\section*{\termlistname}
+\addcontentsline{toc}{section}{\termlistname}
+}
+\else
 \newcommand{\preface}{\chapter*{\prefacename}
 \addcontentsline{toc}{chapter}{\prefacename}
 }
@@ -719,10 +731,15 @@
 \newcommand{\termlist}{\chapter*{\termlistname}
 \addcontentsline{toc}{chapter}{\termlistname}
 }
+\fi
 
 \renewcommand\appendix{\par
-  \addtocontents{toc}{\protect\contentsline{chapter}{\appendicesname}{}{}}
-  \setcounter{chapter}{0}%
+  \ifshortthesis
+    \addtocontents{toc}{\protect\contentsline{section}{\appendicesname}{}{}}
+	\else
+    \addtocontents{toc}{\protect\contentsline{chapter}{\appendicesname}{}{}}
+    \setcounter{chapter}{0}%
+	\fi
   \setcounter{section}{0}%
   \gdef\@chapapp{\appendixname}%
   \gdef\thechapter{\@Alph\c at chapter}}






More information about the Tutkielma-TeX mailing list