-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfkcv.sty
115 lines (96 loc) · 3.47 KB
/
fkcv.sty
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
% ================================================================== %
% %
% Requirement Things %
% %
% ================================================================== %
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fkcv}
%% Just to be extra clear: called fkcv because those are my initials.
%% Not an explitive.
% ================================================================== %
% %
% Packages %
% %
% ================================================================== %
\RequirePackage[T1]{fontenc}
\RequirePackage{xintexpr}
\def\roundandprint #1{\xinttheiexpr #1\relax }
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage{enumitem}
% See https://tex.stackexchange.com/questions/194426/split-itemize-into-multiple-columns
\RequirePackage{etoolbox,refcount}
\RequirePackage{multicol}
\newcounter{countitems}
\newcounter{nextitemizecount}
\newcommand{\setupcountitems}{%
\stepcounter{nextitemizecount}%
\setcounter{countitems}{0}%
\preto\item{\stepcounter{countitems}}%
}
\makeatletter
\newcommand{\computecountitems}{%
\edef\@currentlabel{\number\c@countitems}%
\label{countitems@\number\numexpr\value{nextitemizecount}-1\relax}%
}
\newcommand{\nextitemizecount}{%
\getrefnumber{countitems@\number\c@nextitemizecount}%
}
\newcommand{\previtemizecount}{%
\getrefnumber{countitems@\number\numexpr\value{nextitemizecount}-1\relax}%
}
\makeatother
\newenvironment{AutoMultiColItemize}{%
\ifnumcomp{\nextitemizecount}{>}{3}{\begin{multicols}{3}}{}%
\setupcountitems\begin{itemize}}%
{\end{itemize}%
\unskip\computecountitems\ifnumcomp{\previtemizecount}{>}{3}{\end{multicols}}{}}
\RequirePackage{lastpage}
\RequirePackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}
\fancyhf{}
\cfoot{page \thepage{} of \pageref{LastPage}}
\RequirePackage{hyperref}
\hypersetup{
colorlinks=true,
urlcolor=magenta
}
% \let\oldhref\href
\newcommand{\tthref}[2]{\href{#1}{\texttt{#2}}}
\RequirePackage{array}
\RequirePackage{changepage}
% For defining an okina command
\RequirePackage{newunicodechar,graphicx}
\DeclareRobustCommand{\okina}{%
\raisebox{\dimexpr\fontcharht\font`A-\height}{%
\scalebox{0.8}{`}%
}%
}
% \newunicodechar{ʻ}{\okina}
\newenvironment{list1}{
\begin{list}{}{%
\setlength{\itemsep}{0in}
\setlength{\parsep}{0in} \setlength{\parskip}{0in}
\setlength{\topsep}{0in} \setlength{\partopsep}{0in}
\setlength{\leftmargin}{0.17in}}}{\end{list}}
\newenvironment{list2}{
\begin{list}{$\bullet$}{%
\setlength{\itemsep}{0in}
\setlength{\parsep}{0in} \setlength{\parskip}{0in}
\setlength{\topsep}{0in} \setlength{\partopsep}{0in}
\setlength{\leftmargin}{0.2in}}}{\end{list}}
\RequirePackage[
backend=biber,
style=ieee,
% style=numeric-verb,
sorting=ydnt,
indexing=false,
defernumbers=true,
citereset=section
]{biblatex}
\newcommand{\myaddress}[1]{\def\address{#1}}
\newcommand{\email}[1]{\href{mailto:#1}{#1}}
\newcommand{\phone}[1]{\def\phone{{Cell:} {#1}}}
\newcommand{\myemail}[1]{\def\myemail{{Email:} \email{#1}}}
\newcommand{\github}[1]{\def\github{{Github:} \href{https://github.com/#1}{#1}}}
\newcommand{\website}[1]{\def\website{\href{#1}{#1}}}