diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-06 23:16:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-06 23:16:47 +0000 |
commit | ecb16646aa9df1a8cc61a9583c8056844ba12b05 (patch) | |
tree | 47361e9b654eb230805bba115f747de4af981b10 /Master/texmf-dist/source/latex/toptesi | |
parent | ebcdd9921ff34291f79453030c0357c9bf4f9802 (diff) |
toptesi (6oct11)
git-svn-id: svn://tug.org/texlive/trunk@24225 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/toptesi')
-rw-r--r-- | Master/texmf-dist/source/latex/toptesi/toptesi.dtx | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/Master/texmf-dist/source/latex/toptesi/toptesi.dtx b/Master/texmf-dist/source/latex/toptesi/toptesi.dtx index c1b42740f40..e74e3c9ffa6 100644 --- a/Master/texmf-dist/source/latex/toptesi/toptesi.dtx +++ b/Master/texmf-dist/source/latex/toptesi/toptesi.dtx @@ -85,7 +85,7 @@ another example of how to use toptesi. % \iffalse %<*driver> \documentclass{ltxdoc} -\ProvidesFile{toptesi.dtx}[2011/09/08 v.5.59a Documented TeX file for +\ProvidesFile{toptesi.dtx}[2011/10/06 v.5.59b Documented TeX file for the TOPtesi bundle] \GetFileInfo{toptesi.dtx} \title{The TOPtesi bundle} @@ -102,7 +102,7 @@ the TOPtesi bundle] %</driver> % \fi % -% \CheckSum{2550} +% \CheckSum{2559} % %% \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 @@ -166,7 +166,7 @@ the TOPtesi bundle] % \item A third extension package \texttt{topcoman.sty} that defines a certain number % of user commands suitable for typesetting technical matters. % \item Previous version of this bundle contained also the logos of a certain number of -% universities; These logos are not distributed anymore because of legal constraints. Every +% universities. These logos are not distributed anymore because of legal constraints. Every % one who is working on his/her degree course final report must retrieve the logo of his/her % university, but s/he should pay attention to use it according to the rules and limitations % of the university. @@ -178,10 +178,10 @@ the TOPtesi bundle] % % The above files are complemented with a configuration file that any user may % personalize at will; these personalizations make it easy to configure the -% bundle so as to make it suitable for another language; in facts the \textsf{babel} -% package contains localizations for many languages, but such localisations deal -% with the standard infix \LaTeX\ names and phrases and do not cope with the thesis -% title page requirements. +% bundle so as to make it suitable for another language; in facts the \textsf{babel} and +% \textsf{polyglossia} packages contains localizations for many languages, but such +% localisations deal with the standard infix \LaTeX\ names and phrases and do not cope +% with the thesis title page requirements. % % TOPtesi was specifically conceived for typesetting theses with the \LaTeX\ mark-up, and % initially was using the \textsf{tex} typesetting engine; later on this engine was @@ -387,9 +387,9 @@ the TOPtesi bundle] % % As a final remark notice that the commands for typesetting the title page are contained % in the package \texttt{topfront.sty}, which can be used as an autonomous extension to the -% \texttt{report} document class. One could easily typeset just the title page with a separate -% \TeX\ source file so as to test the completeness of the commands and coherence of the -% configuration file or for just printing the isolated title page. +% \texttt{report} or \texttt{book} document class. One could easily typeset just the title +% page with a separate \TeX\ source file so as to test the completeness of the commands and +% coherence of the configuration file or for just printing the isolated title page. % % \subsection{Typesetting commands} % The bundle and the TOPtesi document class accept all \LaTeX\ commands provided by @@ -676,8 +676,8 @@ the TOPtesi bundle] % \begin{macrocode} %<*class> \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{toptesi}% -[2011/09/08 v.5.59a Class for typesetting university theses] +\ProvidesClass{toptesi} + [2011/10/06 v.5.59b Class for typesetting university theses] % \end{macrocode} % % The class itself is very simple since it requires just the \texttt{report} @@ -699,6 +699,7 @@ the TOPtesi bundle] \RequirePackage{ifxetex} \ifxetex \RequirePackage{fontspec} + \@ifundefined{define@boolkey}{\RequirePackage{xkeyval}}{\relax} \RequirePackage{polyglossia} \setmainlanguage{italian} \setotherlanguage{english} @@ -724,8 +725,7 @@ the TOPtesi bundle] % \begin{macrocode} %<*topsty> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{toptesi}% -[2011/09/08 v.5.59a Extension for toptesi.cls]% +\ProvidesPackage{toptesi}[2011/10/06 v.5.59b Extension for toptesi.cls]% % \end{macrocode} % % We start with defining the debugging macros; these trace commands and macros @@ -1379,7 +1379,7 @@ Skipping any redefinition\MessageBreak}% % \end{macrocode} % % At last the subsidiary and independent packages \texttt{topcoman} and \texttt{topfront} -% are requested for input. For using XeLaTeX as the typesetting engine it's necessary to load such packages at the ``begin document'' step, so that all a the other settings, especially fonts are already established. May be it should be better done also when using pdf\/\LaTeX\ as the typesetting engine, but the past experience has not shown any inconvenience. +% are requested for input. For using XeLaTeX as the typesetting engine it's necessary to load such packages at the ``begin document'' step, so that all a the other settings, especially fonts, are already established. May be it should be better done also when using pdf\/\LaTeX\ as the typesetting engine, but the past experience has not shown any inconvenience. % \begin{macrocode} \ifxetex \AtBeginDocument{\RequirePackage{topfront} @@ -1513,7 +1513,7 @@ Skipping any redefinition\MessageBreak}% % definition in file \texttt{toptesi.sty} already uses |\lapagina| as the typeset folio % indicator. % \begin{macrocode} -\renewcommand*{\lapagina}{% +\renewcommand*{\lapagina}{%ƒ \ifnumeriromani \thepage \else @@ -1713,24 +1713,29 @@ Skipping any redefinition\MessageBreak}% % \begin{macrocode} %<*topfrn> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{topfront}[2011/09/08 v.5.59a Title page for TOPtesi] +\ProvidesPackage{topfront}[2011/10/06 v.5.59b Title page for TOPtesi] % \end{macrocode} % % The title page information depends on the type of ``thesis' that is being typeset. -% The following commands specify the kind of information that is going to be typeset. +% Since the topfront package may be used independently form the accompanying class \texttt{toptesi}, +% it's necessary to define the switch |\ifclassica| in case it was not already defined. +% Therefore we thest if the switch is undefined, and in case we define ti. +% Furthermore the following commands specify the kind of information that is going to be typeset. % Some boolean variables are automatically set by the commands in order to change some % formatting depending on the kind of thesis. For languages that distinguish feminine from % masculine adjectives or qualifications some automatic machinery is set up in order to format % some infix strings in a way that copes with the singular or plural forms; in particular when -% there is a multitude of authors (maximum three) of different gender the adjectives or +% there is a multitude of authors (maximum three) of different gender, the adjectives or % qualifications are set masculine plurals, while when there is just one author or the authors % are of the same gender the adjectives or qualifications are set according to number and -% gender. Al this is done by setting or resetting the truth value associated to the boolean +% gender. All this is done by setting or resetting the truth value associated to the boolean % variable \texttt{femminile}. The boolean variable \texttt{dottorato} controls the PhD thesis % format, while the other variable \texttt{laureatriennale} controls the formatting of the % bachelor's degree report. All other theses are treated as master theses, and in all cases -% the appropriate infix string is typeset in the title page +% the appropriate infix string is typeset in the title page. % \begin{macrocode} +\@ifundefined{ifclassica}{% + \expandafter\newif\csname ifclassica\endcsname}{\relax} \newif\iffemminile \newif\ifdottorato \dottoratofalse \newif\iflaureatriennale \laureatriennalefalse @@ -2437,8 +2442,7 @@ Skipping any redefinition\MessageBreak}% % \begin{macrocode} %<*topcmn> \NeedsTeXFormat{LaTeX2e} % lavora solo con LaTeX 2e -\ProvidesPackage{topcoman}% - [2011/09/08 v.5.59a Additional commands for the TOPtesi bundle] +\ProvidesPackage{topcoman}[2011/10/06 v.5.59b Additional TOPtesi commands] % \end{macrocode} % The new command |\DeclareSlantedCapitalGreekLetters| optionally sets the capital % Greek letters in math mode with the glyphs taken from the math italic fonts, not from @@ -2550,8 +2554,8 @@ Skipping any redefinition\MessageBreak}% % sure to typeset these numerals with script size capitals; this solution is not probably the % best one but it works; it typesets these roman numerals with the current font; in TOPtesi % roman numerals are used only for folios, but in order to be compliant with the package -% |hyperref|, I avoided using this new macro for folios; in other situations there are no more -% any problems with the choice of font shapes and series. We need a robust command in order to +% |hyperref|, I avoided using this new macro for folios; in other situations there are no +% problems with the choice of font shapes and series. We need a robust command in order to % set the script math size % \begin{macrocode} \DeclareRobustCommand*{\simulatedSC}[1]{% @@ -2559,7 +2563,7 @@ Skipping any redefinition\MessageBreak}% % \end{macrocode} % % A user, Antonio Mele, suggested and requested the possibility of having -% the figure and table name inserted automatically when the |\ref|command is +% the figure and table names inserted automatically when the |\ref|command is % issued. For single citations the solution works fine, but for range % references it does not work. In Italian the name must be lower case while in % other languages, specifically in English, the name has a capital initial. |