LaTeX forum ⇒ Page Layoutmisaligned underline of heading

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
loice
Posts: 1
Joined: Sun Oct 06, 2013 4:02 am

misaligned underline of heading

Postby loice » Sun Oct 06, 2013 4:16 am

I am trying to create my CV, and I have a few questions.

1) In the second page, it seems like the underline of heading goes to far right of the page. How can I fix so that it ends at the margin?

2) How can I have # of # pages in the first page, too? And the page number is not at the center of the foot. So how can I have it at the center?

Thank you.
J




  1. \let\nofiles\relax
  2. \documentclass[11pt,margin,line]{resume}
  3. \usepackage[usenames,dvipsnames]{color}
  4. \usepackage[table]{xcolor}
  5. \usepackage{fancyhdr}
  6. \usepackage{lastpage}
  7. %\usepackage[left=.75in,top=0.9in,right=1.75in,bottom=.75in]{geometry}
  8.  
  9. \topmargin=-0.5in %length of margin at the top of the page (1 inch added by default)
  10. \oddsidemargin=-0.3in %length of margin on sides for odd pages
  11. \evensidemargin=-0.5in %length of margin on sides for even pages
  12. \textwidth=6in %How wide you want your text to be
  13.  
  14. %\bottommargin=0.5in
  15.  
  16. \marginparwidth=-22.5in
  17. \headheight=20pt %1in margins at top and bottom (1 inch is added to this value by default)
  18. \headsep=5pt %Increase to increase white space in between headers and the top of the page
  19. \textheight=9.0in
  20. \itemsep=0in
  21. \parsep=0in
  22.  
  23.  
  24.  
  25. %\fancyhead{}
  26. %\fancyfoot{}
  27.  
  28. %\fancyhf{}
  29. \renewcommand{\headrulewidth}{0.1pt}
  30. \renewcommand{\footrulewidth}{0pt}
  31. \fancyhfoffset{\sectionwidth}
  32.  
  33. \pagestyle{fancy}
  34. \lhead{aa}
  35. \rhead{Curriculum Vitae}
  36. \cfoot{\thepage{}~of~\pageref{LastPage}}
  37.  
  38. %______________________________________________________________________________________________________________________
  39. \begin{document}
  40.  
  41.  
  42. \moveleft0.5\hoffset\centerline{\Large\bf aa}
  43.  
  44. \moveleft\hoffset\vbox{\hrule width \resumewidth height 0pt}%\smallskip
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. \begin{resume}
  52.  
  53. \thispagestyle{plain}
  54. \cfoot{\thepage{}~of~\pageref{LastPage}}
Attachments
sample.tex
(5.66 KiB) Downloaded 176 times
sample.pdf
(119.37 KiB) Downloaded 147 times
Last edited by cgnieder on Sun Oct 06, 2013 1:18 pm, edited 1 time in total.
Reason: added code markup

Tags:

mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm

Postby mayankmi » Sun Oct 06, 2013 7:45 am

you need to share resume.cls file also... so that anyone can answer..

User avatar
Johannes_B
Site Moderator
Posts: 4078
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Oct 06, 2013 10:37 am

I guess the file resume.cls can be found here.

Nevertheless, please prepare a minimal working example (using the code button) to clearly show the problem.
By the way, there should only be one question per thread, so it would be best to split the topic.

Another often used package is moderncv.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests