mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
space control between list symbol and text feature (#74)
This commit is contained in:
parent
f3dd14ff62
commit
ce1251dbd6
5 changed files with 21 additions and 9 deletions
|
|
@ -19,7 +19,7 @@
|
|||
% provides the commands for the skillmatrix as well as the command
|
||||
% \recompute@cvskillmatrix@lengths
|
||||
\RequirePackage[moderncvbodyi]{moderncvskillmatrix}
|
||||
|
||||
\RequirePackage{xargs}
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall body definition
|
||||
%-------------------------------------------------------------------------------
|
||||
|
|
@ -97,8 +97,8 @@
|
|||
\hspace*{\separatorcolumnwidth}%
|
||||
\begin{minipage}[t]{\doubleitemcolumnwidth}#5\end{minipage}}}
|
||||
|
||||
\renewcommand*{\cvlistitem}[2][.25em]{%
|
||||
\cvitem[#1]{}{\listitemsymbol\begin{minipage}[t]{\listitemcolumnwidth}#2\end{minipage}}}
|
||||
\renewcommandx*{\cvlistitem}[3][1=.25em, usedefault, 2=0em]{%
|
||||
\cvitem[#1]{}{\listitemsymbol\hspace{#2}\begin{minipage}[t]{\listitemcolumnwidth - #2}#3\end{minipage}}}
|
||||
|
||||
\renewcommand*{\cvlistdoubleitem}[3][.25em]{%
|
||||
\cvitem[#1]{}{\listitemsymbol\begin{minipage}[t]{\listdoubleitemcolumnwidth}#2\end{minipage}%
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
% provides the commands for the skillmatrix as well as the command
|
||||
% \recompute@cvskillmatrix@lengths
|
||||
\RequirePackage[moderncvbodyiii]{moderncvskillmatrix}
|
||||
\RequirePackage{xargs}
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall body definition
|
||||
|
|
@ -155,8 +156,8 @@
|
|||
\begin{minipage}[t]{\doubleitemcolumnwidth}\ifstrempty{#4}{}{\hintstyle{#4}: }#5\end{minipage}%
|
||||
\par\addvspace{#1}}
|
||||
|
||||
\renewcommand*{\cvlistitem}[2][.25em]{%
|
||||
\listitemsymbol\begin{minipage}[t]{\listitemcolumnwidth}#2\end{minipage}%
|
||||
\renewcommandx*{\cvlistitem}[3][1=.25em, usedefault, 2=0em]{%
|
||||
\listitemsymbol\hspace{#2}\begin{minipage}[t]{\listitemcolumnwidth - #2}#3\end{minipage}%
|
||||
\par\addvspace{#1}}
|
||||
|
||||
\renewcommand*{\cvlistdoubleitem}[3][.25em]{%
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
% provides the commands for the skillmatrix as well as the command
|
||||
% \recompute@cvskillmatrix@lengths
|
||||
\RequirePackage[moderncvbodyiv]{moderncvskillmatrix}
|
||||
\RequirePackage{xargs}
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall body definition
|
||||
|
|
@ -87,8 +88,8 @@
|
|||
\begin{minipage}[t]{\doubleitemcolumnwidth}\ifthenelse{\equal{#4}{}}{}{\hintstyle{#4}: }#5\end{minipage}%
|
||||
\par\addvspace{#1}}
|
||||
|
||||
\renewcommand*{\cvlistitem}[2][.25em]{%
|
||||
\cvitem[#1]{}{\listitemsymbol\begin{minipage}[t]{\listitemcolumnwidth}#2\end{minipage}}}
|
||||
\renewcommandx*{\cvlistitem}[3][1=.25em, usedefault, 2=0em]{%
|
||||
\cvitem[#1]{}{\listitemsymbol\hspace{#2}\begin{minipage}[t]{\listitemcolumnwidth - #2}#3\end{minipage}}}
|
||||
|
||||
\renewcommand*{\cvlistdoubleitem}[3][.25em]{%
|
||||
\cvitem[#1]{}{\listitemsymbol\begin{minipage}[t]{\listdoubleitemcolumnwidth}#2\end{minipage}%
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
% provides the commands for the skillmatrix as well as the command
|
||||
% \recompute@cvskillmatrix@lengths
|
||||
\RequirePackage[moderncvbodyv]{moderncvskillmatrix}
|
||||
\RequirePackage{xargs}
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% overall style definition
|
||||
|
|
@ -117,8 +118,8 @@
|
|||
\hfill% fill of \separatorcolumnwidth
|
||||
\begin{minipage}[t]{\doubleitemcolumnwidth}\ifthenelse{\equal{#4}{}}{}{\hintstyle{#4}: }#5\end{minipage}}}
|
||||
|
||||
\renewcommand*{\cvlistitem}[2][.5ex]{%
|
||||
\@cvitem[#1]{}{\listitemsymbol\begin{minipage}[t]{\listitemcolumnwidth}#2\end{minipage}}}
|
||||
\renewcommandx*{\cvlistitem}[3][1=.5ex, usedefault, 2=0ex]{%
|
||||
\@cvitem[#1]{}{\listitemsymbol\hspace{#2}\begin{minipage}[t]{\listitemcolumnwidth - #2}#3\end{minipage}}}
|
||||
|
||||
\renewcommand*{\cvlistdoubleitem}[3][.5ex]{%
|
||||
\@cvitem[#1]{}{\listitemsymbol\begin{minipage}[t]{\listdoubleitemcolumnwidth}#2\end{minipage}%
|
||||
|
|
|
|||
|
|
@ -218,6 +218,15 @@ Detailed achievements:
|
|||
\cvitem{hobby 3}{Description}
|
||||
|
||||
\section{Extra 1}
|
||||
%% Fine tuned examples due to two default parameters:
|
||||
%% - full specification command:
|
||||
%% cvlistitem[vertical spacing between list items][space after list symbol]{Item}
|
||||
%% - single default command: \cvlistitem[0.75em]{Item} leads to
|
||||
%% 0.75em vertical spacing and default
|
||||
%% - single default command: \cvlistitem[][0.25em]{Item} leads to
|
||||
%% default vertical spacing and 0.25em space after list symbol
|
||||
%% - full default command: \cvlistitem{Item} leads to
|
||||
%% default vertical spacing and default space after list symbol
|
||||
\cvlistitem{Item 1}
|
||||
\cvlistitem{Item 2}
|
||||
\cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue