if statement to remove spacing between lines












0














i am working on a resume using a latex template. in the template, there is spacing in case you wish to add an additional bullet point. however, if you don't add that bullet point, the spacing stays there- thus making 2 blank spaces which makes the formatting off. i have reached out to the creator and have yet to receive a response. i want to add like an if statement that if there is no text for a bullet, do not add the extra spacing. i THINK this is where it is in the code.



     % Usage: cventry{<position>}{<title>}{<location>}{<date>} 
{<description>}
newcommand*{cventry}[5]{%
vspace{-2.0mm}
setlengthtabcolsep{0pt}
setlength{extrarowheight}{0pt}
begin{tabular*}{textwidth}{@{extracolsep{fill}} L{textwidth - 4.5cm} R{4.5cm}}
ifempty{#2#3}
{entrypositionstyle{#1} & entrydatestyle{#4} \}
{entrytitlestyle{#2} & entrylocationstyle{#3} \
entrypositionstyle{#1} & entrydatestyle{#4} \}
multicolumn{2}{L{textwidth}}{descriptionstyle{#5}}
end{tabular*}%
}


i have never used LaTeX before so this is foreign to me. does anyone have any ideas how I can achieve what I am looking for?










share|improve this question




















  • 1




    You should have mentioned that you are using the awesome-cv template. There are thousands of LaTeX CV “templates” out there. It's also available on Overleaf v1.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm
    – Henri Menke
    Dec 11 '18 at 20:32












  • had no idea, thanks for letting me know!
    – donc
    Dec 11 '18 at 20:33






  • 1




    Questions seeking debugging help (“why isn't this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See minimal working example (MWE).
    – Henri Menke
    Dec 11 '18 at 20:34
















0














i am working on a resume using a latex template. in the template, there is spacing in case you wish to add an additional bullet point. however, if you don't add that bullet point, the spacing stays there- thus making 2 blank spaces which makes the formatting off. i have reached out to the creator and have yet to receive a response. i want to add like an if statement that if there is no text for a bullet, do not add the extra spacing. i THINK this is where it is in the code.



     % Usage: cventry{<position>}{<title>}{<location>}{<date>} 
{<description>}
newcommand*{cventry}[5]{%
vspace{-2.0mm}
setlengthtabcolsep{0pt}
setlength{extrarowheight}{0pt}
begin{tabular*}{textwidth}{@{extracolsep{fill}} L{textwidth - 4.5cm} R{4.5cm}}
ifempty{#2#3}
{entrypositionstyle{#1} & entrydatestyle{#4} \}
{entrytitlestyle{#2} & entrylocationstyle{#3} \
entrypositionstyle{#1} & entrydatestyle{#4} \}
multicolumn{2}{L{textwidth}}{descriptionstyle{#5}}
end{tabular*}%
}


i have never used LaTeX before so this is foreign to me. does anyone have any ideas how I can achieve what I am looking for?










share|improve this question




















  • 1




    You should have mentioned that you are using the awesome-cv template. There are thousands of LaTeX CV “templates” out there. It's also available on Overleaf v1.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm
    – Henri Menke
    Dec 11 '18 at 20:32












  • had no idea, thanks for letting me know!
    – donc
    Dec 11 '18 at 20:33






  • 1




    Questions seeking debugging help (“why isn't this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See minimal working example (MWE).
    – Henri Menke
    Dec 11 '18 at 20:34














0












0








0







i am working on a resume using a latex template. in the template, there is spacing in case you wish to add an additional bullet point. however, if you don't add that bullet point, the spacing stays there- thus making 2 blank spaces which makes the formatting off. i have reached out to the creator and have yet to receive a response. i want to add like an if statement that if there is no text for a bullet, do not add the extra spacing. i THINK this is where it is in the code.



     % Usage: cventry{<position>}{<title>}{<location>}{<date>} 
{<description>}
newcommand*{cventry}[5]{%
vspace{-2.0mm}
setlengthtabcolsep{0pt}
setlength{extrarowheight}{0pt}
begin{tabular*}{textwidth}{@{extracolsep{fill}} L{textwidth - 4.5cm} R{4.5cm}}
ifempty{#2#3}
{entrypositionstyle{#1} & entrydatestyle{#4} \}
{entrytitlestyle{#2} & entrylocationstyle{#3} \
entrypositionstyle{#1} & entrydatestyle{#4} \}
multicolumn{2}{L{textwidth}}{descriptionstyle{#5}}
end{tabular*}%
}


i have never used LaTeX before so this is foreign to me. does anyone have any ideas how I can achieve what I am looking for?










share|improve this question















i am working on a resume using a latex template. in the template, there is spacing in case you wish to add an additional bullet point. however, if you don't add that bullet point, the spacing stays there- thus making 2 blank spaces which makes the formatting off. i have reached out to the creator and have yet to receive a response. i want to add like an if statement that if there is no text for a bullet, do not add the extra spacing. i THINK this is where it is in the code.



     % Usage: cventry{<position>}{<title>}{<location>}{<date>} 
{<description>}
newcommand*{cventry}[5]{%
vspace{-2.0mm}
setlengthtabcolsep{0pt}
setlength{extrarowheight}{0pt}
begin{tabular*}{textwidth}{@{extracolsep{fill}} L{textwidth - 4.5cm} R{4.5cm}}
ifempty{#2#3}
{entrypositionstyle{#1} & entrydatestyle{#4} \}
{entrytitlestyle{#2} & entrylocationstyle{#3} \
entrypositionstyle{#1} & entrydatestyle{#4} \}
multicolumn{2}{L{textwidth}}{descriptionstyle{#5}}
end{tabular*}%
}


i have never used LaTeX before so this is foreign to me. does anyone have any ideas how I can achieve what I am looking for?







spacing line-spacing ifthenelse awesome-cv






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 '18 at 20:31









Henri Menke

69.9k8156260




69.9k8156260










asked Dec 11 '18 at 20:00









donc

1




1








  • 1




    You should have mentioned that you are using the awesome-cv template. There are thousands of LaTeX CV “templates” out there. It's also available on Overleaf v1.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm
    – Henri Menke
    Dec 11 '18 at 20:32












  • had no idea, thanks for letting me know!
    – donc
    Dec 11 '18 at 20:33






  • 1




    Questions seeking debugging help (“why isn't this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See minimal working example (MWE).
    – Henri Menke
    Dec 11 '18 at 20:34














  • 1




    You should have mentioned that you are using the awesome-cv template. There are thousands of LaTeX CV “templates” out there. It's also available on Overleaf v1.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm
    – Henri Menke
    Dec 11 '18 at 20:32












  • had no idea, thanks for letting me know!
    – donc
    Dec 11 '18 at 20:33






  • 1




    Questions seeking debugging help (“why isn't this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See minimal working example (MWE).
    – Henri Menke
    Dec 11 '18 at 20:34








1




1




You should have mentioned that you are using the awesome-cv template. There are thousands of LaTeX CV “templates” out there. It's also available on Overleaf v1.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm
– Henri Menke
Dec 11 '18 at 20:32






You should have mentioned that you are using the awesome-cv template. There are thousands of LaTeX CV “templates” out there. It's also available on Overleaf v1.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm
– Henri Menke
Dec 11 '18 at 20:32














had no idea, thanks for letting me know!
– donc
Dec 11 '18 at 20:33




had no idea, thanks for letting me know!
– donc
Dec 11 '18 at 20:33




1




1




Questions seeking debugging help (“why isn't this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See minimal working example (MWE).
– Henri Menke
Dec 11 '18 at 20:34




Questions seeking debugging help (“why isn't this code working?”) must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See minimal working example (MWE).
– Henri Menke
Dec 11 '18 at 20:34















active

oldest

votes











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%2f464388%2fif-statement-to-remove-spacing-between-lines%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f464388%2fif-statement-to-remove-spacing-between-lines%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

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?