% \iffalse meta-comment % % Copyright (C) 2009-2012 by Ivan Valbusa % % ------------------------------------------------------- % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % This work consists of all files listed in README % % \fi % % \iffalse %<*driver> \ProvidesFile{suftesi.dtx} % %\NeedsTeXFormat{LaTeX2e}[2005/12/01] %\ProvidesClass{suftesi} %<*class> [2012/08/31 v0.9a A class for typesetting theses, books and articles] % %<*driver> \PassOptionsToClass{a4paper}{article} \documentclass{ltxdoc} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[polutonikogreek,english]{babel} \let\cs\relax \let\cmd\relax %\usepackage[paperwidth=17cm,paperheight=24cm,right=1cm,left=3cm]{geometry} \usepackage{ltxdockit} \usepackage{array,booktabs,multirow} \usepackage{microtype} \usepackage{siunitx} \usepackage{pdfpages} \usepackage{metalogo} \usepackage[style=philosophy-classic]{biblatex} \addbibresource{suftesi.bib} \usepackage[suftesi]{frontespizio} \usepackage{hyperref} \hypersetup{% pdftitle={User's Guide to \textsf{suftesi}}, pdfsubject={A document class for typesetting theses, books and articles}, pdfauthor={Ivan Valbusa}, pdfkeywords={thesis, humanities, books}, citecolor=spot} \newcommand{\new}{}% \DeclareRobustCommand*{\ar}[1]{\texttt{\char`\{#1\char`\}}} \DeclareRobustCommand*{\oar}[1]{\texttt{[#1]}} \DeclareRobustCommand*{\meta}[1]{% $\langle${\normalfont\itshape#1\kern0.12em }$\rangle$} \DeclareRobustCommand*{\arm}[1]{\ar{\meta{#1}}} \DeclareRobustCommand*{\oarm}[1]{\oar{\meta{#1}}} \newcommand{\quoteskip}{.5\baselineskip plus .1\baselineskip minus .1\baselineskip} \newlength{\normalparindent} \setlength{\normalparindent}{\parindent} \newenvironment{genquote}[1][] {\par\nobreak \addvspace{\quoteskip} \parindent0pt \hangafter0 \hangindent2\normalparindent #1} {\par\addvspace{\quoteskip}\noindent\ignorespacesafterend} \newenvironment{ttquote} {\genquote[\ttfamily\microtypesetup{activate=false}]} {\endgenquote} \EnableCrossrefs \CodelineIndex \RecordChanges \begin{document} \DocInput{suftesi.dtx} \end{document} % % % \fi % % \CheckSum{2826} % % \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 % Lower-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 % Digits \0\1\2\3\4\5\6\7\8\9 % Exclamation \! Double quote \" Hash (number) \# % Dollar \$ Percent \% Ampersand \& % Acute accent \' Left paren \( Right paren \) % Asterisk \* Plus \+ Comma \, % Minus \- Point \. Solidus \/ % Colon \: Semicolon \; Less than \< % Equals \= Greater than \> Question mark \? % Commercial at \@ Left bracket \[ Backslash \\ % Right bracket \] Circumflex \^ Underscore \_ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % % \changes{v0.9a}{2012/08/31}{Added \option{inline} option to % \sty{enumitem} package. Deleted \opt{centertitle} to \opt{centerchap}. % New command \cmd{toclabelspace}. Renamed \opt{sctitles} to % \opt{scstyle(1-12)}. Changed code for toc, lot and lof elements. % Added options: % \opt{tocpageleft}, % \opt{defaultparindent}, % \opt{standardfootnote}, % \opt{dottedfootnote}, % \opt{alignlist}, % \opt{indentlist}, % \opt{ralignquotation}, % \opt{smallquotation}, % \opt{romanchap}, % \opt{centerpart}, % \opt{centerchap}, % \opt{centersec}, % \opt{rightpart}, % \opt{rightchap}, % \opt{rightsec}, % \opt{numparpart}, % \opt{numparchap}, % \opt{numparsec}, % \opt{smallcapspart}, % \opt{smallcapschap}, % \opt{smallcapssec}, % \opt{italicpart}, % \opt{italicchap}, % \opt{italicsec}, % \opt{italicsubsec}, % \opt{romanchap}, % \opt{dottedpart}, % \opt{dottedchap}, % \opt{italicheader}, % \opt{smallcapsheader}, % \opt{rmstyle(1-6)}, % \opt{itstyle(1-12)}, % \opt{scstyle(1-12)}. % } % \changes{v0.9}{2012/04/22}{Added \opt{dottedtoc} and \opt{raggedtoc} options. Improved compatibility with \sty{mathspec}} % \changes{v0.8}{2012/03/19}{Added macro for using \sty{frontespizio} package with \opt{compact} and \opt{supercompact} options. Added option \opt{periodical}. Renewed \cmd{title} command} % \changes{v0.7}{2011/02/05}{Maintenance release, no changes. Provided a thesis template} % \changes{v0.6c}{2011/11/16}{Maintenance release, no changes} % \changes{v0.6b}{2011/11/07}{Improved full compatibility with \XeLaTeX. % \sty{varioref} and \sty{footmisc} packages are no longer loaded} % \changes{v0.6a}{2011/10/24}{Maintenance release, no changes} % \changes{v0.6}{2011/10/21}{Added commands \cmd{bookcolophon}, \cmd{artcolophon}. Added option \opt{authortitle}. Renamed options \opt{plain} and \opt{fullplain} to \opt{centerheadings} and \opt{sufplain}. New english documentation.} % \changes{v0.5}{2011/10/21}{First public release. The frontispiece of \sty{suftesi}{} is now % included in the package \sty{frontespizio}. New command \cmd{chapnumfont}. % Added options \opt{article}, \opt{fullplain}, \opt{elements}, \opt{sufelements}, % \opt{supercompact}, \opt{compact}, \opt{nocrop}, \opt{nomarginpar}. % Changed option \opt{Roma}.} % \GetFileInfo{suftesi.dtx} % % \DoNotIndex{\newcommand,\newenvironment,\def,\begin,\vskip,\ } % \DoNotIndex{\DeclareOption,\ExecuteOptions,\RequirePackage} % \DoNotIndex{\@@end,\@empty,\@ifclassloaded,\@nameuse,\@nil} % \DoNotIndex{\@undefined,\\,\`,\addtocounter,\advance,\bfseries} % \DoNotIndex{\centering,\closeout,\define@key,\documentclass} % \DoNotIndex{\edef,\else,\end,\endinput,\endtitlepage,\expandafter} % \DoNotIndex{\extracolsep,\fi,\fill,\fontsize,\g@addto@macro,\toks} % \DoNotIndex{\hrule,\hspace,\if,\if@twoside,\ifcase,\ifdefined} % \DoNotIndex{\iffalse,\IfFileExists,\ifnum,\ifx,\immediate,\setcounter} % \DoNotIndex{\jobname,\let,\long,\MakeUppercase,\MessageBreak} % \DoNotIndex{\newcount,\newif,\newpage,\newtoks,\newwrite,\next} % \DoNotIndex{\noexpand,\nofiles,\normalfont,\normalsize,\null} % \DoNotIndex{\openout,\or,\styage,\styageError,\styageWarning} % \DoNotIndex{\styageWarningNoLine,\paperheight,\paperwidth,\par} % \DoNotIndex{\parbox,\parindent,\relax,\scshape,\selectfont,\setkeys} % \DoNotIndex{\sffamily,\space,\stretch,\string,\textheight,\textwidth} % \DoNotIndex{\the,\thispagestyle,\unexpanded,\unless,\unskip,\upshape} % \DoNotIndex{\usepackage,\vbox,\vfill,\vspace,\write,\z@} % \DoNotIndex{\CurrentOption,\AtEndDocument,\@ne,\c@page,\m@ne} % \DoNotIndex{\@firstofone,\@gobble,\@makeother,\begingroup,\endgroup} % \DoNotIndex{\eTeXversion,\hbox,\hsize,\includegraphics,\newlinechar} % \DoNotIndex{\titlepage,\vss,\vtop,\xdef,\@gobbletwo,\color,\dimexpr} % \DoNotIndex{\huge,\large,\makebox,\ProcessOptions,\renewcommand} % % \title{\bfseries User's Guide to \textsf{suftesi}\thanks{This % document corresponds to \textsf{suftesi}~\fileversion{} dated \filedate}\\ % \large A document class for typesetting theses, books and articles} % \author{Ivan Valbusa \\ % \texttt{ivan dot valbusa at univr dot it}} % \date{\filedate} % \maketitle % \begin{abstract} % The \sty{suftesi} % class % provides a set of page layouts, title styles and heading styles to % typeset theses, books and articles. It is based on the standard % \sty{book} class and inspired by the works of % \textcite{Bringhurst:1996}, \textcite{Tschichold:1975} and % \textcite{Morison:1111}. See the template file \file{tesi.tex} in the \file{example} folder. % \end{abstract} % \tableofcontents % % \section*{Note on copyright} % % Copyright \copyright\ 2009-2010 Ivan Valbusa. This package is % author-maintained. Permission is granted to copy, distribute and/or % modify this software under the terms of the LaTeX Project Public % License, version % 1.3c.\footnote{\url{http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt}.} % % In addition to the terms of this license the author requires an % attribution notice like the following one: % \begin{center} % \emph{This work has been typeset with \LaTeX{}, using the % \textsf{suftesi} class by Ivan Valbusa.}\footnote{You can use the \cmd{colophon}, \cmd{bookcolophon} or % \cmd{artcolophon} commands explained in section \ref{sec:commands}.} % \end{center} % % The most important feature of this class is the set of styles it % provides. For this reason: % % \begin{center} % \textbf{\textsc{do not modify the styles of this class\\ % if you do not like these styles, use another class.}} % \end{center} % % If you use \sty{suftesi}{} in a document typeset with another class % (for example \sty{book}), remember to clean up the preamble from all % the layout redefinitions. % % % \subsection*{Loaded packages} % % % The class loads the following packages: \sty{beramono}, \sty{calc}, % \sty{caption}, \sty{color}, \sty{enumitem}, \sty{emptypage}, % \sty{epigraph}, \sty{fancyhdr}, \sty{fontenc}, \sty{geometry}, % \sty{ifluatex}, \sty{ifxetex}, \sty{iwona}, \sty{mathpazo}, \sty{microtype}, % \sty{mparhack}, \sty{multicol}, % \sty{textcase}, \sty{titlesec}, \sty{titletoc}. % % \section{Class features} % % \subsection{Layout} % % The standard document classes allow you to typeset beautiful % documents but their layout is quite far from the stylistic requests % of some humanists (mainly Italian). The styles provided by % \sty{suftesi} are very simple and sober and also have the aim of % finding an aesthetic harmony in its formal simplicity. They are % largely inspired by some interesting readings, particularly % \textcite{Bringhurst:1996}, \textcite{Tschichold:1975} and % \textcite{Morison:1111}. Table~\ref{tab:gabbia} summarizes the main % features of the styles provided by \sty{suftesi}. % \begin{table}[h] % \small\centering % \caption[The layout]{The layouts of \sty{suftesi}} % \label{tab:gabbia} % \begin{tabular}{p{2cm}cccccc} % \toprule % & \multicolumn{5}{c}{Option (pt)}\\\cmidrule{2-7} % & (default) & \opt{11pt} & \opt{compact} & \opt{supercompact} & \opt{elements} & \opt{periodical} \\\cmidrule(lr){1-1}\cmidrule(lr){2-7} % Text width & $312$ & $324$ & $312$ & $284$ & $251$ & $312$\\ % Text height & $624$ & $648$ & $470$ & $430$ & $502$& $470$\\ % Marginal notes width & $82$ & $82$ & $65$ & $50$ & $60$& $70$\\[4ex] % Margins &\multicolumn{6}{c}{Proportions}\\\cmidrule(lr){1-1}\cmidrule{2-7} % \multirow{2}*{{\parbox{2cm}{top/bottom\\inner/outer}}} % & $1/2$ & $1/2$ & $2/3$ & $2/3$& $2/5$& $2/3$ \\ % &$1/2$&$1/2$ & $2/3$ & $2/3$ & $1/2$& $2/3$\\\cmidrule(lr){1-1} % Text block & $1/2$& $1/2$ & $2/3$ & $2/3$ & $1/2$& $2/3$\\ % Page & $1/\sqrt{2}$& $1/\sqrt{2}$ & $2/3$ & $2/3$ & $1/\sqrt{3}$& $1/\sqrt{2}$\\ % \bottomrule % \end{tabular} % \end{table} % % \subsection{Font} % % The default font for body text is % Palatino designed by Hermann Zapf\index{Zapf, Hermann}.Using % \XeLaTeX{}, % the \LaTeX{} default font is loaded and the font options are turned off. % The sans serif font is Iwona designed by Janusz M.~Nowacki\index{Nowacki, Janusz M.}. % This choice has been inspired by \emph{L'arte di scrivere con \LaTeX{}} \parencite{Pantieri:2011}. % % \subsubsection{Using different fonts} % % If you prefer to use other fonts (such as those provided by \sty{fourier}, % \sty{lmodern} or \sty{libertine} packages), remember to load the \opt{defaultfont} class option % which turns off the \sty{suftesi}{} font settings. Moreover pay particular attention % in choosing the Greek font. % % \subsubsection{Greek alphabet} % % The default font for the Greek text is Artemisia by the Greek Font Society % which is particularly suitable for Palatino: % \begin{quotation} % Alla Natura che ogni cosa dona e ogni cosa riprende\dots% % \begin{otherlanguage*}{polutonikogreek}% % \fontfamily{artemisia}\selectfont % Pr`epei na skeftoume mia % sunarthsh ths opoias % gnwrizoume oti uparqei % to oloklhrwma. % \end{otherlanguage*} % \end{quotation} % With the \opt{porson} option you can use the Porson font by the Greek Font Society: % \begin{quotation} % Alla Natura che ogni cosa dona e ogni cosa riprende\dots% % \begin{otherlanguage*}{greek}% % \fontfamily{porson}\selectfont % Prepei na skeftoume mia % sunarthsh ths opoias % gnwrizoume oti uparqei % to oloklhrwma. % \end{otherlanguage*} % \end{quotation} % The \opt{defaultgreek} option allows you to use the standard CB Greek % font:\footnote{This option is also activated by the \opt{defaultfont} option % (see section \ref{sec:options}).} % \begin{quotation} % Alla Natura che ogni cosa dona e ogni cosa riprende\dots% % \begin{otherlanguage*}{greek}% % \fontfamily{lmr}\selectfont % Prepei na skeftoume mia % sunarthsh ths opoias % gnwrizoume oti uparqei % to oloklhrwma. % \end{otherlanguage*} % \end{quotation} % % \subsection{Frontispiece} % % The class has an original frontispiece now directly available loading the % \sty{frontespizio} package \parencite{Gregorio:frontespizio}\footnote{Version 1.4 or later.} % with the \opt{suftesi} option (see the \file{tesi.tex} template file in the \file{example} folder): % \begin{ttquote} % \cmd{usepackage}[suftesi]\ar{frontespizio} % \end{ttquote} % % \section{Options}\label{sec:options} % %In addition to the options defined by the \sty{book} document class, \sty{suftesi} accepts the following new options. % % \subsection{Page layouts} % \begin{ltxsyntax} % \optitem{periodical} % Prints a typeblock of $17 \si{cm} \times 24 \si{cm}$ on an A4 paper, % showing the crop marks (see table \ref{tab:gabbia} for details). % This style is expecially meant for theses. % The \opt{nocrop} option disables the crop marks. % \optitem{compact} % The same as \opt{periodical} but with a typeblock of $16 \si{cm} \times 24 \si{cm}$ (see table \ref{tab:gabbia} for details). % \optitem{supercompact} The same as \opt{compact} but with a typeblock % of $14 \si{cm} \times 21 \si{cm}$ (see table \ref{tab:gabbia} for details). % \optitem{elements} % Reproduces the layout of \citetitle{Bringhurst:1996} by Robert \citeauthor{Bringhurst:1996} % (see table \ref{tab:gabbia} for details). % \end{ltxsyntax} % \subsection{Table of contents} % \begin{ltxsyntax} % \optitem{dottedtoc} % Prints a table of contents with dotted lines. % \optitem{raggedtoc} % Aligns the table of contents on the left as suggested by % \textcite{Bringhurst:1996}.\new{} % \optitem{tocpageleft} Prints the page numbers on the left margin.\new{} % \end{ltxsyntax} %\clearpage % \vbox{ % \begin{frontespizio} %\Logo{fakelogo} %\Istituzione{University of St.\ Anford} %\Divisione{Department of Typography} %\Scuola{Ph.D. degree in \TeX{} and \LaTeX{}} %\Titolo{How to prepare a\\ % formal frontispiece} %\Sottotitolo{Theory and practice} %\NCandidato{Candidate} %\Candidato{Enrico Gregorio} %\NRelatore{Thesis advisor}{} %\Relatore{Prof. R. J. Drofnats} %\NCorrelatore{Research supervisor}{Research supervisors} %\Correlatore{J. H. Quick} %\Correlatore{B. L. User} %\Piede{Thesis submitted in 2010} % \end{frontespizio} % } % \begin{picture}(0,0) % \setlength{\unitlength}{1cm} % \put (-3,-23) {The frontispiece of \sty{suftesi} is available loading the \sty{frontespizio} package with \opt{suftesi} option} % \put (-3.5,3) {\line(0,-24){25}} % \put (-3.5,3) {\line(10,0){16}} % \put (12.5,3) {\line(0,-24){25}} % \put (-3.5,-22) {\line(10,0){16}} % \end{picture} % \clearpage % \subsection{Footnotes, lists, quotations} % \begin{ltxsyntax} % \optitem{standardfootnote} % Prints a standard superscript footnote \new % \optitem{dottedfootnote} % Prints a footnote number followed by a dot\new % \optitem{indentlist} % Prints standard indented lists\new % \optitem{alignlist} % Aligns the lists to the left margin\new % \optitem{ralignquotation} % Prints the block quotations indented % only on the left margin\new % \optitem{smallquotation} % Prints the block quotations % in \cmd{small} size % \optitem{defaultparindent} % Set |\parinden| to the standard value of 1.5\,em.\new % \end{ltxsyntax} % % \subsection{Titles} % In the following options \texttt{} stands for \opt{part}, % \opt{chap}, \opt{sec}, \opt{subsec},\opt{subsubsec} % \begin{ltxsyntax} % \optitem{centerpart} % Centers the title of the part\new{} % \optitem{centerchap} % Centers the title of the chapter\new{} % \optitem{centersec} % Centers the title of the section\new{} % \optitem{rightpart} % Prints the title of the part on the right\new{} % \optitem{rightchap} % Prints the title of the chapter on the right\new{} % \optitem{rightsec} % Prints the title of the section on the right\new{} % \optitem{numparpart} % Prints the part number below the part title\new % \optitem{numparchap} % Prints the chapter number below the chapter title\new % \optitem{numparsec} % Prints the section number below the section title\new % \optitem{smallcapspart} % Prints the part title in small caps \new{} % \optitem{smallcapschap} % Prints the chapter title in small caps \new{} % \optitem{smallcapssec} % Prints the section title in small caps \new{} % \optitem{italicpart} % Prints the part title in italic \new{} % \optitem{italicchap} % Prints the chapter title in italic \new{} % \optitem{italicsec} % Prints the section title in italic \new{} % \optitem{italicsubsec} % Prints the subsection title in italic \new{} % \optitem{romanchap} % Prints the number of the chapter in roman numbers\new{} % \optitem{dottedpart} % Prints a dot after the number of the part\new{} % \optitem{dottedchap} % Prints a dot after the number of the chapter\new{} % \end{ltxsyntax} % \subsection{Headings} % \begin{ltxsyntax} % \optitem{italicheader} % Prints the header of both even and odd pages in italic \new % \optitem{smallcapsheader} % Prints the header of both even and odd pages % in small caps \new % \optitem{centerheader} % Centers the header and footer % \optitem{sufplain / plain} % Prints no header and puts the page number in the center of % the footer % \optitem{authortitle} % Changes the content of the headers. It prints the author's name % on the even pages and the title on the odd ones. % This option can be combined with the other options seen above. % In order to use this option the \cmd{title} and % \cmd{author} commands are required % \optitem{article} % Similar to defaull page style but with section tile on both % even and odd pages. It is particularly suitable to typeset articles % or short theses (that is without chapter division) % in a two side documen % \optitem{bozza} % Prints the following note in the footer: % \begin{quote} % Version of \meta{date} % \end{quote} % \optitem{sufelements} % Loads the \opt{smallcapsheader}, \opt{smallcapschap}, % \opt{smallcapssec} options and prints the chapter % number in the style of the \opt{elements} option. % \end{ltxsyntax} %\subsection{Fonts} % % \begin{ltxsyntax} % \optitem{artemisia} Loads the Artemisia font (default). % \optitem{porson} Loads the Porson font. % \optitem{defaultgreek} Loads the standard CB~Greek font. % \optitem{defaultfont} Loads the \LaTeX{} standard font and set the \cmd{baselineskip} to the standard default. % \end{ltxsyntax} % % \paragraph{Other options} % \begin{ltxsyntax} % \optitem{nocrop} % Prints a \textsc{pdf} with page dimensions according to the % \opt{periodical}, \opt{compact}, \opt{supercompact} and % \opt{elements} options. % \optitem{nomarginpar} Disables the \cmd{marginpar} command. % This option is useful for the three ``compact'' layouts. % \optitem{11pt} % Sets the font size at $11\si{pt}$ and resizes the % text block dimensions. % \optitem{12pt} % Sets the font size at $12\si{pt}$ and resizes the % text block dimensions. % \end{ltxsyntax} % % \subsection{Pre-defined styles} % \begin{ltxsyntax} % \optitem{rmstyle(1-6)} % The titles of chapters and headers are printed in roman. % The number of the chapter is on the same line in styles 1-3 and above % the title in styles 4-6. % The title can be printed on the left (styles 1 and 4), in the center (styles 2 and 5) or on the right (styles 3 and 6) (see pages \begingroup\addtocounter{page}{1}\pageref{predefined-styles}-\endgroup). % \optitem{itstyle(1-12)} % The titles of chapters and headers are in \emph{italic}. The section title is in \emph{italic} in styles 1-6 and in \textsc{small caps} in styles 7-12. % There are three position for the title and two positions for the number as above (see pages \begingroup\addtocounter{page}{1}\pageref{predefined-styles}-\endgroup). % \optitem{scstyle(1-12)} % The titles of chapters and headers are in \textsc{small caps}. The title of the section is in \emph{italic} in styles 1-6 and in \textsc{small caps} in styles 7-12. % There are three position for the title and two positions for the chapter as above (see pages \begingroup\addtocounter{page}{1}\pageref{predefined-styles}-\endgroup). % \end{ltxsyntax} % You can get up to 120 variants combining these styles % with \opt{dottedchap} and \opt{romanchap} options. % % \section{New commands}\label{sec:commands} % % The class defines the following new commands. % % \begin{ltxsyntax} % % \cmditem{title}[short title for headers]{complete title for titlepage} % % This command is for use with option \opt{authortitle} if the title is too long % or has some breaks. % % % \cmditem{colophon}[OS]{name and surname}{additional info} % % This command is provided only for Italian documents. It prints a page with % a copyright notice and the colophon in the bottom. For different languages % use the \cmd{bookcolophon} instead (see below). % % If you don't like the copyright notice, leave the second argument of % the command empty: % \begin{ttquote} % \cmd{colophon\oarm{OS}\{\}\arm{additional info}} % \end{ttquote} % % With the \opt{article} option, you can use the \cmd{artcolophon} command % (see below) % or the \cmd{thanks} command: % \begin{ttquote} % \cmd{author}\{\meta{Name Surname}\\ % \cmd{thanks}\{This work has been typeset with \LaTeX{},\\ % using the \cmd{textsf}\{suftesi\} cass by Ivan Valbusa\}.\} % \end{ttquote} % % \cmditem{bookcolophon}{copyright notice}{attribution notice and % other informations} % % This command is similar to \cmd{colophon} but it is completely customizable. % The first argument prints its content (usually the copyright notice) in the center of the page. % The second argument prints its content at the bottom. For example: % % \begin{verbatim} % \bookcolophon{Copyright © 2007 by Ivan Valbusa}{This work has been % typeset with \LaTeX, using the \sty{suftesi} class by Ivan % Valbusa\index{Valbusa, Ivan}. The normal font is Palatino by Hermann % Zapf. The sans serif font is Iwona by Janusz M.~Nowacki.} % \end{verbatim} % % \cmditem{artcolophon}{copyright notice, attribution and other informations} % % This command only has one argument. It simply prints its content at the % bottom of the page. Here is an example: % % \begin{verbatim} % \artcolophon{This work is licensed under the Creative Commons % Attribution-NonCommercial-NoDerivs 3.0 Unported License. To view % a copy of this license, visit % \begin{center} % \texttt{http://creativecommons.org/licenses/by-nc-nd/3.0/} % \end{center} % or send a letter to Creative Commons, 444 Castro Street, Suite 900, % Mountain View, California, 94041, USA.\\[1ex] % % Typeset with \LaTeX, using the \sty{suftesi} class by Ivan Valbusa.} % \end{verbatim} % % \cmditem{finalcolophon}{colophon content} % % The same as \cmd{artcolophon}, but centering its content at the % top of the page. It is aimed at typesetting a classical \emph{colophon} % at the end of the work. % % \cmditem{chapterintro} % % Prints an unnumbered introduction at the beginning of the chapter, % with the correct hyperlink. In order to use this command the \sty{hyperref} package must be loaded. % % \cmditem{chapterintroname}{name}\hfill(default=\texttt{Introduzione}) % % Changes in \meta{name} the title printed by the \cmd{chapterintro} command. % % \cmditem{appendicesname}{name}\hfill(default=\texttt{Appendici}) % % Changes in \meta{name} the title printed by the \cmd{appendix} command. % % \cmditem{headbreak} % % A manual break which is active for the table of contents but not in the text or in the headers. % % \cmditem{xheadbreak} % % A manual break which is active in the text and in the headers but not in the table of contents. % % \cmditem{chapnumfont}{name} % % Sets the font for the number of the chapter (only with the \opt{sufelements} option). % The default is ``\texttt{pplj}'' (\LaTeX) or ``Palatino'' (\XeLaTeX). % % \cmditem{toclabelspace}{level}{label-width}\new % % Sets the width of \cmd{thecontentslabel}. The default values are: % \begin{verbatim} % \toclabelwidth{part}{1em} % \toclabelwidth{chapter}{1em} % \toclabelwidth{section}{1.5em} % \toclabelwidth{subsection}{2em} % \toclabelwidth{subsubsection}{2.5em} % \toclabelwidth{paragraph}{3em} % \toclabelwidth{subparagraph}{3.5em} % \end{verbatim} % \end{ltxsyntax} % \appendix % \label{predefined-styles} % \includepdf[pages=1-]{collect-examples} % \defbibnote{note}{\sffamily This bibliography has been typeset with % the \sty{biblatex-philosophy} styles, created by the same author of this class.} % \addcontentsline{toc}{section}{\refname} % \printbibliography[prenote=note] % % \StopEventually{\PrintChanges\PrintIndex} % \section{The Code} %<*class> % \begin{macrocode} \newif\ifsuftesi@artemisia \newif\ifsuftesi@porson \newif\ifsuftesi@defaultgreek \newif\ifsuftesi@defaultfont \newif\ifsuftesi@centerheader \newif\ifsuftesi@sufplain \newif\ifsuftesi@bozza \newif\ifsuftesi@article \newif\ifsuftesi@authortitle \newif\ifsuftesi@periodical \newif\ifsuftesi@compact \newif\ifsuftesi@supercompact \newif\ifsuftesi@elements \newif\ifsuftesi@sufelements \newif\ifsuftesi@nocrop \newif\ifsuftesi@nomarginpar \newif\ifsuftesi@dottedtoc \newif\ifsuftesi@raggedtoc \newif\ifsuftesi@tocpageleft \newif\ifsuftesi@defaultparindent \newif\ifsuftesi@standardfootnote \newif\ifsuftesi@dottedfootnote \newif\ifsuftesi@alignlist \newif\ifsuftesi@indentlist \newif\ifsuftesi@ralignquotation \newif\ifsuftesi@smallquotation \newif\ifsuftesi@romanchap \newif\ifsuftesi@centerpart \newif\ifsuftesi@centerchap \newif\ifsuftesi@centersec \newif\ifsuftesi@centersubsec \newif\ifsuftesi@rightpart \newif\ifsuftesi@rightchap \newif\ifsuftesi@rightsec \newif\ifsuftesi@rightsubsec \newif\ifsuftesi@centersubsubsec \newif\ifsuftesi@rightsubsubsec \newif\ifsuftesi@numparpart \newif\ifsuftesi@numparchap \newif\ifsuftesi@numparsec \newif\ifsuftesi@numparsubsec \newif\ifsuftesi@numparsubsubsec \newif\ifsuftesi@dottedpart \newif\ifsuftesi@dottedchap \newif\ifsuftesi@italicpart \newif\ifsuftesi@italicchap \newif\ifsuftesi@italicsec \newif\ifsuftesi@italicsubsec \newif\ifsuftesi@italicsubsubsec \newif\ifsuftesi@smallcapspart \newif\ifsuftesi@smallcapschap \newif\ifsuftesi@smallcapssec \newif\ifsuftesi@smallcapssubsec \newif\ifsuftesi@smallcapssubsubsec \newif\ifsuftesi@italicLhead \newif\ifsuftesi@italicRhead \newif\ifsuftesi@italicheader \newif\ifsuftesi@smallcapsRhead \newif\ifsuftesi@smallcapsLhead \newif\ifsuftesi@smallcapsheader \DeclareOption{defaultfont}{ \suftesi@defaultfonttrue \suftesi@defaultgreektrue} \DeclareOption{artemisia}{ \suftesi@artemisiatrue \suftesi@porsonfalse \suftesi@defaultgreekfalse} \DeclareOption{porson}{ \suftesi@porsontrue \suftesi@artemisiafalse \suftesi@defaultgreekfalse} \DeclareOption{defaultgreek}{ \suftesi@defaultgreektrue \suftesi@artemisiafalse \suftesi@porsonfalse} \DeclareOption{centerheader}{ \suftesi@centerheadertrue} \DeclareOption{sufplain}{ \suftesi@sufplaintrue} \DeclareOption{bozza}{ \suftesi@bozzatrue} \DeclareOption{periodical}{ \suftesi@periodicaltrue \suftesi@compacttrue} \DeclareOption{compact}{ \suftesi@compacttrue} \DeclareOption{supercompact}{ \suftesi@supercompacttrue} \DeclareOption{elements}{ \suftesi@elementstrue \suftesi@sufelementstrue \suftesi@articlefalse \suftesi@smallcapschaptrue \suftesi@smallcapssectrue \suftesi@raggedtoctrue } \DeclareOption{sufelements}{ \suftesi@sufelementstrue \suftesi@smallcapschaptrue \suftesi@smallcapssectrue \suftesi@compactfalse \suftesi@supercompactfalse} \DeclareOption{nocrop}{ \suftesi@nocroptrue} \DeclareOption{nomarginpar}{ \suftesi@nomarginpartrue} \DeclareOption{article}{ \suftesi@articletrue} \DeclareOption{authortitle}{ \suftesi@authortitletrue} \DeclareOption{dottedtoc}{ \suftesi@dottedtoctrue} \DeclareOption{raggedtoc}{ \suftesi@raggedtoctrue} \DeclareOption{tocpageleft}{ \suftesi@tocpagelefttrue} \DeclareOption{defaultparindent}{ \suftesi@defaultparindenttrue} \DeclareOption{standardfootnote}{ \suftesi@standardfootnotetrue} \DeclareOption{dottedfootnote}{ \suftesi@dottedfootnotetrue} \DeclareOption{alignlist}{ \suftesi@alignlisttrue} \DeclareOption{indentlist}{ \suftesi@indentlisttrue} \DeclareOption{ralignquotation}{ \suftesi@ralignquotationtrue} \DeclareOption{smallquotation}{ \suftesi@smallquotationtrue} \DeclareOption{centerpart}{ \suftesi@centerparttrue} \DeclareOption{centerchap}{ \suftesi@centerchaptrue} \DeclareOption{centersec}{ \suftesi@centersectrue} \DeclareOption{rightpart}{ \suftesi@rightparttrue} \DeclareOption{rightchap}{ \suftesi@rightchaptrue} \DeclareOption{rightsec}{ \suftesi@rightsectrue} \DeclareOption{numparpart}{ \suftesi@numparparttrue} \DeclareOption{numparchap}{ \suftesi@numparchaptrue} \DeclareOption{numparsec}{ \suftesi@numparsectrue} \DeclareOption{smallcapspart}{ \suftesi@smallcapsparttrue} \DeclareOption{smallcapschap}{ \suftesi@smallcapschaptrue} \DeclareOption{smallcapssec}{ \suftesi@smallcapssectrue} \DeclareOption{italicpart}{ \suftesi@italicparttrue} \DeclareOption{italicchap}{ \suftesi@italicchaptrue} \DeclareOption{italicsec}{ \suftesi@italicsectrue} \DeclareOption{italicsubsec}{ \suftesi@italicsubsectrue} \DeclareOption{romanchap}{ \suftesi@romanchaptrue} \DeclareOption{dottedpart}{ \suftesi@dottedparttrue} \DeclareOption{dottedchap}{ \suftesi@dottedchaptrue} \DeclareOption{italicheader}{ \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{smallcapsheader}{ \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{rmstyle1}{ \suftesi@italicsectrue} \DeclareOption{rmstyle2}{ \suftesi@italicsectrue \suftesi@centerchaptrue} \DeclareOption{rmstyle3}{ \suftesi@italicsectrue \suftesi@rightchaptrue} \DeclareOption{rmstyle4}{ \suftesi@italicsectrue \suftesi@numparchaptrue} \DeclareOption{rmstyle5}{ \suftesi@italicsectrue \suftesi@centerchaptrue \suftesi@numparchaptrue} \DeclareOption{rmstyle6}{ \suftesi@italicsectrue \suftesi@rightchaptrue \suftesi@numparchaptrue} \DeclareOption{itstyle1}{ \suftesi@italicchaptrue \suftesi@italicsectrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle2}{ \suftesi@italicchaptrue \suftesi@italicsectrue \suftesi@centerchaptrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle3}{ \suftesi@italicchaptrue \suftesi@italicsectrue \suftesi@rightchaptrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle4}{ \suftesi@italicchaptrue \suftesi@italicsectrue \suftesi@numparchaptrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle5}{ \suftesi@italicchaptrue \suftesi@italicsectrue \suftesi@centerchaptrue \suftesi@numparchaptrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle6}{ \suftesi@italicchaptrue \suftesi@italicsectrue \suftesi@rightchaptrue \suftesi@numparchaptrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle7}{ \suftesi@italicchaptrue \suftesi@smallcapssectrue \suftesi@italicsubsectrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle8}{ \suftesi@italicchaptrue \suftesi@centerchaptrue \suftesi@italicsubsectrue \suftesi@smallcapssectrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle9}{ \suftesi@italicchaptrue \suftesi@rightchaptrue \suftesi@italicsubsectrue \suftesi@smallcapssectrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle10}{ \suftesi@italicchaptrue \suftesi@numparchaptrue \suftesi@italicsubsectrue \suftesi@smallcapssectrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle11}{ \suftesi@italicchaptrue \suftesi@centerchaptrue \suftesi@italicsubsectrue \suftesi@numparchaptrue \suftesi@smallcapssectrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{itstyle12}{ \suftesi@italicchaptrue \suftesi@rightchaptrue \suftesi@italicsubsectrue \suftesi@numparchaptrue \suftesi@smallcapssectrue \suftesi@italicLheadtrue \suftesi@italicRheadtrue} \DeclareOption{scstyle1}{ \suftesi@smallcapschaptrue \suftesi@italicsectrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle2}{ \suftesi@smallcapschaptrue \suftesi@italicsectrue \suftesi@centerchaptrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle3}{ \suftesi@smallcapschaptrue \suftesi@italicsectrue \suftesi@rightchaptrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle4}{ \suftesi@smallcapschaptrue \suftesi@italicsectrue \suftesi@numparchaptrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle5}{ \suftesi@smallcapschaptrue \suftesi@italicsectrue \suftesi@centerchaptrue \suftesi@numparchaptrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle6}{ \suftesi@smallcapschaptrue \suftesi@italicsectrue \suftesi@rightchaptrue \suftesi@numparchaptrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle7}{ \suftesi@smallcapschaptrue \suftesi@smallcapssectrue \suftesi@italicsubsectrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle8}{ \suftesi@smallcapschaptrue \suftesi@centerchaptrue \suftesi@italicsubsectrue \suftesi@smallcapssectrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle9}{ \suftesi@smallcapschaptrue \suftesi@rightchaptrue \suftesi@italicsubsectrue \suftesi@smallcapssectrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle10}{ \suftesi@smallcapschaptrue \suftesi@numparchaptrue \suftesi@italicsubsectrue \suftesi@smallcapssectrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle11}{ \suftesi@smallcapschaptrue \suftesi@centerchaptrue \suftesi@italicsubsectrue \suftesi@numparchaptrue \suftesi@smallcapssectrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} \DeclareOption{scstyle12}{ \suftesi@smallcapschaptrue \suftesi@rightchaptrue \suftesi@italicsubsectrue \suftesi@numparchaptrue \suftesi@smallcapssectrue \suftesi@smallcapsLheadtrue \suftesi@smallcapsRheadtrue} % \end{macrocode} % Execute options: % \begin{macrocode} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} \ExecuteOptions{artemisia,rmstyle1} \ProcessOptions \relax % \end{macrocode} % \sty{suftesi} is based on the standard \sty{book} class! % \begin{macrocode} \LoadClass{book} % \end{macrocode} % \subsection{Basic packages} % \begin{macrocode} \RequirePackage{color} \definecolor{sufred}{rgb}{0.5,0,0} \definecolor{sufgray}{rgb}{0.5,0.5,0.5} \RequirePackage{ifxetex,ifluatex} \ifxetex \relax \else \RequirePackage{microtype} \fi \RequirePackage{textcase} \RequirePackage{multicol} \RequirePackage{emptypage} \RequirePackage{mparhack} % \end{macrocode} % \subsection{Greek fonts} % Thanks to Enrico Gregorio for these macros: % \begin{macrocode} \ifxetex \relax \else \RequirePackage[LGR,T1]{fontenc} \AtBeginDocument{\fontencoding{T1}\selectfont} \ifsuftesi@defaultfont \relax \else \RequirePackage[osf,sc]{mathpazo} \RequirePackage[scaled=0.8]{beramono} \linespread{1.05} \renewcommand{\sfdefault}{iwona} \fi \ifsuftesi@artemisia \def\SUF@greekfamily{artemisiaeuler} \fi \ifsuftesi@defaultgreek \def\SUF@greekfamily{cmr} \fi \ifsuftesi@porson \sbox\z@{\fontsize{10}{10}\normalfont A} \sbox\tw@{\font\temp=gporsonrg6a at 10pt \temp A} \dimen@= \dimexpr(0.001\dimexpr\numexpr(\dimexpr(1000\ht\z@)/\ht\tw@)\p@) \edef\art@scale{\strip@pt\dimen@} \DeclareFontFamily{LGR}{porson}{} \DeclareFontShape{LGR}{porson}{m}{n} {<-> s * [\art@scale] gporsonrg6a}{} \DeclareFontShape{LGR}{porson}{m}{it} {<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{b}{n} {<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{b}{it} {<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{m}{sl} {<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{b}{sl} {<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{m}{sc} {<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{bx}{n} {<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{bx}{it}{<-> ssub * porson/m/n}{} \DeclareFontShape{LGR}{porson}{bx}{sl}{<-> ssub * porson/m/n}{} \def\SUF@greekfamily{porson} \fi \AtBeginDocument{ \DeclareRobustCommand{\greektext}{% \fontencoding{LGR}\fontfamily{\SUF@greekfamily}\selectfont \def\encodingdefault{LGR}}} \fi % \end{macrocode} % \subsection{Page layout} % \begin{macrocode} \RequirePackage{geometry} \ifsuftesi@defaultparindent \relax \else \parindent1em \fi \geometry{heightrounded} \ifsuftesi@nocrop \relax \else \RequirePackage[a4,cam,center]{crop} \fi \ifsuftesi@periodical \geometry{ textheight= 165mm, textwidth= 110mm, paperwidth= 170mm, paperheight= 240mm, marginratio= 2:3, marginparwidth= 75pt, marginparsep= 10pt} \else \ifsuftesi@compact \geometry{ textheight= 165mm, textwidth= 110mm, paperwidth= 160mm, paperheight= 240mm, marginratio= 2:3, marginparwidth= 65pt, marginparsep= 10pt} \else \ifsuftesi@supercompact \geometry{ textheight= 150mm, textwidth= 100mm, paperwidth= 140mm, paperheight= 210mm, marginratio= 2:3, marginparwidth= 50pt, marginparsep= 9pt} \else \ifsuftesi@elements \geometry{% textwidth= 251pt, textheight= 502pt, paperwidth= 374pt, paperheight= 648pt, marginparwidth= 60pt, marginparsep= 18pt, outer= 90pt, top= 64pt} \else \ifcase\@ptsize\relax \geometry{% textwidth= 312pt, textheight= 624pt}\or \geometry{% textwidth= 324pt, textheight= 648pt}\or \geometry{% textwidth= 324pt, textheight= 648pt} \fi \geometry{% a4paper, includehead, heightrounded, marginparwidth= 82pt, marginparsep= 12pt, hmarginratio= 1:2, vmarginratio= 1:2} \fi \fi \fi \fi % \end{macrocode} % A trick to produce one-side documents: % \begin{macrocode} \if@twoside \relax \else \geometry{hmarginratio=1:1} \fi % \end{macrocode} % \subsection{Section titles} % \begin{macrocode} \RequirePackage{titlesec} \newlength{\sectionsep} \setlength{\sectionsep}{\dimexpr(\baselineskip) plus 1pt minus 1pt} \ifsuftesi@periodical \DeclareRobustCommand{\SUF@chaptersize}{\large} \else \ifsuftesi@compact \DeclareRobustCommand{\SUF@chaptersize}{\large} \else \ifsuftesi@supercompact \DeclareRobustCommand{\SUF@chaptersize}{\large} \else \DeclareRobustCommand{\SUF@chaptersize}{\Large} \fi \fi \fi % \end{macrocode} % \DescribeMacro{\SUF@titlesmallcaps} % \begin{macrocode} \ifxetex \DeclareRobustCommand{\SUF@titlesmallcaps}[1]{% \addfontfeature{LetterSpace=6}\scshape\MakeTextLowercase{#1}} \DeclareRobustCommand{\SUF@headingsmallcaps}[1]{% \addfontfeature{LetterSpace=6}\scshape\MakeTextLowercase{#1}} \newcommand{\chapnumfont}[1]{% \def\SUF@chapnumfont{\fontspec[Numbers=OldStyle]{#1}}} \chapnumfont{Palatino} \else \DeclareRobustCommand{\SUF@titlesmallcaps}[1]{% \scshape\MakeTextLowercase{\textls[110]{#1}}}% \DeclareRobustCommand{\SUF@headingsmallcaps}[1]{% \scshape\MakeTextLowercase{\textls[110]{#1}}}% \newcommand{\chapnumfont}[1]{% \def\SUF@chapnumfont{\fontfamily{#1}}} \chapnumfont{pplj} \fi % \end{macrocode} % \DescribeMacro{\SUF@thechapter} % \begin{macrocode} \ifsuftesi@romanchap \def\SUF@thechapter{\Roman{chapter}} \else \def\SUF@thechapter{\arabic{chapter}} \fi % \end{macrocode} % \DescribeMacro{\SUF@lr@PARTSwitch} % \DescribeMacro{\SUF@lr@CHAPSwitch} % \DescribeMacro{\SUF@lr@SECswitch} % \DescribeMacro{\SUF@lr@SUBSECswitch} % \DescribeMacro{\SUF@lr@SUBSUBSECswitch} % These macros control the position of the titles and numbers of parts, chapters, % sections, subsections and subsubsection. There are three positions: % left, center and right. % \begin{macrocode} \ifsuftesi@centerpart \def\SUF@lr@PARTSwitch{\filcenter} \else \ifsuftesi@rightpart \def\SUF@lr@PARTSwitch{\filleft} \else \def\SUF@lr@PARTSwitch{\filright} \fi \fi \ifsuftesi@centerchap \def\SUF@lr@CHAPSwitch{\filcenter} \else \ifsuftesi@rightchap \def\SUF@lr@CHAPSwitch{\filleft} \else \def\SUF@lr@CHAPSwitch{\filright} \fi \fi \ifsuftesi@centersec \def\SUF@lr@SECswitch{\filcenter} \else \ifsuftesi@rightsec \def\SUF@lr@SECswitch{\filleft} \else \def\SUF@lr@SECswitch{\filright} \fi \fi \ifsuftesi@centersubsec \def\SUF@lr@SUBSECswitch{\filcenter} \else \ifsuftesi@rightsubsec \def\SUF@lr@SUBSECswitch{\filleft} \else \def\SUF@lr@SUBSECswitch{\filright} \fi \fi \ifsuftesi@centersubsubsec \def\SUF@lr@SUBSUBSECswitch{\filcenter} \else \ifsuftesi@rightsubsubsec \def\SUF@lr@SUBSUBSECswitch{\filleft} \else \def\SUF@lr@SUBSUBSECswitch{\filright} \fi \fi % \end{macrocode} % \DescribeMacro{\SUF@dotchap} % \begin{macrocode} \ifsuftesi@dottedchap \def\SUF@dotchap{.} \else \def\SUF@dotchap{} \fi \ifsuftesi@dottedpart \def\SUF@dotpart{.} \else \def\SUF@dotpart{} \fi % \end{macrocode} % \paragraph{The \opt{elements} style} % \begin{macrocode} \def\SUF@chapnumpos{-73} \ifsuftesi@sufelements \titleformat{\chapter}[block] {}% {\begin{picture}(0,0) \setlength{\unitlength}{1pt} \SUF@chapnumfont% \ifsuftesi@elements \ifsuftesi@periodical \fontsize{80}{80}\selectfont% \def\SUF@chapnumpos{-83} \else \ifsuftesi@compact \fontsize{80}{80}\selectfont% \def\SUF@chapnumpos{-83} \else \ifsuftesi@supercompact \fontsize{64}{64}\selectfont% \def\SUF@chapnumpos{-73} \else \fontsize{64}{64}\selectfont% \def\SUF@chapnumpos{-73} \fi\fi\fi \else \fontsize{95}{95}\selectfont% \def\SUF@chapnumpos{-83} \fi \put(0,\SUF@chapnumpos){% \hskip\dimexpr(\textwidth+\marginparsep)% \textcolor{sufgray}{\SUF@thechapter}}% \end{picture}}% {0pt} {\Large\SUF@titlesmallcaps} [\rule{\textwidth}{.1pt}] \titlespacing*{\chapter}{0em}{-16pt}{10pt}[0em] \titleformat{\section}[block] {\filright} {\textnormal\thesection} {1em} {\SUF@titlesmallcaps} \titlespacing*{\section}{0em}{1em}{1em}[0em] \titleformat{\subsection}[block] {\filright\normalsize\itshape} {\textnormal\thesubsection} {1em} {} \titlespacing*{\subsection}{0em}{\baselineskip}{\baselineskip}[0em] \titleformat{\subsubsection}[block] {\filright\normalsize} {\textnormal\thesubsubsection} {1em} {} \titlespacing*{\subsubsection}{0em}{\baselineskip}{\baselineskip}[0em] \else % \end{macrocode} % \paragraph{The default styles} % \DescribeMacro{\SUF@PART@StyleSwitch} % \DescribeMacro{\SUF@CHAP@StyleSwitch} % \DescribeMacro{\SUF@SEC@StyleSwitch} % \DescribeMacro{\SUF@SUBSEC@StyleSwitch} % \DescribeMacro{\SUF@SUBSUBSEC@StyleSwitch} % \begin{macrocode} \def\SUF@PART@StyleSwitch{% \ifsuftesi@smallcapspart \expandafter\SUF@titlesmallcaps \else \ifsuftesi@italicpart \itshape \else \fi \fi} \def\SUF@CHAP@StyleSwitch{% \ifsuftesi@smallcapschap \expandafter\SUF@titlesmallcaps \else \ifsuftesi@italicchap \itshape \else \fi \fi} \def\SUF@SEC@StyleSwitch{% \ifsuftesi@smallcapssec \expandafter\SUF@titlesmallcaps \else \ifsuftesi@italicsec \itshape \else \fi \fi} \def\SUF@SUBSEC@StyleSwitch{% \ifsuftesi@smallcapssubsec \expandafter \SUF@titlesmallcaps \else \ifsuftesi@italicsubsec \itshape \else \fi \fi } \def\SUF@SUBSUBSEC@StyleSwitch{% \ifsuftesi@smallcapssubsubsec \expandafter \SUF@titlesmallcaps \else \ifsuftesi@italicsubsubsec \itshape \else \fi \fi} % \end{macrocode} % \subparagraph{Redefinitions for \opt{`article'} mode} % \begin{macrocode} \ifsuftesi@article \def\chapter#1{\ClassError{suftesi} {\noexpand\chapter level is not defined using 'article' option} {\noexpand\chapter level is not defined using 'article' option}} \setcounter{tocdepth}{3} \setcounter{secnumdepth}{3} \renewcommand\thesection{% \@arabic\c@section} \renewcommand\thesubsection{% \thesection.\@arabic\c@subsection} \renewcommand\thesubsubsection{% \thesubsection.\@arabic\c@subsubsection} \renewcommand\theparagraph{% \thesubsubsection.\@arabic\c@paragraph} \renewcommand\thesubparagraph{% \theparagraph.\@arabic\c@subparagraph} \titleclass{\part}{straight} \titlespacing*{\part}{0ex}{2\sectionsep}{2\sectionsep}[0ex] \else \fi % \end{macrocode} % \subparagraph{The default \opt{`book'} mode} % \begin{macrocode} % \end{macrocode} % \DescribeMacro{\part} % \begin{macrocode} \ifsuftesi@numparpart \titleformat{\part}[display] {\SUF@chaptersize\SUF@lr@PARTSwitch} {\SUF@PART@StyleSwitch\partname\hskip1em\thepart\SUF@dotpart} {2ex} {\SUF@PART@StyleSwitch} \else \titleformat{\part}[hang] {\SUF@chaptersize\SUF@lr@PARTSwitch} {\SUF@PART@StyleSwitch\partname\hskip1em\thepart\SUF@dotpart} {3em} {\SUF@PART@StyleSwitch} \fi % \end{macrocode} % \DescribeMacro{\chapter} % \begin{macrocode} \ifsuftesi@numparchap \titleformat{\chapter}[display] {\SUF@chaptersize\SUF@lr@CHAPSwitch} {\SUF@thechapter\SUF@dotchap} {2ex} {\SUF@CHAP@StyleSwitch} \else \titleformat{\chapter}[hang] {\SUF@chaptersize\SUF@lr@CHAPSwitch} {\SUF@thechapter\SUF@dotchap} {3em} {\SUF@CHAP@StyleSwitch} \fi \ifsuftesi@numparchap \def\SUF@ADJnumparchap{-2.5\baselineskip} \else \def\SUF@ADJnumparchap{0pt} \fi \ifsuftesi@periodical \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@compact \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@supercompact \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \titlespacing*{\chapter}{0em}{% \dimexpr(6ex+\SUF@ADJnumparchap)}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{6ex}{18ex} \fi \fi \fi % \end{macrocode} % \DescribeMacro{\section} % \begin{macrocode} \ifsuftesi@numparsec \titleformat{\section}[display] {\SUF@lr@SECswitch} {\thesection} {0ex} {\SUF@SEC@StyleSwitch} \titlespacing*{\section}{0em}{\sectionsep}{\sectionsep}[0em] \else \titleformat{\section}[hang] {\SUF@lr@SECswitch} {\thesection} {1em} {\SUF@SEC@StyleSwitch} \titlespacing*{\section}{0ex}{\sectionsep}{\sectionsep}[0ex] \fi % \end{macrocode} % \DescribeMacro{\subsection} % \begin{macrocode} \ifsuftesi@numparsubsec \titleformat{\subsection}[display] {\SUF@lr@SUBSECswitch} {\textnormal\thesubsection} {0ex} {\SUF@SUBSEC@StyleSwitch} \titlespacing*{\subsection}{0em}{\sectionsep}{\sectionsep}[0em] \else \titleformat{\subsection}[hang] {\SUF@lr@SUBSECswitch} {\textnormal\thesubsection} {1em} {\SUF@SUBSEC@StyleSwitch} \titlespacing*{\subsection}{\parindent}{\sectionsep}{\sectionsep}[0ex] \fi % \end{macrocode} % \DescribeMacro{\subsubsection} % \begin{macrocode} \ifsuftesi@numparsubsubsec \titleformat{\subsubsection}[display] {\SUF@lr@SUBSUBSECswitch} {\textnormal\thesubsubsection} {0ex} {\SUF@SUBSUBSEC@StyleSwitch} \titlespacing*{\subsubsection}{0em}{\sectionsep}{\sectionsep}[0em] \else \titleformat{\subsubsection}[hang] {\SUF@lr@SUBSUBSECswitch} {\textnormal\thesubsubsection} {1em} {\SUF@SUBSUBSEC@StyleSwitch} \titlespacing*{\subsubsection}{\parindent}{\sectionsep}{\sectionsep}[0ex] \fi \fi % \end{macrocode} % \DescribeMacro{\paragraph} % \begin{macrocode} \titleformat{\paragraph}[runin] {} {\theparagraph} {.5em} {\itshape} [{.}\hspace*{1em}] \titlespacing*{\paragraph}{\parindent}{.5\sectionsep}{.5\sectionsep} % \end{macrocode} % \DescribeMacro{\subparagraph} % \begin{macrocode} \titleformat{\subparagraph}[runin] {} {\thesubparagraph} {.5em} {} [{.}\hspace*{1em}] \titlespacing*{\subparagraph}{\parindent}{.5\sectionsep}{.5\sectionsep} % \end{macrocode} % \subsubsection{\sty{biblatex} settings} % The \sty{biblatex} package uses the \sty{book} class % definitions of bibliography and list of shorthands, % so we must redefine them according to the styles of \sty{suftesi}, % which does not use uppercase letters in the headings. % \begin{macrocode} \ifsuftesi@article \AtBeginDocument{% \@ifpackageloaded{biblatex}{% \defbibheading{bibliography}[\refname]{% \section*{#1}% \markboth{#1}{#1}} \defbibheading{shorthands}[\losname]{% \section*{#1}% \markboth{#1}{#1}} \defbibheading{bibintoc}[\refname]{% \section*{#1}% \addcontentsline{toc}{section}{#1}% \markboth{#1}{#1}} \defbibheading{losintoc}[\losname]{% \section*{#1}% \addcontentsline{toc}{section}{#1}% \markboth{#1}{#1}} \defbibheading{bibnumbered}[\refname]{% \section{#1}% \if@twoside\markright{#1}\fi} \defbibheading{losnumbered}[\losname]{% \section{#1}% \if@twoside\markright{#1}\fi} \defbibheading{subbibliography}[\refname]{% \subsection*{#1}} \defbibheading{subbibintoc}[\refname]{% \subsection*{#1}% \addcontentsline{toc}{subsection}{#1}} \defbibheading{subbibnumbered}[\refname]{% \subsection{#1}}}% {\relax}% }% \else \AtBeginDocument{% \@ifpackageloaded{biblatex}{% \defbibheading{bibliography}[\bibname]{% \chapter*{#1}% \markboth{#1}{#1}} \defbibheading{shorthands}[\losname]{% \chapter*{#1}% \markboth{#1}{#1}} \defbibheading{bibintoc}[\bibname]{% \chapter*{#1}% \addcontentsline{toc}{chapter}{#1}% \markboth{#1}{#1}} \defbibheading{losintoc}[\losname]{% \chapter*{#1}% \addcontentsline{toc}{chapter}{#1}% \markboth{#1}{#1}} \defbibheading{bibnumbered}[\bibname]{% \chapter{#1}% \if@twoside\markright{#1}\fi} \defbibheading{losnumbered}[\losname]{% \chapter{#1}% \if@twoside\markright{#1}\fi} \defbibheading{subbibliography}[\refname]{% \section*{#1}% \if@twoside\markright{#1}\fi} \defbibheading{subbibintoc}[\refname]{% \section*{#1}% \addcontentsline{toc}{section}{#1}% \if@twoside\markright{#1}\fi} \defbibheading{subbibnumbered}[\refname]{% \section{#1}}} {\relax}% }% \fi % \end{macrocode} % \subsection{Title page} % \DescribeMacro{\title} % The new \cmd{title} command has an optional argument % which can be used in the headers. % \begin{macrocode} \renewcommand*{\title}[2][]{\gdef\@headtitle{#1}\gdef\@title{#2}} \edef\title{\noexpand\@dblarg \expandafter\noexpand\csname\string\title\endcsname} \def\@headtitle{--missing title--% \protect\ClassWarningNoLine{suftesi}{% No \string\title\space given \MessageBreak% See the class documentation for explanation}} \def\@title{--missing title--% \protect\ClassWarningNoLine{suftesi}{% No \string\title\space given\MessageBreak% See the class documentation for explanation}} \def\@author{--missing author--% \protect\ClassWarningNoLine{suftesi}{% No \string\author\space given\MessageBreak% See the class documentation for explanation}} % \end{macrocode} % \DescribeMacro{\standardtitle} Reproduces the standard |\maketitle| style: % \begin{macrocode} \let\standardtitle\maketitle % \end{macrocode} % \DescribeMacro{\maketitle} % For |titlepage| (default) option: % \begin{macrocode} \if@titlepage% titlepage \renewcommand\maketitle{\begin{titlepage}% \let\footnotesize\small \let\footnoterule\relax \let \footnote \thanks \renewcommand\thefootnote{\@fnsymbol\c@footnote}% \null\vfil \vskip 60\p@ \begin{center}% {\SUF@chaptersize\color{sufred}\sffamily% \ifsuftesi@smallcapschap% \SUF@titlesmallcaps{\@title} \else \ifsuftesi@article \ifsuftesi@smallcapssec \SUF@titlesmallcaps{\@title} \else \@title \fi \else \@title \fi \fi\par}% \vskip 3em% {\small\lineskip .75em% \begin{tabular}[t]{c}% \@author \end{tabular}\par}% \vskip 1.5em% {\small\@date\par}% \end{center}\par \@thanks \vfil\null \end{titlepage}% \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@thanks\@empty \global\let\@date\@empty \global\let\date\relax \global\let\and\relax } \else % \end{macrocode} % \DescribeMacro{\maketitle} % For |notitlepage| option: % \begin{macrocode} \renewcommand\maketitle{\par \begingroup \renewcommand\thefootnote{\@fnsymbol\c@footnote}% \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% \long\def\@makefntext##1{\parindent 1em\noindent \hb@xt@1.8em{% \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% \if@twocolumn \ifnum \col@number=\@ne \@maketitle \else \twocolumn[\@maketitle]% \fi \else \newpage \global\@topnum\z@ % Prevents figures from going at top of page. \@maketitle \fi \thispagestyle{plain}\@thanks \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@maketitle\relax \global\let\@thanks\@empty \global\let\@date\@empty \global\let\date\relax \global\let\and\relax} \def\@maketitle{% \newpage \null \vskip 2em% \begin{center}% \let \footnote \thanks {\SUF@chaptersize\color{sufred}\sffamily% \ifsuftesi@smallcapschap% \SUF@titlesmallcaps{\@title} \else \ifsuftesi@article \ifsuftesi@smallcapssec \SUF@titlesmallcaps{\@title} \else \@title \fi \else \@title \fi \fi\par}% \vskip 1.5em% {\small\lineskip .5em% \begin{tabular}[t]{c}% \@author\par \end{tabular}\par}% \vskip 1em% {\small\@date\par}% \end{center}% \par \vskip 1.5em} \fi % \end{macrocode} % \subsection{The frontispiece} % \begin{macrocode} \AtBeginDocument{% \@ifpackageloaded{frontespizio}{% \ifsuftesi@periodical \Margini {5.5cm}{7cm}{4.5cm}{1cm} \else \ifsuftesi@compact \Margini{1cm}{7cm}{6cm}{1cm}% \Rientro{1cm}% \else \ifsuftesi@supercompact \Margini{1cm}{10cm}{8cm}{1cm}% \Rientro{1cm}% \else \fi \fi \fi }% {\relax}} % \end{macrocode} % \begin{environment}{theindex} % \begin{macrocode} \renewenvironment{theindex} {\if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi \twocolumn[\@makeschapterhead{\indexname}]% \@mkboth{\indexname}{\indexname}% \thispagestyle{plain}% \raggedright\small% \parindent\z@ \parskip\z@ \@plus .3\p@\relax \columnseprule \z@ \columnsep 35\p@ \let\item\@idxitem} {\if@restonecol\onecolumn\else\clearpage\fi} % \end{macrocode} % \end{environment} % \subsection{Appendix} % \DescribeMacro{\appendicesname} % \DescribeMacro{\appendixpage} % \begin{macrocode} \newcommand{\appendicesname}[1]{\def\SUF@appendices{#1}} \appendicesname{Appendici} \newcommand{\appendixpage}{\SUF@appendixpage} \def\SUF@appendixpage{% \@mainmattertrue \titlecontents{part} [0em] {\addvspace{3ex}} {} {} {} [\addvspace{1ex}] \let\contentspage\relax \cleardoublepage \thispagestyle{empty} \addcontentsline{toc}{part}{\SUF@appendices} \begingroup \centering \null\vfil {\LARGE\SUF@appendices\par} \vfil \endgroup \cleardoublepage \titlecontents{part} [0em] {\addvspace{3ex}\partname~} {\makebox[\SUF@label@part][l]{\thecontentslabel}\hspace*{1em}} {} {} [\addvspace{1ex}] } % \end{macrocode} % \DescribeMacro{\appendix} % \begin{macrocode} \ifsuftesi@sufelements \renewcommand\appendix{\par \setcounter{chapter}{0}% \setcounter{section}{0}% \gdef\@chapapp{\appendixname}% \gdef\thechapter{\@Alph\c@chapter} \titleformat{\chapter}[block] {\vskip-22pt}% {\small\SUF@titlesmallcaps{\appendixname}~\Alph{chapter}:\hskip.5em} {0pt} {\small\SUF@titlesmallcaps} [\rule{\textwidth}{.4pt}] \titlespacing*{\chapter}{0em}{-16pt}{10pt}[0em]} \else \ifsuftesi@article \renewcommand\appendix{\par \setcounter{section}{0}% \setcounter{subsection}{0}% \gdef\thesection{\@Alph\c@section}} \else \renewcommand\appendix{\par \setcounter{chapter}{0}% \setcounter{section}{0}% \gdef\@chapapp{\appendixname}% \gdef\thechapter{\@Alph\c@chapter}} \fi \fi % \end{macrocode} % \subsection{Headings} % \begin{macrocode} \RequirePackage{fancyhdr} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footnoterule}{} \def\SUF@versionstring{\texttt{Version of \today}} % \end{macrocode} % \paragraph{The \opt{elements} headers} % \begin{macrocode} \ifsuftesi@elements% \renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}} \fancypagestyle{elements}{% \setlength{\unitlength}{1pt} \fancyhf{} \fancyfoot[LE,RO]{\thepage} \fancyhead[RO]{% \begin{picture}(0,0) \put(0,-104){% \hskip\marginparsep \parbox[t]{\marginparwidth}{\itshape\raggedright\leftmark}}% \end{picture}} \fancyhead[LE]{% \begin{picture}(0,0) \put(0,-104){% \hskip-\dimexpr(\marginparwidth+\marginparsep) \parbox[t]{\marginparwidth}{\itshape\raggedleft\rightmark}}% \end{picture}}% }% \else % \end{macrocode} % \paragraph{The \opt{default} headers} % \begin{macrocode} \renewcommand{\chaptermark}[1]{% \markboth{\chaptertitlename\ \SUF@thechapter}{#1}} \ifsuftesi@article \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} \else \renewcommand{\sectionmark}[1]{} \fi \fi % \end{macrocode} % \subparagraph{The \opt{plain} style} % \begin{macrocode} \fancypagestyle{plain}{\pagestyle{sufplain}} % \end{macrocode} % \subparagraph{The \opt{sufplain} style} % \begin{macrocode} \fancypagestyle{sufplain}{% \fancyhf{}% \fancyfoot[RE,LO]{% \ifsuftesi@bozza\footnotesize\SUF@versionstring\else\fi} \fancyfoot[C]{\footnotesize\SUF@thepage}} % \end{macrocode} % \subparagraph{The \opt{centerheader} style} % \begin{macrocode} \def\SUF@LR@MarkSwitch{% \ifsuftesi@article \ifsuftesi@authortitle \SUF@leftmark \else \SUF@rightmark \fi \else \SUF@leftmark \fi} \fancypagestyle{centerheader}{% \fancyhf{}% \fancyfoot[RE,LO]{% \ifsuftesi@bozza\footnotesize\SUF@versionstring\else\fi} \fancyhead[CO]{\footnotesize\xheadbreakfalse\SUF@rightmark} \fancyhead[CE]{\footnotesize\xheadbreakfalse% \SUF@LR@MarkSwitch} \fancyfoot[C]{\footnotesize\SUF@thepage}% }% % \end{macrocode} % \subparagraph{The \opt{sufdefault} style} % \begin{macrocode} \fancypagestyle{sufdefault}{% \fancyhf{}% \fancyfoot[RE,LO]{% \ifsuftesi@bozza\footnotesize\SUF@versionstring\else\fi} \fancyhead[LE,RO]{\footnotesize\SUF@thepage} \fancyhead[LO]{\footnotesize\xheadbreakfalse\SUF@rightmark} \fancyhead[RE]{\footnotesize\xheadbreakfalse% \SUF@LR@MarkSwitch} }% \ifsuftesi@italicRhead \def\SUF@Rheadstyle{\itshape} \else \ifsuftesi@smallcapsRhead \def\SUF@Rheadstyle{\SUF@headingsmallcaps} \else \def\SUF@Rheadstyle{} \fi \fi \ifsuftesi@italicLhead \def\SUF@Lheadstyle{\itshape} \else \ifsuftesi@smallcapsLhead \def\SUF@Lheadstyle{\SUF@headingsmallcaps} \else \def\SUF@Lheadstyle{} \fi \fi \ifsuftesi@authortitle \def\SUF@rightmark{\SUF@Rheadstyle{\@headtitle}} \def\SUF@leftmark{\SUF@Lheadstyle{\@author}} \else \def\SUF@rightmark{\SUF@Rheadstyle{\rightmark}} \def\SUF@leftmark{\SUF@Lheadstyle{\SUF@leftrightmark}} \fi \ifsuftesi@smallcapsheader \def\SUF@thepage{\SUF@headingsmallcaps{\thepage}} \else \def\SUF@thepage{\thepage} \fi \def\SUF@leftrightmark{% \if@mainmatter\leftmark\else\rightmark\fi} % \end{macrocode} % Setting the default page style: % \begin{macrocode} \pagestyle{sufdefault} \ifsuftesi@centerheader\pagestyle{centerheader}\else\fi \ifsuftesi@sufplain\pagestyle{sufplain}\else\fi \ifsuftesi@elements\pagestyle{elements}\else\fi % \end{macrocode} % \subsection{Text elements} % \subsubsection{Captions} % \begin{macrocode} \RequirePackage{caption} \ifsuftesi@elements \captionsetup{labelsep=period,font={small,sf},singlelinecheck=false} \else \captionsetup{labelsep=period,font=small,singlelinecheck=false} \fi % \end{macrocode} % \subsubsection{Epigraphs} % \begin{macrocode} \RequirePackage{epigraph} \ifsuftesi@elements \relax \else \ifsuftesi@sufelements \relax \else \setlength{\beforeepigraphskip}{-3\baselineskip} \setlength{\afterepigraphskip}{2\baselineskip} \setlength{\epigraphrule}{0pt} \renewcommand{\textflush}{flushepinormal} \renewcommand{\sourceflush}{flushepinormal} \renewcommand{\epigraphsize}{\footnotesize} \fi \fi % \end{macrocode} % \subsubsection{Lists} % \begin{macrocode} \RequirePackage[inline]{enumitem} \setlist{labelsep=0.5\parindent,noitemsep,font=\normalfont} \setdescription{font=\normalfont\itshape,noitemsep} \ifsuftesi@alignlist \setenumerate[1]{leftmargin=1\parindent,label=\arabic*.} \setenumerate[2]{leftmargin= 1.5\parindent,label=\alph*.} \setenumerate[3]{leftmargin= 1.5\parindent,label=\roman*.} \setitemize[1]{leftmargin=1\parindent} \setitemize[2]{leftmargin=1.5\parindent} \setitemize[3]{leftmargin=1.5\parindent} \else \ifsuftesi@indentlist \setenumerate[1]{leftmargin=2\parindent,label=\arabic*.} \setenumerate[2]{leftmargin= 2.5\parindent,label=\alph*.} \setenumerate[3]{leftmargin= 2.5\parindent,label=\roman*.} \setitemize[1]{leftmargin=2\parindent} \setitemize[2]{leftmargin=2.5\parindent} \setitemize[3]{leftmargin=2.5\parindent} \else \setenumerate[1]{leftmargin=0pt,label=\arabic*.} \setenumerate[2]{leftmargin= 1.3\parindent,label=\alph*.} \setenumerate[3]{leftmargin= 1.3\parindent,label=\roman*.} \setitemize[1]{leftmargin=0pt} \setitemize[2]{leftmargin=1.3\parindent} \setitemize[3]{leftmargin=1.3\parindent} \fi \fi \renewcommand\labelitemii{\normalfont \textendash} % \end{macrocode} % \subsubsection{Block Quotations} % \DescribeEnv{quotation} % \DescribeEnv{quote} % \DescribeEnv{verse} % New \env{quotation} and \env{quote} environments according to a popular Italian style. % The font size is the same of the footnotes and the margins are set to \cmd{parindent}. % \begin{macrocode} \renewenvironment{quotation} {\list{}{\listparindent\parindent% \itemindent \listparindent \leftmargin \parindent \ifsuftesi@ralignquotation \else \rightmargin \parindent \fi \parsep \z@ \@plus\p@}% \item\relax% \ifsuftesi@smallquotation \small \else \footnotesize \fi\noindent\ignorespaces} {\endlist} \renewenvironment{quote} {\list{}{\leftmargin \parindent \ifsuftesi@ralignquotation\ \else \rightmargin \parindent \fi}% \item\relax% \ifsuftesi@smallquotation \small \else \footnotesize \fi}%\ignorespaces? {\endlist} \renewenvironment{verse} {\let\\\@centercr \list{}{\itemsep \z@ \itemindent -1.5em% \listparindent\itemindent \rightmargin \leftmargin \advance\leftmargin 1.5em}% \item\relax \ifsuftesi@smallquotation \small \else \footnotesize \fi} {\endlist} % \end{macrocode} % \subsubsection{Notes} % \DescribeMacro{\@makefntext} % \begin{macrocode} \ifsuftesi@standardfootnote \relax \else \ifsuftesi@dottedfootnote \renewcommand\@makefntext{\@thefnmark.\hskip.5em} \else % \end{macrocode} % By default the footnotes are printed in the style of % \emph{The Elements of Typographic Styles} by R. Bringhurst: % \begin{macrocode} \renewcommand\@makefntext{% \hskip-2.5em\makebox[2em][r]{\@thefnmark}\hskip.5em} \fi \fi % \end{macrocode} % \DescribeMacro{\marginpar} % The |\marginpar| command is redefined according to the look of \emph{Classic Thesis} by André \textcite{Miede:2011}: % \begin{macrocode} \def\SUF@mpsetup{%thanks to Lorenzo Pantieri and Enrico Gregorio \ifsuftesi@elements\relax \else\itshape\fi \footnotesize% \parindent=0pt \lineskip=0pt \lineskiplimit=0pt % \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300% \doublehyphendemerits=100000% \finalhyphendemerits=\doublehyphendemerits} \let\oldmarginpar\marginpar \renewcommand{\marginpar}[1]{\oldmarginpar% [\SUF@mpsetup\raggedleft\hspace{0pt}{#1}]% {\SUF@mpsetup\raggedright\hspace{0pt}{#1}}} \ifsuftesi@nomarginpar \renewcommand\marginpar[2][]{} \else \fi % \end{macrocode} % \subsubsection{Abstract} % This is the macro that defines the \env{abstract} environment in \sty{article} class. In \sty{suftesi} it simply prints the abstract name in roman font: % \begin{macrocode} \if@titlepage \newenvironment{abstract}{% \titlepage \null\vfil \@beginparpenalty\@lowpenalty \begin{center}% \abstractname \@endparpenalty\@M \end{center}}% {\par\vfil\null\endtitlepage} \else \newenvironment{abstract}{% \if@twocolumn \section*{\abstractname}% \else \small \begin{center}% {\abstractname\vspace{-.5em}\vspace{\z@}}% \end{center}% \quotation \fi} {\if@twocolumn\else\endquotation\fi} \fi \newcommand\abstractname{Abstract} % \end{macrocode} % \subsubsection{Colophon} % Some useful commands to print a colophon or a copyright notice. % \begin{macrocode} \edef\SUF@engine{% \ifxetex \noexpand\XeLaTeX \else \ifluatex Lua\noexpand\LaTeX \else \noexpand\LaTeX \fi \fi} % \end{macrocode} % \DescribeMacro{\colophon} % \begin{macrocode} \newcommand{\colophon}[3][]{% \thispagestyle{empty} \null \vfill \def\next{#2} \ifx\next\@empty\else \noindent Copyright \copyright{} \the\year~#2\\[1ex] Tutti i diritti riservato \fi \vfill {\small\noindent Questo lavoro è stato composto con \SUF@engine{}% \def\next{#1} \ifx\next\@empty\else su #1 \fi usando la classe \textsf{suftesi} di Ivan Valbusa\index{Valbusa, Ivan}. #3\par} \cleardoublepage} % \end{macrocode} % \DescribeMacro{\bookcolophon} % \begin{macrocode} \newcommand{\bookcolophon}[2]{% \thispagestyle{empty} \null \vfill \noindent #1 \vfill {\small\noindent #2\par} \cleardoublepage} % \end{macrocode} % \DescribeMacro{\artcolophon} % \begin{macrocode} \newcommand{\artcolophon}[1]{% \thispagestyle{empty} \null \vfill {\small\noindent #1\par}} % \end{macrocode} % \DescribeMacro{\finalcolophon} % \begin{macrocode} \newcommand{\finalcolophon}[1]{% \thispagestyle{empty} \null\vspace*{\stretch{1}} \begin{center} \begin{minipage}{.5\textwidth} \centering\small #1 \end{minipage} \end{center} \vspace*{\stretch{6}} } % \end{macrocode} % \subsection{TOC, LOF, LOT} % \begin{macrocode} \RequirePackage{titletoc} % \end{macrocode} % \subsubsection{The \opt{dottedtoc} and \opt{raggedtoc} options} % \DescribeMacro{\SUF@titlerule} % \DescribeMacro{\SUF@chaptitlerule} % \begin{macrocode} \ifsuftesi@elements \def\SUF@tochapsize{} \else \def\SUF@tochapsize{\large} \fi \ifsuftesi@dottedtoc \def\SUF@titlerule{\titlerule*{\footnotesize .\ }} \def\SUF@chaptitlerule{\titlerule*{}} \else \ifsuftesi@raggedtoc \def\SUF@titlerule{\hspace{1.5em}} \def\SUF@chaptitlerule{\hspace{1.5em}} \else \def\SUF@titlerule{\titlerule*{}} \def\SUF@chaptitlerule{\titlerule*{}} \fi \fi % \end{macrocode} % \DescribeMacro{\SUF@label@chapter} % All the lengths depend on |\SUF@label@chapter| % so we define this first. % \begin{macrocode} \newlength\SUF@label@chapter \setlength\SUF@label@chapter{.5em} % \end{macrocode} % \DescribeMacro{\toclabelwidth} % |\toclabelwidth| is providet to % adjust the label width: % \begin{macrocode} \newcommand*{\toclabelwidth}[1]{\setlength\SUF@label@chapter{#1}} % \end{macrocode} % \DescribeMacro{\SUF@tochang} % This macro controls the space between page number and chapter % label using the \opt{tocpageleft} option: % \begin{macrocode} \newlength{\SUF@tochang} \setlength{\SUF@tochang}{3em} \AtBeginDocument{ \newlength\SUF@label@part \newlength\SUF@label@section \newlength\SUF@label@subsection \newlength\SUF@label@subsubsection \newlength\SUF@label@paragraph \newlength\SUF@label@subparagraph \newlength\SUF@label@figure \newlength\SUF@label@table \setlength\SUF@label@part {\SUF@label@chapter} \setlength\SUF@label@section {\dimexpr(\SUF@label@chapter+.5em)} \setlength\SUF@label@subsection {\dimexpr(\SUF@label@section+.5em)} \setlength\SUF@label@subsubsection {\dimexpr(\SUF@label@subsection+.5em)} \setlength\SUF@label@paragraph {\dimexpr(\SUF@label@subsubsection+.5em)} \setlength\SUF@label@subparagraph {\dimexpr(\SUF@label@paragraph+.5em)} \setlength\SUF@label@figure {\SUF@label@chapter} \setlength\SUF@label@table {\SUF@label@chapter} } % \end{macrocode} % The part entry is the same in both default and % \opt{topcpageleft} style. % \begin{macrocode} \titlecontents{part} [0em] {\addvspace{3ex}\SUF@tocchapsize\partname~} {\makebox[\SUF@label@part][l]{\thecontentslabel}\hspace*{1em}} {} {} [\addvspace{1ex}] % \end{macrocode} % \subsubsection{The \opt{tocpageleft} table of contents} % \begin{macrocode} \ifsuftesi@tocpageleft % \end{macrocode} % \DescribeMacro{\contentsmargin} % First we reset the right margin to zero: % \begin{macrocode} \contentsmargin{0pt} % \end{macrocode} % \DescribeMacro{\SUF@tochang@\meta{level}} % \DescribeMacro{\SUF@addto@tochang@\meta{level}} % \begin{macrocode} \AtBeginDocument{ \newlength\SUF@tochang@chap \newlength\SUF@tochang@sec \newlength\SUF@tochang@subsec \newlength\SUF@tochang@subsubsec \newlength\SUF@tochang@par \newlength\SUF@tochang@subpar \newlength\SUF@tochang@fig \newlength\SUF@tochang@tab \newlength\SUF@addto@tochang@chap \newlength\SUF@addto@tochang@sec \newlength\SUF@addto@tochang@subsec \newlength\SUF@addto@tochang@subsubsec \newlength\SUF@addto@tochang@par \newlength\SUF@addto@tochang@subpar \newlength\SUF@addto@tochang@fig \newlength\SUF@addto@tochang@tab \setlength\SUF@tochang@chap {\dimexpr(1em+\SUF@tochang+\SUF@label@chapter+1em)} \setlength\SUF@tochang@sec {\dimexpr(\SUF@tochang@chap+\SUF@label@section+1em)} \setlength\SUF@tochang@subsec {\dimexpr(\SUF@tochang@sec+\SUF@label@subsection+1em)} \setlength\SUF@tochang@subsubsec {\dimexpr(\SUF@tochang@subsec+\SUF@label@subsubsection+1em)} \setlength\SUF@tochang@par {\dimexpr(\SUF@tochang@subsubsec+\SUF@label@paragraph+1em)} \setlength\SUF@tochang@subpar {\dimexpr(\SUF@tochang@par+\SUF@label@subparagraph+1em)} \setlength\SUF@tochang@fig {\SUF@tochang@chap} \setlength\SUF@tochang@tab {\SUF@tochang@chap} \setlength\SUF@addto@tochang@chap {\SUF@tochang} \setlength\SUF@addto@tochang@sec {\dimexpr(\SUF@addto@tochang@chap+\SUF@label@section+.5em)} \setlength\SUF@addto@tochang@subsec {\dimexpr(\SUF@addto@tochang@sec+\SUF@label@subsection+.5em)} \setlength\SUF@addto@tochang@subsubsec {\dimexpr(\SUF@addto@tochang@subsec+\SUF@label@subsubsection+.5em)} \setlength\SUF@addto@tochang@par {\dimexpr(\SUF@addto@tochang@subsubsec+\SUF@label@paragraph+.5em)} \setlength\SUF@addto@tochang@subpar {\dimexpr(\SUF@addto@tochang@par+\SUF@label@subparagraph+.5em)} \setlength\SUF@addto@tochang@fig {\SUF@addto@tochang@chap} \setlength\SUF@addto@tochang@tab {\SUF@addto@tochang@chap} } % \end{macrocode} % \paragraph{TOC entries} % \begin{macrocode} \titlecontents{chapter} [\SUF@tochang@chap] {\addvspace{2ex}} {\hskip-\SUF@tochang@chap% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@chap% \makebox[\SUF@label@chapter][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\SUF@tochang@chap% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@chap} {} [\addvspace{1ex}] \titlecontents{section} [\SUF@tochang@sec] {} {\hskip-\SUF@tochang@sec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@sec% \makebox[\SUF@label@section][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\SUF@tochang@sec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@sec% \makebox[\SUF@label@section][l]{\thecontentslabel}\hspace*{1em}} {} \titlecontents{subsection} [\SUF@tochang@subsec] {} {\hskip-\SUF@tochang@subsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsec% \makebox[\SUF@label@subsection][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\SUF@tochang@subsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsec% \makebox[\SUF@label@subsection][l]{\thecontentslabel}\hspace*{1em}} {} \titlecontents{subsubsection} [\SUF@tochang@subsubsec] {} {\hskip-\SUF@tochang@subsubsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsubsec% \makebox[\SUF@label@subsubsection][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\SUF@tochang@subsubsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsubsec% \makebox[\SUF@label@subsubsection][l]{\thecontentslabel}\hspace*{1em}} {} \titlecontents{paragraph} [\SUF@tochang@par] {} {\hskip-\SUF@tochang@par% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@par% \makebox[\SUF@label@paragraph][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\SUF@tochang@par% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@par% \makebox[\SUF@label@paragraph][l]{\thecontentslabel}\hspace*{1em}} {} \titlecontents{subparagraph} [\SUF@tochang@subpar] {} {\hskip-\SUF@tochang@subpar% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subpar% \makebox[\SUF@label@subparagraph][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\SUF@tochang@subpar% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subpar% \makebox[\SUF@label@subparagraph][l]{\thecontentslabel}\hspace*{1em}} {} \titlecontents{figure} [\SUF@tochang@fig] {} {\hskip-\SUF@tochang@fig% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@fig% \makebox[\SUF@label@figure][l]{\thecontentslabel}\hspace*{1em}} {} {} \titlecontents{table} [\SUF@tochang@tab] {} {\hskip-\SUF@tochang@tab% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@tab% \makebox[\SUF@label@table][l]{\thecontentslabel}\hspace*{1em}} {} {} \else % \end{macrocode} % \subsubsection{The default table of contents} % \begin{macrocode} \AtBeginDocument{ \newlength\SUF@tocindent@chap \newlength\SUF@tocindent@sec \newlength\SUF@tocindent@subsec \newlength\SUF@tocindent@subsubsec \newlength\SUF@tocindent@par \newlength\SUF@tocindent@subpar \newlength\SUF@tocindent@fig \newlength\SUF@tocindent@tab \setlength\SUF@tocindent@chap {\dimexpr(\SUF@label@chapter+1em)} \setlength\SUF@tocindent@sec {\dimexpr(\SUF@tocindent@chap+\SUF@label@section+1em)} \setlength\SUF@tocindent@subsec {\dimexpr(\SUF@tocindent@sec+\SUF@label@subsection+1em)} \setlength\SUF@tocindent@subsubsec {\dimexpr(\SUF@tocindent@subsec+\SUF@label@subsubsection+1em)} \setlength\SUF@tocindent@par {\dimexpr(\SUF@tocindent@subsubsec+\SUF@label@paragraph+1em)} \setlength\SUF@tocindent@subpar {\dimexpr(\SUF@tocindent@par+\SUF@label@subparagraph+1em)} \setlength\SUF@tocindent@fig {\SUF@tocindent@chap} \setlength\SUF@tocindent@tab {\SUF@tocindent@chap} } % \end{macrocode} % \paragraph{TOC entries} % \begin{macrocode} \titlecontents{chapter} [\SUF@tocindent@chap] {\addvspace{2ex}} {\hskip-\SUF@tocindent@chap% \makebox[\SUF@label@chapter][l]{\thecontentslabel}\hspace*{1em}\SUF@tochapsize} {\hskip-\SUF@tocindent@chap\SUF@tochapsize} {\SUF@chaptitlerule\contentspage} [\addvspace{1ex}] \titlecontents{section} [\SUF@tocindent@sec] {} {\hskip-\dimexpr(\SUF@label@section+1em)% \makebox[\SUF@label@section][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\dimexpr(\SUF@label@section+1em)% \makebox[\SUF@label@section][l]{\thecontentslabel}\hspace*{1em}} {\ifsuftesi@article\SUF@chaptitlerule% \else\SUF@titlerule\fi\contentspage} \titlecontents{subsection} [\SUF@tocindent@subsec] {} {\hskip-\dimexpr(\SUF@label@subsection+1em)% \makebox[\SUF@label@subsection][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\dimexpr(\SUF@label@subsection+1em)% \makebox[\SUF@label@subsection][l]{\thecontentslabel}\hspace*{1em}} {\SUF@titlerule\contentspage} \titlecontents{subsubsection} [\SUF@tocindent@subsubsec] {} {\hskip-\dimexpr(\SUF@label@subsubsection+1em)% \makebox[\SUF@label@subsubsection][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\dimexpr(\SUF@label@subsubsection+1em)% \makebox[\SUF@label@subsubsection][l]{\thecontentslabel}\hspace*{1em}} {\SUF@titlerule\contentspage} \titlecontents{paragraph} [\SUF@tocindent@par] {} {\hskip-\dimexpr(\SUF@label@paragraph+1em)% \makebox[\SUF@label@paragraph][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\dimexpr(\SUF@label@paragraph+1em)% \makebox[\SUF@label@paragraph][l]{\thecontentslabel}\hspace*{1em}} {\SUF@titlerule\contentspage} \titlecontents{subparagraph} [\SUF@tocindent@subpar] {} {\hskip-\dimexpr(\SUF@label@subparagraph+1em)% \makebox[\SUF@label@subparagraph][l]{\thecontentslabel}\hspace*{1em}} {\hskip-\dimexpr(\SUF@label@subparagraph+1em)% \makebox[\SUF@label@subparagraph][l]{\thecontentslabel}\hspace*{1em}} {\SUF@titlerule\contentspage} \titlecontents{figure} [\SUF@tocindent@fig] {} {\hskip-\dimexpr(\SUF@label@figure+1em)% \makebox[\SUF@label@figure][l]{\thecontentslabel}} {} {\SUF@titlerule\contentspage} \titlecontents{table} [\SUF@tocindent@tab] {} {\hskip-\dimexpr(\SUF@label@table+1em)% \makebox[\SUF@label@table][l]{\thecontentslabel}} {} {\SUF@titlerule\contentspage} \fi % \end{macrocode} % \DescribeMacro{\tableofcontents} % \DescribeMacro{\listoffigures} % \DescribeMacro{\listoftables} % With \opt{article} option the toc, lof and lot % are printed as sections. % \begin{macrocode} \ifsuftesi@article \renewcommand\tableofcontents{% \thispagestyle{empty} \section*{\contentsname \@mkboth{\contentsname}{\contentsname}}% \@starttoc{toc}% \vspace{2ex}% } \renewcommand\listoffigures{% \section*{\listfigurename}% \@mkboth{\listfigurename}% {\listfigurename}% \@starttoc{lof}% \vspace{2ex}% } \renewcommand\listoftables{% \section*{\listtablename}% \@mkboth{% \listtablename}% {\listtablename}% \@starttoc{lot}% \vspace{2ex}% } \else % \end{macrocode} % The default toc, lof and lot are treated as chapters. % \begin{macrocode} \renewcommand\tableofcontents{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\contentsname \@mkboth{% \contentsname} {\contentsname}}% \@starttoc{toc}% \if@restonecol\twocolumn\fi } \renewcommand\listoffigures{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\listfigurename}% \@mkboth{\listfigurename}% {\listfigurename}% \@starttoc{lof}% \if@restonecol\twocolumn\fi } \renewcommand\listoftables{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\listtablename}% \@mkboth{% \listtablename}% {\listtablename}% \@starttoc{lot}% \if@restonecol\twocolumn\fi } \fi % \end{macrocode} % \subsection{New commands} % \DescribeMacro{\chapterintro} % A command to typeset an unnumbered section: % \begin{macrocode} \def\chapterintro{ \@ifstar{\@tempswafalse\@chapterintro}{\@tempswatrue\@chapterintro}} \def\@chapterintro{\phantomsection \if@tempswa\section*{\SUF@fchapterintroname}\fi \addcontentsline{toc}{section}{\SUF@fchapterintroname}} \newcommand{\chapterintroname}[1]{\def\SUF@fchapterintroname{#1}} \chapterintroname{Introduzione} % \end{macrocode} % \DescribeMacro{\headbreak} %Active in the table of contents but not in the text. % \begin{macrocode} \newif\ifheadbreak\headbreakfalse \DeclareRobustCommand{\headbreak} {\ifheadbreak\\\else\fi} % \end{macrocode} % \DescribeMacro{\xheadbreak} % Active in the text but not in the table of contents. % \begin{macrocode} \newif\ifxheadbreak\xheadbreaktrue \DeclareRobustCommand{\xheadbreak} {\ifxheadbreak\\\else\fi} % \end{macrocode} % \DescribeMacro{\tableofcontents} % \begin{macrocode} \let\origtableofcontents\tableofcontents \renewcommand{\tableofcontents}{% \begingroup\headbreaktrue\xheadbreakfalse% \origtableofcontents\endgroup} % \end{macrocode} % Renew |\frontmatter| to have arabic page numbering: % \begin{macrocode} \renewcommand\frontmatter{\cleardoublepage\@mainmatterfalse} \renewcommand\mainmatter{\cleardoublepage\@mainmattertrue} % \end{macrocode} % \subsection{Backward compatibility} % \begin{environment}{bibliografia} % An environment to manually typeset the bibliography. (Use \sty{biblatex} instead!) % \begin{macrocode} \newenvironment{bibliografia}{% \ifsuftesi@article \section*{\refname} \addcontentsline{toc}{section}{\refname} \else \chapter{\bibname}% \fi \normalfont \list{}{% \setlength{\itemindent}{-\parindent} \setlength{\leftmargin}{\parindent} \setlength{\labelwidth}{\leftmargin} \setlength{\parsep}{\parskip} \let\makelabel}} {\endlist} % \end{macrocode} % \end{environment} % \begin{environment}{sigle} % An environment to manually typeset the list of shorthands. (Use \sty{biblatex} instead!) % \begin{macrocode} \newcommand{\losname}{Sigle} \newcommand{\itlabel}[1]{\itshape\hbox to 6em{#1}} \newenvironment{sigle}{% \chapter{\losname} \normalfont \list{}{% \setlength{\labelsep}{0.5em} \setlength{\itemindent}{0pt} \setlength{\leftmargin}{6em} \setlength{\labelwidth}{\leftmargin} \setlength{\listparindent}{\parindent} \setlength{\parsep}{\parskip} \let\makelabel\itlabel}} {\endlist} % \end{macrocode} % \end{environment} % \DescribeMacro{\hemph} % In a previous version the \cmd{hemph} command was provided % to fix a bug in the hyphenation of some italian expressions % like ``dell'\emph{encyclopaedia}''. The bug has been fixed by Claudio Beccari % so the \cmd{hemph} command is provided only for % backward compatibility: % \begin{macrocode} \let\hemph\emph % \end{macrocode} % \subsection{Final settings} % The first line of all sections is indented by default % using \XeLaTeX{} with italian as main language. Anyway this is % incongruous with the \LaTeX{} default. % \begin{macrocode} \ifxetex\let\@afterindenttrue\@afterindentfalse\else\fi % \end{macrocode} % Just one touch of french typography: % \begin{macrocode} \frenchspacing % \end{macrocode} % % % \subsection{The bibliography file} % % \iffalse %<*bib> % \fi % \begin{verbatim} @book{Morison:1111, Author = {Stanley Morison}, Booktitle = {First Principles of Typography}, Date = {1936}, Location = {Cambridge}, Origdate = {2008}, Origlocation = {Pisa-Roma}, Origpublisher = {Fabrizio Serra editore}, Origtitle = {I principi fondamentali della tipografia}, Publisher = {Cambridge University Press}, Title = {First Principles of Typography}} @book{Eco:1980, Author = {Umberto Eco}, Booktitle = {Il nome della rosa}, Location = {Milano}, Publisher = {Bompiani}, Title = {Il nome della rosa}, Year = {1980}} @online{Gregorio:frontespizio, Author = {Enrico Gregorio}, Note = {version 1.1}, Title = {Il pacchetto \textsf{frontespizio}}, Url = {http://www.guit.sssup.it/phpbb/index.php}, Year = {2009}} @article{Valbusa:2010, Author = {Ivan Valbusa}, Journal = {ArsTeXnica}, Month = {10}, Number = {9}, Title = {Creare stili bibliografici con \textsf{biblatex}: l'esperienza del pacchetto {biblatex-philosophy}}, Year = {2010}} @book{Bringhurst:1996, Author = {Robert Bringhurst}, Booktitle = {The Elements of Typographic Style}, Date = {1996}, Edition = {2}, Location = {Vancouver}, Publisher = {Hurtley \& Marks Publisher}, Title = {The Elements of Typographyc Style}, Annote = {In questa voce sono state date le indicazioni complete dell'edizione originale, ed è stato indicato solo il luogo e la data della traduzione italiana}} @book{Tschichold:1975, Author = {Jan Tschichold}, Booktitle = {Ausgewählte Aufsätze über Fragen der Gestalt des Buches und der Typographie}, Location = {Basel}, Origdate = {2003}, Origlocation = {Milano}, Origpublisher = {Sylvestre Bonnard}, Origtitle = {La forma del libro}, Publisher = {Birkhäuser Verlag}, Title = {Ausgewählte Aufsätze über Fragen der Gestalt des Buches und der Typographie}, Year = {1975}} @online{Lehman:2010, Author = {Philipp Lehman}, Note = {Versione 0.9a}, Title = {The \textsf{biblatex} package}, Url = {http://www.ctan.org/tex-archive/macros/latex/exptl/biblatex/}, Year = {2010}} @online{Miede:2011, Author = {André Miede}, Title = {A Classic Thesis style}, Url = {http://www.ctan.org/tex- archive/macros/ latex/contrib/classicthesis/ClassicThesis. pdf}, Date = {2011}} @book{Pantieri:2011, Author = {Lorenzo Pantieri and Tommaso Gordini}, Booktitle = {L'arte di scrivere con LATEX}, Date = {2011}, Edition = {new edition}, Foreword = {Enrico Gregorio}, Hyphenation = {italian}, Subtitle = {Un'in\-troduzione a \LaTeXe}, Title = {L'arte di scrivere con \LaTeX}, Url = {http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf}, Annote = {Questa guida è diventata il punto di riferimento degli utenti italiani di \LaTeX\ ed è apprezzata per la chiarezza espositiva e la completezza dei contenuti}} @article{Pantieri:2009, Author = {Lorenzo Pantieri}, Title = {L'arte di gestire la bibliografia con \pack{biblatex}}, Url = {http://www.lorenzopantieri.net/LaTeX_files/Bibliografia.pdf}, Year = {2009}} @article{Mori:2008, Author = {Lapo F. Mori}, Journal = {ArsTeXnica}, Month = {10}, Pages = {37-51}, Title = {Gestire la bibliografia con {\LaTeX}}, Volume = {6}, Year = {2008}} % \end{verbatim} % \iffalse % % \fi % \iffalse %<*fakelogo> prologues:=3; outputtemplate:="%j.mps"; input boxes; beginfig(1); draw fullcircle scaled (2.5cm + 1pt) withcolor white; draw fullcircle scaled 2.5cm; draw fullcircle scaled 2.3cm; draw thelabel(btex \vbox{\sevenrm\halign{\hfil#\hfil\cr University of\cr Verona\cr Seal\cr}} etex, origin); endfig; end % % \fi % \iffalse %<*rmstyle1> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, rmstyle1]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*rmstyle2> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, rmstyle2]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*rmstyle3> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, rmstyle3]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*rmstyle4> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, rmstyle4]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*rmstyle5> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, rmstyle5]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*rmstyle6> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, rmstyle6]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle1> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle1]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle2> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle2]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle3> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle3]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle4> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle4]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle5> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle5]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle6> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle6]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle7> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle7]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle8> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle8]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle9> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle9]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle10> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle10]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle11> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle11]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*itstyle12> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, itstyle12]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle1> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle1]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle2> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle2]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle3> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle3]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle4> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle4]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle5> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle5]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle6> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle6]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle7> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle7]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle8> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle8]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle9> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle9]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle10> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle10]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle11> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle11]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*scstyle12> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = XeLaTeX \documentclass[periodical,nocrop, scstyle12]{suftesi} \usepackage{lipsum,fontspec} \setmainfont[Numbers=OldStyle]{Junicode} \begin{document} \chapter{Titolo del capitolo} \section{Dolor sit amet} \lipsum[1] \subsection{Peniteitiagite} \lipsum[9] \end{document} % % \fi % \iffalse %<*collect-examples> %% !TEX encoding = UTF-8 Unicode %% !TEX TS-program = pdfLaTeX \documentclass[a4paper]{book} \usepackage{graphicx,xcolor} \usepackage[margin=1cm]{geometry} \parindent0pt \pagestyle{empty} \newcommand{\inputex}[1]{% \vbox{\centering \fbox{\includegraphics[width=.95\textwidth]{#1.pdf}}\\ \begin{picture}(0,0) \put (-185,90) {% \textcolor{teal}{\bfseries\fbox{\scalebox{4}{#1}}}} \end{picture}} } \begin{document} \inputex{rmstyle1} \inputex{rmstyle2} \inputex{rmstyle3} \inputex{rmstyle4} \inputex{rmstyle5} \inputex{rmstyle6} \inputex{itstyle1} \inputex{itstyle2} \inputex{itstyle3} \inputex{itstyle4} \inputex{itstyle5} \inputex{itstyle6} \inputex{itstyle7} \inputex{itstyle8} \inputex{itstyle9} \inputex{itstyle10} \inputex{itstyle11} \inputex{itstyle12} \inputex{scstyle1} \inputex{scstyle2} \inputex{scstyle3} \inputex{scstyle4} \inputex{scstyle5} \inputex{scstyle6} \inputex{scstyle7} \inputex{scstyle8} \inputex{scstyle9} \inputex{scstyle10} \inputex{scstyle11} \inputex{scstyle12} \end{document} % % \fi % \Finale