# moderncv: how can I remove the dotfill from subsection?

I am using the banking style, and I can't locate any kind of dot-fill in the subsection's command within the moderncvbody*.sty or moderncvstyle*.sty files.

For example:

\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

% modern themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by
\usepackage[scale=0.75]{geometry}

\usepackage{import}

\name{My}{Name}
\title{Curriculum Vitae}
\phone[mobile]{+44 12345 12345}
\phone[fixed]{01234 123456}
\email{myname@hotmail.co.uk}
\homepage{www.myname.com}

\begin{document}

\makecvtitle

\section{Education}

\vspace{5pt}

\vspace{5pt}

\begin{itemize}

\item{\cventry{2011--2015}{Some title }{Somewhere University}{Over There}{\textit{Some Grade}}{}}

\end{itemize}

\end{document}


This code produces the following output:

And I want to get rid of the dots that appear in the subsection's headline (here: "Academic Qualifications").

• Welcome to TeX.SX! The dot-fill is a feature provided by the document class. Without seeing any working document from you, this might be a little bit tricky to obtain. – user31729 May 24 '16 at 8:12
• Greetings, thank you for the warm welcome and your comment! I am not sure I understand what you mean; shall I add bits of code in my question? – Nick May 24 '16 at 8:17
• Not only bits, a compilable document, please! – user31729 May 24 '16 at 8:18
• Please strip off your personal information from the document before posting, of course. We aren't interested in your real name, address etc. Just fill in some arbitrary data. – user31729 May 24 '16 at 8:28
• Don't use templates! – Johannes_B May 24 '16 at 8:45

Since moderncv is a standalone class, e.g. does not use \LoadClass{article} etc. the usual way of getting rid off dots in a ToC like style by using \@dotsep etc. does not work directly.

The easiest way seems to be 'brute' force

 \renewcommand{\subsectionrule}{}


Here's the otherwise unchanged code:

\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

% modern themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by
\usepackage[scale=0.75]{geometry}
\usepackage{import}

\name{My}{Name}
\title{Curriculum Vitae}
\phone[mobile]{+44 12345 12345}
\phone[fixed]{01234 123456}
\email{myname@hotmail.co.uk}
\homepage{www.myname.com}

\renewcommand{\subsectionrule}{}

\begin{document}

\makecvtitle

\section{Education}

\vspace{5pt}

\vspace{5pt}

\begin{itemize}

\item{\cventry{2011--2015}{Some title }{Somewhere University}{Over There}{\textit{Some Grade}}{}}

\end{itemize}

\end{document}

• It works!!! :D Thank you! virtual upvote since I can't upvote answers yet! – Nick May 24 '16 at 8:46
• @Nick: Now you can upvote (and accept the answer, after the grace period) ;-) – user31729 May 24 '16 at 8:55
• Just did, thanks again for your precious help! =) – Nick May 24 '16 at 8:59
• @Nick: You're welcome. If all new users would be as nice as you!!!! I can't upvote again, however – user31729 May 24 '16 at 9:00
• Haha, thanks for everything! It is people like you that help newcomers get over their hesitations and ask questions! Have a good day! – Nick May 24 '16 at 9:05