Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When choosing a document class, I find they all generate some unwanted change to my document, but I'm having trouble changing the default macros to set the formatting right.

In my preamble I'm running the following:

\fancypagestyle{plain}{  
    \fancyhf{}  
    \fancyfoot[RO,LE]{Confidential}  
    \fancyfoot[LO,RE]{\thepage}  
    \renewcommand{\headrulewidth}{0pt}  
    \renewcommand{\footrulewidth}{0.4pt}  
}

This has the desired effect when using the book document class, but this class unfortunately also leaves a blank page after each chapter finishes, which I'd rather do without. This second issue can be solved by changing the class to report, but this then ruins the footer formatting by fixing 'Confidential' on the right and the page number on the left of the footer.

Is there a command I can use to either:
- remove the blank page after each section in the book class, or;
- stop the report class from forcing the footer to not alternate as I've tried to make it?

Thanks

share|improve this question
2  
A blank page is added only when a chapter ends on an odd-numbered page. You can simply add the option openany to the \documentclass call. Actually the calls \documentclass[openany]{book} and \documentclass[twoside]{report} give very similar results. –  egreg Aug 28 '12 at 9:07
    
Good stuff. Thanks! –  user1488804 Aug 28 '12 at 10:15

1 Answer 1

up vote 2 down vote accepted

A MWE would help, but my guess is you have left out the twoside option in report

\documentclass[twoside]{report}
\usepackage{fancyhdr}
\usepackage{lipsum}

\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[RO,LE]{Confidential}
\fancyfoot[LO,RE]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
}

\pagestyle{plain}
\begin{document}%
  \lipsum[1-30]
\end{document}%
share|improve this answer
    
Very nice. Thanks! –  user1488804 Aug 28 '12 at 10:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.