Re: frontespizi di tesi con titlepage

#4473
Up
0
Down
::

Devi aggiungere qualche riga di codice al file .cls. Seguendo il codice già presente e con un po’ di fantasia dovresti riuscire a farlo facilmente.

Ho modificato il codice ma ricevo il seguente errore:

l.15 \corelatore
{prof. Tizio }
?

Qui sotto le mie modifiche, marcate con “AGGIUNTO”
Dove ho commesso l’errore?
Grazie ancora
Thomas

\NeedsTeXFormat{LaTeX2e}

\ProvidesClass{tesidilaurea}

[2003/06/03 Classe per Tesi di Laurea]

%%

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}

\ProcessOptions

\LoadClass[12pt, oneside]{report}

%%

\def\@univ{Universit\`a degli Studi di L’Aquila}

\def\p@fac{Facolt\`a di}

\def\@fac{Scienze Matematiche, Fisiche e Naturali}

\def\p@cdl{Corso di Laurea in}

\def\@cdl{Matematica}

\def\p@tesi{Tesi di Laurea}

\def\p@laureando{Laureando} %

\def\p@relatore{Relatore} %

\def\p@corelatore{Correlatore} % AGGIUNTO

\def\p@aacc{Anno Accademico}

%%

\newcommand{\universita}[1]{\gdef\@univ{#1}}

\newcommand{\facolta}[1]{\gdef\@fac{#1}}

\newcommand{\corsodilaurea}[1]{\gdef\@cdl{#1}}

\newcommand{\relatore}[1]{\gdef\@relatore{#1}}
\newcommand{\corelatore}[1]{\gdef\@corelatore{#1}} %AGGIUNTO
\newcommand{\aacc}[1]{\gdef\@aacc{#1}}

%%

\renewcommand{\maketitle}{%

\thispagestyle{empty}

\begin{center}

\textsc{\Large \@univ} \\

\rule{\linewidth}{0.01mm} \medskip\\

{\Large \p@fac\ \@fac} \medskip\\

{\large \p@cdl\ \@cdl} \\

\vfill

{\p@tesi} \bigskip \bigskip \\

\textsc{\huge \@title} \\

\vfill \vfill

\end{center}

\parbox[t]{0.45\textwidth}{%

\begin{center}

\textbf{\p@laureando} \\

\@author

\end{center}

}%

\hfill

\parbox[t]{0.45\textwidth}{%

\begin{center}

\textbf{\p@relatore} \\

\@relatore

\end{center}

}%

\hfill% AGGIUNTO

\parbox[t]{0.45\textwidth}{% AGGIUNTO

\begin{center}% AGGIUNTO

\textbf{\p@corelatore} \\% AGGIUNTO

\@corelatore% AGGIUNTO

\end{center}% AGGIUNTO

}% AGGIUNTO

\vfill

\begin{center}

\rule{\linewidth}{0.01mm} \\

{\p@aacc\ \@aacc}

\end{center}

\clearpage

Go to top