diff --git a/.gitignore b/.gitignore index 96434bc..384dd31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ -CV-Amin-Kasrou-Aouam-en.tex -CV-Amin-Kasrou-Aouam-es.tex -CV-Amin-Kasrou-Aouam-en.xdv -CV-Amin-Kasrou-Aouam-es.xdv -auto/ \ No newline at end of file +Input/CV-Amin-Kasrou-Aouam-en.tex +Input/CV-Amin-Kasrou-Aouam-es.tex +Input/CV-Amin-Kasrou-Aouam-en.xdv +Input/CV-Amin-Kasrou-Aouam-es.xdv +Input/auto +Output/CV-Amin-Kasrou-Aouam-en.tex +Output/CV-Amin-Kasrou-Aouam-es.tex +Output/CV-Amin-Kasrou-Aouam-en.xdv +Output/CV-Amin-Kasrou-Aouam-es.xdv +Output/auto diff --git a/photo.png b/Assets/photo.png similarity index 100% rename from photo.png rename to Assets/photo.png diff --git a/template-en.latex b/Assets/template-en.latex similarity index 99% rename from template-en.latex rename to Assets/template-en.latex index 3df46a2..c5965d1 100644 --- a/template-en.latex +++ b/Assets/template-en.latex @@ -210,7 +210,7 @@ \end{minipage} & % % PHOTO (right) \begin{minipage}[b]{\rightwide} - \includegraphics[width=7em]{photo.png} + \includegraphics[width=7em]{Assets/photo.png} \end{minipage} \end{tabular} \lighthrule diff --git a/template-es.latex b/Assets/template-es.latex similarity index 99% rename from template-es.latex rename to Assets/template-es.latex index a077cd7..9a4b905 100644 --- a/template-es.latex +++ b/Assets/template-es.latex @@ -210,7 +210,7 @@ \end{minipage} & % % PHOTO (right) \begin{minipage}[b]{\rightwide} - \includegraphics[width=7em]{photo.png} + \includegraphics[width=7em]{Assets/photo.png} \end{minipage} \end{tabular} \lighthrule diff --git a/CV-Amin-Kasrou-Aouam-en.tex b/CV-Amin-Kasrou-Aouam-en.tex deleted file mode 100644 index fa7b54c..0000000 --- a/CV-Amin-Kasrou-Aouam-en.tex +++ /dev/null @@ -1,381 +0,0 @@ -% !TEX encoding = UTF-8 Unicode - -\documentclass[letterpaper,12pt]{article} - -%A Few Useful Packages -%\usepackage{marvosym} -\usepackage{fontspec} %for loading fonts -\usepackage{xunicode,xltxtra,url,parskip} %other packages for formatting -\usepackage{graphicx} -\usepackage[usenames,dvipsnames]{xcolor} -\usepackage[left=1.3cm, - top=1.2cm, - right=1.3cm, - bottom=1.2cm, - nohead, - nofoot - ]{geometry} -\usepackage{tabularx} -\usepackage{titlesec} -%\usepackage{tabto} % tab spacing - -\usepackage{setspace} % line spacing -\usepackage{booktabs,colortbl} % thicker rules between table cells -\usepackage{bibentry} % bibliography - -% SORTED LISTS -\usepackage{paralist} -\usepackage{datatool}% http://ctan.org/pkg/datatool -\newcommand{\sortitem}[1]{% - \DTLnewrow{list}% Create a new entry - \DTLnewdbentry{list}{description}{#1}% Add entry as description -} -\newenvironment{sortedlist}{% - \DTLifdbexists{list}{\DTLcleardb{list}}{\DTLnewdb{list}}% Create new/discard old list -}{% - \DTLsort{description}{list}% Sort list - \begin{inparaitem}[]% - \DTLforeach*{list}{\theDesc=description}{% - \item \theDesc, }% Print each item - \end{inparaitem}% -} - -%Setup hyperref package, and colours for links -\usepackage[colorlinks, - breaklinks, - pagebackref=false, - debug=true, - xetex, - bookmarks=false, - pdfpagelabels=false, - hyperfootnotes=false, - hyperindex=false, - pageanchor=false]{hyperref} -\definecolor{linkcolor}{gray}{0.2} -\hypersetup{ - pdfauthor={Amin Kasrou Aouam}, - pdfsubject={Amin Kasrou Aouam - Resume}, - pdftitle={Amin Kasrou Aouam - Resume}, - urlcolor=linkcolor, - linkcolor=linkcolor -} - -% colors -\definecolor{dark-gray}{gray}{0.15} -\definecolor{light-gray}{gray}{0.55} - -%FONTS -\setmainfont{Cormorant Garamond} -\newfontfamily{\hlight}[UprightFont={* Light}]{Cormorant Garamond} -%\defaultfontfeatures{Mapping=tex-text} % converts LaTeX specials (``quotes'' --- dashes etc.) to unicode -\defaultfontfeatures{ - Path = /opt/texlive/2019/texmf-dist/fonts/opentype/public/fontawesome5/ } -\usepackage{fontawesome5} % glyphs for contact info - -% CUSTOM COMMANDS - \newcommand{\titlerulethick}{{% - {\color{dark-gray} \titlerule[0.7mm] }% - }} - - % old section title format - \titleformat{\section}{\fontsize{28pt}{40pt}\color{dark-gray}\normalfont}{}{0mm}{}[\titlerulethick] - %\titlespacing{\section}{0pt}{3pt}{3pt} - - \newcommand{\namefont}[1]{{% - \fontsize{42pt}{50pt}\normalfont\textbf{#1}% - }} - - \newcommand{\spacerule}{ - \addlinespace[0.5em] - \midrule[0.5mm] - \addlinespace[0.5em] - } - - \newcommand{\bigfont}[1]{{% - \fontsize{32pt}{38pt}\normalfont{#1} % - }} - - \newcommand{\lightfont}[1]{{% - {\hlight\color{light-gray}#1} - }} - - \newcommand{\contactinfo}{% - {\hlight\color{dark-gray}} - } - - \newcommand{\lightsmall}[1]{{% - {\fontsize{11pt}{14pt}\hlight\color{light-gray}#1} - }} - - \newcommand{\pubstyle}[1]{{% - {\fontsize{10pt}{13pt}\hlight\color{light-gray}#1} - }} - - \newcommand{\lightbf}[1]{{% - \textbf{\lightfont{#1}} - }} - - \newcommand{\emphasized}[1]{{% - {\fontsize{14pt}{18pt}\textbf{#1}} - }} - - \newcommand{\position}[1]{{% - {\fontsize{14pt}{18pt} \hlight{#1}} - }} - - \newcommand{\company}[1]{{% - {\fontsize{14pt}{18pt} \textbf{#1}} - }} - - \newcommand{\headline}{ - {\fontsize{14pt}{17pt}\bfseries\color{dark-gray}} - } - - \newcommand{\name}{ - \raggedright\fontsize{42pt}{42pt}\bfseries\flushleft\color{dark-gray}{Amin Kasrou Aouam} - } - - \newcommand{\lighthrule}{ - {\color{light-gray}\par\rule[0mm]{\hsize}{0.5mm}\par\vspace{0.5em}} - } - - \newcommand\Mybox[1]{% - \setlength\fboxsep{0pt}\fcolorbox{red}{white}{#1} - } - -% hack to remove bibliography numbering -\makeatletter -\renewcommand\@biblabel[1]{} -\renewenvironment{thebibliography}[1] - {\section*{\refname}% - \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}% - \list{}% - {\leftmargin0pt - \@openbib@code - \usecounter{enumiv}}% - \sloppy - \clubpenalty4000 - \@clubpenalty \clubpenalty - \widowpenalty4000% - \sfcode`\.\@m} - {\def\@noitemerr - {\@latex@warning{Empty `thebibliography' environment}}% - \endlist} -\makeatother -% -% -% -% -% -% -% -% -% -%-------------------- BEGIN DOCUMENT ---------------------- -\begin{document} -%\nocite{} -\pagestyle{empty} % non-numbered pages -\font\fb=''[cmr10]'' %for use with \LaTeX command -%---------- SPECIFY LENGTHS ---------- -\newlength{\leftwide} -\setlength{\leftwide}{0.34\textwidth} -% -\newlength{\centerwide} -\setlength{\centerwide}{0.33\textwidth} -% -\newlength{\rightwide} -\setlength{\rightwide}{0.28\textwidth} -%---------- TOP SECTION ---------- -\begin{tabular}[b]{@{}p{\leftwide}@{}p{\centerwide}@{}p{\rightwide}@{}} - % NAME (left) - \noindent - \begin{minipage}[b]{\leftwide} - \name - \end{minipage} & % - % - % HEADLINE (middle) - %\begin{minipage}[b]{\centerwide} - %\parbox[b][][b]{4.5cm}{\raggedright\headline} - %\end{minipage} & % - % - % CONTACT INFO (middle) - \begin{minipage}[b]{\centerwide} - \renewcommand\arraystretch{1.25} - \contactinfo - \begin{tabular}[b]{@{}cl@{}} - \faEnvelope & \href{mailto:akasroua@gmail.com}{akasroua@gmail.com}\\ %{} - \faPhone & +34 658591161\\ - \faGitlab & gitlab.com/akasroua\\ - \end{tabular} - \end{minipage} & % -% PHOTO (right) - \begin{minipage}[b]{\rightwide} - \includegraphics[width=7em]{photo.png} - \end{minipage} -\end{tabular} -\lighthrule -%---------- MAIN BODY ---------- -% ABOUT -\section{about} -\parbox[t][][t]{\textwidth}{ - Computer Engineering student ready to step his toes in the job market. -} -%---------- LEFT SIDE ---------- -%\Mybox{ -\begin{minipage}[t]{0.31\textwidth} - \raggedright - %\begin{flushleft} - % PROGRAMMING - \section{programming} - \hlight - \begin{sortedlist} - \sortitem{C++} - \sortitem{Java} - \sortitem{Python} - \sortitem{Shell scripting} - \end{sortedlist} - - % TECHNOLOGIES - % - \section{technologies} - \hlight - \begin{sortedlist} - \sortitem{UNIX-like systems} - \sortitem{\LaTeX} - \sortitem{Git} - \sortitem{LEMP - FEMP Stack} - \end{sortedlist} - - % COURSES - % - \section{courses} - \hlight - \emphasized{Fundamentals of Robotics} \\ - \lightfont{\textbf{Adams Formación}} \\ - \emphasized{Python Programming} \\ - \lightfont{\textbf{Universidad de Granada}} \\ - \emphasized{Programming and distribution of mobile apps for Android and iOS devices} \\ - \lightfont{\textbf{Universidad de Granada}} \\ - \emphasized{Arduino} \\ - \lightfont{\textbf{Universidad de Granada}} \\ - %\end{flushleft} -\end{minipage}% -% -%---------- RIGHT SIDE ---------- -\newlength{\hwide} -\newlength{\hwideright} -\newlength{\buffer} -\setlength{\buffer}{4pt plus 1pt minus 1pt} -% -% -\begin{minipage}[t]{0.64\textwidth} - % EDUCATION - \section{education} - \setlength{\hwide}{\dimexpr.5\hsize-4\tabcolsep} - \setlength{\hwideright}{\dimexpr\hwide+5\tabcolsep} - % - \setlength{\parskip}{1mm} - \begin{tabular}{@{}p{\hwide}p{\rightwide}} - \parbox[t][][t]{\hwide}{% - \lightfont{2017 \textendash{} present} \\ - \smallskip - \emphasized{Bachelor} \\ - \smallskip - \emphasized{Computer Engineering} \\ - } & % - \parbox[t][][t]{\rightwide}{% - \lightfont{\textbf{Universidad de Granada} \\ - \emph{Ceuta}} \\ % - \bigskip % - } \\ - \parbox[t][][t]{\hwide}{% - \lightfont{2015 \textendash{} 2017} \\ - \smallskip - \emphasized{Bachelor} \\ - \smallskip - \emphasized{Medicine} \\ - } & % - \parbox[t][][t]{\rightwide}{% - \lightfont{\textbf{Universidad de Sevilla} \\ - \emph{Sevilla}} \\ % - \bigskip % - } \\ - \parbox[t][][t]{\hwide}{% - \lightfont{2013 \textendash{} 2015} \\ - \smallskip - \emphasized{Bachelor} \\ - \smallskip - \emphasized{Medicine} \\ - } & % - \parbox[t][][t]{\rightwide}{% - \lightfont{\textbf{Université Paris-Sud} \\ - \emph{Châtenay-Malabry}} \\ % - \bigskip % - } \\ - \end{tabular} - % - %\section{experience} - %% - %\setlength{\hwide}{\dimexpr.5\hsize-4\tabcolsep} - %\setlength{\hwideright}{\dimexpr\hwide+5\tabcolsep} - %% - %% POSITIONS - %\begin{tabular}{@{}p{\hwide}p{\hwideright}} - %\arrayrulecolor{light-gray} - % %\end{tabular} - - % LANGUAGES - \section{languages} - % - \setlength{\parskip}{1mm} - \setlength{\hwide}{\dimexpr.5\hsize-4\tabcolsep} - \setlength{\hwideright}{\dimexpr\hwide+5\tabcolsep} - - \begin{tabular}{@{}p{\hwide}p{\rightwide}} - \parbox[t][][t]{\hwide}{% - \emphasized{English} - \medskip - } & % - \parbox[t][][t]{\rightwide}{% - \lightbf{Fluent} - \medskip - } \\ % - \parbox[t][][t]{\hwide}{% - \emphasized{Spanish} - \medskip - } & % - \parbox[t][][t]{\rightwide}{% - \lightbf{Native} - \medskip - } \\ % - \parbox[t][][t]{\hwide}{% - \emphasized{French} - \medskip - } & % - \parbox[t][][t]{\rightwide}{% - \lightbf{Native} - \medskip - } \\ % - \parbox[t][][t]{\hwide}{% - \emphasized{Darija (Moroccan dialect)} - \medskip - } & % - \parbox[t][][t]{\rightwide}{% - \lightbf{Native} - \medskip - } \\ % - \end{tabular} -% -%\section{publications} -%\vspace{-0.5em} -%\begingroup -%\renewcommand{\section}[2]{}% -%\pubstyle{ -% \bibliography{pubs} -% \bibliographystyle{cvbib} -%} -%\endgroup -\end{minipage} -% ========================================================== -%-------------------- END OF DOCUMENT ---------------------- -\end{document} diff --git a/CV-Amin-Kasrou-Aouam-en.yml b/Input/CV-Amin-Kasrou-Aouam-en.yml similarity index 100% rename from CV-Amin-Kasrou-Aouam-en.yml rename to Input/CV-Amin-Kasrou-Aouam-en.yml diff --git a/CV-Amin-Kasrou-Aouam-es.yml b/Input/CV-Amin-Kasrou-Aouam-es.yml similarity index 100% rename from CV-Amin-Kasrou-Aouam-es.yml rename to Input/CV-Amin-Kasrou-Aouam-es.yml diff --git a/Makefile b/Makefile index 35b05a8..6bba3e4 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ always_latexmk := true xelatex := true # list of markdown files that are not to be made into PDFs -EXCLUDE := README.md +EXCLUDE := README.org # Extra options to pandoc (e.g. "-H mypreamble.tex") PANDOC_OPTIONS := @@ -26,18 +26,20 @@ PANDOC_OPTIONS := # Normally this does not need to be changed: # works if the template is local or in ~/.pandoc/templates -PANDOC_TMPL := template-en.latex +PANDOC_TMPL := Assets/template-en.latex ## ---- subdirectories (normally, no need to change) ---- # source of YAML spec files -yml_dir := . +#yml_dir := . # temporary file subdirectory; will be removed after every latex run temp_dir := tmp -# name of output directory for .tex and .pdf files -out_dir := out +# name of output directory for .pdf files +out_dir := Output +# name of input directory for .yml and .latex files +in_dir := Input ## ---- commands ---- @@ -46,14 +48,15 @@ out_dir := out PANDOC := pandoc --template $(PANDOC_TMPL) $(PANDOC_OPTIONS) LATEXMK := latexmk $(if $(xelatex),-xelatex,-pdflatex="pdflatex %O %S") \ - $(if $(latex_quiet),-silent,-verbose) + $(if $(latex_quiet),-silent,-verbose) ## ---- build rules ---- -ymls := $(filter-out $(addprefix $(yml_dir)/,$(EXCLUDE)),$(wildcard $(yml_dir)/*.yml)) +ymls := $(filter-out $(addprefix $(in_dir)/,$(EXCLUDE)),$(wildcard $(in_dir)/*.yml)) +pdfs_path := $(filter-out $(addprefix $(out_dir)/,$(EXCLUDE)),$(wildcard $(out_dir)/*.pdf)) texs := $(patsubst %.yml,%.tex,$(ymls)) pdfs := $(patsubst %.yml,%.pdf,$(ymls)) -bibs := $(wildcard $(yml_dir)/*.bib) +bibs := $(wildcard $(in_dir)/*.bib) $(texs): %.tex: %.yml $(bibs) $(PANDOC_TMPL) $(PANDOC) -o $@ $< # pandoc template > .tex @@ -70,6 +73,6 @@ all: $(pdfs) clean # clean up everything except final pdfs clean: - latexmk -c + latexmk -c . .DEFAULT_GOAL := all diff --git a/CV-Amin-Kasrou-Aouam-en.pdf b/Output/CV-Amin-Kasrou-Aouam-en.pdf similarity index 98% rename from CV-Amin-Kasrou-Aouam-en.pdf rename to Output/CV-Amin-Kasrou-Aouam-en.pdf index 7efce05..e1e3482 100644 Binary files a/CV-Amin-Kasrou-Aouam-en.pdf and b/Output/CV-Amin-Kasrou-Aouam-en.pdf differ diff --git a/CV-Amin-Kasrou-Aouam-es.pdf b/Output/CV-Amin-Kasrou-Aouam-es.pdf similarity index 98% rename from CV-Amin-Kasrou-Aouam-es.pdf rename to Output/CV-Amin-Kasrou-Aouam-es.pdf index cf1f89b..44616c7 100644 Binary files a/CV-Amin-Kasrou-Aouam-es.pdf and b/Output/CV-Amin-Kasrou-Aouam-es.pdf differ diff --git a/latexmkrc b/latexmkrc index 98e202e..d1ba367 100644 --- a/latexmkrc +++ b/latexmkrc @@ -1,3 +1,5 @@ $pdflatex = "xelatex %O %S -synctex=1 -interaction=batchmode"; $pdf_mode = 1; $dvi_mode = $postscript_mode = 0; +$out_dir = "Output"; +$clean_ext = "xdv log fdb_latexmk";