I want to add subsection in moderncv
class which starts at the beginning of the line with a symbol such as a bullet or circ, or anything else which is in harmony with the moderncv
layout. Or how can I draw a \hline
(and in the same color of background)?
I have already read How to use subsubsection in "moderncv" class?, but this is not what I'm searching for.
What I have is something like this
with the code:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{grey}
\usepackage{lipsum}
\usepackage[scale=0.75]{geometry}
\firstname{xxx}
\familyname{xxx}
\title{Research Statement}
\begin{document}
\makecvtitle
\section{Section}
\subsection{Subsection}
\lipsum
\end{document}
But, I want to have e.g. something like this
Best Answer
Well, the definition for commands
\section
and\subsection
for stylecasual
isNow we can create a new command
\mysubsection
to get what you want. I just added the command for the horizontal rule with half the length of\hintscolumnwidth
to the command and deleted the usage of command\cvitem
, which builds the two columns for rule and text:Commands
\makeatletter
and\makeatother
are needed because@
is used in the code above.With the complete MWE
you get the result: