%% Package `esami' to use with LaTeX 2e %% Copyright (C) 2008-2013 G. Messineo e S. Vassallo %% %% This is file `esami-xyz.cfg', %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% esami-xyz.cfg, 2013-03-20 %% %% Copyright (C) 2008-2013 G. Messineo e S. Vassallo %% %% %% %% This program can be redistributed and/or modified %% %% under the terms of the LaTeX Project Public License %% %% Distributed from CTAN archives in directory %% %% macros/latex/base/lppl.txt; either version 1 of the %% %% License, or (at your option) any later version. %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +=============================+ % | THE HEADING | % +=============================+ \@ifpackagewith{esami}{prova}{% \def\testa{\relax}} {% \def\testa{ {\bfseries\sffamily\small \begin{center} \begin{tabular}{|lp{.33\textwidth}|lp{.3\textwidth}|lp{.3\textwidth}|} \hline \multicolumn{1}{|p{.33\textwidth}|}{\examname \newline \Data}&\multicolumn{1}{|p{.3\textwidth}|}{\profname } &\multicolumn{1}{|p{.3\textwidth}|}{\studsignname}\\[4ex] \hline \multicolumn{1}{|p{.33\textwidth}|}{\studlastname:}&\multicolumn{1}{|p{.3\textwidth}|}{\studfirstname:}&\multicolumn{1}{|p{.3\textwidth}|}{\studid:}\\[4ex] \hline \end{tabular}\\[3ex] \end{center}} } } % +=============================+ % | THE FOOTER | % +=============================+ \ifes@solutions%%%solutions \def\ps@esame{\let\@oddhead\@empty\def\@oddfoot{\hfil \textbf{\versionname\ n. \thevers} -- %% \textbf{\solutionsname} -- %% \pagename\ \thepage \hfil}\let\@evenhead\@empty\let\@evenfoot\@empty} \else%%% no solutions \def\ps@esame{ \let\@oddhead\@empty\def\@oddfoot%% {\hfil \textbf{\versionname\ n. \thevers\ -- \pagename\ \thepage}\hfil}\let\@evenhead\@empty\let\@evenfoot\@empty} \fi % +=============================+ % | THE SOLUTION STRING | % +=============================+ \def\ps@soltest{\let\@oddhead\@empty\def\@oddfoot{\hfil %\textbf{\versionname\ n. \thevers} -- %% \textbf{\solutionsname} -- \pagename\ \thepage \hfil}\let\@evenhead\@empty\let\@evenfoot\@empty} \ifes@solutions \newcommand{\stringasol}{\newpage% \vspace{.8cm} \pagestyle{soltest} \input{\jobname.sol.tex} % } \else \newcommand{\stringasol}{\relax} \fi % +=============================+ % | SOME INTRUCTIONS | % +=============================+ \def\istruzionii{{ \sffamily \textbf{INSTRUCTIONS} \begin{itemize} \item Write here your instructions \item two \item three \end{itemize}}} \def\istruzioniii{\setlength{\fboxsep}{1.5ex}\setlength{\fboxrule}{1.2pt}{\sffamily \framebox{\parbox{\textwidth}{\textbf{Some other instructions.}}}}\\[3ex]}