From e068841d2fc2976d094b382e4dd5e4d6df455506 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 7 Feb 2021 03:00:48 +0000 Subject: CTAN sync 202102070300 --- macros/latex/contrib/suftesi/README | 2 +- macros/latex/contrib/suftesi/suftesi.dtx | 74 +++++++++++++++---------------- macros/latex/contrib/suftesi/suftesi.pdf | Bin 794737 -> 795474 bytes 3 files changed, 36 insertions(+), 40 deletions(-) (limited to 'macros/latex/contrib/suftesi') diff --git a/macros/latex/contrib/suftesi/README b/macros/latex/contrib/suftesi/README index a4211d840e..a12471ce93 100644 --- a/macros/latex/contrib/suftesi/README +++ b/macros/latex/contrib/suftesi/README @@ -1,7 +1,7 @@ ----------------------------------------------------------------------- The 'suftesi' class for LaTeX Author: Ivan Valbusa - ivan dot valbusa at univr dot it + ivan dot valbusa at gmail dot com This work has the LPPL maintenance status "author-maintained". This work may be distributed and/or modified under the diff --git a/macros/latex/contrib/suftesi/suftesi.dtx b/macros/latex/contrib/suftesi/suftesi.dtx index 250432db6b..e9c3711111 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". %\NeedsTeXFormat{LaTeX2e}[2005/12/01] %\ProvidesClass{suftesi} %<*class> - [2021/01/27 v3.0.1 A class for typesetting theses, books and articles] + [2021/02/06 v3.0.2 A class for typesetting theses, books and articles] % %<*driver> \documentclass[12pt]{ltxdoc} @@ -102,7 +102,6 @@ This work has the LPPL maintenance status "author-maintained". \usepackage[cochineal,bigdelims,cmintegrals,vvarbb]{newtxmath} \usepackage[cal=boondoxo]{mathalpha} \usepackage{manfnt} -\usepackage{lettrine} %-------------------------------------------------------- % LAYOUT %-------------------------------------------------------- @@ -145,7 +144,14 @@ cochineal,mathpazo,bera,amsthm} \DeclareRobustCommand*{\arm}[1]{\ar{\meta{\argstyle#1}}} \DeclareRobustCommand*{\oarm}[1]{\oar{\meta{\argstyle#1}}} \newcommand*{\OR}{${}\mid{}$} -\newcommand{\alert}[1][]{\lettrine[#1]{\normalsize\textdbend}{\hskip.4em}} +\makeatletter +\newlength\CLett +\newcommand*\alert{ + \par\noindent + \setbox\z@\hbox{\textdbend}\CLett=\wd\z@% + \raisebox{-1.05\baselineskip}[0pt][0pt]{% + \llap{\box\z@\kern6pt}}} +\makeatother % New environments \newenvironment{ttquote}{% \begin{mdframed}\ttfamily\microtypesetup{activate=false}}{\end{mdframed}} @@ -204,7 +210,7 @@ cochineal,mathpazo,bera,amsthm} % LAYOUTS THUMBNAILS % -------------------------------------------------------- \usepackage{xfp} -\NewExpandableDocumentCommand{\getlength}{O{pt}mm}{% +\NewExpandableDocumentCommand{\sufgetlength}{O{pt}mm}{% % #1 (optional, default pt), #2 = length \fpeval{round((#3)/(1#1),#2)}} \newlength{\expaperwidth} @@ -240,7 +246,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 (\getlength[cm]{2}{\expaperwidth} $\times$ \getlength[cm]{2}{\expaperheight})\par}}; + \node at (\expaperwidth,-4) (caption) {\parbox{2.5cm}{\centering\footnotesize\texttt{#2}\par (\sufgetlength[cm]{2}{\expaperwidth} $\times$ \sufgetlength[cm]{2}{\expaperheight})\par}}; \end{tikzpicture}} % -------------------------------------------------------- % HYPERREF SETUP @@ -271,7 +277,7 @@ cochineal,mathpazo,bera,amsthm} % % \fi % -% \CheckSum{5348} +% \CheckSum{5380} % % \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 @@ -289,6 +295,7 @@ cochineal,mathpazo,bera,amsthm} % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % +% \changes{v3.0.2}{2021/02/06}{Improved \opt{subsecstyle} and \opt{subsubsecstyle} options.} % \changes{v3.0.1}{2021/01/27}{Maintenance release.} % \changes{v3.0}{2021/01/24}{Improved \sty{biblatex} support. Updated documentation.} % \changes{v2.9.9b (2.9.11)}{2020/12/21}{New page layouts: \opt{pocketa}, \opt{pocketb}, \opt{pocketc}. New commands \cmd{breakinbody}, \cmd{breakinbodyleft}, \cmd{breakintoc} (old names: \cmd{headbreak} and \cmd{xheadbreak}). Changed definitions of \cmd{appendixpagename}, \cmd{appendixtocname} and \cmd{appendixname} commands (default: english). The \cmd{part} command has been completely redefined. Updated documentation.} @@ -991,10 +998,6 @@ cochineal,mathpazo,bera,amsthm} %\end{verbatim} % \end{latexcode} % -% ^^A\subsection{Title page} -% -% ^^A The class provides a very simple title page through the \cmd{maketitle} command. A large collection of stylish title pages is provided by the \sty{titlepages} package by Peter Wilson. This package is part of the \sty{memoir} documentation but you can copy the code examples and adapt them to work with \sty{suftesi} with quite simple changes. -% % ^^A ---------------------------------------------------------------- % ^^A % \subsection{Appendices} @@ -1928,33 +1931,6 @@ cochineal,mathpazo,bera,amsthm} % % ^^A ---------------------------------------------------------------- % ^^A -% ^^A \section{Known issues} -% ^^A -% ^^A ---------------------------------------------------------------- -% ^^A -% ^^A A problem occurs with the \opt{article} document structure. The \cmd{part} command resets the headers so if it is the first sectioning command of the page you will get no headers in that page. In this case you have to add the header manually with something like this: -% ^^A \begin{latexcode} -% ^^A \begin{verbatim} -% ^^A \markboth{Section title}{Section title} -% ^^A \part{The title of the part} -% ^^A -% ^^A \section{Section title} -% ^^A \end{verbatim} -% ^^A \end{latexcode} -% ^^A If the title of the part is at the beginning of the page you will need the \sty{afterpage} package \parencite{afterpage} and the \cmd{afterpage} command: -% ^^A \begin{latexcode} -% ^^A \begin{verbatim} -% ^^A \afterpage{ -% ^^A \markboth{Section title}{Section title} -% ^^A \part{The title of the part} -% ^^A } -% ^^A -% ^^A \section{Section title} -% ^^A \end{verbatim} -% ^^A \end{latexcode} -% -% ^^A ---------------------------------------------------------------- -% ^^A % \section{Backward compatibility} % ^^A % ^^A ---------------------------------------------------------------- @@ -2415,22 +2391,40 @@ cochineal,mathpazo,bera,amsthm} \suftesi@numparsectrue \fi} \define@choicekey{}{subsecstyle}[\val\nr] - {left,center,right}[left]{% + {left,center,right,parleft,parcenter,parright}[left]{% \ifcase\nr\relax \def\SUF@lr@SUBSECSwitch{\filright} \or \def\SUF@lr@SUBSECSwitch{\filcenter} \or \def\SUF@lr@SUBSECSwitch{\filleft} +\or%numparsubsec +\def\SUF@lr@SUBSECSwitch{\filright} +\suftesi@numparsubsectrue +\or +\def\SUF@lr@SUBSECSwitch{\filcenter} +\suftesi@numparsubsectrue +\or +\def\SUF@lr@SUBSECSwitch{\filleft} +\suftesi@numparsubsectrue \fi} \define@choicekey{}{subsubsecstyle}[\val\nr] - {left,center,right}[left]{% + {left,center,right,parleft,parcenter,parright}[left]{% \ifcase\nr\relax \def\SUF@lr@SUBSUBSECSwitch{\filright} \or \def\SUF@lr@SUBSUBSECSwitch{\filcenter} \or \def\SUF@lr@SUBSUBSECSwitch{\filleft} +\or%numparsubsubsec +\def\SUF@lr@SUBSUBSECSwitch{\filright} +\suftesi@numparsubsubsectrue +\or +\def\SUF@lr@SUBSUBSECSwitch{\filcenter} +\suftesi@numparsubsubsectrue +\or +\def\SUF@lr@SUBSUBSECSwitch{\filleft} +\suftesi@numparsubsubsectrue \fi} % \end{macrocode} % \subsubsection{Sections font} @@ -3838,6 +3832,7 @@ cochineal,mathpazo,bera,amsthm} {\SUF@lr@PARTSwitch\SUF@partsize \interlinepenalty \@M \ifnum \c@secnumdepth >-2\relax + \addvspace{4ex} \noindent\partname\hskip.5em{\SUF@PART@font\SUF@thepart}\SUF@dotpart \ifsuftesi@numparpart \par @@ -3851,6 +3846,7 @@ cochineal,mathpazo,bera,amsthm} \def\@spart#1{% {\SUF@lr@PARTSwitch\SUF@partsize \interlinepenalty \@M + \addvspace{4ex} \noindent\SUF@PART@StyleSwitch#1\par}% \@endpart} diff --git a/macros/latex/contrib/suftesi/suftesi.pdf b/macros/latex/contrib/suftesi/suftesi.pdf index 3ed3266a57..d6486c3ec7 100644 Binary files a/macros/latex/contrib/suftesi/suftesi.pdf and b/macros/latex/contrib/suftesi/suftesi.pdf differ -- cgit v1.2.3