<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Peter Seibel wrote:
<blockquote
 cite="mid:40e4e7e50905252349n27a08b48l8a7483234e4b92e9@mail.gmail.com"
 type="cite">
  <pre wrap="">On Mon, May 25, 2009 at 11:05 PM, Peter Seibel <a class="moz-txt-link-rfc2396E" href="mailto:peter@gigamonkeys.com">&lt;peter@gigamonkeys.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I've got these two definitions in a document I'm typesetting with the
memoir class:

&nbsp;\makeevenhead{headings}{\headlinefont\llap{\thepage\hskip 6pt} \leftmark}{}{}
&nbsp;\makeoddhead{headings}{}{}{\headlinefont\rightmark\rlap{\hskip 6pt\thepage}}

For some reason the even head ends up with the page number lapped out
correctly but then the rest of the heading gets moved down a bit so
it's not in line with the page head. If I fill in the center and right
parts of the even head they are in the same line as the \leftmark text
(i.e. a bit below the line of the page number.)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
So it seems that if I put an hbox around the whole left part of the
even heading like so:

  \makeevenhead{headings}{\hbox{\headlinefont\llap{\thepage\hskip 6pt}
\leftmark}}{}{}

then everything works the way I hoped. Why, however, I have no idea. I
would love to be edified if this is obvious to someone else.

-Peter



  </pre>
  <blockquote type="cite">
    <pre wrap="">The odd head works fine with the rightmark in line with the
right-lapped page number.

Any ideas about what I'm doing wrong?

-Peter

--
Peter Seibel
<a class="moz-txt-link-freetext" href="http://www.codersatwork.com/">http://www.codersatwork.com/</a>
<a class="moz-txt-link-freetext" href="http://www.gigamonkeys.com/blog/">http://www.gigamonkeys.com/blog/</a>

    </pre>
  </blockquote>
</blockquote>
<br>
why don't do what I always do when something puzzles me, look in the
code, you might not understand it all, but you will often get an idea
as to why things work the way they do.<br>
<br>
each og the three header components (left, center, right) sits in it
own little \parbox<br>
<br>
<br>
<br>
/daleif
</body>
</html>