mirror of https://github.com/eyhc1/rendercv.git
engineeringresumes: remove icons from the header
This commit is contained in:
parent
1464b503e4
commit
49a2dc3e64
|
@ -1,48 +1,28 @@
|
|||
\makeatletter
|
||||
\newcommand{\test}{%
|
||||
\@ifnextchar\par{A}{B}%
|
||||
}
|
||||
\makeatother
|
||||
|
||||
((* if design.show_last_updated_date *))
|
||||
\placelastupdatedtext
|
||||
((* endif *))
|
||||
((* if cv.name is not none *))
|
||||
\begin{header}
|
||||
\fontsize{<<design.header_font_size>>}{<<design.header_font_size>>}
|
||||
\textbf{<<cv.name>>}
|
||||
\fontsize{<<design.header_font_size>>}{<<design.header_font_size>>}\selectfont <<cv.name>>
|
||||
|
||||
\vspace{<<design.margins.header.vertical_between_name_and_connections>>}
|
||||
|
||||
\normalsize
|
||||
((* if cv.phone *))
|
||||
\mbox{\href{<<cv.phone|replace("-","")>>}{\color{black}{\footnotesize\faPhone*}\hspace*{0.13cm}<<cv.phone|replace("tel:", "")|replace("-"," ")>>}}
|
||||
\hspace*{<<design.margins.header.horizontal_between_connections>>}
|
||||
((* endif *))
|
||||
((* if cv.email *))
|
||||
\mbox{\href{mailto:<<cv.email>>}{\color{black}{\small\faEnvelope[regular]}\hspace*{0.13cm}<<cv.email|escape_latex_characters>>}}
|
||||
\hspace*{<<design.margins.header.horizontal_between_connections>>}
|
||||
((* endif *))
|
||||
((* if cv.location *))
|
||||
\mbox{\color{black}{\small\faMapMarker*}\hspace*{0.13cm}<<cv.location>>}
|
||||
\hspace*{<<design.margins.header.horizontal_between_connections>>}
|
||||
((* endif *))
|
||||
((* if cv.website *))
|
||||
\mbox{\href{<<cv.website>>}{\color{black}{\small\faLink}\hspace*{0.13cm}<<cv.website|replace("https://","")|reverse|replace("/", "", 1)|reverse>>}}
|
||||
\hspace*{<<design.margins.header.horizontal_between_connections>>}
|
||||
((* endif *))
|
||||
((*
|
||||
set icon_dictionary = {
|
||||
"LinkedIn": "\\faLinkedinIn",
|
||||
"GitHub": "\\faGithub",
|
||||
"Instagram": "\\faInstagram",
|
||||
"Mastodon": "\\faMastodon",
|
||||
"Orcid": "\\faOrcid",
|
||||
}
|
||||
*))
|
||||
((* if cv.social_networks *))
|
||||
((* for network in cv.social_networks *))
|
||||
((* if network.network in icon_dictionary *))
|
||||
\mbox{\href{<<network.url>>}{\color{black}{\small<<icon_dictionary[network.network]>>}\hspace*{0.13cm}<<network.username>>}}
|
||||
\hspace*{<<design.margins.header.horizontal_between_connections>>}
|
||||
((* endif *))
|
||||
((* for connection in cv.connections *))
|
||||
\mbox{\href{<<connection["url"]>>}{<<connection["clean_url"]>>}}
|
||||
\hspace*{<<design.margins.header.horizontal_between_connections|divide_length_by(2)>>}
|
||||
((* if not loop.last *))
|
||||
$|$
|
||||
((* endif *))
|
||||
\hspace*{<<design.margins.header.horizontal_between_connections|divide_length_by(2)>>}
|
||||
((* endfor *))
|
||||
((* endif *))
|
||||
\end{header}
|
||||
|
||||
\vspace{<<design.margins.header.bottom>>}
|
||||
\vspace{<<design.margins.header.bottom>> - <<design.margins.section_title.top>>}
|
||||
((* endif *))
|
|
@ -41,6 +41,13 @@
|
|||
\fi
|
||||
|
||||
% Some settings:
|
||||
((* if design.text_alignment == "justified-with-no-hyphenation" *))
|
||||
\usepackage[none]{hyphenat}
|
||||
\sloppy
|
||||
((* elif design.text_alignment == "left-aligned" *))
|
||||
\raggedright
|
||||
((* endif *))
|
||||
|
||||
\pagestyle{empty} % no header or footer
|
||||
\setcounter{secnumdepth}{0} % no section numbering
|
||||
\setlength{\parindent}{0pt} % no indentation
|
||||
|
@ -132,13 +139,16 @@
|
|||
\par\kern\topsep
|
||||
} % new environment for the header
|
||||
|
||||
((* set last_updated_date_style_placeholders = {
|
||||
"TODAY": today,
|
||||
} *))
|
||||
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
||||
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
||||
\put(
|
||||
\LenToUnit{\paperwidth-<<design.margins.page.right>>-<<design.margins.entry_area.left_and_right>>+0.05cm},
|
||||
\LenToUnit{\paperheight-<<design.margins.page.top|divide_length_by(2)>>}
|
||||
){\vtop{{\null}\makebox[0pt][c]{
|
||||
\small\color{gray}\textit{Last updated in <<today>>}\hspace{\widthof{Last updated in <<today>>}}
|
||||
\small\color{gray}\textit{<<design.last_updated_date_style|replace_placeholders_with_actual_values(last_updated_date_style_placeholders)>>}\hspace{\widthof{<<design.last_updated_date_style|replace_placeholders_with_actual_values(last_updated_date_style_placeholders)>>}}
|
||||
}}}%
|
||||
}%
|
||||
}%
|
||||
|
|
|
@ -3,22 +3,23 @@
|
|||
((* endif *))
|
||||
|
||||
\begin{onecolentry}
|
||||
\textbf{<<entry.title>>} \hfill <<entry.date_string>>
|
||||
\begin{minipage}{\linewidth}
|
||||
\textbf{<<entry.title>>} \hfill <<entry.date_string>>
|
||||
|
||||
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}
|
||||
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}
|
||||
|
||||
<<entry.authors|map("make_it_nolinebreak")|join(", ")>>
|
||||
((* if entry.doi or entry.journal *))
|
||||
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}
|
||||
|
||||
((* endif *))
|
||||
((* if entry.doi -*))
|
||||
\href{<<entry.doi_url>>}{<<entry.doi>>}
|
||||
((*- endif -*))
|
||||
((*- if entry.doi and entry.journal *)) (((* endif -*))
|
||||
((*- if entry.journal -*))
|
||||
<<entry.journal>>
|
||||
((*- endif -*))
|
||||
((*- if entry.doi and entry.journal *)))((* endif -*))
|
||||
<<entry.authors|map("make_it_nolinebreak")|join(", ")>>
|
||||
((* if entry.doi or entry.journal *))
|
||||
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}
|
||||
|
||||
((* endif *))
|
||||
((* if entry.doi -*))
|
||||
\href{<<entry.doi_url>>}{<<entry.doi>>}
|
||||
((*- endif -*))
|
||||
((*- if entry.doi and entry.journal *)) (((* endif -*))
|
||||
((*- if entry.journal -*))
|
||||
<<entry.journal>>
|
||||
((*- endif -*))
|
||||
((*- if entry.doi and entry.journal *)))((* endif -*))
|
||||
\end{minipage}
|
||||
\end{onecolentry}
|
||||
|
|
Loading…
Reference in New Issue