mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Deprecated \firstname and \familyname in favour of \name
This commit is contained in:
parent
c426e1c0f4
commit
5e01c8cec9
16 changed files with 28 additions and 23 deletions
17
moderncv.cls
17
moderncv.cls
|
|
@ -136,10 +136,10 @@
|
|||
% pdfproducer = {\LaTeX{}},% will/should be set automatically to the correct TeX engine used
|
||||
bookmarksopen = true,
|
||||
bookmarksdepth= 2,% to show sections and subsections
|
||||
pdfauthor = {\@firstname{}~\@familyname{}},
|
||||
pdftitle = {\@firstname{}~\@familyname{} -- \@title{}},
|
||||
pdfsubject = {Resum\'{e} of \@firstname{}~\@familyname{}},
|
||||
pdfkeywords = {\@firstname{}~\@familyname{}, curriculum vit\ae{}, resum\'{e}}}}
|
||||
pdfauthor = {\@firstname{}~\@lastname{}},
|
||||
pdftitle = {\@firstname{}~\@lastname{} -- \@title{}},
|
||||
pdfsubject = {Resum\'{e} of \@firstname{}~\@lastname{}},
|
||||
pdfkeywords = {\@firstname{}~\@lastname{}, curriculum vit\ae{}, resum\'{e}}}}
|
||||
|
||||
% graphics
|
||||
\RequirePackage{graphicx}
|
||||
|
|
@ -225,12 +225,9 @@
|
|||
% overall design commands definitions
|
||||
%-------------------------------------------------------------------------------
|
||||
% elements
|
||||
% defines one's first name
|
||||
% usage: \firstname{<firstname>}
|
||||
\newcommand*{\firstname}[1]{\def\@firstname{#1}}
|
||||
% defines one's family name
|
||||
% usage: \familyname{<familyname>}
|
||||
\newcommand*{\familyname}[1]{\def\@familyname{#1}}
|
||||
% defines one's name
|
||||
% usage: \name{<firstname>}{<lastname>}
|
||||
\newcommand*{\name}[2]{\def\@firstname{#1}\def\@lastname{#2}}
|
||||
% defines one's title (optional)
|
||||
% usage: \title{<title>}
|
||||
\renewcommand*{\title}[1]{\def\@title{#1}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue