[Tutkielma-TeX] [darcs] gradu2.cls-muutos: new option surnamefirst

Antti-Juhani Kaijanaho antkaij at mit.jyu.fi
Thu May 3 12:34:32 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.

Thu May  3 12:34:00 EEST 2007  Antti-Juhani Kaijanaho <antkaij at mit.jyu.fi>
  * new option surnamefirst
diff -rN -u old-gradu.cls/gradu2.cls new-gradu.cls/gradu2.cls
--- old-gradu.cls/gradu2.cls	2007-05-03 12:34:32.000000000 +0300
+++ new-gradu.cls/gradu2.cls	2007-05-03 12:34:32.000000000 +0300
@@ -60,6 +60,9 @@
 \newif\ifaltlinespread
 \altlinespreadfalse
 
+\newif\ifsurnamefirst
+\surnamefirstfalse
+
 %% Input encoding
 \def\gradu at inputenc{latin1}
 \DeclareOption{ansinew}{\gdef\gradu at inputenc{ansinew}}
@@ -97,6 +100,8 @@
 
 \DeclareOption{altsubsec}{\altsubsectrue}
 
+\DeclareOption{surnamefirst}{\surnamefirsttrue}
+
 \let\gradu at lof\relax
 \let\gradu at lot\relax
 \DeclareOption{lof}{\gdef\gradu at lof{\listoffigures}}
@@ -361,8 +366,13 @@
 %\newcommand{\setauthor}[2]{\gdef\gradu at author{#1 #2}\gdef\gradu at rohtua{#2, #1}}
 \newcounter{gradu at authorcount}
 \newcommand{\setauthor}[2]{
+\ifsurnamefirst
+  \@cons\gradu at authors{\gradu at authorstart#2\gradu at authorsep#1\gradu at authorend}
+  \@cons\gradu at authorsl{\gradu at authorlstart#2\gradu at authorlsep#1\gradu at authorlend}
+\else
   \@cons\gradu at authors{\gradu at authorstart#1\gradu at authorsep#2\gradu at authorend}
   \@cons\gradu at authorsl{\gradu at authorlstart#1\gradu at authorlsep#2\gradu at authorlend}
+\fi
   \@cons\gradu at srohtua{\gradu at rohtuastart#2\gradu at rohtuasep#1\gradu at rohtuaend}
 	\addtocounter{gradu at authorcount}{1}%
 }
diff -rN -u old-gradu.cls/manual.tex new-gradu.cls/manual.tex
--- old-gradu.cls/manual.tex	2007-05-03 12:34:32.000000000 +0300
+++ new-gradu.cls/manual.tex	2007-05-03 12:34:32.000000000 +0300
@@ -151,6 +151,8 @@
 warning message is generated and no logo is displayed.
 \item[altlinespread] Use a linespread of 1.5 instead of 1.2, as required by
 the university's layout rules (although it is ugly).
+\item[surnamefirst] Use the order \emph{surname givenname} instead of
+  the default \emph{givenname surname} for the authors' names.
 \end{opts}
 
 \section{Header Commands}






More information about the Tutkielma-TeX mailing list