Skip to content

Commit

Permalink
Merge pull request #2 from dimamo5/code_generation
Browse files Browse the repository at this point in the history
Release 1.0.0 Finished Project
  • Loading branch information
dimamo5 committed Jun 3, 2016
2 parents 4baad23 + 9369e92 commit bea9b87
Show file tree
Hide file tree
Showing 49 changed files with 4,475 additions and 3,291 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/out
/.idea
*.iml
/generated/resumeTest
*.aux
*.log
*.tex
*.iml
*.out
*.pdf
2 changes: 0 additions & 2 deletions resources/examples/sample2.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
if (window["gliloader"]) {
gliloader.pathRoot = pathElement.innerText;
} else {
// TODO: more?
window.gliCssUrl = pathElement.innerText + "gli.all.css";
}
}, false);
Expand Down Expand Up @@ -51,7 +50,6 @@
// If we are injected, inspect this context
if (window.gli) {
if (gli.host.inspectContext) {
// TODO: pull options from extension
result = gli.host.inspectContext(this, result);
// NOTE: execute in a timeout so that if the dom is not yet
// loaded this won't error out.
Expand Down
101 changes: 98 additions & 3 deletions resources/generated/awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
%-------------------------------------------------------------------------------
% 3rd party packages
%-------------------------------------------------------------------------------
\RequirePackage{tabularx}
% Needed to make math operations
\RequirePackage{fp}
\RequirePackage{calc}
% Needed to make for loops
\RequirePackage{pgffor}
% Needed to make fixed length table
\RequirePackage{array}
% Needed to handle list environment
Expand Down Expand Up @@ -111,6 +117,8 @@
\fancyhf{}
% Enable if you want to make header or footer using fancyhdr
\pagestyle{fancy}
%define new column width
\newcolumntype{s}{>{\hsize=.5\hsize}X}


%-------------------------------------------------------------------------------
Expand Down Expand Up @@ -225,6 +233,8 @@
\newcommand*{\subsectionstyle}[1]{{\fontsize{12pt}{1em}\bodyfont\scshape\textcolor{text}{#1}}}
\newcommand*{\paragraphstyle}{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text}}



% For elements of entry
\newcommand*{\entrytitlestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
\newcommand*{\entrypositionstyle}[1]{{\fontsize{8pt}{1em}\bodyfont\scshape\color{graytext} #1}}
Expand Down Expand Up @@ -493,7 +503,7 @@
\fancyfoot{}
\fancyfoot[L]{\footerstyle{#1}}
\fancyfoot[C]{\footerstyle{#2}}
\fancyfoot[R]{\footerstyle{#3}}
\fancyfoot[R]{\footerstyle{#3}}
}

% Define a section for CV
Expand All @@ -513,6 +523,14 @@
\subsectionstyle{#1}
\phantomsection
}
\newcommand*{\keyvalstylevalue}[1]{{\fontsize{10pt}{1em}\bodyfont\color{text} #1}}
\newcommand*{\keyvalstylekey}[1]{{\textbf{\fontsize{10pt}{1em}\bodyfont\color{graytext} #1}}}

\newcommand*{\cvitem}[2][]{
\ifempty{#1}
{\item \keyvalstylevalue{#2}}
{\item[\keyvalstylekey{#1}] \keyvalstylevalue{#2}}
}

% Define a paragraph for CV
\newenvironment{cvparagraph}{%
Expand Down Expand Up @@ -560,7 +578,7 @@
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
\setlength\leftskip{0.2cm}
\subentrytitlestyle{#2} & \ifthenelse{\equal{#1}{}}
{\subentrydatestyle{#3}}{}
{\subentrydatestyle{#3}}{}
\ifthenelse{\equal{#1}{}}
{}
{\subentrypositionstyle{#1} & \subentrydatestyle{#3} \\}
Expand Down Expand Up @@ -619,6 +637,17 @@
\vspace{-4.0mm}
}

% Define an environment for cvitems(for cventry)
\newenvironment{cvitemskv}[1][2.5cm]{
\begin{justify}
\begin{itemize}[leftmargin=#1, nosep, noitemsep]
\setlength{\parskip}{0pt}
\renewcommand{\labelitemi}{\bullet}
}{
\end{itemize}
\end{justify}
}


%-------------------------------------------------------------------------------
% Commands for elements of Cover Letter
Expand Down Expand Up @@ -654,7 +683,7 @@
\ifthenelse{\isundefined{\@lettertitle}}
{}
{\lettertitlestyle{\@lettertitle} \\}
\lettertextstyle{\@letteropening}
\lettertextstyle{\@letteropening}
}

% Define a closing of the cover letter
Expand All @@ -670,3 +699,69 @@
\letterenclosurestyle{\@letterenclname: \@letterenclosure} \\
}
}

\newcommand{\myyear}[1]{#1}
\newcommand{\myyearmonth}[2]{#1--#2}
\newcommand{\myyearmonthday}[3]{#1--#2--#3}
\newcommand{\timeinterval}[2]{#1 $\Rightarrow$ #2}
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}

\newcommand{\specialcell}[2][l]{%
\begin{tabular}[t]{@{}#1@{}}#2\end{tabular}}


\newcommand{\starcolor}[2] {
\pgfmathtruncatemacro\starcolorperc{(#1)/(#2)*100}%
%
\ifthenelse{\starcolorperc > 50}{%
\pgfmathtruncatemacro\starcolorperc{(\starcolorperc-50)*2}%
\colorlet{star color}[rgb]{green!\starcolorperc!yellow}%
}{%
\pgfmathtruncatemacro\starcolorperc{\starcolorperc*2}%
\colorlet{star color}[rgb]{yellow!\starcolorperc!red}%
}%
%
\color{star color!90!black}%
}

% Stars
\newcommand{\stars}[2][5]{
{%
\pgfmathtruncatemacro\nfullstars{#2}%
\pgfmathtruncatemacro\nhalfstars{(#2 - \nfullstars) * 2}%
\pgfmathtruncatemacro\nemptystars{#1 - (\nfullstars + \nhalfstars)}%
%
{%
\starcolor{#2}{#1}%
\ifthenelse{\nfullstars > 0}{%
\foreach \n in {1,...,\nfullstars} {%
\faStar%
}%
}{}%
%
\ifthenelse{\nhalfstars > 0}{%
\foreach \n in {1,...,\nhalfstars} {%
\faStarHalfFull%
}%
}{}%
}%
%
\ifthenelse{\nemptystars > 0}{%
\foreach \n in {1,...,\nemptystars} {%
{\faStarO}%
}%
}{}%
}%
}%

\newcommand\grade[3][5]{%
\FPdiv\result{#2}{#3}%
\FPmul\result{\result}{#1}%
\FPmul\result{\result}{2}%
\FPadd\result{\result}{0.5}%
\FPtrunc\result\result0%
\FPdiv\result{\result}{2}%
\FPclip\result\result%
%
\stars[#1]{\result} (#2/#3)%
}
2 changes: 2 additions & 0 deletions resources/generated/fontawesome.sty
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Path=fonts/
\FA\csname faicon@#1\endcsname
}}

%(\\fa)[^\s]+

\expandafter\def\csname faicon@adjust\endcsname {\symbol{"F042}} \def\faAdjust {{\FA\csname faicon@adjust\endcsname}}
\expandafter\def\csname faicon@adn\endcsname {\symbol{"F170}} \def\faAdn {{\FA\csname faicon@adn\endcsname}}
\expandafter\def\csname faicon@align-center\endcsname {\symbol{"F037}} \def\faAlignCenter {{\FA\csname faicon@align-center\endcsname}}
Expand Down
23 changes: 23 additions & 0 deletions resources/generated/resume.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.borderless tbody tr td, .borderless tbody tr th, .borderless thead tr th {
border: none;
}

.fa-star, .fa-star-half-o, .fa-star-o {
color: #fff065;
}

#address {
color: lightgray;
font-style: italic;
font-size: small;
}

#name {
font-size: 60px;
font-family: 'Roboto', sans-serif;
}

.section {
font-family: 'Roboto', sans-serif;
font-weight: bold;
}
80 changes: 0 additions & 80 deletions resources/generated/resume.tex

This file was deleted.

27 changes: 0 additions & 27 deletions resources/generated/resume/committees.tex

This file was deleted.

25 changes: 0 additions & 25 deletions resources/generated/resume/education.tex

This file was deleted.

Loading

0 comments on commit bea9b87

Please sign in to comment.