[Tutkielma-TeX] [darcs] jydiss.cls-muutos: Added a \backmatter option to allow for page numbering in the bibiliography's first page and Finnish Summary's first page. Obsoletes the "stupid" class option (which still exists for compatibility reasons but does nothing).

Matthieu Weber mweber at mit.jyu.fi
Thu Nov 8 12:44:42 EET 2007


(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.

Thu Nov  8 12:42:17 EET 2007  Matthieu Weber <mweber at mit.jyu.fi>
  * Added a \backmatter option to allow for page numbering in the bibiliography's first page and Finnish Summary's first page. Obsoletes the "stupid" class option (which still exists for compatibility reasons but does nothing).
diff -rN -u old-jydiss/jydiss.cls new-jydiss/jydiss.cls
--- old-jydiss/jydiss.cls	2007-11-08 12:44:41.805604000 +0200
+++ new-jydiss/jydiss.cls	2007-11-08 12:44:41.805604000 +0200
@@ -111,6 +111,7 @@
 \diss at contrib@beforefalse
 \DeclareOption{contribbefore}{\diss at contrib@beforetrue}
 
+% Deprecated, kept for compatibility
 \newif\ifdiss at stupid
 \diss at stupidfalse
 \DeclareOption{stupid}{\diss at stupidtrue}
@@ -276,6 +277,9 @@
                        \addcontentsline{toc}{chapter}%
                                    {\HyMakeUppercase{#1}}%
 										 \else
+                       \if at backmatter
+                         \thispagestyle{plain}
+                       \fi
 											 \if#1\relax
 											 \else
 											   \ifjydiss at toc@space
@@ -568,7 +572,8 @@
   \end{list}%
 }
 
-
+\newif\if at backmatter
+\@backmatterfalse
 
 
 \renewcommand\mainmatter{%
@@ -596,9 +601,20 @@
 	\fi
   \cleardoublepage
   \@mainmattertrue
+  \@backmatterfalse
   \pagestyle{myheadings}
 }
 
+\renewcommand\backmatter{
+  \if at openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \@mainmatterfalse
+  \@backmattertrue
+}
+
 \setlength{\parindent}{1cm}
 
 \renewcommand{\Large}{%
@@ -825,7 +841,6 @@
 
 \newcommand{\finnishsummary}{
 \chapter*{\finnishsummaryheading}
-\ifdiss at stupid\thispagestyle{plain}\fi
 \immediate\write\@mainaux{\string\gdef\string\diss at inclsummary{\finnishsummaryabstract}}%
 }
 
@@ -885,7 +900,6 @@
 \if\diss at art@year\relax\else , \diss at art@year\fi}
 
 \newcommand{\artmaketitle}{%
-\ifdiss at stupid\thispagestyle{plain}\fi
 \ifthenelse{\value{articles}=1}{%
 \vspace*{6cm}\vspace*{-\topskip}{\Large\vspace*{-3\baselineskip}}%
 \centering{\Large\bfseries ORIGINAL PAPERS\par\vspace{2\baselineskip}}\nointerlineskip%
diff -rN -u old-jydiss/manual.tex new-jydiss/manual.tex
--- old-jydiss/manual.tex	2007-11-08 12:44:41.805604000 +0200
+++ new-jydiss/manual.tex	2007-11-08 12:44:41.805604000 +0200
@@ -197,6 +197,9 @@
 \item[mainmatter] Marks the beginning of the main part of the document.
 Should appear before the first \cmd{chapter}. It mainly includes all the
 ``List of'' (if any), the table of contents, and the list of articles (if any).
+\item[backmatter] Marks the end of the main part of the document. Should
+appear before the bibliography and before the Finnish Summary (Yhteenveto) for
+proper page numbering in these chapters.
 \item[chapter] Beginning of a chapter.
 \item[section] Beginning of a section.
 \item[subsection] Beginning of a subsection.






More information about the Tutkielma-TeX mailing list