Page Layout ⇒ Misaligned Footnote in Resume
-
- Posts: 2
- Joined: Sat Sep 10, 2011 12:00 am
Misaligned Footnote in Resume
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?
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
You are mistaken in some points.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. […]
- fancyhdr is not a class but a package.
- This package is responsible for headers and footers and not for footnotes.
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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 2
- Joined: Sat Sep 10, 2011 12:00 am
Re: Misaligned Footnote in Resume
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
Misaligned Footnote in Resume
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.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Misaligned Footnote in Resume
\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}
Remarks:
- It is strongly recommendable to use one of the other classes and packages for writing a CV
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10