Page LayoutMisaligned Footnote in Resume

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
meatweaver
Posts: 2
Joined: Sat Sep 10, 2011 12:00 am

Misaligned Footnote in Resume

Post by meatweaver »

Hi - I'm pretty new to LaTeX, but am finding it very helpful and relatively easy to learn. Unfortunately, I think the problem I am facing my be well outside my knowledge base.

I am using "res" class with the 'margin' option specified, so that my section headings appear in the left margin. I would like to use "fancyhdr" class to create a footnote with my name, the page, and the date printed. And I would like this footnote to be centered or left aligned. The footnote works fine when it is right aligned, but when it is left or center aligned, it aligns to the dimensions of the resume body text. That is, when it is aligned left, the footer is still to the right of the headers.

I've poked around in the "res" class and "fancyhdr" class files, but found no obvious place where a newbie like me could go in and fix this so it works like I'd want it to.

Any ideas?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Misaligned Footnote in Resume

Post by localghost »

meatweaver wrote:[…] I am using "res"class with the margin option specified, so that my section headings appear in the left margin. I would like to use "fancyhdr" class to create a footnote with my name, the page, and the date printed. And I would like this footnote to be centered or left aligned. The footnote works fine when it is right aligned, but when it is left or center aligned, it aligns to the dimensions of the resume body text. That is, when it is aligned left, the footer is still to the right of the headers. […]
You are mistaken in some points.
  • fancyhdr is not a class but a package.
  • This package is responsible for headers and footers and not for footnotes.
The res class seems to be outdated and its documentation is very poor. If you are going to write a Curriclum Vitae (CV), there are much more sophisticated classes [1]. If not, there are other possible solutions of getting the desired layout. Perhaps you then can give a visual example of what you want to achieve, e.g. a sample document.

If you want to stay with hat class, provide a minimal example that is reduced to only relevant code as well as compilable out of the box and shows the difficulties clearly.

[1] CTAN web interface Packages characterization by primary: Document types > Curriculum Vita


Best regards and welcome to the board
Thorsten
meatweaver
Posts: 2
Joined: Sat Sep 10, 2011 12:00 am

Re: Misaligned Footnote in Resume

Post by meatweaver »

Thorsten,

Thanks for your response. You are correct that I was mistaken in referring to footers as footnotes. My intention is to use the "fancyhdr" package within "res" class to create a footer in my CV. I would like the footer to be left or center aligned over the entire page, not just the resume text (which excludes the margin space containing section names).

The attached code provides an example of what I'm talking about. For this example to compile correctly, both the "res" class and "fancyhdr" package need to be available. If you would not like to go through the trouble of compiling, I've attached the PDF output to illustrate the problem.

A separate but probably related problem is also illustrated in the attached code and PDF output. I've drawn a line between sections using the command \hrulefill, but this line does not extend across the page but only to the left border of the resume text.

I took a look at some of the other class files available for constructing CVs and found most of them unappealing. I understand the limitations of working with an out of date class, but this class seems to provide a nice layout with pretty nice looking results.

Thanks for the help!

Matt
Attachments
res_example.pdf
(48.04 KiB) Downloaded 831 times
res_example.tex
(829 Bytes) Downloaded 503 times
ameydhar
Posts: 1
Joined: Sat May 25, 2013 1:20 pm

Misaligned Footnote in Resume

Post by ameydhar »

meatweaver,

I am facing the same problem with the res class. Did you solve your problem? I would highly appreciate if you could post the solution to this problem.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Misaligned Footnote in Resume

Post by localghost »

The section titles are put into the left margin. The width of this margin is determined by the length \sectionwidth. This can be balanced by widening the header and footer by this length as shown in the below code (a modified version of the provided example).

Code: Select all

\documentclass[margin,line]{res}
\usepackage[T1]{fontenc}

\usepackage{fancyhdr}
\fancyhf{}
\lfoot{Z. Zinger, printed: \today}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhfoffset{\sectionwidth}  % Balance width of section margin to widen header and footer
\pagestyle{fancy}

\newcommand*{\fwrule}{%    % Rule that covers the full width
  \hspace{-\sectionwidth}%
  \hrulefill%
}

\name{Zelda Zinger}
% \address{Address}
% \employer{Employer}
% \title{Title}
% \dates{Dates}
% \location{Location}

\begin{document}
  \begin{resume}
    \section{Objective}
      A position in Personnel Administration utilizing skills in recruiting, training and compensation.

      \fwrule

    \section{Education} 
      \textsl{Master of Science}, Industrial/Organizational Psychology \\
      Rensselaer Polytechnic Institute, Troy, NY \hspace{0.2in}  GPA 3.70 \hfill December 1990 \\
      THESIS - Job Evaluation: Compensating for Comparable Worth

      \textsl{Bachelor of Science}, Psychology \\
      Utica College of Syracuse University, Utica, NY \hfill May 1987
  \end{resume}
\end{document}
The code addresses also the problem with the horizontal rule that shall cover the whole width.


Remarks:
Post Reply