diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/suftesi/suftesi.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/suftesi/suftesi.dtx | 189 |
1 files changed, 87 insertions, 102 deletions
diff --git a/Master/texmf-dist/source/latex/suftesi/suftesi.dtx b/Master/texmf-dist/source/latex/suftesi/suftesi.dtx index a08d9a37312..b87ed4fbbe1 100644 --- a/Master/texmf-dist/source/latex/suftesi/suftesi.dtx +++ b/Master/texmf-dist/source/latex/suftesi/suftesi.dtx @@ -23,7 +23,7 @@ %<class>\NeedsTeXFormat{LaTeX2e}[2005/12/01] %<class>\ProvidesClass{suftesi} %<*class> - [2012/10/14 v1.0 A class for typesetting theses, books and articles] + [2012/10/20 v1.1 A class for typesetting theses, books and articles] %</class> %<*driver> \documentclass{ltxdoc} @@ -67,7 +67,8 @@ \usepackage{pdfpages} \usepackage{metalogo} \usepackage{tikz} -\usepackage[style=philosophy-classic]{biblatex} +\usepackage[autostyle]{csquotes} +\usepackage[style=philosophy-classic,backend=biber]{biblatex} \addbibresource{suftesi.bib} \usepackage{xcolor} \usepackage{geometry} @@ -81,7 +82,6 @@ \subsubsectionfont{\spotcolor} \paragraphfont{\spotcolor} \subparagraphfont{\spotcolor} - \usepackage{hyperref} \hypersetup{% pdftitle={User's Guide to \textsf{suftesi}}, @@ -89,8 +89,7 @@ books and articles}, pdfauthor={Ivan Valbusa}, pdfkeywords={thesis, humanities, books}, - citecolor=spot} - + citecolor=spot} \newcommand{\new}{}% \DeclareRobustCommand*{\ar}[1]{\texttt{\char`\{#1\char`\}}} \DeclareRobustCommand*{\oar}[1]{\texttt{[#1]}} @@ -112,12 +111,8 @@ {\par\addvspace{\quoteskip}\noindent\ignorespacesafterend} \newenvironment{ttquote} {\begin{mdframed}[backgroundcolor=blue!10] - \ttfamily\small\microtypesetup{activate=false} - %\genquote[\ttfamily\microtypesetup{activate=false}] - } - { - %\endgenquote - \end{mdframed}} + \ttfamily\small\microtypesetup{activate=false}} + {\end{mdframed}} \usepackage{mdframed} \newcommand{\specialsection}[1]{% \clearpage @@ -126,7 +121,6 @@ {\Huge\bfseries\color{spot}\section{#1}} \thispagestyle{empty} \vspace{\stretch{2}}\egroup\clearpage} - \EnableCrossrefs \CodelineIndex @@ -139,7 +133,7 @@ %</driver> % \fi % -% \CheckSum{3294} +% \CheckSum{3234} % % \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 @@ -157,6 +151,7 @@ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % +% \changes{v1.1}{2012/10/20}{Added the \sty{fixltxhyph} package. Documentation updated.} % \changes{v0.9c}{2012/09/25}{Maintenance release, no changes} % \changes{v0.9b}{2012/09/23}{Restored \opt{11pt} and \opt{12pt} option % to default} @@ -232,7 +227,7 @@ % % \newgeometry{margin=3cm} % -% \noindent Copyright \copyright\ 2009-2010 Ivan Valbusa.\\[2ex] +% \noindent Copyright \copyright\ 2009-2012 Ivan Valbusa.\\[2ex] % % \noindent This package is % author-maintained. Permission is granted to copy, distribute and/or @@ -278,9 +273,9 @@ % % The class loads the following packages: \sty{beramono}, % \sty{caption}, \sty{color}, \sty{enumitem}, \sty{emptypage}, \sty{extramarks}, -% \sty{fancyhdr}, \sty{fontenc}, \sty{geometry}, +% \sty{fancyhdr}, \sty{fixltxhyph}, \sty{fontenc}, \sty{geometry}, % \sty{ifxetex}, \sty{mathpazo}, -% \sty{microtype} (pdf\LaTeX{} olnly), \sty{multicol}, \sty{textcase}, \sty{titlesec}, \sty{titletoc}, \sty{xkeyval}. +% \sty{microtype} (pdf\LaTeX{} only), \sty{multicol}, \sty{textcase}, \sty{titlesec}, \sty{titletoc}, \sty{xkeyval}. % \changes{v0.9b}{2012/09/23}{The \sty{epigraph} package is no longer loaded} % @@ -320,7 +315,7 @@ % 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 \LaTeX{} default font (Computer Modern) 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}. % @@ -344,7 +339,7 @@ %\noindent\begin{minipage}[t]{.3\textwidth} %\begin{otherlanguage*}{polutonikogreek}% %\fontfamily{artemisia}\selectfont -%T`o g`ar kal`on >en meg'ejei ka`i t´azei >est'in.\, +%T`o g`ar kal`on >en meg'ejei ka`i t'axei >est'in.\, %\end{otherlanguage*}~Il bello infatti sta nella grandezza e % nell'ordinata disposizione delle parti. % @@ -353,7 +348,7 @@ %\begin{minipage}[t]{.3\textwidth} %\begin{otherlanguage*}{greek}% %\fontfamily{porson}\selectfont -%T`o g`ar kal`on >en meg'ejei ka`i t´azei >est'in.\, +%T`o g`ar kal`on >en meg'ejei ka`i t'axei >est'in.\, %\end{otherlanguage*}~Il bello infatti sta nella grandezza e % nell'ordinata disposizione delle parti. % @@ -362,7 +357,7 @@ %\begin{minipage}[t]{.3\textwidth} %\begin{otherlanguage*}{greek}% %\fontfamily{lmr}\selectfont -%T`o g`ar kal`on >en meg'ejei ka`i t´azei >est'in.\, +%T`o g`ar kal`on >en meg'ejei ka`i t'axei >est'in.\, %\end{otherlanguage*}~Il bello infatti sta nella grandezza e % nell'ordinata disposizione delle parti. % @@ -449,9 +444,9 @@ % \optitem[roman]{<level>font}{\opt{roman}, \opt{italic}, % \opt{smallcaps}} % \begin{valuelist} -% \item[roman] Prints the <level> title in roman -% \item[italic] Prints the <level> title in \emph{italic} -% \item[smallcaps] Prints the <level> title +% \item[roman] Prints the <level> title in roman. +% \item[italic] Prints the <level> title in \emph{italic}. +% \item[smallcaps] Prints the <level> title. % in \textsc{small caps} % \end{valuelist} % Where <level> can be \opt{part}, \opt{chap}, \opt{sec}, @@ -460,16 +455,16 @@ % \opt{right}, \opt{parleft}, \opt{parcenter}, % \opt{parright}} % \begin{valuelist} -% \item[left] Aligns the <level> title on the left -% \item[center] Centers the <level> title -% \item[right] Aligns the <level> title on the right +% \item[left] Aligns the <level> title on the left. +% \item[center] Centers the <level> title. +% \item[right] Aligns the <level> title on the right. % \end{valuelist} % Where <level> can be \opt{part}, \opt{chap}, \opt{sec} % \opt{subsec}, \opt{subsubsec}. % \begin{valuelist} -% \item[parleft] As \opt{left} but with the title below the number -% \item[parcenter] As \opt{center} but with the title below the number -% \item[parright] As \opt{right} but with the title below the number +% \item[parleft] As \opt{left} but with the title below the number. +% \item[parcenter] As \opt{center} but with the title below the number. +% \item[parright] As \opt{right} but with the title below the number. % \end{valuelist} % \begin{valuelist} % \item[elements] Print a chapter number in the style of the @@ -481,16 +476,16 @@ % \opt{roman}, \opt{Roman}, \opt{dotarabic}, \opt{dotroman}, % \opt{dotRoman}} % \begin{valuelist} -% \item[arabic] Arabic <level> number -% \item[roman] Small caps lowercase roman <level> number -% \item[Roman] Uppercase roman <level> number -% \item[dotarabic] As \opt{arabic} but followed by a dot -% \item[dotroman] As \opt{roman} but followed by a dot -% \item[dotRoman] As \opt{Roman} but followed by a dot +% \item[arabic] Arabic <level> number. +% \item[roman] Small caps lowercase roman <level> number. +% \item[Roman] Uppercase roman <level> number. +% \item[dotarabic] As \opt{arabic} but followed by a dot. +% \item[dotroman] As \opt{roman} but followed by a dot. +% \item[dotRoman] As \opt{Roman} but followed by a dot. % \end{valuelist} % Where <level> can be \opt{part}, \opt{chap}, \opt{sec}. % \optitem[standard]{tocstyle}{\opt{standard}, \opt{dotted}, -% \opt{ragged}, \opt{pageleft}} +% \opt{ragged}, \opt{leftpage}} % \changes{v0.9b}{2012/09/23}{New option \opt{tocstyle}} % \begin{valuelist} % \item[standard] Prints a standard table of contents with @@ -498,7 +493,7 @@ % \item[dotted] As the previous one but with dotted lines. % \item[ragged] Aligns the table of contents on the left % as suggested by \textcite{Bringhurst:1996}. -% \item[pageleft] Prints a table of contents with page numbers +% \item[leftpage] Prints a table of contents with page numbers % on the left margin. % \end{valuelist} % \end{optionlist} @@ -508,21 +503,22 @@ % \begin{optionlist} % \setlength{\labelwidth}{2.5cm}% % \optitem[inner]{headerstyle}{\opt{inner}, \opt{center}, -% \opt{plain}, \opt{authortitleinner}, \opt{authortitlecenter}} +% \opt{plain}, \opt{authortitleinner}, \opt{authortitlecenter}, +% \opt{elements}} % \begin{valuelist} % \item[inner] Prints the chapter title and the string ``Chapter~ % \emph{n}'' in the inner side % respectively of even and odd % headers, and the page number in the outer side. % \item[center] Centers the header and footer and puts -% the page number in the center of the footer +% the page number in the center of the footer. % \item[plain] Prints no headers and puts the page number % in the center of the footer. % \item[authortitleinner] % Prints the author's % name on the even pages and the title on the odd ones. % In order to use this option the \cmd{title} and -% \cmd{author} commands are required +% \cmd{author} commands are required. % \item[authortitlecenter] % As the previous one but with centered headers and footers. % \item[elements] @@ -577,7 +573,7 @@ % The footnote number is aligned to the left margin % and followed by a dot. % \item[superscript] -% Prints a superscript footnote number aligned to the left margin +% Prints a superscript footnote number aligned to the left margin. % \end{valuelist} % \boolitem[false]{fewfootnotes} % \changes{v0.9b}{2012/09/23}{New option \opt{fewfootnotes}} @@ -604,6 +600,12 @@ % %\subsection{Fonts} % +% The font options are available only with \LaTeX. Using \XeLaTeX{} +% the default font is the Computer Modern but you can change it through +% the \sty{fontspec} or \sty{mathspec} packages. With this engine +% I surely suggest the Junicode font family available in your +% \TeX{} Live installation. +% %\begin{optionlist} % \setlength{\labelwidth}{2.5cm}% % \optitem[palatino]{defaultfont}{\opt{palatino}, \opt{standard}} @@ -625,6 +627,14 @@ % %\begin{optionlist} % \settowidth{\labelwidth}{marginpar} +% \optitem[compact]{parindent}{\opt{compact}, \opt{wide}} +% \changes{v0.9b}{2012/09/23}{New option \opt{parindent}} +% \begin{valuelist} +% \item[compact] +% Sets |\parindent| to 1\,em. +% \item[wide] +% Sets |\parindent| to 1.5\,em. +% \end{valuelist} %\boolitem[true]{marginpar} % \begin{valuelist} % \item[true] Prints the marginal notes. @@ -638,14 +648,6 @@ % \opt{documentstructure=book} % \item[false] Prints the part title as in \opt{article} class. % \end{valuelist} -% \optitem[compact]{parindent}{\opt{compact}, \opt{wide}} -% \changes{v0.9b}{2012/09/23}{New option \opt{parindent}} -% \begin{valuelist} -% \item[compact] -% Sets |\parindent| to 1\,em. -% \item[wide] -% Sets |\parindent| to 1.5\,em. -% \end{valuelist} % \optitem[false]{draftdate}{\opt{true}, \opt{false}} % \changes{v1.0}{2012/10/14}{First stable release. Renamed option \opt{bozza} to \opt{draftdate}} % If \opt{true} it prints the string ``Version of \meta{date}'' in the footer. @@ -812,9 +814,12 @@ % \end{ttquote} % \end{ltxsyntax} % -% \section*{Obsolete options}\nobreak +% \clearpage +% +% \section*{Obsolete options} +% % \begin{multicols}{2} -% \footnotesize +% \small % \begin{ltxsyntax} % \optitem{defaultparindent} % \changes{v0.9a}{2012/08/31}{New option \opt{defaultparindent}} @@ -920,7 +925,7 @@ % $\rightarrow$ \opt{tocstyle=ragged} % \optitem{tocpageleft} % \changes{v0.9a}{2012/08/31}{New option \opt{tocpageleft}} -% $\rightarrow$ \opt{tocstyle=pageleft} +% $\rightarrow$ \opt{tocstyle=leftpage} % \optitem{dottedpart} % \changes{v0.9a}{2012/08/31}{New option \opt{dottedpart}} % $\rightarrow$ \opt{partnumstyle=dotarabic} @@ -999,15 +1004,15 @@ \newif\ifsuftesi@fewfootnotes \newif\ifsuftesi@partpage \DeclareOption{a5paper}{% - \ClassWarningNoLine{suftesi}{Option 'a5paper' not available}} + \ClassError{suftesi}{Option 'a5paper' not available}} \DeclareOption{b5paper}{% - \ClassWarningNoLine{suftesi}{Option 'b5paper' not available}} + \ClassError{suftesi}{Option 'b5paper' not available}} \DeclareOption{legalpaper}{% - \ClassWarningNoLine{suftesi}{Option 'legalpaper' not available}} + \ClassError{suftesi}{Option 'legalpaper' not available}} \DeclareOption{executivepaper}{% - \ClassWarningNoLine{suftesi}{Option 'executivepaper' not available}} + \ClassError{suftesi}{Option 'executivepaper' not available}} \DeclareOption{landscape}{% - \ClassWarningNoLine{suftesi}{Option 'landscape' not available}} + \ClassError{suftesi}{Option 'landscape' not available}} % \end{macrocode} % \sty{suftesi} is based on the standard \sty{book} class! % \begin{macrocode} @@ -1668,42 +1673,21 @@ dotarabic,dotroman,dotRoman}[arabic]{% chapnumstyle=arabic} \ProcessOptionsX<>\relax % \end{macrocode} -% Some \meta{key}=\meta{value} options defined using \sty{xkeyval} -% produce the message of ``Unused global options''. So we use the -% \cmd{XKV@useoption} command which delete the option given as -% argument from the list stored in \cmd{@unusedoptionlist}: -% \begin{macrocode} -\XKV@useoption{style=roman1} \XKV@useoption{style=roman2} -\XKV@useoption{style=roman3} \XKV@useoption{style=roman4} -\XKV@useoption{style=roman5} \XKV@useoption{style=roman6} -\XKV@useoption{style=italic1} \XKV@useoption{style=italic2} -\XKV@useoption{style=italic3} \XKV@useoption{style=italic4} -\XKV@useoption{style=italic5} \XKV@useoption{style=italic6} -\XKV@useoption{style=italic7} \XKV@useoption{style=italic8} -\XKV@useoption{style=italic9} \XKV@useoption{style=italic10} -\XKV@useoption{style=italic11} \XKV@useoption{style=italic12} -\XKV@useoption{style=smallcaps1} \XKV@useoption{style=smallcaps2} -\XKV@useoption{style=smallcaps3} \XKV@useoption{style=smallcaps4} -\XKV@useoption{style=smallcaps5} \XKV@useoption{style=smallcaps6} -\XKV@useoption{style=smallcaps7} \XKV@useoption{style=smallcaps8} -\XKV@useoption{style=smallcaps9} \XKV@useoption{style=smallcaps10} -\XKV@useoption{style=smallcaps11} \XKV@useoption{style=smallcaps12} -\XKV@useoption{style=elements} \XKV@useoption{style=sufelements} -\XKV@useoption{captionstyle=standard}\XKV@useoption{captionstyle=elements} -\XKV@useoption{pagelayout=standard} \XKV@useoption{pagelayout=periodical} -\XKV@useoption{pagelayout=compact} \XKV@useoption{pagelayout=supercompact} -\XKV@useoption{pagelayout=elements} -\XKV@useoption{liststyle=bulged} \XKV@useoption{liststyle=indented} -\XKV@useoption{liststyle=aligned} -\XKV@useoption{10pt} \XKV@useoption{11pt} -\XKV@useoption{12pt} -\XKV@useoption{oneside} \XKV@useoption{twoside} -\XKV@useoption{onecolumn} \XKV@useoption{twocolumn} -\XKV@useoption{titlepage} \XKV@useoption{notitlepage} -\XKV@useoption{openright} \XKV@useoption{openany} -\XKV@useoption{leqno} \XKV@useoption{fleqn} -\XKV@useoption{a5paper} \XKV@useoption{b5paper} -\XKV@useoption{legalpaper} \XKV@useoption{executivepaper} +% The use of the \cmd{XKV@useoption} command, provided by +% the \sty{xkeyval}, is a trick to delete the option given as +% its argument from the list stored in \cmd{@unusedoptionlist} +% so that the option will not produce the ``Unused global options'' +% message: +% \begin{macrocode} +\XKV@useoption{a4paper} \XKV@useoption{10pt} +\XKV@useoption{11pt} \XKV@useoption{12pt} +\XKV@useoption{oneside} \XKV@useoption{twoside} +\XKV@useoption{onecolumn} \XKV@useoption{twocolumn} +\XKV@useoption{titlepage} \XKV@useoption{notitlepage} +\XKV@useoption{openright} \XKV@useoption{openany} +\XKV@useoption{leqno} \XKV@useoption{fleqn} +\XKV@useoption{a5paper} \XKV@useoption{b5paper} +\XKV@useoption{legalpaper}\XKV@useoption{executivepaper} \XKV@useoption{landscape} % \end{macrocode} % \subsection{Basic packages} @@ -1737,10 +1721,6 @@ dotarabic,dotroman,dotRoman}[arabic]{% % Scale the Porson font: % \begin{macrocode} \ifsuftesi@porson -% \sbox\z@{\fontsize{10}{10}\normalfont A} -% \sbox\tw@{\font\temp=gporsonrg6a at 10pt \temp A} -% \dimen@=\dimexpr \p@*\ht\z@/\ht\tw@ \relax -% \edef\art@scale{\strip@pt\dimen@} \sbox\z@{\fontsize{10}{10}\normalfont A} \sbox\tw@{\font\temp=gporsonrg6a at 10pt \temp A} \dimen@=\dimexpr \p@*\ht\z@/\ht\tw@\relax @@ -3231,16 +3211,21 @@ dotarabic,dotroman,dotRoman}[arabic]{% {\endlist} % \end{macrocode} % \end{environment} -% \DescribeMacro{\hemph} +% +% \subsection{Final settings} +% % 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 +% like ``dell'\emph{encyclopaedia}''. Now the bug has been fixed loading the \sty{fixltxhyph} package by Claudio Beccari. The package +% must be loaded ofter \sty{babel} or \sty{polyglossia}: +% \begin{macrocode} +\AtBeginDocument{\RequirePackage{fixltxhyph}} +% \end{macrocode} +% 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. @@ -3295,7 +3280,7 @@ dotarabic,dotroman,dotRoman}[arabic]{% @book{Bringhurst:1996, Author = {Robert Bringhurst}, Booktitle = {The Elements of Typographic Style}, - Date = {1996}, + Date = {1992}, Edition = {2}, Location = {Vancouver}, Publisher = {Hurtley \& Marks Publisher}, |