Theses, Books, Title pagesKeep headers with oneside option.

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Keep headers with oneside option.

Post by templateuser »

regards

I found another detail I would like to change, in my case as it is for a thesis, I turn to one side printing, using latex oneside option (\documentclass[11pt, oneside]{book}).

The problem is this, I like the headlines displayed on both sides, but when I switch to one side I get the following warning:

\fancyhead's `E 'option without twoside option is useless
\fancyhead's `E 'option without twoside option is useless


the part that makes me warning is:

Code: Select all

\fancyhf{}\fancyhead[LE, RO]{\sffamily\normalsize\thepage}% Font setting for the page number in the header 
\fancyhead[LO]{\rightmark}% Print the nearest section name on the left side of odd pages 
\fancyhead[RE]{\leftmark}% Print the current chapter name on the right side of even pages 
I would like to keep these options but to oneside.


thank you very much

caedvaur

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Keep headers with oneside option.

Post by Vel »

Hey,

If I'm understanding you correctly, you want to maintain the behavior of the headers under twoside mode but in oneside mode? I'm not sure this is possible since the E and O options for the \fancyhead commands require you to be in twoside mode which is why you're getting that warning. I'd probably recommend you leaving the document in twoside mode and instead stop blank pages being created at the end of chapters. Hope that helps!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Keep headers with oneside option.

Post by templateuser »

if that's what I mean, too bad you can not be with that option, it would be nice, thank you very much

caedvaur
Post Reply