summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-25 22:35:45 +0000
committerKarl Berry <karl@freefriends.org>2013-04-25 22:35:45 +0000
commit050e4ce3134f192d97181d2bb1d8fb3cacce2a0b (patch)
treedaa6d2fbd7e8f00e54daa6cf31cddbd6e9986340 /Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
parente694cedf504de9df6982e24972ec473d2ddcf5e9 (diff)
esami (25apr13)
git-svn-id: svn://tug.org/texlive/trunk@30109 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/esami/esami-xyz.cfg')
-rw-r--r--Master/texmf-dist/doc/latex/esami/esami-xyz.cfg88
1 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg b/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
new file mode 100644
index 00000000000..c7ed8b63de9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/esami/esami-xyz.cfg
@@ -0,0 +1,88 @@
+%% 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]}