[Tutkielma-TeX] [darcs] jydiss.cls-muutos: Addded a List of algorithms to be used with the algorithm package
Matthieu Weber
matthieu.weber at jyu.fi
Fri Oct 30 15:02:26 EET 2009
(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 Oct 30 14:59:38 EET 2009 Matthieu Weber <mweber at mit.jyu.fi>
* Addded a List of algorithms to be used with the algorithm package
diff -rN -u old-jydiss/jydiss.cls new-jydiss/jydiss.cls
--- old-jydiss/jydiss.cls 2009-10-30 15:02:26.018161286 +0200
+++ new-jydiss/jydiss.cls 2009-10-30 15:02:26.018161286 +0200
@@ -82,6 +82,9 @@
\newif\ifdiss at loar
\diss at loarfalse
+\newif\ifdiss at loa
+\diss at loafalse
+
\newif\ifdiss at shortloft
\diss at shortloftfalse
@@ -89,6 +92,7 @@
\DeclareOption{licentiate}{\diss at licentiatetrue}
\DeclareOption{lof}{\diss at loftrue}
\DeclareOption{lot}{\diss at lottrue}
+\DeclareOption{loa}{\diss at loatrue}
\DeclareOption{loar}{\diss at loartrue}
\DeclareOption{shortloft}{\diss at shortlofttrue}
@@ -247,6 +251,7 @@
\RequirePackage{courier}
\fi
\linespread{1.05}
+\newcommand{\cftdotsep}{0.5}
\ifdiss at subfigure
\RequirePackage[subfigure]{tocloft}
\else
@@ -373,6 +378,21 @@
\global\@topnum\z@
\@afterindentfalse
\secdef\@appendix\@appendix}
+\AtBeginDocument{
+ %%%% List of algorithms
+ \ifdiss at loa
+ \let\c at algorithm=\relax % already defined by algorithm.sty
+ \newlistof{algorithm}{loa}{\listalgorithmname}
+ \ifdiss at shortloft
+ \renewcommand{\@cftmakeloatitle}{\almostchapter*[]{\listalgorithmname}}
+ \else
+ \renewcommand{\@cftmakeloatitle}{\chapter*{\listalgorithmname}}
+ \fi
+ \setlength{\cftalgorithmnumwidth}{7.5em}
+ \renewcommand{\cftalgorithmpresnum}{\MakeUppercase{\ALG at name}\space}
+ \renewcommand{\cftalgorithmindent}{0em}
+ \fi
+}
%% This requires extensive explanation.
%%
@@ -688,6 +708,7 @@
\let\chapter\openanychapter
\ifdiss at lof\listoffigures\fi
\ifdiss at lot\listoftables\fi
+ \ifdiss at loa\listofalgorithm\fi
% Back to real chapters
\let\chapter\diss at old@chapter
@@ -770,7 +791,7 @@
\renewcommand{\cftchapfont}{}
\renewcommand{\cftchappagefont}{}
-\renewcommand{\cftdotsep}{0.5}
+%\renewcommand{\cftdotsep}{0.5}
\renewcommand{\cftchapdotsep}{\cftdotsep}
\setlength{\cftchapnumwidth}{1cm}
\setlength{\cftsecindent}{1cm}
@@ -1153,11 +1174,11 @@
\renewcommand{\theequation}{\@arabic\c at equation}
\setlength{\cftfignumwidth}{6em}
-\renewcommand{\cftfigdotsep}{6}
+%\renewcommand{\cftfigdotsep}{6}
\renewcommand{\cftfigpresnum}{\MakeUppercase{\figurename}\space}
\renewcommand{\cftfigindent}{0em}
\setlength{\cfttabnumwidth}{8em}
-\renewcommand{\cfttabdotsep}{6}
+%\renewcommand{\cfttabdotsep}{6}
\renewcommand{\cfttabpresnum}{\MakeUppercase{\tablename}\space}
\renewcommand{\cfttabindent}{0em}
diff -rN -u old-jydiss/manual.tex new-jydiss/manual.tex
--- old-jydiss/manual.tex 2009-10-30 15:02:26.018161286 +0200
+++ new-jydiss/manual.tex 2009-10-30 15:02:26.018161286 +0200
@@ -136,6 +136,8 @@
can be removed if needed).
\item[lof] will include the list of figures into the document.
\item[lot] will include the list of tables into the document.
+\item[loa] will include the list of algorithms into the document (to be used
+with the \pack{algorithm} package).
\item[loar] will include the list of included articles into the document.
\item[shortloft] will put the lists of figures and tables on the same page, if
they are short. \emph{Do not use it if you do not have a list of figures}.
More information about the Tutkielma-TeX
mailing list