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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!81
Generování protokolů a zpracování scanů
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Generování protokolů a zpracování scanů
mj/protokoly
into
devel
Overview
2
Commits
23
Changes
15
Merged
Martin Mareš
requested to merge
mj/protokoly
into
devel
3 years ago
Overview
2
Commits
23
Changes
2
Expand
0
0
Merge request reports
Compare
version 6
version 18
0e78c590
3 years ago
version 17
0e78c590
3 years ago
version 16
0e78c590
3 years ago
version 15
98d8e790
3 years ago
version 14
a456a9d4
3 years ago
version 13
6d3b9d63
3 years ago
version 12
e944a661
3 years ago
version 11
b7f34ea6
3 years ago
version 10
e16030f1
3 years ago
version 9
91ec58f2
3 years ago
version 8
eb4ddfdd
3 years ago
version 7
dfb82bf6
3 years ago
version 6
10215c15
3 years ago
version 5
2f37cc87
3 years ago
version 4
4de62fef
3 years ago
version 3
a0281047
3 years ago
version 2
508236cf
3 years ago
version 1
e0faf3a4
3 years ago
devel (base)
and
version 7
latest version
4b2f6d8e
23 commits,
3 years ago
version 18
0e78c590
23 commits,
3 years ago
version 17
0e78c590
23 commits,
3 years ago
version 16
0e78c590
23 commits,
3 years ago
version 15
98d8e790
23 commits,
3 years ago
version 14
a456a9d4
24 commits,
3 years ago
version 13
6d3b9d63
23 commits,
3 years ago
version 12
e944a661
22 commits,
3 years ago
version 11
b7f34ea6
18 commits,
3 years ago
version 10
e16030f1
17 commits,
3 years ago
version 9
91ec58f2
15 commits,
3 years ago
version 8
eb4ddfdd
16 commits,
3 years ago
version 7
dfb82bf6
14 commits,
3 years ago
version 6
10215c15
13 commits,
3 years ago
version 5
2f37cc87
12 commits,
3 years ago
version 4
4de62fef
11 commits,
3 years ago
version 3
a0281047
10 commits,
3 years ago
version 2
508236cf
11 commits,
3 years ago
version 1
e0faf3a4
10 commits,
3 years ago
Show latest version
2 files
+
38
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
mo/tex/protokol.tex
+
37
−
1
Options
@@ -23,7 +23,43 @@
\def\kolo
{
TODO
}
\def\kat
{
TODO
}
\def\field
#1#2
{
\hbox
to #1
{
#2
\hss
}}
\newbox\ellipsisbox
\setbox\ellipsisbox
=
\hbox
{
\bf
~
\dots
~~
}
\directlua
{
function cut
_
box(box
_
nr, max
_
w)
local box = tex.box[box
_
nr]
% nodetree.analyze(box)
local n
local total
_
w = 0
local last
_
visible
for n in node.traverse(box.head) do
local w, h, d = node.dimensions(n, n.next)
total
_
w = total
_
w + w
if total
_
w > max
_
w then
local new = node.copy
_
list(box.head, last
_
visible.next)
tex.box[box
_
nr] = node.hpack(new)
% nodetree.analyze(tex.box[box_nr])
return
end
if n.id == 0 or n.id == 2 or n.id == 29 then
% hlist, rule, glyph
last
_
visible = n
end
end
end
}
\def\limitedbox
#1#2
{
%
\setbox
0=
\hbox
{
#2
}
%
\ifdim
\wd
0 > #1
\relax
\dimen
0=
\dimexpr
#1 -
\wd\ellipsisbox\relax
\directlua
{
cut
_
box(0, tex.dimen[0])
}
%
\setbox
0=
\hbox
{
\box
0
\copy\ellipsisbox
}
%
\fi
\box
0
}
\def\field
#1#2
{
\hbox
to #1
{
\limitedbox
{
#1
}{
#2
}
\hss
}}
\def\fillin
#1
{
\smash
{
\lower
2pt
\hbox
to #1
{
\hrulefill
}}}
% \proto{kód}{jméno}{třída}{škola}{příklad}
Loading