summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/toptesi/toptesi.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/toptesi/toptesi.cls')
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi.cls27
1 files changed, 18 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls
index 3b2bf38aed8..741cca0626f 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls
@@ -7,7 +7,7 @@
%% toptesi.dtx (with options: `class')
%% ______________________________________________________
%% The TOPtesi package
-%% Copyright (C) 2010 Claudio Beccari
+%% Copyright (C) 2011 Claudio Beccari
%% All rights reserved
%%
%% License information appended
@@ -27,14 +27,23 @@
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{toptesi}%
-[2011/05/25 v.5.50 Class for typesetting university theses]
+[2011/08/09 v.5.59 Class for typesetting university theses]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ProcessOptions\relax
\LoadClass[a4paper]{report}
-\RequirePackage[english,italian]{babel}
+\RequirePackage{ifxetex}
+\ifxetex
+ \RequirePackage{fontspec}
+ \RequirePackage{polyglossia}
+ \setmainlanguage{italian}
+ \setotherlanguage{english}
+ \renewcommand*{\iflanguage}[1]{\ifnum\the\language=\csname l@#1\endcsname
+ \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
+\else
+ \RequirePackage[english,italian]{babel}
+\fi
\RequirePackage{toptesi}
%%
%% Copyright 2005-2011 Claudio Beccari
@@ -49,10 +58,10 @@
%% and the derived files:
%%
%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty,
-%% toptesi.cfg, and the English documentation toptesi.pdf;
+%% toptesi.cfg, and the English documentation toptesi.pdf.
%%
-%% Furthermore the bundle contains the documentation source file toptesi-doc.tex
-%% and the derived file toptesi-doc.pdf.
+%% Furthermore the bundle contains the documentation source file toptesi-doc-xetex.tex
+%% and the derived file toptesi-doc-xetex.pdf.
%%
%% The toptesi-example.tex source file is just an example that shows how
%% to use the various commands; by commenting or uncommenting certain
@@ -62,10 +71,10 @@
%% The toptesi.cfg file is a sample of a local configuration file that can be
%% freely edited and modified.
%%
-%% By running pdflatex on toptesi.dtx the user gets the cls, sty and cfg files
+%% By running pdflatex on toptesi.dtx the user gets the class, sty and cfg files
%% and the English documentation file in pdf format.
%%
-%% The documentation file toptesi-doc.pdf is in Italian; its source file is
+%% The documentation file toptesi-doc-xetex.pdf is in Italian; its source file is
%% another example of how to use toptesi.
%%
%% End of file `toptesi.cls'.