[Tutkielma-TeX] [darcs] jydiss.cls-muutos: Using nested list provoked wrong indentation, this fixes it (hopefully)
Matthieu Weber
mweber at mit.jyu.fi
Fri May 16 15:41:38 EEST 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.
Fri May 16 15:39:15 EEST 2008 Matthieu Weber <mweber at mit.jyu.fi>
* Using nested list provoked wrong indentation, this fixes it (hopefully)
diff -rN -u old-jydiss/jydiss.cls new-jydiss/jydiss.cls
--- old-jydiss/jydiss.cls 2008-05-16 15:41:37.842737000 +0300
+++ new-jydiss/jydiss.cls 2008-05-16 15:41:37.842737000 +0300
@@ -1074,12 +1074,22 @@
%%%% Lists
+% LaTeX naturally indents a paragraph coming after a list if there is an empty
+% line between the list and the paragraph. This paragraph must never be
+% indented, the following code ensures it.
+
\def\@doendpe{%
- \@endpetrue
- \def\par{%
- \if at endpe\@@par\else\@restorepar
- \everypar{}\par\@endpefalse\fi}%
- \everypar{{\setbox\z@\lastbox}%
- \everypar{}\@endpefalse}}%
+ \@endpetrue
+ \ifnum \@listdepth = 0
+ \def\par{%
+ \if at endpe\@@par\else\@restorepar
+ \everypar{}\par\@endpefalse\fi}%
+ \else
+ \def\par{%
+ \@restorepar
+ \everypar{}\par\@endpefalse}%
+ \fi
+ \everypar{{\setbox\z@\lastbox}%
+ \everypar{}\@endpefalse}}%
\endinput
More information about the Tutkielma-TeX
mailing list