%% 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. %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% other packages \AtEndOfPackage{ \usepackage{ifxetex}%%NUOVO \usepackage{ifluatex}%%%NUOVO \usepackage{amsmath} %========================================================% % Some shortcuts and Italian maths % %========================================================% \DeclareMathOperator{\sen}{sen} \DeclareMathOperator{\tg}{tg} \DeclareMathOperator{\arcsen}{arcsen} \DeclareMathOperator{\arctg}{arctg} \providecommand*{\dif}{\mathop{}\!\mathrm{d}} \providecommand{\dlim}{\displaystyle \lim} \providecommand{\me}{\mathrm{e}} \providecommand{\D}{\displaystyle} \newenvironment{sistema}{%%% Taken from somewhere in GUIT forum to write equations systems \left\lbrace\begin{array}{@{}l@{}}}% {\end{array}\right.% } \DeclareRobustCommand{\annu}[2]{_{%%% the annuity command \def\arraystretch{0} \setlength\arraycolsep{1pt} \setlength\arrayrulewidth{.2pt} \begin{array}[b]{c c} \setlength\arraycolsep{1.5pt} \begin{array} [b]{r|}\hline \\[\arraycolsep] \scriptstyle #1 \end{array}&\scriptstyle#2% \end{array}% }} \newcommand{\vect}[1]{\boldsymbol{#1}} %%% We prefer var greek math %%% \newcommand{\eps}{\varepsilon} \newcommand{\oldtheta}{\theta} \renewcommand{\theta}{\vartheta} \newcommand{\oldepsilon}{\epsilon} \renewcommand{\epsilon}{\varepsilon} \newcommand{\oldrho}{\rho} \renewcommand{\rho}{\varrho} \newcommand{\oldphi}{\phi} \renewcommand{\phi}{\varphi} %%%%%%%%%%%%%%%%%%%%%%%%% } % +=============================+ % | 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]}