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&%
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
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.
add a comment |
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&%
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
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
add a comment |
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&%
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
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&%
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
indentation moderncv
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
add a comment |
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
add a comment |
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&%
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:

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&%
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

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
add a comment |
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&%
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:

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&%
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

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
add a comment |
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&%
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:

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&%
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

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
add a comment |
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&%
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:

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&%
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

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&%
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:

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&%
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

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
add a comment |
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
add a comment |
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%2f402117%2fmoderncv-subentry-with-indented-wrapping-text%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
Welcome to TeX.SE!
– Cragfelt
Nov 19 '17 at 18:42