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.

My question is after I redefine the length of footrule, the footrule doesn't change the position on even or odd page, it's always at the left side. Did I lost something or there's the other way to redefine it? sorry for updating late.

footrule

share|improve this question
    
If you're using geometry to set your page layout, you need to do that before setting the header/footer via fancyhdr. See Adjusting the line width of the header with geometry and fanchyhdr. Is this the case? –  Werner Aug 13 '12 at 23:01
    
Do you want to change the length or the position of the rule? –  Gonzalo Medina Aug 13 '12 at 23:28

1 Answer 1

up vote 9 down vote accepted

If I understand your question correctly, you can check if the page is even or odd and place the rule accordingly; here's an example illustrating this with the help of the ifoddpage package:

\documentclass[twoside]{article}
\usepackage{ifoddpage}
\usepackage{fancyhdr}
\usepackage{lipsum}% just to generate text for the example

\fancyfoot[LE,RO]{\normalsize BlahBlahBlahBlah\\BlahBlahBlahBlah}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\footrule}{%
  \checkoddpage
  \ifoddpage\hfill\else\fi\rule{2.5in}{\footrulewidth}\vskip\footruleskip}

\pagestyle{fancy}

\begin{document}
\lipsum[1-40]
\end{document}

enter image description here

share|improve this answer
    
Thank you very much!!!!!!This is exactly I what I need!Thank you! –  Jrsy Aug 13 '12 at 23:37

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.