mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Fold phone handling into \social
This commit is contained in:
parent
8badf2b0dc
commit
6309e011e0
13 changed files with 16 additions and 60 deletions
18
moderncv.cls
18
moderncv.cls
|
|
@ -238,22 +238,12 @@
|
|||
% where <optional protocol> should be either "https" (default) or "http"
|
||||
\NewDocumentCommand{\homepage}{O{https}m}{\def\@homepageprotocol{#1}\def\@homepage{#2}}
|
||||
|
||||
% adds a fixed/mobile/fax number to one's personal information (optional)
|
||||
% usage: \phone[<optional type>]{<number>}
|
||||
% where <optional type> should be either "fixed" (default), "mobile" or "fax
|
||||
\collectionnew{phones}
|
||||
\NewDocumentCommand{\phone}{O{fixed}m}{%
|
||||
\ifthenelse{\equal{#1}{fax}}%
|
||||
{\collectionadd[#1]{phones}{#2}}
|
||||
{\collectionadd[#1]{phones}{\protect\tellink{#2}}}
|
||||
}
|
||||
|
||||
|
||||
% http://latex.org/forum/viewtopic.php?t=12239
|
||||
\def\SplitMyMacro#1/#2{#2}
|
||||
|
||||
% Define links for different social networks
|
||||
\newcommand{\emaillink}[2]{\protect\href{mailto:#2}{#1}}
|
||||
\newcommand{\mobilephonelink}[2]{\protect\tellink[#1]{#2}}
|
||||
\newcommand{\linkedinlink}[2]{\protect\httpslink[#1]{www.linkedin.com/in/#2}}
|
||||
\newcommand{\xinglink}[2]{\protect\httpslink[#1]{www.xing.com/profile/#2}}
|
||||
\newcommand{\twitterlink}[2]{\protect\httpslink[#1]{twitter.com/#2}}
|
||||
|
|
@ -345,9 +335,9 @@
|
|||
\newcommand*{\listitemsymbol} {\labelitemi~}
|
||||
\newcommand*{\addresssymbol} {}
|
||||
\newcommand*{\bornsymbol} {}
|
||||
\newcommand*{\mobilephonesymbol} {}
|
||||
\newcommand*{\fixedphonesymbol} {}
|
||||
\newcommand*{\faxphonesymbol} {}
|
||||
\newcommand*{\mobilephonesocialsymbol} {}
|
||||
\newcommand*{\fixedphonesocialsymbol} {}
|
||||
\newcommand*{\faxphonesocialsymbol} {}
|
||||
\newcommand*{\emailsocialsymbol} {}
|
||||
\newcommand*{\homepagesymbol} {}
|
||||
\newcommand*{\linkedinsocialsymbol} {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue