2

I am writing an additional page to my cover letter and cv, so I am using moderncv. Therefore the style of the itemize is defined by the package. For my additoinal page I want a new itemize style that differs from the one in the cv. In particular I want to create increase the left margin. I tried the following one

\documentclass[12pt,a4paper,sans]{moderncv}       
\usepackage[ngerman]{babel}

\usepackage{tabularx}

% moderncv themes
\moderncvstyle{classic}
\moderncvcolor{blue}                             

\setlength{\hintscolumnwidth}{3.3cm} 

% character encoding
\usepackage[utf8]{inputenc}                      
\name{Name}{name}
\title{Lebenslauf}                             
\address{...}{...}
\phone[mobile]{...}                   
\email{Mail}  

   %Justification    
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\makeletterhead}% <cmd>
   {\raggedright \@opening}% <search>
  {\@opening}% <replace>
  {}{}% <success><failure>
\makeatother   





\begin{document}

\makecvtitle

\section{Foo}

\section{Foo2}
\subsection*{FooFoo}

\clearpage

\noindent\begin{tabularx}{\linewidth}{@{}p{10cm}Xp{5cm}@{}}
Lineare Regression & &Sehr gute Kenntnisse \tabularnewline
Logistische Regression    & & Basiskenntnisse \tabularnewline
Regularisierte Regression (LASSO, Ridge, Elastic Net) \begin{itemize}
\addtolength{\itemindent}{0.4cm}
\item Bachelorthesis: \glqq \textit{The Name of the thesis, that goes over two lines. It is too gong.}\grqq{} \vspace{-\baselineskip}\mbox{}
\end{itemize}   && Sehr gute Kenntnisse 
\end{tabularx}

\end{document}

The problem now is, that the text in the item is too long and its aligned under the bullet point. It should be aligned under the first word of the item.

Note, that I dont want to use the enumitem package, because it changed the style of all lists. enter image description here

3

Is this what you want?

\documentclass[12pt,a4paper,sans]{moderncv}
\usepackage[ngerman]{babel}
\usepackage{tabularx}

% moderncv themes
\moderncvstyle{classic}
\moderncvcolor{blue}

\setlength{\hintscolumnwidth}{3.3cm}

% character encoding
\usepackage[utf8]{inputenc}
\name{Name}{name}
\title{Lebenslauf}
\address{...}{...}
\phone[mobile]{...}
\email{Mail}

   %Justification
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\makeletterhead}% <cmd>
   {\raggedright \@opening}% <search>
  {\@opening}% <replace>
  {}{}% <success><failure>
\makeatother

\begin{document}

\makecvtitle

\section{Foo}

\section{Foo2}
\subsection*{FooFoo}

\clearpage

\noindent\begin{tabularx}{\linewidth}{@{}p{10cm}Xp{5cm}@{}}
Lineare Regression & &Sehr gute Kenntnisse \tabularnewline
Logistische Regression & & Basiskenntnisse \tabularnewline
Regularisierte Regression (LASSO, Ridge, Elastic Net)
\def\itemhook{\addtolength{\leftmargin}{0.4cm}\setlength{\topsep}{0pt}}
\begin{itemize}
\item Bachelorthesis: \glqq \textit{The Name of the thesis, that goes over two lines. It is too gong.}\grqq{} \vspace{-\baselineskip}\mbox{}
\end{itemize} && Sehr gute Kenntnisse
\end{tabularx}

\end{document} 

enter image description here

  • Yes, without the space between the bullet point and the text (as in the answer of koleygr) – Vala Oct 9 '18 at 22:27
  • 2
    Here you are. I only redefined \itemhook command from tweaklist which comes with moderncv. – Bernard Oct 9 '18 at 22:37
2

A solution could be to use a minipage aligned in top:

\documentclass[12pt,a4paper,sans]{moderncv}       
\usepackage[ngerman]{babel}

\usepackage{tabularx}

% moderncv themes
\moderncvstyle{classic}
\moderncvcolor{blue}                             

\setlength{\hintscolumnwidth}{3.3cm} 

% character encoding
\usepackage[utf8]{inputenc}                      
\name{Name}{name}
\title{Lebenslauf}                             
\address{...}{...}
\phone[mobile]{...}                   
\email{Mail}  

   %Justification    
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\makeletterhead}% <cmd>
   {\raggedright \@opening}% <search>
  {\@opening}% <replace>
  {}{}% <success><failure>
\makeatother   


\newsavebox{\mybox}


\begin{document}

\makecvtitle

\section{Foo}

\section{Foo2}
\subsection*{FooFoo}

\clearpage

\noindent\begin{tabularx}{\linewidth}{@{}p{10cm}Xp{5cm}@{}}
Lineare Regression & &Sehr gute Kenntnisse \tabularnewline
Logistische Regression    & & Basiskenntnisse \tabularnewline
Regularisierte Regression (LASSO, Ridge, Elastic Net) \begin{itemize}
\addtolength{\itemindent}{0.4cm}
\savebox\mybox{\hbox{Sehr gute Kenntnisse}}
\item \begin{minipage}[t]{\dimexpr\textwidth-\itemindent-\wd\mybox-20pt}
Bachelorthesis: \glqq \textit{The Name of the thesis, that goes over two lines. It is too gong.}
\grqq{}\end{minipage} \vspace{-\baselineskip}\mbox{}
\end{itemize}   && Sehr gute Kenntnisse
\end{tabularx}

\end{document}

enter image description here

PS: Forgot the quotes out of minipage but have fixed in the code

  • That looks pretty good. Euxaristw polu :D – Vala Oct 9 '18 at 22:26
  • Welcome Vala. Parakalw... – koleygr Oct 9 '18 at 22:38
  • @Vala, now, Bernard's solution is easier and much more professionan.. So, consider accepting that solution. I am just don'dwleting mine because it could be a simple fix in similar (but not this) case(s). – koleygr Oct 10 '18 at 17:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.