Curricula Vitae / Résumés ⇒ Removing the horizontal bar to the left of section headings
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Removing the horizontal bar to the left of section headings
Can you suggest how I might remove the horizontal bar at each section heading, and shift the section heading text (e.g. “Education”) to the left such that it occupies the position where the bar had been? In other words, I want to replace the horizontal bar with the section heading text.
Thanks for your help and for such a great template!
Joel
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Removing the horizontal bar to the left of section headings
Simply comment out line 164 of
moderncvstyleclassic.sty
:Code: Select all
\parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}%
{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}
Vel
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: Removing the horizontal bar to the left of section headi
prem006in
Removing the horizontal bar to the left of section headings
Just go to line 72 in
moderncvstyleclassic.sty
: \setlength{\hintscolumnwidth}{0.175\textwidth}
and change the value before \textwidth
to something larger!Cheers,
Vel
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: Removing the horizontal bar to the left of section headi
Can you suggest how I can change the positions of 'the horizontal bar at each section heading', and 'the section heading text'. I want to interchange the positions so that I will get a long horizontal bar at the right side and section text at the left side .
Thanks for your help!
Prem
Removing the horizontal bar to the left of section headings
Go to
moderncvstyleclassic.sty
and find this block:Code: Select all
\renewcommand*{\section}[1]{%
\par\addvspace{2.5ex}%
\phantomsection{}% reset the anchor for hyperrefs
\addcontentsline{toc}{section}{#1}%
\parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
\hspace{\separatorcolumnwidth}%
\parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#1}}%
\par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading
Replace it with this:
\renewcommand*{\section}[1]{%
\par\addvspace{2.5ex}%
\phantomsection{}% reset the anchor for hyperrefs
\addcontentsline{toc}{section}{#1}%
\parbox[t]{\hintscolumnwidth}{\strut\sectionstyle{#1}}%
\hspace{\separatorcolumnwidth}%
\parbox[t]{\hintscolumnwidth}{\strut\raggedright\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
\par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading
\hintscolumnwidth
value where the title is printed.Cheers,
Vel