Печать экзаменационного протокола участника
Доброго времени суток.
подскажите, плз, какие пакеты нужно поставить, что бы опция "напечатать экзаменационный протокол участника" работала.
tex-core стоит, пробовал tex-latex доставить. Но кроме красного большого количества текста ничего путнего у меня не вышло.
Система AltLinux Desktop 4.1
пакет ejudge ставил из rpm.
Спасибо.
подскажите, плз, какие пакеты нужно поставить, что бы опция "напечатать экзаменационный протокол участника" работала.
tex-core стоит, пробовал tex-latex доставить. Но кроме красного большого количества текста ничего путнего у меня не вышло.
Система AltLinux Desktop 4.1
пакет ejudge ставил из rpm.
Спасибо.
Re: Печать экзаменационного протокола участника
что именно выводится красным текстом?
Re: Печать экзаменационного протокола участника
/usr/bin/latex -file-line-error-style -interaction=nonstopmode -src-specials -translate-file=cp8bit.tcx /var/lib/ejudge/000007/var/work/print/000002.tex </dev/null 2>/var/lib/ejudge/000007/var/work/print/000002.err 1>&2cher wrote:что именно выводится красным текстом?
This is TeXk, Version 3.14159 (Web2C 7.4.4)
Source specials enabled.
file:line:error style messages enabled.
(/usr/share/texmf/web2c/cp8bit.tcx)
kpathsea: Running mktexfmt latex.fmt
fmtutil: format `latex' not available.
I can't find the format file `latex.fmt'!
latex process exited with code 1
Re: Печать экзаменационного протокола участника
У Вас не доинсталлирован latex. Нужны файлы формата, наверняка потребуются шрифты и т. п.
Re: Печать экзаменационного протокола участника
Поставил tetex-latex выдача стала еще большеcher wrote:У Вас не доинсталлирован latex. Нужны файлы формата, наверняка потребуются шрифты и т. п.

