Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
79257f58
Commit
79257f58
authored
4 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Protokoly: TeXová makra na sazbu
parent
77c64d6f
Branches
Branches containing commit
No related tags found
1 merge request
!81
Generování protokolů a zpracování scanů
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mo/tex/protokol.tex
+83
-0
83 additions, 0 deletions
mo/tex/protokol.tex
mo/tex/test.tex
+13
-0
13 additions, 0 deletions
mo/tex/test.tex
with
96 additions
and
0 deletions
mo/tex/protokol.tex
0 → 100644
+
83
−
0
View file @
79257f58
\input
ltluatex.tex
\input
luatex85.sty
\input
ucwmac2.tex
\setmargins
{
15mm
}
\setuppage
\nopagenumbers
\ucwmodule
{
luaofs
}
\settextsize
{
12
}
\baselineskip
=18pt
\uselanguage
{
czech
}
\frenchspacing
\newbox\logobox
\setbox\logobox
=
\putimage
{
width 21mm
}{
mo-logo.epdf
}
\input
qrcode.tex
\qrset
{
height=23mm, level=H, tight, silent
}
\newbox\codebox
\def\kolo
{
TODO
}
\def\kat
{
TODO
}
\def\field
#1#2
{
\hbox
to #1
{
#2
\hss
}}
\def\fillin
#1
{
\smash
{
\lower
2pt
\hbox
to #1
{
\hrulefill
}}}
% \proto{kód}{jméno}{třída}{škola}{příklad}
\def\proto
#1#2#3#4#5
{
\setbox\codebox
=
\hbox
{
\qrcode
{
#1
}}
\line
{
%
\vhang
{
\copy\logobox
}
%
\qquad
\vhanglines
{
\baselineskip
=14pt
\vskip
-5pt
\hbox
{
\bf\kolo
}
\hbox
{
\bf\kat
}}
%
\hfil
\smash
{
\vhang
{
\box\codebox
}}
%
}
\medskip
\prevdepth
=0pt
\leftline
{
%
\field
{
0.63
\hsize
}{
Jméno:
{
\bf
#2
}}
%
Třída:
{
\bf
#3
}
%
}
\leftline
{
%
\field
{
0.63
\hsize
}{
Škola:
{
\bf
#4
}}
%
Příklad:
{
\bf
#5
}
%
}
\leftline
{
%
\field
{
0.3
\hsize
}{
List
{
\bf
1
}
ze
\fillin
{
10mm
}}
%
\field
{
0.33
\hsize
}{
Hodnotil:
}
%
Bodů:
}
\bigskip
\hrule
\vfill\eject
}
\def\universal
{
\proto
{
MO:*
}{}{}{}{}}
\def\blank
{
%
\setbox\codebox
=
\hbox
{
\qrcode
[height=15mm]
{
MO:+
}}
\line
{
%
\field
{
0.63
\hsize
}{
Jméno:
}
%
\field
{
0.2
\hsize
}{
Třída:
}
%
\hss
\raise\ht\strutbox\hbox
{
\smash
{
\vhang
{
\box\codebox
}}}
}
\leftline
{
%
\field
{
0.63
\hsize
}{
List
\fillin
{
10mm
}
ze
\fillin
{
10mm
}}
%
\field
{
0.2
\hsize
}{
Příklad:
}
%
}
\bigskip
\nointerlineskip
\hbox
to 0.85
\hsize
{
\hrulefill
}
\vfill\eject
}
This diff is collapsed.
Click to expand it.
mo/tex/test.tex
0 → 100644
+
13
−
0
View file @
79257f58
\input
protokol.tex
\def\kolo
{
Krajské kolo 70. ročníku Matematické olympiády
}
\def\kat
{
Kategorie P, Zlínský kraj
}
\proto
{
MO:70-P-III-1:12345
}{
Pokusný Králík
}{
4/4
}{
Gymnázium Na Paloučku, Králíky
}{
P-III-1
}
\proto
{
MO:70-P-III-2:12345
}{
Pokusný Králík
}{
4/4
}{
Gymnázium Na Paloučku, Králíky
}{
P-III-2
}
\proto
{
MO:70-P-III-3:12345
}{
Pokusný Králík
}{
4/4
}{
Gymnázium Na Paloučku, Králíky
}{
P-III-3
}
\proto
{
MO:70-P-III-4:12345
}{
Pokusný Králík
}{
4/4
}{
Gymnázium Na Paloučku, Králíky
}{
P-III-4
}
\universal
\blank
\bye
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment