[texhax] Centering text on page with uneven margins
Joel C. Salomon
joelcsalomon at gmail.com
Mon Sep 20 21:44:22 CEST 2010
In my resume (http://github.com/downloads/jcsalomon/thesis/resume.pdf) I
have the section headings ("Objective", "Education", "Skills", etc.) in
the left margin, so I have the left margin wider than the right. I want
the heading text to be centered, so I have code that looks like this
minimal version:
\documentclass[article, letterpaper]{memoir}
\setlrmarginsandblock{1.75 in}{1.25 in}{*}
\checkandfixthelayout
\newcommand{\fixcentering}{\kern 0.5 in} % (l-r)
\begin{document}
\begin{center}
{\bfseries\Large Joel Salomon}\fixcentering\\
address goes here\fixcentering\\
(999) 999-9876\quad me at email.com\fixcentering
\end{center}
Off-center text goes here, illustrating the way my r\'esum\'e
looks. Some more text for line-wrap.
\end{document}
In the actual document the \begin{center}...\end{center} is wrapped by a
customized \maketitle.
Is there a cleaner way to do this? I mainly ask because I'd like to
typeset a second page with a list of references, with different margins.
I'd even go for a version that requires keeping the \fixcentering hack,
if I can automatically choose the difference in length between the left
& right margins.
Thanks,
--Joel
More information about the texhax
mailing list