добавил: tetex-core, tetex-latex-unicode, tetex-latex-hiptex-doc - непомогло
help plz!
/usr/bin/latex -file-line-error-style -interaction=nonstopmode -src-specials -translate-file=cp8bit.tcx /var/lib/ejudge/000007/var/work/print/000002.tex </dev/null 2>/var/lib/ejudge/000007/var/work/print/000002.err 1>&2
This is TeXk, Version 3.14159 (Web2C 7.4.4)
Source specials enabled.
file:line:error style messages enabled.
(/usr/share/texmf/web2c/cp8bit.tcx)
(/var/lib/ejudge/000007/var/work/print/000002.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, r
ussian, ukrainian, nohyphenation, loaded.
/var/lib/ejudge/000007/var/work/print/000002.tex:1: LaTeX Error: Missing \begin
{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help
/var/lib/ejudge/000007/var/work/print/000002.tex:12: LaTeX Error: Missing \begi
n{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help
Overfull \hbox (398.33856pt too wide) in paragraph at lines 12--19
[]
/var/lib/ejudge/000007/var/work/print/000002.tex:20: LaTeX Error: Missing \begi
n{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help
Overfull \hbox (20.0pt too wide) in paragraph at lines 20--20
[][]
Overfull \hbox (104.99908pt too wide) in paragraph at lines 43--43
[][]\OT1/cmtt/m/n/10 [1] program z_a;[]
Overfull \hbox (15.74986pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [2][]
Overfull \hbox (62.99945pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [3] uses[]
Overfull \hbox (73.49936pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [4] crt;[]
Overfull \hbox (15.74986pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [5][]
Overfull \hbox (57.7495pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [6] var[]
Overfull \hbox (141.74876pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [7] k,n,x: longint;[]
Overfull \hbox (68.2494pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [8] begin[]
Overfull \hbox (209.99817pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [9] assign(input,'input.txt');[]
Overfull \hbox (141.74876pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [10] reset(input);[]
Overfull \hbox (125.9989pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [11] readln(n);[]
Overfull \hbox (183.7484pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [12] if n=1 then k:=0 else[]
Overfull \hbox (99.74913pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [13] begin[]
Overfull \hbox (120.74895pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [14] k:=1;[]
Overfull \hbox (120.74895pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [15] x:=3;[]
Overfull \hbox (330.74712pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [16] while not (n<=x) do begin k:=k+1; x:=x*3 e
nd;[]
Overfull \hbox (94.49918pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [17] end;[]
Overfull \hbox (220.49808pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [18] assign(output,'output.txt');[]
Overfull \hbox (157.49863pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [19] rewrite(output);[]
Overfull \hbox (131.24886pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [20] writeln(k);[]
Overfull \hbox (146.99872pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [21] close(output);[]
Overfull \hbox (62.99945pt too wide) in paragraph at lines 43--43
[]\OT1/cmtt/m/n/10 [22] end.[]
Overfull \hbox (20.0pt too wide) in paragraph at lines 45--46
[][]
)
*
! Emergency stop
No pages of output.
Transcript written on 000002.log.
latex process exited with code 1
Re: Печать экзаменационного протокола участника
Огромное СПАСИБОcher wrote:Описание использования протоколов

Сделал как в wiki, добавил
user_exam_protocol_header_file = "up_header.tex"
user_exam_protocol_footer_file = "up_footer.tex"
в serve.cfg и создал файлы *.tex
после чего турнир перестал работать.
Подскажите, плз, куда конкретно добавлять эти строчки...
В web интерфейсе появилась строка - "неизвестные параметры"
Удалил строчки - турнир поднялся.
Re: Печать экзаменационного протокола участника
Скорее всего что-то не так с файлами up_header.tex, up_footer.tex. Возможно, они не находятся в каталоге conf, либо недоступны на чтение...
То, что веб-интерфейс показал настройки турнира говорит о том, что все было задано правильно.
То, что веб-интерфейс показал настройки турнира говорит о том, что все было задано правильно.
Re: Печать экзаменационного протокола участника
cher wrote:Скорее всего что-то не так с файлами up_header.tex, up_footer.tex. Возможно, они не находятся в каталоге conf, либо недоступны на чтение...
То, что веб-интерфейс показал настройки турнира говорит о том, что все было задано правильно.
[root@olymp conf]# ls -l
total 60
-rw-r--r-- 1 ejudge judges 111 Apr 2 09:24 copyright.html
-rw-r--r-- 1 ejudge judges 107 Apr 5 08:01 fp_futer.tex
-rw-r--r-- 1 ejudge judges 1390 Apr 5 08:01 fp_header.tex
-rw-r--r-- 1 ejudge judges 110 Apr 5 08:01 pp_futer.tex
-rw-r--r-- 1 ejudge judges 1273 Apr 5 08:01 pp_header.tex
-rw-r--r-- 1 ejudge judges 5227 Apr 5 07:43 serve.cfg
-rw-r--r-- 1 ejudge judges 107 Apr 5 08:01 up_futer.tex
-rw-r--r-- 1 ejudge judges 1386 Apr 5 08:01 up_header.tex
-rw-r--r-- 1 ejudge judges 36 Apr 2 09:24 user_footer.html
-rw-r--r-- 1 ejudge judges 106 Mar 31 23:44 user_header.html
[root@olymp conf]#
Code: Select all
rounding_mode = floor
cr_serialization_key = 22723
enable_runlog_merge
secure_run
detect_violations
enable_l10n
team_download_time = 0
cpu_bogomips = 4815
user_exam_protocol_header_file = "up_header.tex"
user_exam_protocol_footer_file = "up_footer.tex"
prob_exam_protocol_header_file = "pp_header.tex"
prob_exam_protocol_footer_file = "pp_footer.tex"
full_exam_protocol_header_file = "fp_header.tex"
full_exam_protocol_footer_file = "fp_footer.tex"
[language]
Check content говорит :
Нажимаю на Master или Judge :serve-control: ejudge, 7, checking contest settings
Contest is set up OK
Contest not available
Re: Печать экзаменационного протокола участника
Обратите внимание на название файлов.vomuan wrote:Code: Select all
-rw-r--r-- 1 ejudge judges 107 Apr 5 08:01 fp_futer.tex -rw-r--r-- 1 ejudge judges 110 Apr 5 08:01 pp_futer.tex -rw-r--r-- 1 ejudge judges 107 Apr 5 08:01 up_futer.tex -rw-r--r-- 1 ejudge judges 36 Apr 2 09:24 user_footer.html
Code: Select all
user_exam_protocol_footer_file = "up_footer.tex" prob_exam_protocol_footer_file = "pp_footer.tex" full_exam_protocol_footer_file = "fp_footer.tex"
Re: Печать экзаменационного протокола участника
cher wrote:Обратите внимание на название файлов.vomuan wrote:Code: Select all
-rw-r--r-- 1 ejudge judges 107 Apr 5 08:01 fp_futer.tex -rw-r--r-- 1 ejudge judges 110 Apr 5 08:01 pp_futer.tex -rw-r--r-- 1 ejudge judges 107 Apr 5 08:01 up_futer.tex -rw-r--r-- 1 ejudge judges 36 Apr 2 09:24 user_footer.html
Code: Select all
user_exam_protocol_footer_file = "up_footer.tex" prob_exam_protocol_footer_file = "pp_footer.tex" full_exam_protocol_footer_file = "fp_footer.tex"


сейчас попробую, благодарю!