Difference between revisions of "Позадачный протокол"
From EjudgeWiki
(→Файл pp_header.tex (пример)) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 8: | Line 8: | ||
=== Файл <tt>pp_header.tex</tt> (пример) === | === Файл <tt>pp_header.tex</tt> (пример) === | ||
| − | %% | + | %% Problem examination report header file |
%% $Id: pp_header.tex 53 2007-07-24 20:46:50Z cher $ | %% $Id: pp_header.tex 53 2007-07-24 20:46:50Z cher $ | ||
\documentclass[10pt,draft,fleqn]{article} | \documentclass[10pt,draft,fleqn]{article} | ||
| Line 42: | Line 42: | ||
\subsection*{Позадачный зашифрованный протокол ответа на экзамене по информатике} | \subsection*{Позадачный зашифрованный протокол ответа на экзамене по информатике} | ||
| − | + | ||
| − | %% End of header file | + | %% End of header file |
=== Файл <tt>pp_footer.tex</tt> (пример) === | === Файл <tt>pp_footer.tex</tt> (пример) === | ||
Latest revision as of 13:00, 3 April 2009
Навигация: Главная страница/Система ejudge/Использование/Печать протоколов/Позадачный протокол
Конфигурационный файл serve.cfg
prob_exam_protocol_header_file = "pp_header.tex" prob_exam_protocol_footer_file = "pp_footer.tex"
Файл pp_header.tex (пример)
%% Problem examination report header file
%% $Id: pp_header.tex 53 2007-07-24 20:46:50Z cher $
\documentclass[10pt,draft,fleqn]{article}
\usepackage[utf-8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage[compat2,a4paper]{geometry}
\usepackage{indentfirst}
\voffset=1cm
\nonstopmode
\makeatletter
\tolerance=800
\hfuzz=0.5pt
\emergencystretch=3em
\def\lastpage@putlabel{\addtocounter{page}{-1}%%
\immediate\write\@auxout{\string\newlabel{LastPage}{{}{\thepage}}}%%
\addtocounter{page}{1}}
\AtEndDocument{\clearpage\lastpage@putlabel}%%
\renewcommand{\@oddhead}%%
{\vbox {\hbox to \textwidth {Протокол ответа на экзамене по информатике, страница \thepage\space из \pageref{LastPage}\hfil} \vspace{5pt} \hrule}}
\renewcommand{\@evenhead}%%
{\vbox {\hbox to \textwidth {Протокол ответа на экзамене по информатике, страница \thepage\space из \pageref{LastPage}\hfil} \vspace{5pt} \hrule}}
\renewcommand{\@oddfoot}%%
{\vbox{\hrule}}
\renewcommand{\@evenfoot}%%
{\vbox{\hrule}}
\begin{document}
\subsection*{Позадачный зашифрованный протокол ответа на экзамене по информатике}
%% End of header file
%% Problem examination report footer file
%% $Id: pp_footer.tex 53 2007-07-24 20:46:50Z cher $
\end{document}