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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
|
% \iffalse meta-comment
%
% Copyright (C) 2017 by Olivier Pieters - me (at) olivierpieters (dot) be
% --------------------------------------------------------------------------
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Olivier Pieters.
%
% This work consists of the files limecv.dtx and limecv.ins
% and the derived filebase limecv.sty.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{limecv.dtx}
%</driver>
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{limecv}
%<*class>
[2017/09/12 v0.1.1 limecv Document class for CVs.]
%</class>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{listings}
\usepackage{tikz}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{xparse}
\NewDocumentCommand{\cvRequirement}{m}{\textbf{#1}}
\definecolor{cvGreen}{HTML}{357F2D}
\definecolor{cvGreenLight}{HTML}{b8e4b3}
\definecolor{cvRed}{HTML}{7f2d35}
\definecolor{cvDark}{HTML}{2F3142}
\definecolor{cvAccent}{HTML}{474A65}
\lstset{%
basicstyle=\ttfamily, % font style and size
breakatwhitespace=false,
breaklines=true,
numbers=left,
numberstyle=\tiny,
numbersep=5pt,
language=[LaTeX]{TeX},
keywordstyle=\color{blue},
commentstyle=\color{red}
}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{limecv.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
% \fi
%
% \CheckSum{1469}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
% \changes{v0.1}{2017/09/12}{Initial version.}
% \changes{v0.1.1}{2017/09/13}{Bug fixes and improved documentation.}
%
% \DoNotIndex{\NewDocumentCommand,\NewDocumentEnvironment}
%
% \providecommand*{\url}{\texttt}
%
% \def\fileversion{v0.1.1}
% \def\filedate{2017/09/12}
%
% \GetFileInfo{limecv.dtx}
% \title{The \textsf{limecv} document class\thanks{This document corresponds %
% to \textsf{limecv}~\fileversion, dated \filedate.}}
% \author{Olivier Pieters \\ \url{me (at) olivierpieters (dot) be}}
% \date{\fileversion~from \filedate}
%
% \maketitle
%
% \tableofcontents
%
% \section{Introduction}
%
% This document class is designed to facilitate easy development of
% curriculum vit\ae\ (CV). A set of predefined macros and environments are
% available for most common sections on a CV. These special elements have
% been designed to ease quick
% creation. This document class was co-designed with a business card, which
% can be found on GitHub: \url{https://github.com/opieters/business-card}.
%
% The design of this CV is split up in three parts, illustrated by
% \cref{design}. Each of these parts that make up this CV template
% will be detailed in the sections below.
%
% \begin{figure}[!ht]
% \centering
% \begin{tikzpicture}
% \draw (0,0) rectangle ++(4.20,5.94);
% \draw[fill=black!20] (0,0) rectangle ++(1.5,5.94);
% \draw (0.75,2.97) node {\LARGE 1};
% \draw (2.85,2.97) node {\LARGE 2};
% \end{tikzpicture}%
% \hspace{2cm}%
% \begin{tikzpicture}
% \draw (0,0) rectangle ++(-4.20,-5.94);
% \draw[fill=black!20] (0,0) rectangle ++(-4.2,-1.5);
% \end{tikzpicture}
% \caption{Illustation of a basic template. The image to the left depicts the
% actual CV: side bar to the left (1) with main content on the right (2).
% The image to the right depicts the cover letter design.}
% \label{design}
% \end{figure}
%
% \section{Requirements}
%
% It is advised to use the \cvRequirement{XeLaTeX} engine. However, there is
% also support for \cvRequirement{LaTeX} and \cvRequirement{LuaLaTeX}. In these
% cases, fonts might be different than intended and side bearings will not be
% corrected, since only the XeLaTeX engine has access to these. In the subsequent
% sections, it will always be assumed that the XeLaTeX compiler is used (unless
% noted otherwise).
%
% Any font can be used, though by default the \cvRequirement{Fira}
% \footnote{\url{https://github.com/mozilla/Fira}} font is used. This should be
% installed and accessible by the typesetting system. If another font is desired,
% it can be overwritten using the |sansfont| document class options and
% |\cvMainFont| command. The mono spaced font can be changed by means of the
% |monofont| class option.
%
% \cvRequirement{FontAwesome}\footnote{\url{http://fontawesome.io}} is the icon
% font used. This font should also be available and cannot be replaced by another
% icon font. Most modern TeX distributions ship with this font since they provide
% the |fontawesome| package.
%
% \section{General Macros and Document Class Options}
%
% \section{Side Bar}
%
% The side bar should contain personal information such as your name, job title
% (or industry or similar), contact information, small bio, interests and language
% skills. Special environments and commands have been defined for each of these
% sections and will be described below.
%
% Everything that should be inside the side bar should be placed in the |cvSideBar|
% environment. This environment is placed on the left side of the page by default.
% If it should be typeset on the right side, use the starred version (|cvSideBar*|)
%
% The following environments are available inside the side bar environment:
% |cvProfile|, |cvContact|, |cvLanguages|, |cvInterests| and |cvProjects|.
%
% \DescribeMacro{\cvID}
% This command typesets a picture (in a circle) with name and position underneath it.
% The argument order is: |\cvID{|\meta{first name}|}{|\meta{last name}|}{|
% \meta{picture location}|}{|\meta{job position}|}|. Empty fields are allowed for
% the third and fourth arguments. No picture and no job position will then be
% typeset. Example code:
% \iffalse
%<*example>
% \fi
\begin{lstlisting}
\cvID{John}{Doe}{profile_picture}{Broker}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \DescribeMacro{cvProfile}
% This environment contains a brief profile description or biography. No additional
% arguments are allowed. Example code:
% \iffalse
%<*example>
% \fi
\begin{lstlisting}
\begin{cvProfile}
A short biography goes here.
\end{cvProfile}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \DescribeMacro{cvContact}
% All the contact information goes here. Inside this environment, the following
% commands are available:
% \begin{itemize}
% \item \DescribeMacro{\cvContactAddress} |\cvContactAddress{|\meta{address}|}|
% typesets an address. How this address should be typeset exactly, is left to the
% user. The use of line breaks (|\\|) is allowed;
% \item \DescribeMacro{\cvContactEmail}
% |\cvContactEmail{|\meta{link}|}{|\meta{email address}|}| typesets an email
% address. The link variable should be a something like |mailto:john@doe.tld|.
% Clicking on the email address will then automatically open the default email
% client with this address as recipient. If the link argument is left empty, no
% link will be created.
% \item \DescribeMacro{\cvContactPhone}
% |\cvContactPhone{|\meta{mobile phone number}|}| typesets a mobile phone number.
% \item \DescribeMacro{\cvContactWebsite}
% |\cvContactWebsite{|\meta{link}|}{|\meta{website URL}|}| typesets a website. The
% link variable should be a something like |https://johndoe.tld|. Clicking on the
% website will then automatically open the default web browser. If the link argument
% is left empty, no action will be performed upon clicking on the website.
% \item \DescribeMacro{\cvContactGithub}
% |\cvContactGithub{|\meta{link}|}{|\meta{username}|}| typesets a GitHub profile.
% The link variable should be a valid link to the GitHub profile (for example
% |https://github.com/johndoe|). Clicking on the username will then automatically
% open the default web browser. If the link argument is left empty, no action will
% be performed upon clicking on the website.
% \item \DescribeMacro{\cvContactLinkedin}
% |\cvContactLinkedin{|\meta{link}|}{|\meta{username}|}| typesets a LinkedIn profile.
% The link variable should be a link to your LinkedIn profile homepage (for example
% |https://www.linkedin.com/in/johndoe/|). Clicking on the username will then
% automatically open the default web browser. If the link argument is left empty,
% no action will be performed upon clicking on the website.
% \item \DescribeMacro{\cvContactTwitter}
% |\cvContactTwitter{|\meta{link}|}{|\meta{username}|}| typesets a Twitter profile.
% The link variable should direct to your Twitter profile. An example link looks as
% follows: |https://twitter.com/johndoe|. Clicking on the username will then
% automatically open the default web browser. If the link argument is left empty,
% no action will be performed upon clicking on the website.this address as recipient.
% If the link argument is left empty, no link will be created.
% \item \DescribeMacro{\cvContactKeybase}
% |\cvContactKeybase{|\meta{link}|}{|\meta{fingerprint}|}| typesets a Keybase
% fingerprint (and account). The link variable should be a link to the KeyBase
% profile (e.g.\ |https://keybase.io/johndoe|). Clicking on the fingerprint will then
% automatically open the default web browser. If the link argument is left empty, no
% action will be performed upon clicking on the website.
% \end{itemize}
%
% A full example:
% \iffalse
%<*example>
% \fi
\begin{lstlisting}
\begin{cvContact}
\cvContactAddress{Some Street 78\\B-9000 Ghent\\Belgium}
\cvContactEmail{mailto:john@doe.tld}{john@doe.tld}
\cvContactPhone{+1 781 555 1212}
\cvContactWebsite{https://doe.tld}{doe.tld}
\cvContactGithub{https://github.com/johndoe}{johndoe}
\cvContactLinkedin{https://www.linkedin.com/in/johndoe/}{johndoe}
\cvContactTwitter{https://twitter.com/johndoe}{@johndoe}
\cvContactKeybase{https://keybase.io/johndoe}{\texttt{AAAA 5555 BBBB FFFF}}
\end{cvContact}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% If you wish to add contact information that is not available by default, you can extend
% the command using two internal commands: |\cv@ContactTemplateLink| and
% |\cv@ContactTemplate|. See the source code for usage instructions.
%
% \DescribeMacro{cvLanguages}
% This environment is used to showcase language skills. The
% \DescribeMacro{\cvLanguage} |\cvLanguage{|\meta{language}|}{|\meta{skill level}|}|
% should be used inside this environment. The skill level is a real value with a maximum
% value of 5. If higher values are used, the result will not be typeset properly. An
% example is included below.
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}
\begin{cvLanguages}
\cvLanguage{English (native)}{5}
\cvLanguage{German (B1)}{3}
\cvLanguage{Spanish}{3}
\end{cvLanguages}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \DescribeMacro{cvInterests}
% Typeset interests (can be both professional and personal) using |cvInterests|.
% By default it just typesets a list of items in the long format
% (|long|). The short format can be activated by passing the |short| option to the
% environment. Inside this environment, three commands can be used: |\cvInterestsPersonal|,
% |\cvInterestsProfessional| and |\cvInterest|. \DescribeMacro{\cvInterestsPersonal}
% |\cvInterestsPersonal| and \DescribeMacro{\cvInterestsProfessional}
% |\cvInterestsProfessional| add optional sections inside this environment to differentiate
% between personal and professional interests respectively. Both macros have no options nor
% arguments. The \DescribeMacro{\cvInterest} |\cvInterest{|\meta{icon}|}{|\meta{interest}|}|
% command takes an icon and interest as arguments.
%
% Examples that illustrate the different options are depicted below:
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}
\begin{cvInterests}
\cvInterestsPersonal
\cvInterest{\faTrain}{model trains}
\cvInterest{\faFlask}{(applied) sciences}
\cvInterest{\faSuitcase}{travelling}
\cvInterestsProfessional
\cvInterest{\faGraduationCap}{machine learning}
\cvInterest{\faCogs}{robotics}
\end{cvInterests}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}
\begin{cvInterests}[short]
\cvInterestsPersonal
\cvInterest{\faTrain}{model trains}
\cvInterest{\faFlask}{(applied) sciences}
\cvInterest{\faSuitcase}{travelling}
\cvInterest{\faCamera}{photography}
\cvInterest{\faGamepad}{gaming}
\cvInterest{\faMusic}{music}
\end{cvInterests}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \DescribeMacro{cvProjects} If you have interesting (side) projects that are relevant for
% your CV, you can list them using the |cvProjects| environment. Inside this environment
% you can use the \DescribeMacro{\cvProject}
% |\cvProject[|\meta{options}|]{|\meta{name}|}{|\meta{description}|}| macro to list all
% your projects. The only options currently allowed in \meta{options} are an image
% (using |image|) and a URL (using |link|). This image must be an external file and the user
% must handle its size through |width| or |height|. Example usage:
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}
\begin{cvProjects}
\cvProject[image=clock,width=1cm]{yanic}{An IoT nixie clock.}
\cvProject{\texttt{limecv}}{A \LaTeX\ document class for curriculum vit\ae.}
\end{cvProjects}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% It is currently not possible to extend the side bar with additional environments. To add
% your own, look at the source code and create your own \LaTeX-style hack.
%
% \section{Main Content}
%
% The main content section includes details on your education, experience, skills, references
% and more. Several environments have been designed to suit specific needs. These will be
% discussed next.
%
% \DescribeMacro{cvMainContent}
% Everything in the main content section should be encapsulated in the |cvMainContent|
% environment. This environment defines four new environments: |cvEducation|,
% |cvExperience|, |cvSkills| and |cvReferences|. These four environments are self
% explanatory in terms of functionality. We will detail each of these
% environments.
%
% Note that |cvMainContent| also has a starred variant (|cvMainContent*|). The
% function is similar to |cvSideBar*|, in the sense that it places everything to the
% left instead of the default right location.
%
% \DescribeMacro{cvEducation}
% The education environment creates a timeline styled list of your education. Individual
% education items should be listed by means of the |\cvItem{|\meta{details}|}| macro which
% is available within this environment. Instead of forcing a specific layout structure, it
% was preferred to leave the actual mark-up to the end user. \emph{All} information
% concerning a single education should be passed to this single argument. However, the user
% is always welcome to create his own styling macro that takes multiple arguments. This is
% illustrated by the examples below.
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={\lstinline!cvEducation! \emph{without} special user mark-up
command.}]
\begin{cvEducation}
\cvItem{Evening class: Chinese\\
Some School, City. September 2015 -- June 2016\\
Achieved A2 language skill in Chinese (Mandarin).}
\cvItem{Bachelor of Science in Biochemistry and Biotechnology\\
University, City. September 2009 -- June 2012\\
General training in the basic sciences and the molecular life science.}
\cvItem{Master of Science in Biochemistry and Biotechnology\\
University, City. September 2012 -- June 2015\\
Acquisition of insight into and knowledge of possibilities for application in the area
of biochemistry and biotechnology, specific with applications in biomedical application
and due problem-solving reasoning skills.}
\end{cvEducation}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={\lstinline!cvEducation! \emph{with} special user mark-up
command.}]
% in preamble:
\newfontfamily\firaMedium{Fira Sans Medium}
\NewDocumentCommand{\cvEducation}{mmm}{{\firaMedium #1}\\ #2\\ \emph{#3}}
% in document:
\begin{cvEducation}
\cvItem{\cvEducation{Evening class: Chinese}%
{Some School, City. September 2015 -- June 2016}%
{Achieved A2 language skill in Chinese (Mandarin).}}
\cvItem{\cvEducation{Bachelor of Science in Biochemistry and Biotechnology}%
{University, City. September 2009 -- June 2012}%
{General training in the basic sciences and the molecular life science.}}
\cvItem{\cvEducation{Master of Science in Biochemistry and Biotechnology}%
{University, City. September 2012 -- June 2015}%
{Acquisition of insight into and knowledge of possibilities for application
in the area of biochemistry and biotechnology, specific with applications
in biomedical application and due problem-solving reasoning skills.}}
\end{cvEducation}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \DescribeMacro{cvExperience}
% |cvExperience| works very similar to |cvEducation|. If follows the exact same structure
% and has the same design philosophy where you should use |\cvItem| inside this environment
% to typeset the individual items in a timeline style. \Cref{cvExperience} illustrates this with an example.
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={\lstinline!cvExperience! code example.},label=cvExperience]
\begin{cvExperience}
\cvItem{Student Job\\
\textsc{\selectfont Company X}, Location X. Summer 2010\\
Integer tincidunt dapibus consectetur. Nullam tristique aliquam luctus. Sed ut ante velit.
Nulla pharetra maximus lacus at elementum. Suspendisse sodales consectetur metus, sit amet
ultricies ipsum ultrices ut.};
\cvItem{Internship\\
\textsc{Company Y}, Location Y. June 2012 -- August 2012\\
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dictum cursus sapien, id
eleifend mi pellentesque id. Etiam lobortis eu odio a sodales. Phasellus ut dolor feugiat,
lacinia lectus in, blandit metus. Fusce lacinia dolor et metus gravida pulvinar sit amet
et ex.};
\cvItem{Internship\\
\textsc{Company Z}, Location Z. August 2014 -- September 2014\\
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dictum cursus sapien, id
eleifend mi pellentesque id. Etiam lobortis eu odio a sodales. Phasellus ut dolor feugiat,
lacinia lectus in, blandit metus. Fusce lacinia dolor et metus gravida pulvinar sit amet
et ex. Suspendisse vestibulum, leo malesuada molestie maximus, sem risus ornare elit, vitae
sodales felis elit in ipsum.};
\end{cvExperience}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \DescribeMacro{cvSkills}
% The skills section is contained within the |cvSkills| environment. This environment typesets
% your skills on a 5-level (discrete) scale. These are divided into two columns. To that end,
% two macros are available: |cvSkillOne| and |cvSkillTwo|. \DescribeMacro{cvSkillTwo}
% |cvSkillTwo{|\meta{skill level}|}{|\meta{skill}|}{|\meta{skill level}|}{|\meta{skill}|}|
% typesets a row of two skills. If you have an odd number of items, \DescribeMacro{cvSkillOne}
% |cvSkillOne{|\meta{skill level}|}{|\meta{skill}|}| should be used. An example of a skill-list
% can be found in \cref{cvSkills}.
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={Illustration of the \lstinline!cvSkills! environment.},label=cvSkills]
\begin{cvSkills}
\cvSkillTwo{5}{MATLAB}{5}{\LaTeX}
\cvSkillTwo{4}{Python}{4}{VHDL}
\cvSkillTwo{4}{Microsoft Office}{4}{macOS}
\cvSkillOne{3}{C, C++}
\end{cvSkills}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \DescribeMacro{cvReferences}
% The final section is intended to list all your references. These go inside the |cvReferences|
% environment. The enumeration of the different items should be done using the
% \DescribeMacro{\cvAddReference} |\cvAddReference{|\meta{information}|}| macro. The following
% keys are available: |name|, |company|, |job|, |address line 1|, |address line 2|,
% |address line 3|, |mobile phone|, |work phone| and |email|. These are all optional arguments
% and will be typeset consistently between the two references per row. When adding two references,
% the left one should be specified first using |\cvAddReference*|. This will store the values and
% typeset them when adding the second reference through |\cvAddReference|. Note that
% |\cvAddReference| should be used if only one reference needs to be typese. \Cref{cvReferences}
% illustrates the usage of this environment.
%
% \emph{Important remark}: the comment after the usage of |\cvAddReference| is required!
% Otherwise, spacing will not be as intended.
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={\lstinline!cvReferences! code example.},label=cvReferences]
\begin{cvReferences}
\cvAddReference{%
name=Jane Smith,
company=Company ABC Co.\ Ltd.,
job=Job title,
address line 1=Street lane 2,
address line 2=B-1150 Brussels,
mobile phone=+1 781 555 1212}% <<-- Important!!!
\end{cvReferences}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \section{Cover Letter}
%
% A final (optional) part of a CV is the cover letter. This is a fairly simple part to create
% design wise, but probably the hardest to write in an actual CV.
%
% \DescribeMacro{cvCoverLetter}
% The cover letter environment is |cvCoverLetter| and contains all the cover letter details.
% It will automatically add a header with your name and position based on the information
% filled in in |\cvID|.
%
% \DescribeMacro{\cvBeneficiary}
% The |\cvBeneficiary{|\meta{options}|}| macro offers a convenience wrapper to typeset the
% beneficiary. Possible options are |name|, |position|, |company|, |address line 1|,
% |address line 2| and |address line 3|. The remainder of the cover letter design is up
% to the user. An example design can be found in \cref{cvCoverLetter}.
%
% \DescribeMacro{\cvFullName}
% |\cvFullName| typeset the authors name based on the data provided in |cvID|.
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={\lstinline!cvCoverLetter! code example.},label=cvCoverLetter]
\section{Cover Letter}
\begin{cvCoverLetter}
\cvBeneficiary{%
name=Jane Smith,
position=Position,
company=Company,
address line 1=Address line 1,
address line 2=Address line 2}
Dear Miss.\ Smith
\vspace{\baselineskip}
\lipsum[1-3]
\vspace{\margin}
\cvFullName
\end{cvCoverLetter}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% \section{Change Style and Layout}
%
% To change the style, one can redefine the colours, lengths and TikZ styles used throughout
% the document class.
%
% By default the following colours are defined:
% \begin{itemize}
% \item |cvGreen| default dark green colour (hex value: {\color{cvGreen} |357F2D|})
% \item |cvGreenLight| light green colour, for larger shapes and backgrounds (hex value:
% {\color{cvGreenLight} |B8E4B3|})
% \item |cvDark| default text colour (hex value: {\color{cvDark} |2F3142|})
% \item |cvRed| currently not used (hex value: {\color{cvRed} |7F2D35|})
% \item |cvAccent| lighter grey shade for accented text (hex value: {\color{cvAccent}
% |474A65|})
% \end{itemize}
%
% To change these, use the code from \cref{cvColour} in the preamble:
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={Colour editing.},label=cvColour]
\definecolor{cvDark}{HTML}{000000}
\end{lstlisting}
% \iffalse
%</example>
% \fi
%
% By overwriting the following styles, one can change the appearance of multiple TikZ nodes.
% The following styles are available.
% \begin{itemize}
% \item |interesticon|
% \item |interesttext|
% \item |eventdottext|
% \item |invisibletimedot|
% \item |timedot|
% \item |eventdot|
% \item |contactIcon|
% \item |contactText|
% \item |headerIcon|
% \item |skillLevel|
% \item |languageText|
% \item |skillText|
% \item |progressArea|
% \item |progressBar|
% \item |sectionTitle|
% \item |sectionEduText|
% \end{itemize}
%
% Adding your own styles is easy with the code from \cref{cvTikZStyle}.
%
% \iffalse
%<*example>
% \fi
\begin{lstlisting}[caption={Change TikZ style.},label=cvTikZStyle]
\tikzset{
interesticon/.style = {},
}
\end{lstlisting}
% \iffalse
%</example>
% \fi
% Spacing used inside the document can also be modified by the user. The following
% lengths have been defined:
% \begin{itemize}
% \item |\cvColSep| Distance between columns of |cvSkills|.
% Default value: |1cm|.
% \item |\cvNodeSep| Not used currently.
% Default value: |0.75cm|.
% \item |\cvTimeDotDiameter| Size of the dots in a timeline.
% Default value: |3pt|.
% \item |\cvMargin| Margin around the entire page.
% Default value: |1cm|.
% \item |\cvSideWidth| Width of the side bar.
% Default value: |0.3\paperwidth-\cvMargin|.
% \item |\cvMainWidth| Width of the main content section.
% Default value: |\paperwidth-4\cvMargin-\cvSideWidth|.
% \item |\cvTimeDotSep| Distance between timeline dot and text.
% Default value: |0.4cm|.
% \item |\cvStartEndSep| Not used.
% Default value: |0.3cm|.
% \item |\cvItemSep| Distance between |cvItem| entries.
% Default value: |0.4cm|.
% \item |\cvTableSepWidth| Distance between two columns of |cvReferences| environment.
% Default value: |0.3cm|.
% \item |\cvCoverLetterHeight| Height of the coloured bar at the top of the cover letter.
% Default value: |\cvSideWidth|.
% \item |\cvCoverLetterWidth| Width of the cover letter text. This can be used to improve
% to layout. Default value: |\cvMainWidth+3\cvMargin|.
% \item |\cvPictureWidth| Diameter of the profile picture.
% Default value: |4cm|.
% \item |\cvProgressAreaWidth| Length of a progress bar for the languages section.
% Default value: |5em|.
% \item |\cvProgressAreaHeight| Height of a progress bar for the languages section.
% Default value: |0.75em|.
% \item |\cvSectionSep| Distance between sections of the main content section.
% Default value: |0.6cm|.
% \item |\cvSectionSBSep| Distance between sections of the side bar section.
% Default value: |4pt|.
% \item |\cvTitleLineWidth| Line width of horizontal line below section title.
% Default value: |2pt|.
% \item |\cvTitleLineSpacing| Distance from bottom of the titles of the main content section to
% the horizontal centre of line. Default value: |0.1cm|.
% \item |\cv@projectSep| Internal length.
% Automatically set to |\cvItemSep|.
% \item |\cvProjectDetailsSep| Internal spacing between details of a single project.
% Default value: |0.2cm|.
% \item |\cvInterestDetailsSep| Distance between items in case the |long| options is used for the
% |cvInterests| environment. Default value: |4pt|.
% \item |\cvContactItemSep| Distance between items in the |cvContact| environment.
% Default value: |5pt|.
% \item |\cvCoverLetterLineWidth| Line width of line below cover letter name.
% Default value: |3pt|.
% \item |\cvCoverLetterPositionSpacing| Distance between name and position in the cover letter.
% Default value: |10pt|.
% \item |\cvSBSectionLineWidth| Line width of left and right lines next to the titles of in the
% side bar. Default value: |1pt|.
% \item |\cvCoverLetterLineSpacing| Distance between name and line below it in the cover letter.
% Default value: |0pt|.
% \item |\cvIDNameSep| Distance between first and last name.
% Default value: |0.1cm|.
% \item |\cvPositionSep| Distance before and after the position.
% Default value: |0.5cm|.
% \item |\cvSkillSep| Distance between skills.
% Default value: |1ex|.
% \item |\cvHeaderIconWidth| Automatically set, currently has no visible effect on document.
% Default value: |0pt|.
% \end{itemize}
%
% The fonts can also be changed, either by using the |sansfont| and |monofont| class options, or
% by using the default ways provided by \LaTeX, XeLaTeX and LuaLaTeX. Note that the |fontspec|
% package is already loaded by the class, so you can directly use |\setmainfont| in the preamble
% if you are using the XeLaTeX or LuaLaTeX engine.
%
% \section{Example}
%
% The source code of a typical CV document can be found in the examples folder.
% \Cref{example-cv,example-cover-letter} depict the resulting PDF documents.
%
% \begin{figure}[!ht]
% \IfFileExists{./mwe-xelatex.pdf}{\includegraphics[width=\textwidth,page=1]%
% {mwe-xelatex.pdf}}{No built examples found. Figure not included.}
% \caption{Example CV (scaled).}
% \label{example-cv}
% \end{figure}
%
% \begin{figure}[!ht]
% \IfFileExists{./mwe-xelatex.pdf}{\includegraphics[width=\textwidth,page=2]%
% {mwe-xelatex.pdf}}{No built examples found.}
% \caption{Example cover letter (scaled). Figure not included.}
% \label{example-cover-letter}
% \end{figure}
%
% \StopEventually{}
%
% \section{Implementation}
%
% \iffalse
%<*class>
% \fi
%
% limecv.cls
%
% Copyright 2017 Olivier Pieters
%
% A (Xe/Lua)LaTeX document class
%
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Olivier Pieters.
% Contact the maintainer at: me (at) olivierpieters (dot) be.
%
%------------------------------------------------------
%
% Include minimal required packages
%
% process key-value class options
% \begin{macrocode}
\RequirePackage{kvoptions}
% \end{macrocode}
%------------------------------------------------------
%
% Process options of this class.
%
% \begin{macrocode}
\DeclareBoolOption[false]{print}
\newif\ifcv@fontPath
\cv@fontPathfalse
\DeclareStringOption{path}
\AddToKeyvalOption*{path}{\cv@fontPathtrue}
\DeclareStringOption[Fira Sans]{sansfont}
\DeclareStringOption[Fira Mono]{monofont}
\ProcessKeyvalOptions*
% \end{macrocode}
%------------------------------------------------------
%
% Process general class options
%
% pass document options to article class, which forms
% base of this document class
% \begin{macrocode}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{article}%
}
\ProcessOptions\relax
\LoadClass{article}
% \end{macrocode}
%------------------------------------------------------
%
% Include required packages
%
% check if XeTeX is used
% \begin{macrocode}
\RequirePackage{ifxetex}
% \end{macrocode}
% check if LuaTeX is used
% \begin{macrocode}
\RequirePackage{ifluatex}
% \end{macrocode}
% Advanced command definitions
% \begin{macrocode}
\RequirePackage{xparse}
% \end{macrocode}
% complex length calculations
% \begin{macrocode}
\RequirePackage{calc}
% \end{macrocode}
% colour options
% \begin{macrocode}
\RequirePackage{xcolor}
% \end{macrocode}
% advanced table options
% \begin{macrocode}
\RequirePackage{tabularx}
% \end{macrocode}
% links
% \begin{macrocode}
\RequirePackage{hyperref}
\RequirePackage{url}
% \end{macrocode}
% remove paragraph indent
% \begin{macrocode}
\RequirePackage{parskip}
% \end{macrocode}
% string operations
% \begin{macrocode}
\RequirePackage{xstring}
% \end{macrocode}
% key-value parsing within document
% \begin{macrocode}
\RequirePackage{xkeyval}
% \end{macrocode}
%------------------------------------------------------
%
% Define colours
%
% \begin{macrocode}
\definecolor{cvGreen}{HTML}{357F2D}
\definecolor{cvGreenLight}{HTML}{b8e4b3}
\definecolor{cvRed}{HTML}{7f2d35}
\definecolor{cvDark}{HTML}{2F3142}
\definecolor{cvAccent}{HTML}{474A65}
% \end{macrocode}
%------------------------------------------------------
%
% Define new table column types with fixed width.
%
% \begin{macrocode}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\%
\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\%
\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\%
\arraybackslash\hspace{0pt}}m{#1}}
% \end{macrocode}
%------------------------------------------------------
%
% Misc and helper commands
%
% Add comma in a cvReference entry.
% \begin{macrocode}
\NewDocumentCommand{\cvComma}{}{,}
% \end{macrocode}
% Define check if argument is empty
% argument order: |{argument}{if empty}{if not empty}|
%
% Based on: http://tex.stackexchange.com/questions/63223
%
% \begin{macrocode}
\ExplSyntaxOn
\DeclareExpandableDocumentCommand{\@IfNoValueOrEmptyTF}%
{mmm}{\IfNoValueTF{#1}{#2}{
\tl_if_empty:nTF {#1} {#2} {#3}%
}
}
\ExplSyntaxOff
% \end{macrocode}
%
% \begin{macro}{\ifnodedefined}
% Check if node is defined.
% Based on: https://tex.stackexchange.com/questions/37709
% \begin{macrocode}
\long\def\ifnodedefined#1#2#3{%
\@ifundefined{pgf@sh@ns@#1}{#3}{#2}%
}
% \end{macrocode}
% \end{macro}
%
%------------------------------------------------------
%
% Update global font colour
%
% \begin{macrocode}
\NewDocumentCommand{\globalcolor}{m}{%
\color{#1}\global\let\default@color\current@color
}
\AtBeginDocument{\globalcolor{cvDark}}
% \end{macrocode}
%------------------------------------------------------
%
% TikZ
%
% \begin{macrocode}
\RequirePackage{tikz}
\RequirePackage{graphicx}
\usetikzlibrary{%
calc,
positioning,
fit,
arrows.meta,
backgrounds,
matrix}
\tikzset{
interesticon/.style = {},
interesttext/.style = {},
eventdottext/.style = {},
invisibletimedot/.style = {},
timedot/.style = {},
contactIcon/.style={},
contactText/.style={},
headerIcon/.style={},
skillLevel/.style={},
languageText/.style={},
skillText/.style={},
progressArea/.style={},
progressBar/.style={},
sectionTitle/.style={},
sectionEduText/.style={%
eventdottext,
anchor=north west
},
cv@interesticon/.style = {%
minimum width=\cvHeaderIconWidth,
interesticon
},
cv@interesttext/.style = {%
interesttext,
},
cv@eventdottext/.style = {%
text width=\cvMainWidth-\cvTimeDotSep,
black,
anchor=north west,
eventdottext,
},
cv@invisibletimedot/.style = {%
circle,
minimum width=\cvTimeDotDiameter,
anchor=center,
invisibletimedot,
},
cv@timedot/.style = {%
cv@invisibletimedot,
draw,
fill,
black,
timedot,
},
cv@contactIcon/.style={%
minimum height=\baselineskip,
contactIcon,
},
cv@contactText/.style={%
minimum height=\baselineskip,
text depth=0pt,
contactText,
},
cv@headerIcon/.style={%
minimum width=\cvHeaderIconWidth,
anchor=center,
headerIcon,
},
cv@skillLevel/.style={skillLevel,},
cv@languageText/.style={languageText,},
cv@skillText/.style={skillText,},
cv@progressArea/.style={%
minimum width=\cvProgressAreaWidth,
minimum height=\cvProgressAreaHeight,
rectangle,
draw,
cvGreen,
progressArea
},
cv@progressBar/.style={%
minimum height=\cvProgressAreaHeight,
rectangle,
draw,
fill,
cvGreen,
anchor=west,
progressBar
},
cv@sectionTitle/.style={%
anchor=north west,
align=left,
sectionTitle,
},
cv@sectionEduText/.style={%
cv@eventdottext,
anchor=north west,
sectionEduText,
},
}
% \end{macrocode}
%------------------------------------------------------
%
% XeLaTeX/LuaLaTeX specific
%
% \begin{macrocode}
\NewDocumentCommand{\cv@loadFonts}{}{
\RequirePackage{fontspec}
\RequirePackage{fontawesome}
% \end{macrocode}
% set fonts
% \begin{macrocode}
\setmainfont[Numbers={Monospaced}]{\limecv@sansfont}
\setsansfont{\limecv@sansfont}
\setmonofont{\limecv@monofont}
\ifcv@fontPath
\newfontfamily{\cv@FA}[Path=\limecv@path]%
{FontAwesome}
\else
\newfontfamily{\cv@FA}{FontAwesome}
\fi
% \end{macrocode}
% define some missing icons
% \begin{macrocode}
\ProvideDocumentCommand{\faAddressCard}{}{{\cv@FA%
\symbol{"F2B9}}}
\ProvideDocumentCommand{\faVcard}{}{{\cv@FA%
\symbol{"F2BB}}}
\ProvideDocumentCommand{\faMicrochip}{}{{\cv@FA%
\symbol{"F2DB}}}
% \end{macrocode}
% future possibility:
% https://raw.githubusercontent.com/xdanaux/moderncv/
% master/moderncviconsmarvosym.sty
% \begin{macrocode}
}
\ifxetex
\cv@loadFonts
\else
\ifluatex
\cv@loadFonts
\else
\RequirePackage{fontawesome}
\RenewDocumentCommand{\familydefault}{}{\sfdefault}
\fi
\fi
% \end{macrocode}
%------------------------------------------------------
%
% XeLaTeX/LuaLaTeX specific
%
% Removes left/right side bearing of character
%
% Based on:
% https://tex.stackexchange.com/questions/274479
% https://tex.stackexchange.com/questions/34563
%
% \begin{macrocode}
\ifxetex
\NewDocumentCommand{\kright}{m}{\leavevmode #1%
\kern-\XeTeXglyphbounds3 \the\XeTeXcharglyph`#1 }
\NewDocumentCommand{\kleft}{m}{\leavevmode %
\kern-\XeTeXglyphbounds1 \the\XeTeXcharglyph`#1 #1}
\else
\NewDocumentCommand{\kright}{m}{#1}
\NewDocumentCommand{\kleft}{m}{#1}
\fi
% \end{macrocode}
% Extracts n-th charcter from a string
% Argument order: string - character number
% \begin{macrocode}
\ExplSyntaxOn
\DeclareExpandableDocumentCommand{\extract}{mm}{%
\tl_item:nn { #1 } { #2 }%
}
\ExplSyntaxOff
% \end{macrocode}
%------------------------------------------------------
%
% Page layout
%
% remove page numbers
% \begin{macrocode}
%% \pagenumbering{gobble}
% \end{macrocode}
% remove all page styling
% \begin{macrocode}
\pagestyle{empty}
% \end{macrocode}
% not used
% \begin{macrocode}
\newlength\cvColSep
\setlength\cvColSep{1cm} % 2 times column separation!
% \end{macrocode}
% not used
% \begin{macrocode}
\newlength\cvNodeSep
\setlength\cvNodeSep{0.75cm}
\newlength\cvTimeDotDiameter
\setlength\cvTimeDotDiameter{3pt}
\newlength\cvMargin
\setlength\cvMargin{1cm}
\newlength\cvSideWidth
\setlength\cvSideWidth{0.3\paperwidth-\cvMargin}
\newlength\cvMainWidth
\setlength\cvMainWidth{\paperwidth-4\cvMargin-\cvSideWidth}
\newlength\cvTimeDotSep
\setlength\cvTimeDotSep{0.4cm}
\newlength\cvStartEndSep
\setlength\cvStartEndSep{0.3cm}
\newlength\cvItemSep
\setlength\cvItemSep{0.4cm}
\newlength\cvTableSepWidth
\setlength\cvTableSepWidth{0.3cm}
\newlength\cvCoverLetterHeight
\setlength\cvCoverLetterHeight{\cvSideWidth}
\newlength\cvCoverLetterWidth
\setlength\cvCoverLetterWidth{\cvMainWidth+3\cvMargin}
\newlength\cvPictureWidth
\setlength\cvPictureWidth{4cm}
% \end{macrocode}
% progress area size definition
% \begin{macrocode}
\newlength\cvProgressAreaWidth
\setlength\cvProgressAreaWidth{5em}
\newlength\cvProgressAreaHeight
\setlength\cvProgressAreaHeight{0.75em}
\newlength\cvSectionSep
\setlength\cvSectionSep{0.6cm}
\newlength\cvSectionSBSep
\setlength\cvSectionSBSep{4pt}
% \end{macrocode}
% line width of horizontal line below section title
% \begin{macrocode}
\newlength\cvTitleLineWidth
\setlength\cvTitleLineWidth{2pt}
% \end{macrocode}
% distance from bottom of text to centre of line
% \begin{macrocode}
\newlength\cvTitleLineSpacing
\setlength\cvTitleLineSpacing{0.1cm}
% \end{macrocode}
% set to |\cvItemSep| by default (do not overwrite!)
% \begin{macrocode}
\newlength\cv@projectSep
\setlength\cv@projectSep{0cm}
% \end{macrocode}
% internal spacing between details of a single project
% \begin{macrocode}
\newlength\cvProjectDetailsSep
\setlength\cvProjectDetailsSep{0.2cm}
\newlength\cvInterestDetailsSep
\setlength\cvInterestDetailsSep{4pt}
\newlength\cvContactItemSep
\setlength\cvContactItemSep{5pt}
% \end{macrocode}
% line width of line below cover letter name
% \begin{macrocode}
\newlength\cvCoverLetterLineWidth
\setlength\cvCoverLetterLineWidth{3pt}
\newlength\cvCoverLetterPositionSpacing
\setlength\cvCoverLetterPositionSpacing{10pt}
\newlength\cvSBSectionLineWidth
\setlength\cvSBSectionLineWidth{1pt}
\newlength\cvCoverLetterLineSpacing
\setlength\cvCoverLetterLineSpacing{0pt}
\newlength\cvIDNameSep
\setlength\cvIDNameSep{0.1cm}
\newlength\cvPositionSep
\setlength\cvPositionSep{0.5cm}
\newlength\cvSkillSep
\setlength\cvSkillSep{1ex}
\newlength\cvHeaderIconWidth
\setlength\cvHeaderIconWidth{0pt}
% \end{macrocode}
%------------------------------------------------------
%
% New styling commands
%
%
% Style main section title
% \begin{macrocode}
\NewDocumentCommand{\cvSection}{m}{\Large\textbf{#1}}
% \end{macrocode}
% Typeset skill level
% \begin{macrocode}
\newcount\my@repeat@count
\NewDocumentCommand{\cvSkill}{m}{%
\begingroup
\my@repeat@count=\z@
\@whilenum\my@repeat@count<#1\do{\faCircle\advance%
\my@repeat@count\@ne}%
\my@repeat@count=\numexpr5-\z@\relax
\@whilenum\my@repeat@count>#1\do{\faCircleO\advance%
\my@repeat@count\m@ne}%
\endgroup
}
% \end{macrocode}
% Create horizontal line from edge to edge for side bar
% section titles.
%
% Based on:
% https://tex.stackexchange.com/questions/65731
% Alternative:
% https://tex.stackexchange.com/questions/15119
% \begin{macrocode}
\NewDocumentCommand{\cvhrulefill}{}{{\color{cvGreen}%
\leavevmode\leaders\hrule height \cvSBSectionLineWidth\hfill\kern\z@}}
\NewDocumentCommand{\ruleline}{m}{\par\noindent\raisebox{.6ex}{%
\makebox[\linewidth]{\cvhrulefill\hspace{1ex}%
\raisebox{-.6ex}{#1}\hspace{1ex}\cvhrulefill}}}
% \end{macrocode}
% Title counters
% \begin{macrocode}
\newcounter{cv@titlePrev}
\setcounter{cv@titlePrev}{0}
\newcounter{cv@titleNext}
\setcounter{cv@titleNext}{1}
% \end{macrocode}
% Draw everything associated with main section title.
% \begin{macrocode}
\NewDocumentCommand{\cv@Title}{mm}{%
\ifnodedefined{cv@last item \the\value{cv@lastItem}}{%
\setlength\cvHeaderIconWidth{\maxof{\cvHeaderIconWidth}{\widthof{\Large #2}}}%
\protected@write\@auxout{}{\global\cvHeaderIconWidth=\the\cvHeaderIconWidth}
\node[%
below=\cvSectionSep of cv@last item %
\the\value{cv@lastItem}.south west,
cv@sectionTitle]
(cv@title \the\value{cv@titleNext})
{\begingroup\edef\y{\endgroup%
\cvSection\bgroup\noexpand\kleft{%
\extract{#1}{1}}}%
\y\StrGobbleLeft{#1}{1}\egroup};
\node[%
left=\cvTimeDotSep of cv@title \the\value{cv@titleNext},
cv@headerIcon]
{#2};
\node[
below=\cvSectionSep of cv@last item %
\the\value{cv@lastItem}.south west,
cv@sectionTitle]
(cv@title \the\value{cv@titleNext} dummy) {%
\phantom{\cvSection{Education}}};
\begin{scope}[on background layer]
\draw[line width=\cvTitleLineWidth,cvGreen]
let \p1=(cv@title \the\value{cv@titleNext} %
dummy.south west),
\p2=(current page.east) in
(\x1,\y1-\cvTitleLineSpacing) to (\x2,\y1-\cvTitleLineSpacing);
\end{scope}
}{%
\node[cv@sectionTitle] at (0,0) (cv@title %
\the\value{cv@titleNext})
{\begingroup\edef\y{\endgroup%
\cvSection\bgroup\noexpand\kleft{\extract{#1}{1}}}%
\y\StrGobbleLeft{#1}{1}\egroup};
\node[%
left=\cvTimeDotSep of cv@title \the\value{cv@titleNext},
cv@headerIcon]
{#2};
\begin{scope}[on background layer]
\draw[line width=\cvTitleLineWidth,cvGreen]
let \p1=(cv@title \the\value{cv@titleNext}%
.south west),
\p2=(current page.east) in
(\x1,\y1-\cvTitleLineSpacing) to (\x2,\y1-\cvTitleLineSpacing);
\end{scope}
}%
\stepcounter{cv@titlePrev}%
\stepcounter{cv@titleNext}
}
% \end{macrocode}
% Draw the timeline
% \begin{macrocode}
\NewDocumentCommand{\cv@EndSectionDraw}{}{
\draw (start) to (end.center);}
% \end{macrocode}
% Item counters
% \begin{macrocode}
\newcounter{cv@itemPrev}
\setcounter{cv@itemPrev}{0}
\newcounter{cv@itemNext}
\setcounter{cv@itemNext}{1}
\newcounter{cv@lastItem}
\setcounter{cv@lastItem}{1}
% \end{macrocode}
% List a timeline entry
% \begin{macrocode}
\NewDocumentCommand{\cv@definecvItem}{}{
\NewDocumentCommand{\cvItem}{m}{%
\ifnodedefined{item \the\value{cv@itemPrev}}{%
\node[%
below=\cvItemSep of item %
\the\value{cv@itemPrev}.south west,
cv@eventdottext]
(item \the\value{cv@itemNext} header)
{\phantom{Evening}};
\node[%
below=\cvItemSep of item %
\the\value{cv@itemPrev}.south west,
cv@sectionEduText]
(item \the\value{cv@itemNext})
{##1};
\node[%
left=\cvTimeDotSep of item %
\the\value{cv@itemNext} header,
cv@timedot]
{};
}{
\node[%
below=\cvItemSep of cv@title %
\the\value{cv@titlePrev}.south west,
cv@eventdottext]
(item \the\value{cv@itemNext} header)
{\phantom{Evening}};
\node[
below=\cvItemSep of cv@title %
\the\value{cv@titlePrev}.south west,
cv@sectionEduText]
(item \the\value{cv@itemNext})
{##1};
\node[
left=\cvTimeDotSep of item %
\the\value{cv@itemNext} header,
cv@timedot]
(start)
{};
}
\node[
left=\cvTimeDotSep of item %
\the\value{cv@itemNext}.south west,
cv@invisibletimedot]
(end)
{};
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
}
}
% \end{macrocode}
%------------------------------------------------------
%
% Commands specific for cvSkills section
%
%
% information in temporary command yes/no
% \begin{macrocode}
\newif\ifcv@firstskill
% \end{macrocode}
% temporary command that stores skill information
% \begin{macrocode}
\NewDocumentCommand{\cv@skillsTable}{}{}
% \end{macrocode}
% typeset two skills
% \begin{macrocode}
\NewDocumentCommand{\cvSkillTwo}{mmmm}{%
\ifcv@firstskill
\g@addto@macro\cv@skillsTable{\cvSkill{#1} %
& #2 & \cvSkill{#3} & #4}
\cv@firstskillfalse
\else
\g@addto@macro\cv@skillsTable{\\[\cvSkillSep] \cvSkill{#1} %
& #2 & \cvSkill{#3} & #4}
\fi
}
% \end{macrocode}
% typeset one skill
% \begin{macrocode}
\NewDocumentCommand{\cvSkillOne}{mm}{%
\ifcv@firstskill
\g@addto@macro\cv@skillsTable{\cvSkill{#1} & #2}
\cv@firstskillfalse
\else
\g@addto@macro\cv@skillsTable{\\[\cvSkillSep] \cvSkill{#1} & #2}
\fi
}
% \end{macrocode}
%------------------------------------------------------
%
% cvMainContent environments
%
%
% \begin{macrocode}
\NewDocumentEnvironment{cvMainContent}{}{%
\begin{tikzpicture}[%
every node/.style={%
inner sep=0pt,
outer sep=0pt},
remember picture,
overlay,
shift={($(current page.north west)+%
(\cvSideWidth+3\cvMargin+\cvTimeDotSep,-\cvMargin)$)}]
}{%
\end{tikzpicture}
}
\NewDocumentEnvironment{cvMainContent*}{}{%
\stepcounter{titlePrev}
\stepcounter{titleNext}
\begin{tikzpicture}[%
every node/.style={
inner sep=0pt,
outer sep=0pt},
remember picture,
overlay,
shift={($(current page.north west)+%
(\cvMargin+\cvTimeDotSep,-\cvMargin)$)}]
}{%
\end{tikzpicture}%
}
% \end{macrocode}
%------------------------------------------------------
%
% cvEductation environment
%
% \begin{macrocode}
\NewDocumentEnvironment{cvEducation}{}{%
\cv@Title{Education}{\faGraduationCap}
% \end{macrocode}
% insures uniqueness
% \begin{macrocode}
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
\cv@definecvItem
}{%
\cv@EndSectionDraw
\stepcounter{cv@lastItem}
\draw (item \the\value{cv@itemPrev}.south west)
node (cv@last item \the\value{cv@lastItem}) {};
}
% \end{macrocode}
%------------------------------------------------------
%
% cvExperience environment
%
% \begin{macrocode}
\NewDocumentEnvironment{cvExperience}{}{%
\cv@Title{Experience}{\faBriefcase}
% \end{macrocode}
% insures uniqueness
% \begin{macrocode}
\stepcounter{cv@itemPrev}
\stepcounter{cv@itemNext}
\cv@definecvItem
}{%
\cv@EndSectionDraw
\stepcounter{cv@lastItem}
\draw (item \the\value{cv@itemPrev}.south west)
node (cv@last item \the\value{cv@lastItem}) {};
}
% \end{macrocode}
%------------------------------------------------------
%
% cvSkills environment
%
% \begin{macrocode}
\NewDocumentEnvironment{cvSkills}{}{%
\cv@Title{Skills}{\faStar}
\global\cv@firstskilltrue
}{%
\node[
below=\cvSectionSep of cv@title \the\value{cv@titlePrev}%
.south west,
anchor=north west] (skills) %
{\begin{tabular}{@{}ll@{\hskip\cvColSep}ll@{}}%
\cv@skillsTable
\end{tabular}};
\stepcounter{cv@lastItem}
\draw (skills.south west) node %
(cv@last item \the\value{cv@lastItem}) {};
}
% \end{macrocode}
%------------------------------------------------------
%
% cvReferences environment
%
% \begin{macrocode}
\NewDocumentEnvironment{cvReferences}{}{%
\cv@Title{References}{\faLink}
\node[
below=\cvSectionSep of cv@title \the\value{cv@titlePrev}.%
south west,
anchor=north west,
] (cv@References) \bgroup %
}{%
\egroup;
\stepcounter{cv@lastItem}
\draw (cv@References.south west) node %
(cv@last item \the\value{cv@lastItem}) {};
}
% \end{macrocode}
% Key-value parsing structure
% \begin{macrocode}
\pgfkeys{/@cv/references/.is family,
/@cv/references/.unknown/.style = %
{\pgfkeyscurrentpath/\pgfkeyscurrentname/%
.initial = #1}}
\newif\ifcv@refName
\pgfkeys{/@cv/references/name/.is if=cv@refName}
\pgfkeys{/@cv/references/name=false}
\newif\ifcv@refPosition
\pgfkeys{/@cv/references/position/.is if=cv@refPosition}
\pgfkeys{/@cv/references/position=false}
\newif\ifcv@refCompany
\pgfkeys{/@cv/references/company/.is if=cv@refCompany}
\pgfkeys{/@cv/references/copmany=false}
\newif\ifcv@refAddressLineA
\pgfkeys{/@cv/references/address line 1/.is if=%
cv@refAddressLineA}
\pgfkeys{/@cv/references/address line 1=false}
\newif\ifcv@refAddressLineB
\pgfkeys{/@cv/references/address line 2/.is if=%
cv@refAddressLineB}
\pgfkeys{/@cv/references/address line 2=false}
\newif\ifcv@refAddressLineC
\pgfkeys{/@cv/references/address line 3/.is if=%
cv@refAddressLineC}
\pgfkeys{/@cv/references/address line 3=false}
\newif\ifcv@refWorkPhone
\pgfkeys{/@cv/references/work phone/.is if=%
cv@refWorkPhone}
\pgfkeys{/@cv/references/work phone=false}
\newif\ifcv@refMobilePhone
\pgfkeys{/@cv/references/mobile phone/.is if=%
cv@refMobilePhone}
\pgfkeys{/@cv/references/mobile phone=false}
\newif\ifcv@refStored
\pgfkeys{/@cv/references/value stored/.is if=%
cv@refStored}
\pgfkeys{/@cv/references/value stored=false}
% \end{macrocode}
%
% keys
% \begin{macrocode}
\define@key{cvAddReferenceA}{name}{%
\global\def\cv@refAName{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/name = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceA}{company}{%
\global\def\cv@refACompany{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/company = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceA}{position}{%
\global\def\cv@refAPosition{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/position = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceA}{address line 1}{%
\global\def\cv@refAAddressLineA{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/address line 1 = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceA}{address line 2}{%
\global\def\cv@refAAddressLineB{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/address line 2 = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceA}{address line 3}{%
\global\def\cv@refAAddressLineC{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/address line 3 = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceA}{phone work}{%
\global\def\cv@refAPhoneWork{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/phone work = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceA}{mobile phone}{%
\global\def\cv@refAMobilePhone{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/mobile phone = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{name}{%
\global\def\cv@refBName{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/name = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{company}{%
\global\def\cv@refBCompany{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/company = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{position}{%
\global\def\cv@refBPosition{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/position = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{address line 1}{%
\global\def\cv@refBAddressLineA{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/address line 1 = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{address line 2}{%
\global\def\cv@refBAddressLineB{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/address line 2 = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{address line 3}{%
\global\def\cv@refBAddressLineC{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/address line 3 = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{phone work}{%
\global\def\cv@refBPhoneWork{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/phone work = true}}}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cvAddReferenceB}{mobile phone}{%
\global\def\cv@refBMobilePhone{#1}%
\@IfNoValueOrEmptyTF{#1}{}{\pgfkeys{/@cv/references/mobile phone = true}}}
\NewDocumentCommand{\cvAddReference}{sm}{%
\IfBooleanTF{#1}{%
\setkeys{cvAddReferenceA}{name=,company=,
position=,address line 1=,address line 2=,
address line 3=,phone work=,mobile phone=,#2}
\pgfkeys{/@cv/references/name = true}%
}{%
\setkeys{cvAddReferenceB}{name=,company=,
position=,address line 1=,address line 2=,
address line 3=,phone work=,mobile phone=,#2}
\ifcv@refStored%
\begin{tabular}{@{}L{0.5\cvMainWidth-0.5\cvTimeDotSep%
-0.5\cvTableSepWidth}@{\hskip \cvTableSepWidth}%
L{0.5\cvMainWidth-0.5\cvTimeDotSep%
-0.5\cvTableSepWidth}@{}}%
\ifcv@refName \cv@refAName & \cv@refBName \fi %
\ifcv@refCompany \\ \cv@refACompany & \cv@refBCompany \fi %
\ifcv@refPosition \\ \cv@refAPosition & \cv@refBPosition \fi %
\ifcv@refAddressLineA \\ \cv@refAAddressLineA & \cv@refBAddressLineA \fi %
\ifcv@refAddressLineB \\ \cv@refAAddressLineB & \cv@refBAddressLineB \fi %
\ifcv@refAddressLineC \\ \cv@refAAddressLineC & \cv@refBAddressLineC \fi %
\ifcv@refWorkPhone \\ \cv@refAPhoneWork & \cv@refBPhoneWork \fi %
\ifcv@refMobilePhone \\ \cv@refAMobilePhone & \cv@refBMobilePhone \fi %
\end{tabular}%
\pgfkeys{/@cv/references/value stored = false}%
\else%
\begin{tabular}{@{}L{0.5\cvMainWidth%
-0.5\cvTimeDotSep}@{}}%
\ifcv@refName \cv@refBName \fi %
\ifcv@refCompany \\ \cv@refBCompany \fi %
\ifcv@refPosition \\ \cv@refBPosition \fi %
\ifcv@refAddressLineA \\ \cv@refBAddressLineA \fi %
\ifcv@refAddressLineB \\ \cv@refBAddressLineB \fi %
\ifcv@refAddressLineC \\ \cv@refBAddressLineC \fi %
\ifcv@refWorkPhone \\ \cv@refBPhoneWork \fi %
\ifcv@refMobilePhone \\ \cv@refBMobilePhone \fi %
\end{tabular}%
\fi%
}%
}
% \end{macrocode}
%
%------------------------------------------------------
%
% cvSideBar environment
%
%
% \begin{macrocode}
\NewDocumentEnvironment{cvSideBar}{}{%
\vspace*{\fill}
\vspace*{-0.5\cvMargin}
\begin{tikzpicture}[remember picture,overlay]
\fill[cvGreenLight] (current page.north west) rectangle %
++(\cvSideWidth+2\cvMargin,-\paperheight);
\end{tikzpicture}%
\begin{minipage}{\cvSideWidth}
\begin{center}
}{%
\end{center}
\end{minipage}
\vspace*{\fill}
}
\NewDocumentEnvironment{cvSideBar*}{}{%
\vspace*{\fill}
\vspace*{-0.5\cvMargin}
\begin{tikzpicture}[remember picture,overlay]
\fill[cvGreenLight] (current page.north east) rectangle %
++(-\cvSideWidth-2\cvMargin,-\paperheight);
\end{tikzpicture}%
\begin{minipage}{\cvSideWidth}
\begin{center}
}{%
\end{center}
\end{minipage}
\vspace*{\fill}
}
% \end{macrocode}
%------------------------------------------------------
%
% cvProfile environment
%
% \begin{macrocode}
\NewDocumentEnvironment{cvProfile}{}{%
\vspace{\cvSectionSBSep}
\ruleline{Profile}
}{%
}
% \end{macrocode}
%------------------------------------------------------
%
% cvContact environment
%
%
% \begin{macrocode}
\NewDocumentCommand{\cv@ContactTemplate}{mm}{
\NewDocumentCommand{#1}{m}{
\ifcv@contactfirst \\ \else %
\global\cv@contactfirsttrue \fi\node[cv@contactIcon]{#2};
\pgfmatrixnextcell \node[cv@contactText]{##1};
}
}
\NewDocumentCommand{\cv@ContactTemplateLink}{mm}{
\NewDocumentCommand{#1}{mm}{
\ifcv@contactfirst \\ \else %
\global\cv@contactfirsttrue \fi\node[cv@contactIcon]{#2};
\pgfmatrixnextcell \node[cv@contactText]{%
\@IfNoValueOrEmptyTF{##1}{##2}{\href{##1}{##2}}};
}
}
\newif\ifcv@contactfirst
\NewDocumentEnvironment{cvContact}{}{%
\vspace{\cvSectionSBSep}
\ruleline{Contact}%
\vspace{\cvSectionSBSep}
\global\cv@contactfirstfalse
\cv@ContactTemplate{\cvContactAddress}{\faMapMarker}
\cv@ContactTemplate{\cvContactPhone}{\faPhone}
\cv@ContactTemplateLink{\cvContactEmail}{\faEnvelope}
\cv@ContactTemplateLink{\cvContactWebsite}{\faGlobe}
\cv@ContactTemplateLink{\cvContactGithub}{\faGithub}
\cv@ContactTemplateLink{\cvContactLinkedin}{\faLinkedinSquare}
\cv@ContactTemplateLink{\cvContactTwitter}{\faTwitter}
\cv@ContactTemplateLink{\cvContactKeybase}{\faKey}
\begin{tikzpicture}[%
every node/.style={inner sep=0pt, outer sep=0pt}]
\matrix [
column 1/.style={anchor=center},
column 2/.style={anchor=west,align=left},
column sep=\cvContactItemSep,
row sep=\cvContactItemSep,
inner sep=0pt,
outer sep=0pt] (contact) \bgroup
}{%
\\\egroup; % \\ required, does not compile otherwise
\end{tikzpicture}%
}
% \end{macrocode}
%------------------------------------------------------
%
% cvInterests environment
%
% \begin{macrocode}
\newif\ifcv@interestLong
\cv@interestLongtrue
\newcounter{cv@cvInterestCounter}
\setcounter{cv@cvInterestCounter}{1}
\newcounter{cv@cvInterestCounterPrev}
\setcounter{cv@cvInterestCounterPrev}{0}
\newif\ifcv@interestContent
\cv@interestContentfalse
\NewDocumentCommand{\cv@TypesetTableRows}{}{}
\newif\ifcv@interesttikzopen
\cv@interesttikzopenfalse
\NewDocumentCommand{\cv@interestClose}{}{
\ifcv@interestLong
\ifcv@interesttikzopen
\end{tikzpicture}
\global\cv@interesttikzopenfalse
\fi
\else
\ifcv@interestContent
\begin{tabular}{@{}cl@{}}
\cv@TypesetTableRows
\end{tabular}
\fi
\fi
}
\NewDocumentCommand{\cv@interestOpen}{}{
\ifcv@interestLong
\ifcv@interesttikzopen
\else
\cv@interesttikzopentrue
\begin{tikzpicture}[%
every node/.style={inner sep=0cm,outer sep=0cm}]
\fi
\else
\global\def\cv@TypesetTableRows{}
\global\cv@interestContentfalse
\fi
}
\NewDocumentCommand{\cv@definecv@interestSection}{}{
\NewDocumentCommand{\cv@interestSection}{m}{%
\cv@interestClose\\
\ifcv@interestContent
\vspace*{2\cvSectionSBSep}
\fi
{\color{cvGreen}---} ##1 {\color{cvGreen}---}\\
\vspace*{\cvSectionSBSep}
\cv@interestOpen
}
}
\NewDocumentCommand{\cv@definecvInterestLong}{}{
\NewDocumentCommand{\cvInterest}{mm}{%
\ifcv@interestContent %
\node[
below=\cvItemSep of cv@interest text \the\value{cv@cvInterestCounterPrev},
cv@interesticon]
(cv@interest icon \the\value{cv@cvInterestCounter}) {##1};
\node[
below=\cvInterestDetailsSep of cv@interest icon \the\value{cv@cvInterestCounter},
cv@interesttext]
(cv@interest text \the\value{cv@cvInterestCounter}) {##2};
\else
\cv@interestOpen
\node[cv@interesticon] (cv@interest icon \the\value{cv@cvInterestCounter}) {##1};
\node[
below=\cvInterestDetailsSep of cv@interest icon \the\value{cv@cvInterestCounter},
cv@interesttext]
(cv@interest text \the\value{cv@cvInterestCounter}) {##2};
\fi
\stepcounter{cv@cvInterestCounter}
\stepcounter{cv@cvInterestCounterPrev}
\global\cv@interestContenttrue
}
}
\NewDocumentCommand{\cv@definecvInterestShort}{}{
% \end{macrocode}
% https://tex.stackexchange.com/questions/12761
% \begin{macrocode}
%\def\Z{\vphantom{\parbox[c]{1cm}{\Huge Something Long}}}
\NewDocumentCommand{\cvInterest}{mm}{%
% \end{macrocode}
% parse optinal argument if present
% \begin{macrocode}
\g@addto@macro\cv@TypesetTableRows{##1}%
\g@addto@macro\cv@TypesetTableRows{&}%
\g@addto@macro\cv@TypesetTableRows{##2}%
\g@addto@macro\cv@TypesetTableRows{\\[\cvInterestDetailsSep]}%
\global\cv@interestContenttrue
}
}
\ExplSyntaxOn
\NewDocumentEnvironment{cvInterests}{o}{%
% \end{macrocode}
% set defaults
% \begin{macrocode}
\cv@interestLongtrue
% \end{macrocode}
% parse optional arguments
% \begin{macrocode}
\@IfNoValueOrEmptyTF{#1}{}{%
\str_case:nnF {#1}{
{long}{\cv@interestLongtrue}
{short}{\cv@interestLongfalse}
}{\ClassError{limecv}{Unkown option `#1' for cvInterests %
environment.}{Only `long' and `short' are valid options %
for this environment.}}
}
\cv@definecv@interestSection
% \end{macrocode}
% define new commands
% \begin{macrocode}
\NewDocumentCommand{\cvInterestsPersonal}{}{%
\cv@interestSection{\faUser\ \emph{Personal}}}
% \end{macrocode}
% \begin{macrocode}
\NewDocumentCommand{\cvInterestsProfessional}{}{%
\cv@interestSection{\faBriefcase\ \emph{Professional}}}
% \end{macrocode}
% \begin{macrocode}
\ifcv@interestLong
\cv@definecvInterestLong
\else
\cv@definecvInterestShort
\fi
%%%%%%
\vspace{\cvSectionSBSep}
\ruleline{Interests}%
\vspace{\cvSectionSBSep}
}{%
\cv@interestClose
}
\ExplSyntaxOff
% \end{macrocode}
%------------------------------------------------------
%
% cvProject environment
%
%
% \begin{macrocode}
\newif\ifcv@projectImage
\cv@projectImagefalse
\newif\ifcv@projectLink
\cv@projectLinkfalse
\newif\ifcv@projectWidth
\cv@projectWidthfalse
\newif\ifcv@projectHeight
\cv@projectHeightfalse
\newcounter{cv@projectCurrent}
\setcounter{cv@projectCurrent}{1}
\newcounter{cv@projectPrevious}
\setcounter{cv@projectPrevious}{0}
% \end{macrocode}
%
% \begin{macrocode}
\define@key{cv@Project}{image}{%
\global\def\cv@projectImage{#1}%
\cv@projectImagetrue}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cv@Project}{link}{%
\global\def\cv@projectLink{#1}%
\cv@projectLinktrue}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cv@Project}{width}{%
\global\def\cv@projectWidth{#1}%
\cv@projectWidthtrue}
% \end{macrocode}
%
%
% \begin{macrocode}
\define@key{cv@Project}{height}{%
\global\def\cv@projectHeight{#1}%
\cv@projectHeighttrue}
\NewDocumentCommand{\cv@definecvProject}{}{
\NewDocumentCommand{\cvProject}{omm}{%
% \end{macrocode}
% default settings
% \begin{macrocode}
\cv@projectImagefalse
\cv@projectLinkfalse
\cv@projectWidthfalse
\cv@projectHeightfalse
% \end{macrocode}
% parse optional arguments
% \begin{macrocode}
\@IfNoValueOrEmptyTF{##1}{}{\setkeys{cv@Project}{##1}}
\ifnodedefined{project \the\value{cv@projectPrevious} %
description}{}{%
\node (project \the\value{cv@projectPrevious} %
description) {};
}
% \end{macrocode}
% draw image
% \begin{macrocode}
\ifcv@projectImage
\ifcv@projectWidth
\node[below=\cv@projectSep of project %
\the\value{cv@projectPrevious} description]
(project \the\value{cv@projectCurrent} image)
{\includegraphics[width=\cv@projectWidth]{\cv@projectImage}};
\else
\ifcv@projectHeight
\node[below=\cv@projectSep of project %
\the\value{cv@projectPrevious} description]
(project \the\value{cv@projectCurrent} image)
{\includegraphics[height=\cv@projectHeight]{\cv@projectImage}};
\else
\ClassError{limecv}{No width or height specified, %
but image specified.}{Always specify the height or %
width if an image is set.}
\fi
\fi
% \end{macrocode}
% draw title (and add href if specified)
% \begin{macrocode}
\node[%
text width=\cvSideWidth,
align=center,
below=\cvProjectDetailsSep of project \the\value{cv@projectCurrent} image]
(project \the\value{cv@projectCurrent} title) {%
\ifcv@projectLink \href{\cv@projectLink}{##2} \else ##2 \fi };
\else
% \end{macrocode}
% draw title (and add href if specified)
% \begin{macrocode}
\node[below=\cv@projectSep of project %
\the\value{cv@projectPrevious} description,
text width=\cvSideWidth,
align=center]
(project \the\value{cv@projectCurrent} title) {%
\ifcv@projectLink \href{\cv@projectLink}{##2} \else ##2 \fi };
\fi
\node[
below=\cvProjectDetailsSep of project \the\value{cv@projectCurrent} title,
text width=\cvSideWidth,
align=center]
(project \the\value{cv@projectCurrent} description) {##3};
\setlength\cv@projectSep\cvItemSep
% \end{macrocode}
% increase counter value
% \begin{macrocode}
\stepcounter{cv@projectCurrent}
\stepcounter{cv@projectPrevious}
}
}
% \end{macrocode}
%
% \begin{macrocode}
\NewDocumentEnvironment{cvProjects}{}{%
\vspace{\cvSectionSBSep}
\ruleline{Projects}%
\vspace{\cvSectionSBSep}
\cv@definecvProject
\begin{tikzpicture}[every node/.style={inner sep=0cm,outer sep=0cm}]
}{
\end{tikzpicture}
}
% \end{macrocode}
%------------------------------------------------------
%
% cvLanguages environment
%
% \begin{macrocode}
\newcounter{cv@languages}
\setcounter{cv@languages}{1}
\pgfkeys{/@cv/languages/.is family,
/@cv/languages/.unknown/.style = {%
\pgfkeyscurrentpath/\pgfkeyscurrentname/.initial = #1}}
\NewDocumentEnvironment{cvLanguages}{}{%
\NewDocumentCommand{\cvLanguage}{mm}{%
{\globaldefs=1\relax\pgfkeys{%
/@cv/languages/lang\the\value{cv@languages} = ##2}}
\node[cv@languageText]{##1}; \pgfmatrixnextcell %
\node[cv@progressArea] (cv@language \the\value{cv@languages}) {}; \\
\stepcounter{cv@languages}
}%
\vspace{\cvSectionSBSep}
\ruleline{Languages}%
\vspace{\cvSectionSBSep}
\begin{tikzpicture}[%
every node/.style={text depth=0pt,inner sep=0pt,outer sep=0pt}]
\matrix [
column 1/.style={anchor=east},
column sep=1.5\cvSectionSBSep,
row sep=1.5\cvSectionSBSep,
column 2/.style={anchor=west,align=left}
] (contact) \bgroup
}{%
\\\egroup;
\newcounter{cv@languagelevel}
\setcounter{cv@languagelevel}{1}
\loop\ifnum\value{cv@languagelevel}<\value{cv@languages}
\draw (cv@language \the\value{cv@languagelevel}.west) %
node[%
cv@progressBar,
minimum width=\pgfkeysvalueof{%
/@cv/languages/lang\the\value{cv@languagelevel}}em]%
{};
\stepcounter{cv@languagelevel}
\repeat
\end{tikzpicture}
}
% \end{macrocode}
%------------------------------------------------------
%
% cvCoverLetter environment
%
%
%
% cover letter keys
% \begin{macrocode}
\define@key{cvCoverLetter}{name}{%
% \end{macrocode}
%
%
% \begin{macro}{\cv@coverletterName}
% \begin{macrocode}
\global\def\cv@coverletterName{#1}}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macrocode}
\define@key{cvCoverLetter}{company}{%
% \end{macrocode}
%
%
% \begin{macro}{\cv@coverletterCompany}
% \begin{macrocode}
\global\def\cv@coverletterCompany{#1}}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macrocode}
\define@key{cvCoverLetter}{position}{%
% \end{macrocode}
%
%
% \begin{macro}{\cv@coverletterPosition}
% \begin{macrocode}
\global\def\cv@coverletterPosition{#1}}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macrocode}
\define@key{cvCoverLetter}{address line 1}{%
% \end{macrocode}
%
%
% \begin{macro}{\cv@coverletterAddressLineA}
% \begin{macrocode}
\global\def\cv@coverletterAddressLineA{#1}}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macrocode}
\define@key{cvCoverLetter}{address line 2}{%
% \end{macrocode}
%
%
% \begin{macro}{\cv@coverletterAddressLineB}
% \begin{macrocode}
\global\def\cv@coverletterAddressLineB{#1}}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macrocode}
\define@key{cvCoverLetter}{address line 3}{%
% \end{macrocode}
%
%
% \begin{macro}{\cv@coverletterAddressLineC}
% \begin{macrocode}
\global\def\cv@coverletterAddressLineC{#1}}
\NewDocumentCommand{\cv@definecvBeneficiary}{}{
\NewDocumentCommand{\cvBeneficiary}{m}{%
\setkeys{cvCoverLetter}{name={},company={},
position={},address line 1={},address line 2={},
address line 3={},##1}
\begin{tabular}{@{}l}
\@IfNoValueOrEmptyTF{%
\cv@coverletterName}{}{%
\MakeUppercase{\cv@coverletterName}} %
\@IfNoValueOrEmptyTF{%
\cv@coverletterCompany}{}{\\ %
\cv@coverletterCompany} %
\@IfNoValueOrEmptyTF{%
\cv@coverletterPosition}{}{\\ %
\cv@coverletterPosition} %
\@IfNoValueOrEmptyTF{%
\cv@coverletterAddressLineA}{}{\\ %
\cv@coverletterAddressLineA} %
\@IfNoValueOrEmptyTF{%
\cv@coverletterAddressLineB}{}{\\ %
\cv@coverletterAddressLineB} %
\@IfNoValueOrEmptyTF{%
\cv@coverletterAddressLineC}{}{\\ %
\cv@coverletterAddressLineC} %
\end{tabular}%
\vspace{\cvMargin}
}
}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\NewDocumentCommand{\cv@definecvFullName}{}{
\NewDocumentCommand{\cvFullName}{}{%
\pgfkeysvalueof{/@cv/info/first name} %
\pgfkeysvalueof{/@cv/info/last name}
}
}
\NewDocumentEnvironment{cvCoverLetter}{}{%
\begin{tikzpicture}[%
remember picture,
overlay,
every node/.style={inner sep=0cm,outer sep=0cm}]
% \end{macrocode}
% draw green background
% \begin{macrocode}
\begin{scope}[on background layer]
\fill[cvGreenLight] (current page.north west) rectangle %
++(\paperwidth,-\cvCoverLetterHeight);
\end{scope}
\draw (current page.north east) %
++(-0.5\paperwidth+0.5\cvCoverLetterWidth,
-\cvCoverLetterHeight/2) node (cv@h7) {};
\node[anchor=east] at (cv@h7) (cv cover letter name){%
\fontsize{50}{60}\selectfont
% \end{macrocode}
% trick to expand argument such that `kleft` sees an
% alphabetic constant (i.e. a single letter)
% \begin{macrocode}
\begingroup\edef\y{\endgroup%
\noexpand\kleft{\cv@FirstNameLetter}}%
\y
\StrGobbleLeft{\pgfkeysvalueof{/@cv/info/first name}}{1}\space
\StrGobbleRight{\pgfkeysvalueof{/@cv/info/last name}}{1}
% \end{macrocode}
% same trick
% trick to expand argument such that `kleft` sees an
% alphabetic constant (i.e. a single letter)
% \begin{macrocode}
\begingroup\edef\y{\endgroup%
\noexpand\kright{\cv@LastNameLetter}}%
\y
};
\node[%
align=right,
cvAccent,
below=\cvCoverLetterPositionSpacing of cv cover letter name.south east,
anchor=north east]{%
\StrGobbleRight{\pgfkeysvalueof{/@cv/info/position}}{1}
\begingroup\edef\y{\endgroup%
\noexpand\kright{\cv@PositionLetter}}%
\y};
\begin{scope}[on background layer]
\draw[line width=\cvCoverLetterLineWidth,cvGreen]
($(cv cover letter name.south west)+(0,-\cvCoverLetterLineSpacing)$) to
($(cv cover letter name.south east)+(0,-\cvCoverLetterLineSpacing)$);
\end{scope}
\end{tikzpicture}
\vspace{\dimexpr\cvCoverLetterHeight\relax}
\begin{center}
\begin{minipage}{\cvCoverLetterWidth}
\today
\vspace{\baselineskip}
\cv@definecvBeneficiary
\cv@definecvFullName
}{%
\end{minipage}
\end{center}
}
% \end{macrocode}
%------------------------------------------------------
%
% cvID macro
%
%
% \begin{macrocode}
\pgfkeys{/@cv/info/.is family,
/@cv/info/.unknown/.style = %
{\pgfkeyscurrentpath/\pgfkeyscurrentname/%
.initial = #1}}
% \end{macrocode}
% first name, second name, picture, position
% \begin{macrocode}
\NewDocumentCommand{\cvID}{mmmm}{
\@IfNoValueOrEmptyTF{#3}{}{
\begin{tikzpicture}
\node[
circle,
text=white,
minimum size=\cvPictureWidth,
path picture={
\node at (path picture bounding box.center){
\includegraphics[width=\cvPictureWidth]{#3}
};
}]
{};
\end{tikzpicture}\\
}
{\LARGE
#1
\vspace{\cvIDNameSep}
#2}
\vspace{\cvPositionSep}
\@IfNoValueOrEmptyTF{#4}{}{\color{cvAccent} #4}
\vspace{\cvPositionSep}
{\globaldefs=1\relax\pgfkeys{/@cv/info/first name = %
#1}\def\cv@FirstNameLetter{\extract{#1}{1}}}
{\globaldefs=1\relax\pgfkeys{/@cv/info/last name = %
#2}\def\cv@LastNameLetter{\extract{#2}{-1}}}
{\globaldefs=1\relax\pgfkeys{/@cv/info/position = %
#4}\def\cv@PositionLetter{\extract{#4}{-1}}}
}
% \end{macrocode}
%
% \iffalse
%</class>
% \fi
%
% \Finale
\endinput
|