Page LayoutFancy heading problem: section name to the left side

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
turbomac
Posts: 34
Joined: Sat Oct 10, 2009 9:38 pm

Re: Fancy heading problem

Post by turbomac »

Okay, here are the PDF and the code.

Thanks.
Attachments
MWE.tex
(11.33 KiB) Downloaded 192 times
MWE.pdf
(27.1 KiB) Downloaded 186 times

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Fancy heading problem: section name to the left side

Post by gmedina »

Well, of course your example code won't produce the desired result; you are using the "E" and "O" options for fancyhdr but without declaring the twoside class option (as I did before in my example code).

Change

Code: Select all

\documentclass[letterpaper,12pt]{report}
to

Code: Select all

\documentclass[letterpaper,12pt,twoside]{report}
or, let use know if you don't want a twoside style, to suggest you the necessary modifications.

Also, your code contains a mistake (and I am to blame for this one): replace

Code: Select all

\renewcommand\headheight{15pt}
with

Code: Select all

\setlength\headheight{15pt}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
turbomac
Posts: 34
Joined: Sat Oct 10, 2009 9:38 pm

Re: Fancy heading problem

Post by turbomac »

Thaaaaaaaaaaaanks!!! IT WORKED!!!
Post Reply