Merge lp:~aruetten/moderncv/academc-title into lp:moderncv

Proposed by Andreas Rütten
Status: Needs review
Proposed branch: lp:~aruetten/moderncv/academc-title
Merge into: lp:moderncv
Diff against target: 76 lines (+13/-5)
4 files modified
examples/template.tex (+4/-1)
manual/moderncv_userguide.tex (+5/-1)
moderncv.cls (+2/-1)
moderncvthemeclassic.sty (+2/-2)
To merge this branch: bzr merge lp:~aruetten/moderncv/academc-title
Reviewer Review Type Date Requested Status
Xavier Danaux Pending
Review via email: mp+46414@code.launchpad.net

Description of the change

Allow the definition of a document title for the pdf property and also a different personal title like an academic title. At least for the classic theme.

To post a comment you must log in.

Unmerged revisions

20. By Andreas Rütten

 - Change the behaviour of the title option to be a personal title,
   e.g. an academic title.
 - Add the option doctitle for the hyperref package as pdf document title.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'examples/template.tex'
2--- examples/template.tex 2010-05-31 19:46:59 +0000
3+++ examples/template.tex 2011-01-16 16:07:55 +0000
4@@ -21,10 +21,13 @@
5 %\AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}} % only for the classic theme, if you want to change the width of your name placeholder (to leave more space for your address details
6 %\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
7
8+%hypersetup
9+\doctitle{Title of the pdf document (optional)} % optional, remove the line if not wanted
10+
11 % personal data
12 \firstname{John}
13 \familyname{Doe}
14-\title{Resumé title (optional)} % optional, remove the line if not wanted
15+\title{Your title, e.g an academic title (optional)} % optional, remove the line if not wanted
16 \address{street and number}{postcode city} % optional, remove the line if not wanted
17 \mobile{mobile (optional)} % optional, remove the line if not wanted
18 \phone{phone (optional)} % optional, remove the line if not wanted
19
20=== modified file 'manual/moderncv_userguide.tex'
21--- manual/moderncv_userguide.tex 2010-05-19 00:36:03 +0000
22+++ manual/moderncv_userguide.tex 2011-01-16 16:07:55 +0000
23@@ -131,12 +131,16 @@
24
25 where \verb|\recomputelengths| is required when changes are made to page layout lengths.
26
27+With the next option you can set a title which will be used by the
28+\href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{hyperref
29+ package} as title of the pdf document.
30+
31 Now we can get into the part most related to our curriculum vit\ae: our personal data. They will be inserted in the header of the first page, in the classic theme, or in the footer of every page, in the case of casual theme.
32
33 \begin{itemize}
34 \item \verb|\firstname{John}|
35 \item \verb|\familyname{Doe}|
36-\item \verb|\title{Resum\'e title}|: optional
37+\item \verb|\title{Your title, e.g an academic title}|: optional
38 \item \verb|\address{street and number}{postcode city}|: optional
39 \item \verb|\mobile{mobile}|: optional
40 \item \verb|\phone{phone}|: optional
41
42=== modified file 'moderncv.cls'
43--- moderncv.cls 2010-08-11 02:13:29 +0000
44+++ moderncv.cls 2011-01-16 16:07:55 +0000
45@@ -139,7 +139,7 @@
46 pdfproducer = \LaTeX{},
47 bookmarksopen = true,
48 pdfauthor = \@firstname~\@familyname,
49- pdftitle = \@title,
50+ pdftitle = \@doctitle,
51 pdfsubject = \@firstname~\@familyname,
52 pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{}}}
53 \pagenumbering{arabic}% has to be issued after loading hyperref
54@@ -242,6 +242,7 @@
55 %-------------------------------------------------------------------------------
56 \newcommand*{\firstname}[1]{\def\@firstname{#1}}
57 \newcommand*{\familyname}[1]{\def\@familyname{#1}}
58+\newcommand*{\doctitle}[1]{\def\@doctitle{#1}}
59 \renewcommand*{\title}[1]{\def\@title{#1}}
60 \newcommand*{\address}[2]{\def\@addressstreet{#1}\def\@addresscity{#2}}
61 \newcommand*{\mobile}[1]{\def\@mobile{#1}}
62
63=== modified file 'moderncvthemeclassic.sty'
64--- moderncvthemeclassic.sty 2010-08-11 02:13:29 +0000
65+++ moderncvthemeclassic.sty 2011-01-16 16:07:55 +0000
66@@ -144,8 +144,8 @@
67 \renewcommand*{\maketitle}{%
68 % name and title
69 \begin{minipage}[b]{\maketitlenamewidth}%
70- \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
71- \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
72+ \ifthenelse{\equal{\@title}{}}{}{\titlestyle{\@title}}%
73+ \firstnamestyle{\\[0.5em]\@firstname~}\familynamestyle{\@familyname}%
74 \end{minipage}%
75 % optional data
76 \begin{minipage}[b]{\maketitledetailswidth}%

Subscribers

People subscribed via source and target branches

to all changes: