summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/toptesi/topfront-example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/toptesi/topfront-example.tex57
1 files changed, 28 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex b/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
index 091318ed6cd..faa072a073f 100644
--- a/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
+++ b/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
@@ -1,7 +1,8 @@
% Stand-alone sample usage of package topfront
% With XeLaTeX the document should be created with the UTF-8 encoding
-% Use the following Magic comment line only if you typeset the document with pdfLaTeX
+% Use the following Magic comment line only if you typeset the document
+% with pdfLaTeX
% !TEX encoding = IsoLatin
@@ -15,7 +16,7 @@
% This document may be typeset with
%
-% 1) pdfLaTeX or XeLaTeX
+% 1) pdfLaTeX or XeLaTeX or LuaLaTeX
% 2) in Italian or in English
% 3) with \frontepsizio or \frontespizio*
%
@@ -23,24 +24,24 @@
%
% The typeset appearance changes a little bit by choosing different fonts
% in the preamble settings. The Type 1 fonts available to pdfLaTeX
-% may be different from the OpenType fonts available to XeLaTeX.
+% may be different from the OpenType fonts available to XeLaTeX or LuaLaTeX.
\documentclass[a4paper,11pt,twoside]{report}% it works also with book and article
-\usepackage{ifxetex}% to test if the typesetting engine is pdflatex or xelatex
+\usepackage{iftex}% to test if the typesetting engine is pdflatex or xelatex
-\ifxetex
+\ifPDFTeX % settings for pdfLaTeX
+ \usepackage[english,italian]{babel}
+ \usepackage[T1]{fontenc}
+ \usepackage[latin1]{inputenc}% It would be better to use utf8
+ \usepackage{lmodern}% Latin Modern Type 1 fonts
+\else % settings for XeLaTeX and LuaLaTeX
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}% Latin Modern OpenType fonts
\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage{english}
-\else
- \usepackage[english,italian]{babel}
- \usepackage[T1]{fontenc}
- \usepackage[latin1]{inputenc}% It would be better to use utf8
- \usepackage{lmodern}% Latin Modern Type 1 fonts
\fi
\usepackage{graphicx}
@@ -48,12 +49,10 @@
\begin{document}
% These data must be here after \begin{document} and before \frontespizio
-% if XeLaTeX is being used.
-% When using pdfLaTeX these data may be anywhere before \frontespizio,
-% even in the preamble.
-% See the toptesi-doc-xetex.pdf documentation for more details.
+% if XeLaTeX or LuaLaTeX is being used.
+% See the toptesi-doc-pdftex.pdf documentation for more details.
%
-% Uncomment the following line if you want a title page with English infix phrases
+% Comment the following line if you want a title page with Italian infix phrases
\selectlanguage{english}% the default language is changed from Italian to English
%
@@ -65,12 +64,22 @@
\relatore{prof.\ Margherita Hack}
\tutoreaziendale{dott.\ Roberto Ferrero}
-% The English definitions redefine all the infix words, besides a few variable strings.
+% The English definitions redefine all the infix words, besides a few variable
+% strings.
% Even the supervisor names may be redefined so as to write professional titles
% according to the English style (capitalisation, spelling, etc.)
% For a specific kind of thesis some infix string redefinitions may be omitted.
-% Since this sample file may be typeset either in Italian or in English we need a test
+% Since this sample file may be typeset either in Italian or in English we need
+% a test.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WARNING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Use either the frontespizio starred or unstarred environment
+% OR the isolated \frontespizio starred or unstarred command
+% The environment should be preferred.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{frontespizio*}
\iflanguage{english}{% English language
\retrofrontespizio{This work is subject to the Creative Commons Licence}
\DottoratoIn{PhD Course in\space}
@@ -94,6 +103,7 @@
\logosede{logotre,logoquattro}% one logo or a comma separated list of logos
\sedutadilaurea{August 1615}
\ateneo{West Piedmont University}
+% \ateneo{}
\nomeateneo{Royal Mountain Campus}
\renewcommand*\IDN{\\\quad ID number:\space}
}{% Italian language
@@ -106,17 +116,6 @@
\sedutadilaurea{Agosto 1615}
\logosede{logouno,logodue}% one logo or a comma separated list of logos
}
+\end{frontespizio*}
-% Use either one of the following commands. The first one puts the university logo(s)
-% at the top of the page and does or does not typeset the university denomination
-% depending on the fact that \ateneo contains some name or is empty; the
-% second one puts the university logo(s) after the thesis title and possible
-% subtitle, while prints at the top of the page the denomination of the
-% university and its possible proper name. When the logo(s) do not contain the
-% denomination of the university the asterisk version is preferable.
-%
-% Comment out only one of the two following commands!
-%
-% \frontespizio
-\frontespizio*
\end{document}