summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-05 23:19:37 +0000
committerKarl Berry <karl@freefriends.org>2013-11-05 23:19:37 +0000
commitbb1c53dfd5963b465b5a50b11aa9ba72589c4416 (patch)
tree71564fccb45ea99a29f2046eec0b1a1d64e10d1f /Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
parent2fd432ec53c36370e2e19510695d2fe6c43a1521 (diff)
toptesi (5nov13)
git-svn-id: svn://tug.org/texlive/trunk@32081 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/toptesi/topfront-example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/toptesi/topfront-example.tex89
1 files changed, 68 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex b/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
index cfef6131ab6..f3f51597698 100644
--- a/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
+++ b/Master/texmf-dist/doc/latex/toptesi/topfront-example.tex
@@ -1,15 +1,38 @@
-% Stand-alone sample usage of topfront
+% Stand-alone sample usage of package topfront
-% with XeLaTeX the document should be created with the UTF-8 encoding
+% 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
+
% !TEX encoding = IsoLatin
+% Of course you may create the document in utf8 encodic even if you use pdfLaTeX,
+% but you have to change the above magic comment accordingly (change "IsoLatin"
+% with "UTF-8 Unicode"). Change also the inputenc option from "latin1" to "utf8".
+%
+% You need not care for any input encoding and any option to the inputenc
+% package, if you avoid using national non-ASCII characters, but use the
+% standard LaTeX commands to access them; for example: \`A, \ss, \L, etc.
+
+% This document may be typeset with
+%
+% 1) pdfLaTeX or XeLaTeX
+% 2) in Italian or in English
+% 3) with \frontepsizio or \frontespizio*
+%
+% for a total of 8 combinations.
+%
+% The typeset appearance changes a little bit by chosing different fonts
+% in the preamble settings. The Type 1 fonts available to pdfLaTeX
+% may be different from the OpenType fonts available to XeLaTeX.
+
+
\documentclass[a4paper,11pt,twoside]{report}% it works also with book and article
\usepackage{ifxetex}
\ifxetex
- \usepackage{fontspec}% Ddefault fonts are the Latin Modern OpenType ones
+ \usepackage{fontspec}
+ \setmainfont{Latin Modern Roman}% Latin Modern OpenType fonts
\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage{english}
@@ -17,12 +40,13 @@
\usepackage[english,italian]{babel}
\usepackage[T1]{fontenc}\usepackage{lmodern}
\usepackage[latin1]{inputenc}
+ \usepackage{lmodern}% Latin Modern Type 1 fonts
\fi
\usepackage{graphicx}
\usepackage{topfront}
-\begin{document}\errorcontextlines=9
+\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.
@@ -32,24 +56,21 @@
\selectlanguage{english}% the default language is changed from Italian to English
%
+% Settings common to both languages
+% Redefine \IDN for English
-\ateneo{Universit\`a di Torino}
-\corsodilaurea{Astronomia applicata}
-\titolo{La pressione barometrica di~Giove}
-\sottotitolo{Metodo dei satelliti medicei}
-\candidato{\tabular{@{}l@{}}Galileo \textsc{Galilei}\\
-\quad matricola 123456\endtabular}
-\secondocandidato{\tabular{@{}l@{}}Evangelista \textsc{Torricelli}\\
-\quad matricola 123457\endtabular}
+\candidato{Galileo \textsc{Galilei}\IDN 123456}
+\secondocandidato{Evangelista \textsc{Torricelli}\IDN 123457}
\relatore{prof.\ Margherita Hack}
-\NomeTutoreAziendale{Supervisore aziendale\\Osservatorio Astronomico di Pino Torinese}
\tutoreaziendale{dott.\ Roberto Ferrero}
-\sedutadilaurea{Agosto 1615}
-\logosede{logounito}
+% The EnglisH definitions redefine all a infix words, besides a few variable strings.
+% Even the supervisor names may be redefines so as to write professional titles
+% according to the English style (capitalization, 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:
-\iflanguage{english}{%
+\iflanguage{english}{% English language
\retrofrontespizio{This work is subject to the Creative Commons Licence}
\DottoratoIn{PhD Course in\space}
\CorsoDiLaureaIn{Master degree course in\space}
@@ -60,15 +81,41 @@
\CandidateName{Candidates}% or Candidate
\AdvisorName{Supervisor}% or Supervisors
\TutorName{Tutor}
- \NomeTutoreAziendale{Internship Tutor}
+ \NomeTutoreAziendale{Internship Tutor\\Monviso Astronomical Observatory}
\CycleName{cycle}
\NomePrimoTomo{First volume}
\NomeSecondoTomo{Second Volume}
\NomeTerzoTomo{Third Volume}
\NomeQuartoTomo{Fourth Volume}
- \logosede{logotrieste,logopolito}% or comma separated list of logos
-}{}
-
+ \titolo{Jupiter barometric pressure}
+ \sottotitolo{Method to Medicean satellites}
+ \corsodilaurea{Applied Astronomy}
+ \logosede{logotre,logoquattro}% one logo or comma separated list of logos
+ \sedutadilaurea{August 1615}
+ \ateneo{West Piedmont University}
+ \nomeateneo{Royal Mountain Campus}
+ \renewcommand*\IDN{\\\quad ID number:\space}
+}{% Italian language
+ \ateneo{Universit\`a del Piemonte Occidentale}
+ \nomeateneo{Studium Monregalensis}
+ \corsodilaurea{Astronomia applicata}
+ \titolo{La pressione barometrica di Giove}
+ \sottotitolo{Metodo dei satelliti medicei}
+ \NomeTutoreAziendale{Supervisore aziendale\\Osservatorio Astronomico del Monviso}
+ \sedutadilaurea{Agosto 1615}
+ \logosede{logouno,logodue}
+}
+% 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 logos do not contain the
+% denomination of the university the asterisk version is preferable.
+%
+% Comment out one of the two commands!
+%
+% \frontespizio
\frontespizio
\end{document}