Linebreak within cvaddress












1














I'm writing a CV using the following template:



https://de.overleaf.com/latex/templates/entry-level-resume-template-latex/jsmpwkcwyntg



I now want to add my address to the sidebar. By doing so I want it to look like:



Fake Street 1, 
01234 Fake Town


but all I can get is shown in the following picture:



enter image description here



I tried everything: par, linebreak, newline, \, ...
but nothing seems to work as all of the examples mentioned above lead to significant errors.



Does anyone has an idea how I can make this work?










share|improve this question




















  • 1




    By default, the CV template you're using does not include an address. How do you add the address to your profile?
    – Werner
    Dec 11 '18 at 17:28










  • I just added ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{ {$ begin{array}{l} hspace{3.5mm} huge textnormal{{faMapMarker}} end{array} $} & href{http://cvaddress}{cvaddress} \} in "twentysecondcv.cls" and used cvaddress{Fake Street 1, 01234 Fake Town} in "template.tex".
    – offline
    Dec 11 '18 at 17:53


















1














I'm writing a CV using the following template:



https://de.overleaf.com/latex/templates/entry-level-resume-template-latex/jsmpwkcwyntg



I now want to add my address to the sidebar. By doing so I want it to look like:



Fake Street 1, 
01234 Fake Town


but all I can get is shown in the following picture:



enter image description here



I tried everything: par, linebreak, newline, \, ...
but nothing seems to work as all of the examples mentioned above lead to significant errors.



Does anyone has an idea how I can make this work?










share|improve this question




















  • 1




    By default, the CV template you're using does not include an address. How do you add the address to your profile?
    – Werner
    Dec 11 '18 at 17:28










  • I just added ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{ {$ begin{array}{l} hspace{3.5mm} huge textnormal{{faMapMarker}} end{array} $} & href{http://cvaddress}{cvaddress} \} in "twentysecondcv.cls" and used cvaddress{Fake Street 1, 01234 Fake Town} in "template.tex".
    – offline
    Dec 11 '18 at 17:53
















1












1








1







I'm writing a CV using the following template:



https://de.overleaf.com/latex/templates/entry-level-resume-template-latex/jsmpwkcwyntg



I now want to add my address to the sidebar. By doing so I want it to look like:



Fake Street 1, 
01234 Fake Town


but all I can get is shown in the following picture:



enter image description here



I tried everything: par, linebreak, newline, \, ...
but nothing seems to work as all of the examples mentioned above lead to significant errors.



Does anyone has an idea how I can make this work?










share|improve this question















I'm writing a CV using the following template:



https://de.overleaf.com/latex/templates/entry-level-resume-template-latex/jsmpwkcwyntg



I now want to add my address to the sidebar. By doing so I want it to look like:



Fake Street 1, 
01234 Fake Town


but all I can get is shown in the following picture:



enter image description here



I tried everything: par, linebreak, newline, \, ...
but nothing seems to work as all of the examples mentioned above lead to significant errors.



Does anyone has an idea how I can make this work?







tables letters cv






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 '18 at 18:41









Werner

437k649591649




437k649591649










asked Dec 11 '18 at 17:11









offline

374




374








  • 1




    By default, the CV template you're using does not include an address. How do you add the address to your profile?
    – Werner
    Dec 11 '18 at 17:28










  • I just added ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{ {$ begin{array}{l} hspace{3.5mm} huge textnormal{{faMapMarker}} end{array} $} & href{http://cvaddress}{cvaddress} \} in "twentysecondcv.cls" and used cvaddress{Fake Street 1, 01234 Fake Town} in "template.tex".
    – offline
    Dec 11 '18 at 17:53
















  • 1




    By default, the CV template you're using does not include an address. How do you add the address to your profile?
    – Werner
    Dec 11 '18 at 17:28










  • I just added ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{ {$ begin{array}{l} hspace{3.5mm} huge textnormal{{faMapMarker}} end{array} $} & href{http://cvaddress}{cvaddress} \} in "twentysecondcv.cls" and used cvaddress{Fake Street 1, 01234 Fake Town} in "template.tex".
    – offline
    Dec 11 '18 at 17:53










1




1




By default, the CV template you're using does not include an address. How do you add the address to your profile?
– Werner
Dec 11 '18 at 17:28




By default, the CV template you're using does not include an address. How do you add the address to your profile?
– Werner
Dec 11 '18 at 17:28












I just added ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{ {$ begin{array}{l} hspace{3.5mm} huge textnormal{{faMapMarker}} end{array} $} & href{http://cvaddress}{cvaddress} \} in "twentysecondcv.cls" and used cvaddress{Fake Street 1, 01234 Fake Town} in "template.tex".
– offline
Dec 11 '18 at 17:53






I just added ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{ {$ begin{array}{l} hspace{3.5mm} huge textnormal{{faMapMarker}} end{array} $} & href{http://cvaddress}{cvaddress} \} in "twentysecondcv.cls" and used cvaddress{Fake Street 1, 01234 Fake Town} in "template.tex".
– offline
Dec 11 '18 at 17:53












1 Answer
1






active

oldest

votes


















1














Since you are modifying the template .cls directly, you don't have to condition on whether or not you defined cvaddress. You can just place the address and put the cvaddress macro inside a tabular.



Specifically, I'd place



%ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{
{$
begin{array}{l}
hspace{3.5mm} huge textnormal{faMapMarker}
end{array}
$} & {begin{tabular}[t]{@{} l @{}} cvaddress end{tabular}} \
%}


within the makeprofile definition within twentysecondcv.cls (around line 210). It's strange to place the faMapMarker part inside an $begin{array}{.} ... end{array}$ construction when using tabular is all that is needed. If you're using a tabular instead, you may have to adjust the hspace since the column separation differs between the two.



Now you can set your address using



cvaddress{Fake Street 1, \ 01234 Fake Town}


The address is set to be [t]op-aligned with faMapMarker (remove it to be center-aligned).



enter image description here



If you want less spacing between the address elements, use something like:



cvaddress{Fake Street 1, \[-.5normalbaselineskip] 01234 Fake Town}


A negative space in \[<len>] brings the elements closer together.



enter image description here






share|improve this answer





















  • That's an awesome answer! Thank you very much! It's exactly what I was looking for!
    – offline
    Dec 11 '18 at 19:00











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464358%2flinebreak-within-cvaddress%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









1














Since you are modifying the template .cls directly, you don't have to condition on whether or not you defined cvaddress. You can just place the address and put the cvaddress macro inside a tabular.



Specifically, I'd place



%ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{
{$
begin{array}{l}
hspace{3.5mm} huge textnormal{faMapMarker}
end{array}
$} & {begin{tabular}[t]{@{} l @{}} cvaddress end{tabular}} \
%}


within the makeprofile definition within twentysecondcv.cls (around line 210). It's strange to place the faMapMarker part inside an $begin{array}{.} ... end{array}$ construction when using tabular is all that is needed. If you're using a tabular instead, you may have to adjust the hspace since the column separation differs between the two.



Now you can set your address using



cvaddress{Fake Street 1, \ 01234 Fake Town}


The address is set to be [t]op-aligned with faMapMarker (remove it to be center-aligned).



enter image description here



If you want less spacing between the address elements, use something like:



cvaddress{Fake Street 1, \[-.5normalbaselineskip] 01234 Fake Town}


A negative space in \[<len>] brings the elements closer together.



enter image description here






share|improve this answer





















  • That's an awesome answer! Thank you very much! It's exactly what I was looking for!
    – offline
    Dec 11 '18 at 19:00
















1














Since you are modifying the template .cls directly, you don't have to condition on whether or not you defined cvaddress. You can just place the address and put the cvaddress macro inside a tabular.



Specifically, I'd place



%ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{
{$
begin{array}{l}
hspace{3.5mm} huge textnormal{faMapMarker}
end{array}
$} & {begin{tabular}[t]{@{} l @{}} cvaddress end{tabular}} \
%}


within the makeprofile definition within twentysecondcv.cls (around line 210). It's strange to place the faMapMarker part inside an $begin{array}{.} ... end{array}$ construction when using tabular is all that is needed. If you're using a tabular instead, you may have to adjust the hspace since the column separation differs between the two.



Now you can set your address using



cvaddress{Fake Street 1, \ 01234 Fake Town}


The address is set to be [t]op-aligned with faMapMarker (remove it to be center-aligned).



enter image description here



If you want less spacing between the address elements, use something like:



cvaddress{Fake Street 1, \[-.5normalbaselineskip] 01234 Fake Town}


A negative space in \[<len>] brings the elements closer together.



enter image description here






share|improve this answer





















  • That's an awesome answer! Thank you very much! It's exactly what I was looking for!
    – offline
    Dec 11 '18 at 19:00














1












1








1






Since you are modifying the template .cls directly, you don't have to condition on whether or not you defined cvaddress. You can just place the address and put the cvaddress macro inside a tabular.



Specifically, I'd place



%ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{
{$
begin{array}{l}
hspace{3.5mm} huge textnormal{faMapMarker}
end{array}
$} & {begin{tabular}[t]{@{} l @{}} cvaddress end{tabular}} \
%}


within the makeprofile definition within twentysecondcv.cls (around line 210). It's strange to place the faMapMarker part inside an $begin{array}{.} ... end{array}$ construction when using tabular is all that is needed. If you're using a tabular instead, you may have to adjust the hspace since the column separation differs between the two.



Now you can set your address using



cvaddress{Fake Street 1, \ 01234 Fake Town}


The address is set to be [t]op-aligned with faMapMarker (remove it to be center-aligned).



enter image description here



If you want less spacing between the address elements, use something like:



cvaddress{Fake Street 1, \[-.5normalbaselineskip] 01234 Fake Town}


A negative space in \[<len>] brings the elements closer together.



enter image description here






share|improve this answer












Since you are modifying the template .cls directly, you don't have to condition on whether or not you defined cvaddress. You can just place the address and put the cvaddress macro inside a tabular.



Specifically, I'd place



%ifthenelse{equal{href{cvaddress}{cvaddress}}{}}{}{
{$
begin{array}{l}
hspace{3.5mm} huge textnormal{faMapMarker}
end{array}
$} & {begin{tabular}[t]{@{} l @{}} cvaddress end{tabular}} \
%}


within the makeprofile definition within twentysecondcv.cls (around line 210). It's strange to place the faMapMarker part inside an $begin{array}{.} ... end{array}$ construction when using tabular is all that is needed. If you're using a tabular instead, you may have to adjust the hspace since the column separation differs between the two.



Now you can set your address using



cvaddress{Fake Street 1, \ 01234 Fake Town}


The address is set to be [t]op-aligned with faMapMarker (remove it to be center-aligned).



enter image description here



If you want less spacing between the address elements, use something like:



cvaddress{Fake Street 1, \[-.5normalbaselineskip] 01234 Fake Town}


A negative space in \[<len>] brings the elements closer together.



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 11 '18 at 18:41









Werner

437k649591649




437k649591649












  • That's an awesome answer! Thank you very much! It's exactly what I was looking for!
    – offline
    Dec 11 '18 at 19:00


















  • That's an awesome answer! Thank you very much! It's exactly what I was looking for!
    – offline
    Dec 11 '18 at 19:00
















That's an awesome answer! Thank you very much! It's exactly what I was looking for!
– offline
Dec 11 '18 at 19:00




That's an awesome answer! Thank you very much! It's exactly what I was looking for!
– offline
Dec 11 '18 at 19:00


















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464358%2flinebreak-within-cvaddress%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?