Moderncv subentry with indented wrapping text











up vote
2
down vote

favorite












How can I get a subentry in moderncv?



I've implemented the solution in the above post, but I was wondering if there is some easy way to allow the indentation to also work for wrapped text? So that the entire block gets indented, not just the first line.



MEW:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}{}{}{}{}
end{document}


So I want to fully ident the SPOC line, both lines of it.



Anyone any ideas?










share|improve this question














bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Welcome to TeX.SE!
    – Cragfelt
    Nov 19 '17 at 18:42















up vote
2
down vote

favorite












How can I get a subentry in moderncv?



I've implemented the solution in the above post, but I was wondering if there is some easy way to allow the indentation to also work for wrapped text? So that the entire block gets indented, not just the first line.



MEW:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}{}{}{}{}
end{document}


So I want to fully ident the SPOC line, both lines of it.



Anyone any ideas?










share|improve this question














bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Welcome to TeX.SE!
    – Cragfelt
    Nov 19 '17 at 18:42













up vote
2
down vote

favorite









up vote
2
down vote

favorite











How can I get a subentry in moderncv?



I've implemented the solution in the above post, but I was wondering if there is some easy way to allow the indentation to also work for wrapped text? So that the entire block gets indented, not just the first line.



MEW:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}{}{}{}{}
end{document}


So I want to fully ident the SPOC line, both lines of it.



Anyone any ideas?










share|improve this question













How can I get a subentry in moderncv?



I've implemented the solution in the above post, but I was wondering if there is some easy way to allow the indentation to also work for wrapped text? So that the entire block gets indented, not just the first line.



MEW:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}{}{}{}{}
end{document}


So I want to fully ident the SPOC line, both lines of it.



Anyone any ideas?







indentation moderncv






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 '17 at 18:13









devilkin

112




112





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Welcome to TeX.SE!
    – Cragfelt
    Nov 19 '17 at 18:42


















  • Welcome to TeX.SE!
    – Cragfelt
    Nov 19 '17 at 18:42
















Welcome to TeX.SE!
– Cragfelt
Nov 19 '17 at 18:42




Welcome to TeX.SE!
– Cragfelt
Nov 19 '17 at 18:42










1 Answer
1






active

oldest

votes

















up vote
0
down vote













The definition of your used command subcventry does only allow to have more than one line in argument #7, inserted in an own minipage.



You can test this with the example command



subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}


The compilable MWE shows you a correct layout if you move your long text into the last argument:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}
end{document}


with the result:



enter image description here



The last subcventry shows the result with moved argument ...



Or you can define a new own command mysubcventry like



newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}


with two parameters and one option (for the vertical space at the end of command cvitem).



With the following MWE



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}


begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7.}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry[5em]{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
end{document}


you get the result



enter image description here






share|improve this answer























  • Ok, while this solution didn't really provide what I was looking for, it did helped me how to interprete the newcommand that was being defined. For my own uses, I've redefined it as: newcommand*{subcventry}[3][.25em]{ cvitem[#1]{#2}{ hspace*{1em} begin{minipage}[t] { dimexpr linewidth-1em} small#3 end{minipage}} }
    – devilkin
    Nov 19 '17 at 20:40













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',
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%2f402117%2fmoderncv-subentry-with-indented-wrapping-text%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








up vote
0
down vote













The definition of your used command subcventry does only allow to have more than one line in argument #7, inserted in an own minipage.



You can test this with the example command



subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}


The compilable MWE shows you a correct layout if you move your long text into the last argument:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}
end{document}


with the result:



enter image description here



The last subcventry shows the result with moved argument ...



Or you can define a new own command mysubcventry like



newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}


with two parameters and one option (for the vertical space at the end of command cvitem).



With the following MWE



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}


begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7.}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry[5em]{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
end{document}


you get the result



enter image description here






share|improve this answer























  • Ok, while this solution didn't really provide what I was looking for, it did helped me how to interprete the newcommand that was being defined. For my own uses, I've redefined it as: newcommand*{subcventry}[3][.25em]{ cvitem[#1]{#2}{ hspace*{1em} begin{minipage}[t] { dimexpr linewidth-1em} small#3 end{minipage}} }
    – devilkin
    Nov 19 '17 at 20:40

















up vote
0
down vote













The definition of your used command subcventry does only allow to have more than one line in argument #7, inserted in an own minipage.



You can test this with the example command



subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}


The compilable MWE shows you a correct layout if you move your long text into the last argument:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}
end{document}


with the result:



enter image description here



The last subcventry shows the result with moved argument ...



Or you can define a new own command mysubcventry like



newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}


with two parameters and one option (for the vertical space at the end of command cvitem).



With the following MWE



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}


begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7.}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry[5em]{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
end{document}


you get the result



enter image description here






share|improve this answer























  • Ok, while this solution didn't really provide what I was looking for, it did helped me how to interprete the newcommand that was being defined. For my own uses, I've redefined it as: newcommand*{subcventry}[3][.25em]{ cvitem[#1]{#2}{ hspace*{1em} begin{minipage}[t] { dimexpr linewidth-1em} small#3 end{minipage}} }
    – devilkin
    Nov 19 '17 at 20:40















up vote
0
down vote










up vote
0
down vote









The definition of your used command subcventry does only allow to have more than one line in argument #7, inserted in an own minipage.



You can test this with the example command



subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}


The compilable MWE shows you a correct layout if you move your long text into the last argument:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}
end{document}


with the result:



enter image description here



The last subcventry shows the result with moved argument ...



Or you can define a new own command mysubcventry like



newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}


with two parameters and one option (for the vertical space at the end of command cvitem).



With the following MWE



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}


begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7.}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry[5em]{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
end{document}


you get the result



enter image description here






share|improve this answer














The definition of your used command subcventry does only allow to have more than one line in argument #7, inserted in an own minipage.



You can test this with the example command



subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}


The compilable MWE shows you a correct layout if you move your long text into the last argument:



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}

begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4}
end{document}


with the result:



enter image description here



The last subcventry shows the result with moved argument ...



Or you can define a new own command mysubcventry like



newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}


with two parameters and one option (for the vertical space at the end of command cvitem).



With the following MWE



documentclass[11pt,a4paper,sans]{moderncv} 
moderncvstyle{classic}

newcommand*{subcventry}[7][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}#3}%
ifthenelse{equal{#4}{}}{}{, {slshape#4}}%
ifthenelse{equal{#5}{}}{}{, #5}%
ifthenelse{equal{#6}{}}{}{, #6}%
.strut%
ifx&#7&%
else{newline{}hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#7end{minipage}}fi
}
}

newcommand*{mysubcventry}[3][.25em]{%
cvitem[#1]{#2}{%
{hspace*{1em}begin{minipage}[t]{dimexprlinewidth-1em}small#3end{minipage}}
}
}

firstname{Mr.}
familyname{Awesome}

setlength{hintscolumnwidth}{2.6cm}


begin{document}
section{Experience}

cventry{November 2007 -- current}{Mr. Awesome}{Awesome Ltd.}{The Earth}{}{}
subcventry{November 2007 -- current--2}{Mr. Awesome--3}{Awesome Ltd.--4}{The Earth--5}{test--6}{test--7.}
subcventry{July 2015}{Intake of Awesomeness version 2}{}{}{}{}
subcventry{May 2014 -- current}{SPOC}{}{}{}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry[5em]{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
mysubcventry{May 2014 -- current}{SPOC for all awesomeness in all our awesome clients, which includes Awesome1, Awesome2, awesome3 and awesome4.}
end{document}


you get the result



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 22 '17 at 0:55

























answered Nov 19 '17 at 19:05









Kurt

33.8k846156




33.8k846156












  • Ok, while this solution didn't really provide what I was looking for, it did helped me how to interprete the newcommand that was being defined. For my own uses, I've redefined it as: newcommand*{subcventry}[3][.25em]{ cvitem[#1]{#2}{ hspace*{1em} begin{minipage}[t] { dimexpr linewidth-1em} small#3 end{minipage}} }
    – devilkin
    Nov 19 '17 at 20:40




















  • Ok, while this solution didn't really provide what I was looking for, it did helped me how to interprete the newcommand that was being defined. For my own uses, I've redefined it as: newcommand*{subcventry}[3][.25em]{ cvitem[#1]{#2}{ hspace*{1em} begin{minipage}[t] { dimexpr linewidth-1em} small#3 end{minipage}} }
    – devilkin
    Nov 19 '17 at 20:40


















Ok, while this solution didn't really provide what I was looking for, it did helped me how to interprete the newcommand that was being defined. For my own uses, I've redefined it as: newcommand*{subcventry}[3][.25em]{ cvitem[#1]{#2}{ hspace*{1em} begin{minipage}[t] { dimexpr linewidth-1em} small#3 end{minipage}} }
– devilkin
Nov 19 '17 at 20:40






Ok, while this solution didn't really provide what I was looking for, it did helped me how to interprete the newcommand that was being defined. For my own uses, I've redefined it as: newcommand*{subcventry}[3][.25em]{ cvitem[#1]{#2}{ hspace*{1em} begin{minipage}[t] { dimexpr linewidth-1em} small#3 end{minipage}} }
– devilkin
Nov 19 '17 at 20:40




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f402117%2fmoderncv-subentry-with-indented-wrapping-text%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

Entries order in /etc/network/interfaces

新発田市

Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)