Using cvlistdoubleitem in combination with two column layout in moderncv
up vote
2
down vote
favorite
I am working on my resume with the moderncv
class. Since I want it to be with a two-columns page layout, I have followed the steps in this question.
What is not working fine with that layout is the lists with cvlistdoubleitem
: in fact the items do not appear paired one next to the other but up and down.
This can be seen in the pic, in the First subset group (the second subset is a normal cvlistitem
):
How can I fix this layout? The code I am using is the following:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
setlength{hintscolumnwidth}{2.5cm}
begin{document}
makecvtitle
lipsum[1]
setlength{hintscolumnwidth}{2.6cm}
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
moderncv cv
New contributor
add a comment |
up vote
2
down vote
favorite
I am working on my resume with the moderncv
class. Since I want it to be with a two-columns page layout, I have followed the steps in this question.
What is not working fine with that layout is the lists with cvlistdoubleitem
: in fact the items do not appear paired one next to the other but up and down.
This can be seen in the pic, in the First subset group (the second subset is a normal cvlistitem
):
How can I fix this layout? The code I am using is the following:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
setlength{hintscolumnwidth}{2.5cm}
begin{document}
makecvtitle
lipsum[1]
setlength{hintscolumnwidth}{2.6cm}
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
moderncv cv
New contributor
Please see my answer ...
– Kurt
3 hours ago
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am working on my resume with the moderncv
class. Since I want it to be with a two-columns page layout, I have followed the steps in this question.
What is not working fine with that layout is the lists with cvlistdoubleitem
: in fact the items do not appear paired one next to the other but up and down.
This can be seen in the pic, in the First subset group (the second subset is a normal cvlistitem
):
How can I fix this layout? The code I am using is the following:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
setlength{hintscolumnwidth}{2.5cm}
begin{document}
makecvtitle
lipsum[1]
setlength{hintscolumnwidth}{2.6cm}
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
moderncv cv
New contributor
I am working on my resume with the moderncv
class. Since I want it to be with a two-columns page layout, I have followed the steps in this question.
What is not working fine with that layout is the lists with cvlistdoubleitem
: in fact the items do not appear paired one next to the other but up and down.
This can be seen in the pic, in the First subset group (the second subset is a normal cvlistitem
):
How can I fix this layout? The code I am using is the following:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
setlength{hintscolumnwidth}{2.5cm}
begin{document}
makecvtitle
lipsum[1]
setlength{hintscolumnwidth}{2.6cm}
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
moderncv cv
moderncv cv
New contributor
New contributor
edited 3 hours ago
Kurt
34.6k846157
34.6k846157
New contributor
asked 12 hours ago
GGiacomo
132
132
New contributor
New contributor
Please see my answer ...
– Kurt
3 hours ago
add a comment |
Please see my answer ...
– Kurt
3 hours ago
Please see my answer ...
– Kurt
3 hours ago
Please see my answer ...
– Kurt
3 hours ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
accepted
Edit: I've updated my answer with a modified cvlistdoubleitem
command.
The modernCV
class (v2.0.0) uses the following definition for cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The hfill
in there and the minipage with listdoubleitemcolumnwidth
seem problematic for your two-column layout. I've modified the command, creating cvlistdoubleitemnew
:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
newcommand{cvlistdoubleitemnew}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#2end{minipage}%
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitemnew{First}{Second}
cvlistdoubleitemnew{Third}{Fourth}
cvlistdoubleitemnew{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
add a comment |
up vote
0
down vote
The problem here is the definition of command cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The used length listdoubleitemcolumnwidth
depends on length maincolumnwidth
as you can see from the definitions in file moderncvbodyi.sty
:
setlength{maincolumnwidth}{textwidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}%
setlength{listitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth}%
setlength{doubleitemcolumnwidth}{maincolumnwidth-hintscolumnwidth-separatorcolumnwidth-separatorcolumnwidth}%
setlength{doubleitemcolumnwidth}{0.5doubleitemcolumnwidth}%
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}%
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth}%
So you simply need to add the both definition for length listdoubleitemcolumnwidth
after you defined the other length after starting environment multicols
(see the added two lines to your code marked with <=========
, scroll to the right to see both):
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
So at last you have to follow the advice in your linked question:
For different commands, you might have to tweak different lengths, and
you might have to fiddle around to get a pleasing result.
In your case you need to add a corrected length listdoubleitemcolumnwidth
after starting multicols
.
The following complete MWE
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
%renewcommand*{cvlistdoubleitem}[3][.25em]{%
%cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
%hfill% fill of separatorcolumnwidth
%ifthenelse{equal{#3}{}}%
%{}%
%{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
you get the following wished result:
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Edit: I've updated my answer with a modified cvlistdoubleitem
command.
The modernCV
class (v2.0.0) uses the following definition for cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The hfill
in there and the minipage with listdoubleitemcolumnwidth
seem problematic for your two-column layout. I've modified the command, creating cvlistdoubleitemnew
:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
newcommand{cvlistdoubleitemnew}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#2end{minipage}%
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitemnew{First}{Second}
cvlistdoubleitemnew{Third}{Fourth}
cvlistdoubleitemnew{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
add a comment |
up vote
0
down vote
accepted
Edit: I've updated my answer with a modified cvlistdoubleitem
command.
The modernCV
class (v2.0.0) uses the following definition for cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The hfill
in there and the minipage with listdoubleitemcolumnwidth
seem problematic for your two-column layout. I've modified the command, creating cvlistdoubleitemnew
:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
newcommand{cvlistdoubleitemnew}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#2end{minipage}%
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitemnew{First}{Second}
cvlistdoubleitemnew{Third}{Fourth}
cvlistdoubleitemnew{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Edit: I've updated my answer with a modified cvlistdoubleitem
command.
The modernCV
class (v2.0.0) uses the following definition for cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The hfill
in there and the minipage with listdoubleitemcolumnwidth
seem problematic for your two-column layout. I've modified the command, creating cvlistdoubleitemnew
:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
newcommand{cvlistdoubleitemnew}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#2end{minipage}%
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitemnew{First}{Second}
cvlistdoubleitemnew{Third}{Fourth}
cvlistdoubleitemnew{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
Edit: I've updated my answer with a modified cvlistdoubleitem
command.
The modernCV
class (v2.0.0) uses the following definition for cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The hfill
in there and the minipage with listdoubleitemcolumnwidth
seem problematic for your two-column layout. I've modified the command, creating cvlistdoubleitemnew
:
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
newcommand{cvlistdoubleitemnew}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#2end{minipage}%
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{0.4listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitemnew{First}{Second}
cvlistdoubleitemnew{Third}{Fourth}
cvlistdoubleitemnew{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
edited 8 hours ago
answered 9 hours ago
chrisma
798416
798416
add a comment |
add a comment |
up vote
0
down vote
The problem here is the definition of command cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The used length listdoubleitemcolumnwidth
depends on length maincolumnwidth
as you can see from the definitions in file moderncvbodyi.sty
:
setlength{maincolumnwidth}{textwidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}%
setlength{listitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth}%
setlength{doubleitemcolumnwidth}{maincolumnwidth-hintscolumnwidth-separatorcolumnwidth-separatorcolumnwidth}%
setlength{doubleitemcolumnwidth}{0.5doubleitemcolumnwidth}%
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}%
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth}%
So you simply need to add the both definition for length listdoubleitemcolumnwidth
after you defined the other length after starting environment multicols
(see the added two lines to your code marked with <=========
, scroll to the right to see both):
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
So at last you have to follow the advice in your linked question:
For different commands, you might have to tweak different lengths, and
you might have to fiddle around to get a pleasing result.
In your case you need to add a corrected length listdoubleitemcolumnwidth
after starting multicols
.
The following complete MWE
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
%renewcommand*{cvlistdoubleitem}[3][.25em]{%
%cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
%hfill% fill of separatorcolumnwidth
%ifthenelse{equal{#3}{}}%
%{}%
%{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
you get the following wished result:
add a comment |
up vote
0
down vote
The problem here is the definition of command cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The used length listdoubleitemcolumnwidth
depends on length maincolumnwidth
as you can see from the definitions in file moderncvbodyi.sty
:
setlength{maincolumnwidth}{textwidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}%
setlength{listitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth}%
setlength{doubleitemcolumnwidth}{maincolumnwidth-hintscolumnwidth-separatorcolumnwidth-separatorcolumnwidth}%
setlength{doubleitemcolumnwidth}{0.5doubleitemcolumnwidth}%
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}%
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth}%
So you simply need to add the both definition for length listdoubleitemcolumnwidth
after you defined the other length after starting environment multicols
(see the added two lines to your code marked with <=========
, scroll to the right to see both):
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
So at last you have to follow the advice in your linked question:
For different commands, you might have to tweak different lengths, and
you might have to fiddle around to get a pleasing result.
In your case you need to add a corrected length listdoubleitemcolumnwidth
after starting multicols
.
The following complete MWE
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
%renewcommand*{cvlistdoubleitem}[3][.25em]{%
%cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
%hfill% fill of separatorcolumnwidth
%ifthenelse{equal{#3}{}}%
%{}%
%{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
you get the following wished result:
add a comment |
up vote
0
down vote
up vote
0
down vote
The problem here is the definition of command cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The used length listdoubleitemcolumnwidth
depends on length maincolumnwidth
as you can see from the definitions in file moderncvbodyi.sty
:
setlength{maincolumnwidth}{textwidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}%
setlength{listitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth}%
setlength{doubleitemcolumnwidth}{maincolumnwidth-hintscolumnwidth-separatorcolumnwidth-separatorcolumnwidth}%
setlength{doubleitemcolumnwidth}{0.5doubleitemcolumnwidth}%
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}%
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth}%
So you simply need to add the both definition for length listdoubleitemcolumnwidth
after you defined the other length after starting environment multicols
(see the added two lines to your code marked with <=========
, scroll to the right to see both):
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
So at last you have to follow the advice in your linked question:
For different commands, you might have to tweak different lengths, and
you might have to fiddle around to get a pleasing result.
In your case you need to add a corrected length listdoubleitemcolumnwidth
after starting multicols
.
The following complete MWE
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
%renewcommand*{cvlistdoubleitem}[3][.25em]{%
%cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
%hfill% fill of separatorcolumnwidth
%ifthenelse{equal{#3}{}}%
%{}%
%{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
you get the following wished result:
The problem here is the definition of command cvlistdoubleitem
:
renewcommand*{cvlistdoubleitem}[3][.25em]{%
cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
hfill% fill of separatorcolumnwidth
ifthenelse{equal{#3}{}}%
{}%
{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
The used length listdoubleitemcolumnwidth
depends on length maincolumnwidth
as you can see from the definitions in file moderncvbodyi.sty
:
setlength{maincolumnwidth}{textwidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}%
setlength{listitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth}%
setlength{doubleitemcolumnwidth}{maincolumnwidth-hintscolumnwidth-separatorcolumnwidth-separatorcolumnwidth}%
setlength{doubleitemcolumnwidth}{0.5doubleitemcolumnwidth}%
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}%
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth}%
So you simply need to add the both definition for length listdoubleitemcolumnwidth
after you defined the other length after starting environment multicols
(see the added two lines to your code marked with <=========
, scroll to the right to see both):
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
So at last you have to follow the advice in your linked question:
For different commands, you might have to tweak different lengths, and
you might have to fiddle around to get a pleasing result.
In your case you need to add a corrected length listdoubleitemcolumnwidth
after starting multicols
.
The following complete MWE
documentclass[10pt,a4paper,sans]{moderncv}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{url}
usepackage{relsize}
usepackage[margin=1in]{geometry}
usepackage{multicol}
usepackage{lipsum}
moderncvstyle{classic} %classic, oldstyle, banking casual
moderncvcolor{blue} %blue orange green red purple grey black
firstname{Fat}
familyname{Tony}
title{Curriculum Vitae}
address{Somewhere in Springfield}{12345}{United States}
email{fat.tony@themob.com}
homepage{linkedin.com/in/fat.tony}
% copied from moderncvbodyi.sty
%renewcommand*{cvlistdoubleitem}[3][.25em]{%
%cvitem[#1]{}{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#2end{minipage}%
%hfill% fill of separatorcolumnwidth
%ifthenelse{equal{#3}{}}%
%{}%
%{listitemsymbolbegin{minipage}[t]{listdoubleitemcolumnwidth}#3end{minipage}}}}
begin{document}
makecvtitle
lipsum[1]
begin{multicols}{2}
setlength{hintscolumnwidth}{0.175textwidth}
setlength{separatorcolumnwidth}{0.015textwidth}
setlength{maincolumnwidth}{linewidth-leftskip-rightskip-separatorcolumnwidth-hintscolumnwidth}
setlength{listdoubleitemcolumnwidth}{maincolumnwidth-listitemsymbolwidth-separatorcolumnwidth-listitemsymbolwidth}% <================================================
setlength{listdoubleitemcolumnwidth}{0.5listdoubleitemcolumnwidth} % <==============================
section{Personal Information}
cvitem{Nationality}{Italian American}
cvitem{Driving License}{Cars and limos}
section{Education}
cventry{1990-1995}%
{PhD in something something}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1988--1990}%
{Msc of science in another thing}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1985-1988}{Bsc in the first thing ever}%
{A university}%
{City}%
{High grade}%
{Some description of the thing}
cventry{1980-1985}%
{High school of the best school diploma}%
{A high school}%
{City}%
{High grade}%
{Some description of the thing}
section{Professional experience}
cventry{1995-present}
{Mob boss}{A university}%
{City}%
{High grade}%
{Some description of the thing}
section{Languages}
cvitem{English}{Native speaker}
cvitem{Sicilian}{Proficient user }
cvitem{Italian}{Independent user}
cvitem{Spanish}{Living the vida loca}
section{A set of skills}
subsection{First subset}
cvlistdoubleitem{First}{Second}
cvlistdoubleitem{Third}{Fourth}
cvlistdoubleitem{Here is}{two more}
subsection{Second subset}
cvlistitem{Fifth}
cvlistitem{Seventh}
cvlistitem{AAAAAAAAAA}
end{multicols}
end{document}
you get the following wished result:
answered 3 hours ago
Kurt
34.6k846157
34.6k846157
add a comment |
add a comment |
GGiacomo is a new contributor. Be nice, and check out our Code of Conduct.
GGiacomo is a new contributor. Be nice, and check out our Code of Conduct.
GGiacomo is a new contributor. Be nice, and check out our Code of Conduct.
GGiacomo is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2f464142%2fusing-cvlistdoubleitem-in-combination-with-two-column-layout-in-moderncv%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
Please see my answer ...
– Kurt
3 hours ago