Class moderncv, style banking: spacing between name and address too tight
How can I increase the spacing between name and the address in LaTeX class moderncv
, style banking
?
spacing moderncv
add a comment |
How can I increase the spacing between name and the address in LaTeX class moderncv
, style banking
?
spacing moderncv
4
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass{...}
and ending withend{document}
.
– Phelype Oleinik
Dec 27 '17 at 12:17
add a comment |
How can I increase the spacing between name and the address in LaTeX class moderncv
, style banking
?
spacing moderncv
How can I increase the spacing between name and the address in LaTeX class moderncv
, style banking
?
spacing moderncv
spacing moderncv
edited Dec 27 '17 at 22:59
Kurt
38.2k848162
38.2k848162
asked Dec 27 '17 at 12:07
CemCem
61
61
4
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass{...}
and ending withend{document}
.
– Phelype Oleinik
Dec 27 '17 at 12:17
add a comment |
4
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass{...}
and ending withend{document}
.
– Phelype Oleinik
Dec 27 '17 at 12:17
4
4
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass{...}
and ending with end{document}
.– Phelype Oleinik
Dec 27 '17 at 12:17
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass{...}
and ending with end{document}
.– Phelype Oleinik
Dec 27 '17 at 12:17
add a comment |
1 Answer
1
active
oldest
votes
You need to change the command makehead
to get a bigger space between name and addess with the following patch in the preamble. Change the number in \[0.5cm]
for your needs. Please see that this patch is for class moderncv
, version 2.0.0, the current one:
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
With the complete MWE, based on the template of class moderncv
documentclass[11pt,a4paper,sans]{moderncv}
moderncvstyle{banking} % classic banking
moderncvcolor{blue}
usepackage[utf8]{inputenc}
usepackage[scale=0.75]{geometry}
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[twitter]{jdoe}
social[github]{jdoe}
photo[64pt][0.4pt]{example-image-a}
quote{Some quote}
setlength{footskip}{66pt}
begin{document}
makecvtitle
section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}
section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}
section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}
section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}
section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}
section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}
section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}
clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}}
makelettertitle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.
Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.
Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.
Albert Einstein discovered that $e=mc^2$ in 1905.
[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]
makeletterclosing
end{document}
you get the following result:
Not all heroes wear capes. Thank you so much.
– Cem
Dec 28 '17 at 8:32
@Cem If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
– Kurt
Dec 28 '17 at 20:54
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f407762%2fclass-moderncv-style-banking-spacing-between-name-and-address-too-tight%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to change the command makehead
to get a bigger space between name and addess with the following patch in the preamble. Change the number in \[0.5cm]
for your needs. Please see that this patch is for class moderncv
, version 2.0.0, the current one:
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
With the complete MWE, based on the template of class moderncv
documentclass[11pt,a4paper,sans]{moderncv}
moderncvstyle{banking} % classic banking
moderncvcolor{blue}
usepackage[utf8]{inputenc}
usepackage[scale=0.75]{geometry}
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[twitter]{jdoe}
social[github]{jdoe}
photo[64pt][0.4pt]{example-image-a}
quote{Some quote}
setlength{footskip}{66pt}
begin{document}
makecvtitle
section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}
section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}
section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}
section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}
section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}
section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}
section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}
clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}}
makelettertitle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.
Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.
Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.
Albert Einstein discovered that $e=mc^2$ in 1905.
[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]
makeletterclosing
end{document}
you get the following result:
Not all heroes wear capes. Thank you so much.
– Cem
Dec 28 '17 at 8:32
@Cem If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
– Kurt
Dec 28 '17 at 20:54
add a comment |
You need to change the command makehead
to get a bigger space between name and addess with the following patch in the preamble. Change the number in \[0.5cm]
for your needs. Please see that this patch is for class moderncv
, version 2.0.0, the current one:
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
With the complete MWE, based on the template of class moderncv
documentclass[11pt,a4paper,sans]{moderncv}
moderncvstyle{banking} % classic banking
moderncvcolor{blue}
usepackage[utf8]{inputenc}
usepackage[scale=0.75]{geometry}
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[twitter]{jdoe}
social[github]{jdoe}
photo[64pt][0.4pt]{example-image-a}
quote{Some quote}
setlength{footskip}{66pt}
begin{document}
makecvtitle
section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}
section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}
section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}
section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}
section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}
section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}
section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}
clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}}
makelettertitle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.
Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.
Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.
Albert Einstein discovered that $e=mc^2$ in 1905.
[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]
makeletterclosing
end{document}
you get the following result:
Not all heroes wear capes. Thank you so much.
– Cem
Dec 28 '17 at 8:32
@Cem If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
– Kurt
Dec 28 '17 at 20:54
add a comment |
You need to change the command makehead
to get a bigger space between name and addess with the following patch in the preamble. Change the number in \[0.5cm]
for your needs. Please see that this patch is for class moderncv
, version 2.0.0, the current one:
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
With the complete MWE, based on the template of class moderncv
documentclass[11pt,a4paper,sans]{moderncv}
moderncvstyle{banking} % classic banking
moderncvcolor{blue}
usepackage[utf8]{inputenc}
usepackage[scale=0.75]{geometry}
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[twitter]{jdoe}
social[github]{jdoe}
photo[64pt][0.4pt]{example-image-a}
quote{Some quote}
setlength{footskip}{66pt}
begin{document}
makecvtitle
section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}
section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}
section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}
section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}
section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}
section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}
section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}
clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}}
makelettertitle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.
Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.
Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.
Albert Einstein discovered that $e=mc^2$ in 1905.
[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]
makeletterclosing
end{document}
you get the following result:
You need to change the command makehead
to get a bigger space between name and addess with the following patch in the preamble. Change the number in \[0.5cm]
for your needs. Please see that this patch is for class moderncv
, version 2.0.0, the current one:
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
With the complete MWE, based on the template of class moderncv
documentclass[11pt,a4paper,sans]{moderncv}
moderncvstyle{banking} % classic banking
moderncvcolor{blue}
usepackage[utf8]{inputenc}
usepackage[scale=0.75]{geometry}
makeatletter
patchcmd{makehead}{%search
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\%
}{%replace
ifthenelse{equal{@title}{}}{}{titlestyle{~|~@title}}\[0.5cm]%
}{%success
}{%failure
}
makeatother
name{John}{Doe}
title{Resumé title}
address{street and number}{postcode city}{country}
phone[mobile]{+1~(234)~567~890}
phone[fixed]{+2~(345)~678~901}
phone[fax]{+3~(456)~789~012}
email{john@doe.org}
homepage{www.johndoe.com}
social[linkedin]{john.doe}
social[twitter]{jdoe}
social[github]{jdoe}
photo[64pt][0.4pt]{example-image-a}
quote{Some quote}
setlength{footskip}{66pt}
begin{document}
makecvtitle
section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description} % arguments 3 to 6 can be left empty
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}}{Description}
section{Master thesis}
cvitem{title}{emph{Title}}
cvitem{supervisors}{Supervisors}
cvitem{description}{Short thesis abstract}
section{Experience}
subsection{Vocational}
cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.newline{}%
Detailed achievements:%
begin{itemize}%
item Achievement 1;
item Achievement 2, with sub-achievements:
begin{itemize}%
item Sub-achievement (a);
item Sub-achievement (b), with sub-sub-achievements (don't do this!);
begin{itemize}
item Sub-sub-achievement i;
item Sub-sub-achievement ii;
item Sub-sub-achievement iii;
end{itemize}
item Sub-achievement (c);
end{itemize}
item Achievement 3.
end{itemize}}
cventry{year--year}{Job title}{Employer}{City}{}{Description line 1newline{}Description line 2}
subsection{Miscellaneous}
cventry{year--year}{Job title}{Employer}{City}{}{Description}
section{Languages}
cvitemwithcomment{Language 1}{Skill level}{Comment}
cvitemwithcomment{textbf{Language} 2}{textbf{Skill} level}{Comment}
cvitemwithcomment{Language 3}{Skill level}{Comment}
section{Computer skills}
cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
section{Interests}
cvitem{hobby 1}{Description}
cvitem{hobby 2}{Description}
cvitem{hobby 3}{Description}
section{Extra 1}
cvlistitem{Item 1}
cvlistitem{Item 2}
cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
section{Extra 2}
cvlistdoubleitem{Item 1}{Item 4}
cvlistdoubleitem{Item 2}{Item 5}
cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}
section{References}
begin{cvcolumns}
cvcolumn{Category 1}{begin{itemize}item Person 1item Person 2item Person 3end{itemize}}
cvcolumn{Category 2}{Amongst others:begin{itemize}item Person 1, anditem Person 2end{itemize}(more upon request)}
cvcolumn[0.5]{All the rest & some more}{textit{That} person, and textbf{those} also (all available upon request).}
end{cvcolumns}
clearpage
%----- letter ---------------------------------------------------------
% recipient data
recipient{Company Recruitment team}{Company, Inc.\123 somestreet\some city}
date{January 01, 1984}
opening{Dear Sir or Madam,}
closing{Yours faithfully,}
enclosure[Attached]{curriculum vitae{}}
makelettertitle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.
Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.
Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.
Albert Einstein discovered that $e=mc^2$ in 1905.
[ e=lim_{n to infty} left(1+frac{1}{n}right)^n ]
makeletterclosing
end{document}
you get the following result:
edited 4 mins ago
answered Dec 27 '17 at 22:57
KurtKurt
38.2k848162
38.2k848162
Not all heroes wear capes. Thank you so much.
– Cem
Dec 28 '17 at 8:32
@Cem If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
– Kurt
Dec 28 '17 at 20:54
add a comment |
Not all heroes wear capes. Thank you so much.
– Cem
Dec 28 '17 at 8:32
@Cem If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
– Kurt
Dec 28 '17 at 20:54
Not all heroes wear capes. Thank you so much.
– Cem
Dec 28 '17 at 8:32
Not all heroes wear capes. Thank you so much.
– Cem
Dec 28 '17 at 8:32
@Cem If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
– Kurt
Dec 28 '17 at 20:54
@Cem If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
– Kurt
Dec 28 '17 at 20:54
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f407762%2fclass-moderncv-style-banking-spacing-between-name-and-address-too-tight%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass{...}
and ending withend{document}
.– Phelype Oleinik
Dec 27 '17 at 12:17