Difference between revisions of "Позадачный протокол"
From EjudgeWiki
(New page: Навигация: Главная страница/Система ejudge/Использование/Печать протоколов/[[Позадачный пр...) |
|||
Line 1: | Line 1: | ||
Навигация: [[Main Page|Главная страница]]/[[Система ejudge]]/[[Использование]]/[[Печать протоколов]]/[[Позадачный протокол]] | Навигация: [[Main Page|Главная страница]]/[[Система ejudge]]/[[Использование]]/[[Печать протоколов]]/[[Позадачный протокол]] | ||
+ | |||
+ | === Конфигурационный файл <tt>serve.cfg</tt> === | ||
+ | |||
+ | prob_exam_protocol_header_file = "pp_header.tex" | ||
+ | prob_exam_protocol_footer_file = "pp_footer.tex" | ||
+ | |||
+ | === Файл <tt>pp_header.tex</tt> (пример) === | ||
+ | |||
+ | %% User 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 | ||
+ | |||
+ | === Файл <tt>pp_footer.tex</tt> (пример) === | ||
+ | |||
+ | |||
+ | %% Problem examination report footer file | ||
+ | %% $Id: pp_footer.tex 53 2007-07-24 20:46:50Z cher $ | ||
+ | \end{document} |
Revision as of 12:59, 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 (пример)
%% User 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}