diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderncv/moderncv.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/moderncv/moderncv.cls | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls index 2facfcd8d48..b14fc53e247 100644 --- a/Master/texmf-dist/tex/latex/moderncv/moderncv.cls +++ b/Master/texmf-dist/tex/latex/moderncv/moderncv.cls @@ -10,7 +10,7 @@ % identification %------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{moderncv}[2021/01/21 v2.1.0 modern curriculum vitae and letter document class] +\ProvidesClass{moderncv}[2021-07-28 v2.2.0 modern curriculum vitae and letter document class] %------------------------------------------------------------------------------- @@ -96,33 +96,22 @@ \fi \fi -% do not use inputenc and do not automatically load lmodern to avoid problems with German -% charactes, see -% https://tex.stackexchange.com/questions/496630/lualatex-problems-with-german-characters +% for luatex and xetex, do not use inputenc and fontenc +% see https://tex.stackexchange.com/a/496643 \ifxetexorluatex -% \RequirePackage{fontspec} -% \defaultfontfeatures{Ligatures=TeX} -% \RequirePackage{unicode-math} -% \setmainfont{Latin Modern} -% \setsansfont{Latin Modern Sans} -% \setmathfont{Latin Modern Math} -% \ifluatex -% \usepackage{luatextra} -% \usepackage{lualatex-math} %loads fontspec -% \usepackage{shellesc} % fix a bug for lualatex shellescape -% \fi + \RequirePackage{fontspec} + \defaultfontfeatures{Ligatures=TeX} + \RequirePackage{unicode-math} + \setmainfont{Latin Modern Roman} + \setsansfont{Latin Modern Sans} + \setmonofont{Latin Modern Mono} + \setmathfont{Latin Modern Math} \else - \RequirePackage[utf8]{inputenc} -% \RequirePackage[utf8]{inputenx} -% %additions for utf8 -% \input{ix-utf8enc.dfu} - \RequirePackage[T1]{fontenc} - % loading lmodern can cause issues with certain special characters. avoid. -% \IfFileExists{lmodern.sty}% -% {\RequirePackage{lmodern}}% -% {} -% \fi + \RequirePackage[utf8]{inputenc} + \RequirePackage[T1]{fontenc} + \RequirePackage{lmodern} \fi + % hyper links (hyperref is loaded at the end of the preamble to pass options required by loaded packages such as CJK) \newcommand*\pdfpagemode{UseNone}% do not show thumbnails or bookmarks on opening (on supporting browsers); set \pdfpagemode to "UseOutlines" to show bookmarks \RequirePackage{url} @@ -132,7 +121,6 @@ \RequirePackage[unicode]{hyperref}% unicode is required for unicode pdf metadata \hypersetup{ breaklinks, - baseurl = http://, pdfborder = 0 0 0, pdfpagemode = \pdfpagemode, pdfstartpage = 1, @@ -249,6 +237,10 @@ % where the <city> and <country> arguments can be omitted or provided empty \NewDocumentCommand{\address}{mG{}G{}}{\def\@addressstreet{#1}\def\@addresscity{#2}\def\@addresscountry{#3}} +% defines one's birthday (optional) +% usage: \born{date, place} +\newcommand*{\born}[1]{\def\@born{#1}} + % defines one's email (optional) % usage: \email{<email adress>} \newcommand*{\email}[1]{\def\@email{#1}} @@ -281,19 +273,22 @@ {% \ifthenelse{\equal{#1}{linkedin}} {\collectionadd[linkedin]{socials} {\protect\httpslink[#3]{www.linkedin.com/in/#3}}} {}% \ifthenelse{\equal{#1}{xing}} {\collectionadd[xing]{socials} {\protect\httpslink[#3]{www.xing.com/profile/#3}}} {}% - \ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{www.twitter.com/#3}}} {}% - \ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{www.github.com/#3}}} {}% - \ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{www.gitlab.com/#3}}} {}% + \ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httpslink[#3]{twitter.com/#3}}} {}% + \ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httpslink[#3]{github.com/#3}}} {}% + \ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httpslink[#3]{gitlab.com/#3}}} {}% \ifthenelse{\equal{#1}{stackoverflow}}{\collectionadd[stackoverflow]{socials}{\protect\httpslink[#3]{stackoverflow.com/users/#3}}} {}% - \ifthenelse{\equal{#1}{bitbucket}} {\collectionadd[bitbucket]{socials} {\protect\httpslink[#3]{www.bitbucket.org/#3}}} {}% + \ifthenelse{\equal{#1}{bitbucket}} {\collectionadd[bitbucket]{socials} {\protect\httpslink[#3]{bitbucket.org/#3}}} {}% \ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}% \ifthenelse{\equal{#1}{orcid}} {\collectionadd[orcid]{socials} {\protect\httpslink[#3]{orcid.org/#3}}} {}% \ifthenelse{\equal{#1}{researchgate}} {\collectionadd[researchgate]{socials} {\protect\httpslink[#3]{www.researchgate.net/profile/#3}}} {}% \ifthenelse{\equal{#1}{researcherid}} {\collectionadd[researcherid]{socials} {\protect\httpslink[#3]{www.researcherid.com/rid/#3}}} {}% \ifthenelse{\equal{#1}{telegram}} {\collectionadd[telegram]{socials} {\protect\httpslink[#3]{t.me/#3}}} {}% + \ifthenelse{\equal{#1}{whatsapp}} {\collectionadd[whatsapp]{socials} {\protect\httpslink[#3]{wa.me/#3}}} {}% + \ifthenelse{\equal{#1}{signal}} {\collectionadd[signal]{socials} {#3}} {}% + \ifthenelse{\equal{#1}{matrix}} {\collectionadd[matrix]{socials} {\httpslink[#3]{matrix.to/\#/#3}}} {}% \ifthenelse{\equal{#1}{googlescholar}}{\collectionadd[googlescholar]{socials}{\protect\httpslink[#3]{scholar.google.com/citations?user=#3}}} {}% {}% } - {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}} + {\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}% % defines additional personal information (optional) % usage: \extrainfo{<text>} @@ -323,6 +318,7 @@ % other symbols \newcommand*{\listitemsymbol} {\labelitemi~} \newcommand*{\addresssymbol} {} +\newcommand*{\bornsymbol} {} \newcommand*{\mobilephonesymbol} {} \newcommand*{\fixedphonesymbol} {} \newcommand*{\faxphonesymbol} {} @@ -338,9 +334,12 @@ \newcommand*{\skypesocialsymbol} {} \newcommand*{\orcidsocialsymbol} {} \newcommand*{\researchgatesocialsymbol} {} -\newcommand*{\researchidsocialsymbol} {} +\newcommand*{\researcheridsocialsymbol} {} \newcommand*{\googlescholarsocialsymbol}{} \newcommand*{\telegramsocialsymbol} {} +\newcommand*{\whatsappsocialsymbol} {} +\newcommand*{\matrixsocialsymbol} {} +\newcommand*{\signalsocialsymbol} {} % other %------ @@ -379,7 +378,7 @@ % usage: \moderncvfoot[<optional foot option>]{<foot variant number>} \newcommand*{\moderncvfoot}[2][]{% \@loadmoderncvpackage[#1]{foot}{#2}} - + % loads a color scheme % usage: \moderncvcolor{<color scheme name>} \newcommand*{\moderncvcolor}[1]{% @@ -551,8 +550,8 @@ \newcommand*{\emaillink}[2][]{% \ifthenelse{\equal{#1}{}}% {\href{mailto:#2}{#2}}% - {\href{mailto:#2}{\detokenize{#1}}}} + % makes a tel hyperlink % usage: \tellink[optional text]{link} \newcommand*{\tellink}[2][]{% |