-
Notifications
You must be signed in to change notification settings - Fork 0
/
makra.tex
139 lines (110 loc) · 2.46 KB
/
makra.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
\input eplain
\input ucwmac/ucwmac2
\input info
\ucwmodule{luaofs}
\ucwmodule{ref}
\enablehyperlinks
%% Fonts
\def\rmfamily{CMU Serif}
\def\itfamily{CMU Serif Italic}
\def\bffamily{CMU Serif Bold}
\def\slfamily{CMU Serif}
\newdimen\fontsize
\newdimen\smallerfontsize
\fontsize=10pt
\smallerfontsize=9pt
\font\fsek="\bffamily" at 14pt
\font\rm="\rmfamily" at \fontsize
\font\it="\itfamily" at \fontsize
\font\bf="\bffamily" at \fontsize
\font\sl="\slfamily" at \smallerfontsize
\font\fnad="\bffamily" at 24pt
\font\fcontact="\rmfamily" at 10pt
\rm
\settextsize{10}
%% Page, spacing
\itemnarrow=0pt
\itemindent=0.25in
\preitemizeskip=0pt plus 2pt minus 1pt
\postitemizeskip=5pt plus 2pt minus 2pt
%\footline={}
\parskip=.15\fontsize
\baselineskip=1.3\fontsize
\parindent=0pt
\newskip\sekcebefore
\newskip\sekceafter
\sekcebefore=16pt plus 4pt minus 8pt
\sekceafter=5pt plus 2pt minus 1pt
\leftmargin=.75in
\rightmargin=.75in
\topmargin=.75in
\bottommargin=1in
\setuppage
%% Misc settings
\def\urlcol{\rgb{0 .2 .6}}
%\def\urlcol{\rgb{.6 .29 0}}
\automatichyphenmode=1
%% Headings
\newif\ifafterheading
\afterheadingfalse
\let\oldpar\par
\def\par{\afterheadingfalse\oldpar}
\def\sekce#1\par{\vskip \sekcebefore{\fsek#1}\par\vskip \sekceafter\afterheadingtrue}
%% Split lines
\newdimen\splitsizea
\newdimen\splitsizeb
\newdimen\splitpad
\newskip\splitskip
\splitpad=8pt
\splitskip=.4\baselineskip
\def\decora{}
\def\decorb{}
\long\def\splitcols#1#2{%
\splitsizea=#1
\splitsizeb=\hsize
\advance\splitsizeb by -\splitsizea
\advance\splitsizeb by -\splitpad
#2
}
\long\def\lin#1#2{%
\line{%
\hsize=\splitsizea
\vtop{\decora{\leavevmode#1}}%
\hss
\hsize=\splitsizeb
\vtop{\decorb{\leavevmode#2}}%
}%
\vskip\splitskip
}
%% Convenience macros
% macro for heading icon
\long\def\g[#1: #2]{\hbox{\fcontact\vrule height 2.5mm depth 1.5mm width 0pt\hbox to 4mm {\vbox{\vskip 1mm\img{height 4mm}{#1}\vskip -1mm}\hss} #2}}
% Project, experience
\def\nproj#1#2{{\bf#1 ({\csc #2})}}
\def\exp#1#2#3{{\bf #2} ({\csc #1})~– {\I #3}}
\def\url#1#2{%
\colorpush\urlcol%
\linkurl{#1}{#2}%
\colorpop
}
\def\todo#1{%
\colorpush\rgb{1 0 0}%
#1
\colorpop
}
\def\img#1#2{{%
\pdfximage #1 {#2}%
\pdfrefximage\pdflastximage
}}
\long\def\table#1{%
\parskip=0pt
\halign{%
\hss{\csc ##}\hskip .5em&\vtop{\parindent=0pt\advance\hsize by -1.65cm\advance\hsize by .6in\advance\hsize by .5em\strut##}\cr%
#1
}%
}
%% Symbols
\def\Cpp{C++}
\def\Cis{C\#}
\def\O{{\cal O}}
\def\log{\mathop{\hbox{log}}}