LaTeX forum ⇒ Curricula Vitae / RésumésRemoving the horizontal bar to the left of section headings Topic is solved

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Removing the horizontal bar to the left of section headings

Postby templateuser » Thu Mar 19, 2015 12:41 pm

Hi Vel,
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

Tags:

User avatar
Vel
Site Moderator
Posts: 458
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Thu Mar 19, 2015 12:41 pm

Hi Joel,

Simply comment out line 164 of moderncvstyleclassic.sty:

  1. \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}%
  2. {\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}


Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Postby templateuser » Thu Mar 19, 2015 12:42 pm

How to increase the length of the horizontal bar at each section heading, so that I can insert more information at the column, for eg: under the eduation section, I want to insert '1 Sep 2011 - 1 Sep 2012' instead '2011-2013'...(the bar should cover the inserted numbers)?

prem006in

User avatar
Vel
Site Moderator
Posts: 458
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Thu Mar 19, 2015 12:42 pm

Hey,

Just go to line 72 in moderncvstyleclassic.sty: \setlength{\hintscolumnwidth}{0.175\textwidth} and change the value before \textwidth to something larger!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Postby templateuser » Thu Mar 19, 2015 12:42 pm

Hi Vel,
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

User avatar
Vel
Site Moderator
Posts: 458
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Thu Mar 19, 2015 12:42 pm

Hi Prem,

Go to moderncvstyleclassic.sty and find this block:

  1. \renewcommand*{\section}[1]{%
  2. \par\addvspace{2.5ex}%
  3. \phantomsection{}% reset the anchor for hyperrefs
  4. \addcontentsline{toc}{section}{#1}%
  5. \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
  6. \hspace{\separatorcolumnwidth}%
  7. \parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#1}}%
  8. \par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading
  9.  
  10. Replace it with this:
  11.  
  12. \renewcommand*{\section}[1]{%
  13. \par\addvspace{2.5ex}%
  14. \phantomsection{}% reset the anchor for hyperrefs
  15. \addcontentsline{toc}{section}{#1}%
  16. \parbox[t]{\hintscolumnwidth}{\strut\sectionstyle{#1}}%
  17. \hspace{\separatorcolumnwidth}%
  18. \parbox[t]{\hintscolumnwidth}{\strut\raggedright\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
  19. \par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading


Your titles will now be on the left and the bars on the right. Note that long titles will now wrap and look ugly so you'll have to either keep them brief or change the \hintscolumnwidth value where the title is printed.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com


Return to “Curricula Vitae / Résumés”

Who is online

Users browsing this forum: No registered users and 5 guests