rendercv/tests/testdata/test_generate_latex_file/moderncv_empty.tex

90 lines
4.4 KiB
TeX
Raw Normal View History

2024-02-18 19:41:45 +00:00
%% start of file `template.tex'.
%% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com), 2020-2022 moderncv maintainers (github.com/moderncv).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
\documentclass[10pt,letterpaper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
% moderncv themes
\moderncvstyle{classic} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
\moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
%\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
2024-02-24 19:28:00 +00:00
\usepackage{amsmath} % for math
2024-02-18 19:41:45 +00:00
% adjust the page margins
\usepackage[scale=0.75]{geometry}
\setlength{\hintscolumnwidth}{3.8 cm} % if you want to change the width of the column with the dates
%\setlength{\makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...
% font loading
% for luatex and xetex, do not use inputenc and fontenc
% see https://tex.stackexchange.com/a/496643
\ifxetexorluatex
\usepackage{fontspec}
\usepackage{unicode-math}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono}
\setmathfont{Latin Modern Math}
\else
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\fi
% document language
\usepackage[english]{babel} % FIXME: using spanish breaks moderncv
% personal data
2024-02-20 19:30:54 +00:00
\name{None}{}
2024-02-18 19:41:45 +00:00
% \familyname{}
% Social icons
% \social[linkedin]{john.doe} % optional, remove / comment the line if not wanted
% \social[xing]{john\_doe} % optional, remove / comment the line if not wanted
2024-06-06 14:32:56 +00:00
% \social[twitter]{ji\_doe} % optional, remove / comment the line if not wanted
2024-02-18 19:41:45 +00:00
% \social[github]{jdoe} % optional, remove / comment the line if not wanted
% \social[gitlab]{jdoe} % optional, remove / comment the line if not wanted
% \social[stackoverflow]{0000000/johndoe} % optional, remove / comment the line if not wanted
% \social[bitbucket]{jdoe} % optional, remove / comment the line if not wanted
% \social[skype]{jdoe} % optional, remove / comment the line if not wanted
% \social[orcid]{0000-0000-000-000} % optional, remove / comment the line if not wanted
% \social[researchgate]{jdoe} % optional, remove / comment the line if not wanted
% \social[researcherid]{jdoe} % optional, remove / comment the line if not wanted
% \social[telegram]{jdoe} % optional, remove / comment the line if not wanted
% \social[whatsapp]{12345678901} % optional, remove / comment the line if not wanted
% \social[signal]{12345678901} % optional, remove / comment the line if not wanted
% \social[matrix]{@johndoe:matrix.org} % optional, remove / comment the line if not wanted
% \social[googlescholar]{googlescholarid} % optional, remove / comment the line if not wanted
2024-03-21 18:01:26 +00:00
% new command for cventry (this is done to allow users unbold or unitalicize the text in the cventry command)
\renewcommand*{\cventry}[6][.25em]{%
\cvitem[#1]{#2}{%
#3%
\ifthenelse{\equal{#4}{}}{}{, #4}%
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
}
}
2024-02-18 19:41:45 +00:00
\begin{document}
2024-02-20 19:30:54 +00:00
2024-02-18 19:41:45 +00:00
% save the original href command in a new command:
\let\hrefWithoutArrow\href
% new command for external links:
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\color{color1} #2 \raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
2024-03-11 19:30:02 +00:00
\hypersetup{pdftitle={None's CV}}
2024-02-20 19:30:54 +00:00
\section{Test}
2024-03-10 17:38:56 +00:00
\cvline{}{test}
2024-02-20 19:30:54 +00:00
2024-02-18 19:41:45 +00:00
\end{document}