summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/suftesi/suftesi.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/suftesi/suftesi.dtx')
-rw-r--r--macros/latex/contrib/suftesi/suftesi.dtx57
1 files changed, 37 insertions, 20 deletions
diff --git a/macros/latex/contrib/suftesi/suftesi.dtx b/macros/latex/contrib/suftesi/suftesi.dtx
index 02fec48f52..3898fbeaba 100644
--- a/macros/latex/contrib/suftesi/suftesi.dtx
+++ b/macros/latex/contrib/suftesi/suftesi.dtx
@@ -56,7 +56,7 @@ This work has the LPPL maintenance status "author-maintained".
%<class>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<class>\ProvidesClass{suftesi}
%<*class>
- [2021/06/06 v3.1.3 A class for typesetting theses, books and articles]
+ [2021/11/01 v3.2.0 A class for typesetting theses, books and articles]
%</class>
%<*driver>
\documentclass[12pt]{ltxdoc}
@@ -248,7 +248,7 @@ cochineal,mathpazo,bera,amsthm}
\draw[draw=gray!10,thick] (\expaperwidth,0) -- (\expaperwidth,\expaperheight);
\draw[xshift=\exxshift,body] (0,0) rectangle (\extextwidth,\extextheight);
\draw[xshift=\exzshift,body] (0,0) rectangle (\extextwidth,\extextheight);
- \node at (\expaperwidth,-4) (caption) {\parbox{2.5cm}{\centering\footnotesize\texttt{#2}\par (\sufgetlength[cm]{2}{\expaperwidth} $\times$ \sufgetlength[cm]{2}{\expaperheight})\par}};
+ \node at (\expaperwidth,-4) (caption) {\parbox{3cm}{\centering\footnotesize\texttt{#2}\par (\sufgetlength[cm]{2}{\expaperwidth} $\times$ \sufgetlength[cm]{2}{\expaperheight})\par}};
\end{tikzpicture}}
% --------------------------------------------------------
% OTHER THUMBNAILS
@@ -338,7 +338,7 @@ cochineal,mathpazo,bera,amsthm}
%</driver>
% \fi
%
-% \CheckSum{5686}
+% \CheckSum{5685}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -356,6 +356,8 @@ cochineal,mathpazo,bera,amsthm}
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
+% \changes{v3.2.0}{2021/11/01}{Fixed a bug in \cmd{xfootnote} command.
+% Fixed a bug occurring when using the \cmd{geometry} command.}
% \changes{v3.1.3}{2021/06/06}{Maintenance release.
% Moved commands for breaking titles after \opt{titletoc} settings.
% Corrected a bug in \cmd{maketitle} with the \opt{collection} structure.
@@ -485,7 +487,7 @@ cochineal,mathpazo,bera,amsthm}
% on the basis of Sebastian Kosch's Crimson.
% The \texttt{typewriter} font is Inconsolata,
% designed by Raph Levien and the \textsf{sans serif} text
-% is typeset in Linux Biolinum, created by Philipp H.~Pol.
+% is typeset in Linux Biolinum, created by Philipp H.~Poll.
%\end{minipage}
%
% \vfill
@@ -912,7 +914,7 @@ cochineal,mathpazo,bera,amsthm}
% The default roman font is Cochineal by Michael Sharpe,
% the sans serif font is Linux Biolinum, designed by Philipp H.
% Poll,\index{Poll, Philipp H.} and the typewriter face is Inconsolata
-% by Michael Sharpe. Cochineal is a fork of Crimson, by Sebastian Kosch,
+% by Raph Levien. Cochineal is a fork of Crimson, by Sebastian Kosch,
% a font inspired by masterpieces like Sabon (Jan Tschichold) and Minion
% (Robert Slimbach). It is a very complete typeface and it offers full
% support for Greek and Cyrillic, real small caps (even in italic shape)
@@ -960,15 +962,19 @@ cochineal,mathpazo,bera,amsthm}
%
% \optitem[10\OR 10pt]{fontsize}{\meta{dimen}}
% Sets the main font sizes for the document, changing the \cmd{baselineskip}
-% accordingly. This option is based on the \sty{fontsize} package \parencite{fontsize}. The \meta{fontsize} can be given in any unit recognized
+% accordingly. This option is based on the \sty{fontsize} package \parencite{fontsize}.
+% The \meta{fontsize} can be given in any unit recognized
% by TeX (for example: \opt{6mm}, \opt{1ex}, \opt{11.5pt}).
% If the unit is not declared it defaults to \texttt{pt}.
% If you want to set a specific value for \cmd{baselineskip}
% you have to use the \cmd{changefontsize}\oarm{baselineskip}\arm{fontsize} command.
%
% \optitem[low]{smallcapsstyle}{\opt{low}\OR\opt{upper}}
-% Effective only with \opt{\meta{level}font=smallcaps} and \opt{toc\meta{level}font=smallcaps} options (see sections \ref{sec:titles} and \ref{sec:toc}).
-% With \hologo{XeLaTeX} or \hologo{LuaLaTeX} this option is effective only if a font selection command (such as \cmd{setmainfont}) is given.
+% Effective only with \opt{\meta{level}font=smallcaps} and
+% \opt{toc\meta{level}font=smallcaps} options (see sections \ref{sec:titles}
+% and \ref{sec:toc}).
+% With \hologo{XeLaTeX} or \hologo{LuaLaTeX} this option is effective only if a font
+% selection command (such as \cmd{setmainfont}) is given.
% \begin{valuelist}
% \item[low] Prints lowercase spaced \textsc{\lsstyle small capitals}.
% \item[upper] Prints spaced \textsc{\lsstyle Small Capitals} with uppercase initials.
@@ -1593,8 +1599,7 @@ cochineal,mathpazo,bera,amsthm}
% \scriptsize\@thefnmark.\hskip.5em}%
%}\hfill
%\fakefootnote{\renewcommand\@makefntext{%
-% \textsuperscript{\scriptsize\@thefnmark}\hskip.3em}
-%}
+% \raisebox{3pt}{\scriptsize\@thefnmark}\hskip.3em}\vspace*{5pt}}
%\makeatother
%\caption{The four styles for the footnotes: \opt{bulged}, \opt{hung}, \opt{dotted}, \opt{superscript}}\label{fig:fakefootnote}
%\end{figure}
@@ -1656,7 +1661,7 @@ cochineal,mathpazo,bera,amsthm}
% \changes{v0.9b}{2012/09/23}{New command \cmd{xfootnote}}
%
% Aa command to print a footnote with a discretionary
-% symbols given in the optional argument (default:\texttt{*}).
+% symbols given in the optional argument (default:~\texttt{*}).
% It does not increment the footnote counter.
%
% \cmditem{marginpar}{text}
@@ -5334,10 +5339,6 @@ cochineal,mathpazo,bera,amsthm}
\else
\let\SUF@versionof\relax
\fi
-\AtBeginDocument{%
- \pagestyle{fancy}
- \renewcommand{\headrulewidth}{0pt}
- \renewcommand{\footnoterule}{}}
% \end{macrocode}
% \paragraph{The \opt{default} headers}
% In previous versions \cmd{SUF@HEAD@thechapter} and
@@ -5384,9 +5385,24 @@ cochineal,mathpazo,bera,amsthm}
\fi
\def\SUF@leftrightmark{%
\if@mainmatter\leftmark\else\rightmark\fi}
-\pagestyle{sufdefault}
- \ifsuftesi@centerheader\pagestyle{centerheader}\else\fi
- \ifsuftesi@sufplain\pagestyle{sufplain}\else\fi
+% \end{macrocode}
+% The \cmd{geometry} command gives the expected result
+% only if used \textit{before} the page style assignment.
+% So this must be declared at the beginning of the document:
+% \begin{macrocode}
+\AtBeginDocument{%
+ \renewcommand{\headrulewidth}{0pt}
+ \renewcommand{\footnoterule}{}
+ \ifsuftesi@centerheader
+ \pagestyle{centerheader}
+ \else
+ \ifsuftesi@sufplain
+ \pagestyle{sufplain}
+ \else
+ \pagestyle{sufdefault}
+ \fi
+ \fi
+}
% \end{macrocode}
% \subsection{Notes and quotations}
% \paragraph{Block Quotations}
@@ -5441,10 +5457,11 @@ cochineal,mathpazo,bera,amsthm}
\fi
% \end{macrocode}
% \paragraph{The \cmd{xfootnote} command} Prints a footnote with discretionary
-% symbol give in the first argument.
+% symbol give in the first argument. Since version 1.3.4 \cmd{protected@xdef}
+% replaces \cmd{xdef}.
% \begin{macrocode}
\newcommand*\xfootnote[1][*]{%
- \xdef\@thefnmark{#1}%
+ \protected@xdef\@thefnmark{#1}%
\@footnotemark\@footnotetext}
% \end{macrocode}
% \paragraph{Marginal notes}