TransWikia.com

Preventing package from changing footer

TeX - LaTeX Asked on August 3, 2021

I’m fairly unexperienced with LaTeX, but I’m currently working on a cookbook using the package xcookybooky.
I have made a number of modifications to the design to fit my own needs, but I’m currently stuck with a little problem. I want each page to have a footer that describes the current section, subsection and page. Unfortunately it seems that xcookybooky is renewing the command for changing to footer in its code with no way of modification. The code can be seen in the documentation in section 6.12.

pagestyle{fancy}
renewcommand{sectionmark}[1]
{%
markright{MakeUppercase{thesection. #1}}
}
renewcommand{headrulewidth}
{%
0.5pt
}
fancyhf{}
if@twoside
fancyfoot[LE,RO]{textbf{thepage}}
fancyhead[LE,RO]{rightmark}
else
fancyfoot[R]{textbf{thepage}}
fancyhead[R]{rightmark}
fi
fancyhead[C]{@newpagehint{head}}
fancyfoot[C]{@newpagehint{foot}}

Is there a way to ignore / manually overwrite this behaviour, so I can customize the content of the footer to my liking?

One Answer

I just solved it thanks to gernot's comment! I'm not specifically overwriting any behaviour but I found which mistake I personally made.

I have each recipe as a individual .tex files. I just noticed that in the template those .tex files have a thispagestyle{plain}. Removing it solves the problem and I can set my own fancy footer.

Answered by Radioo on August 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP