[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}{*}
	\newcommand{\fixcentering}{\kern 0.5 in}	% (l-r)
		{\bfseries\Large Joel Salomon}\fixcentering\\
		address goes here\fixcentering\\
		(999) 999-9876\quad me at email.com\fixcentering
	Off-center text goes here, illustrating the way my r\'esum\'e
	looks.  Some more text for line-wrap.

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.


More information about the texhax mailing list