TeX - LaTeX Asked by Msegade on September 24, 2020
I’m trying to get the section name without the number in the header using fancyheader. It works if I use a numebered section, but if I don’t want the section number in the document (section*{Section Name} ) the header disappears.
MWE:
documentclass{article}
usepackage{fancyhdr}
usepackage{extramarks}
usepackage{lipsum}
pagestyle{fancy}
renewcommand{sectionmark}[1]{uppercase{markright{#1}}}
rhead{rightmark}
lhead{}
cfoot{thepage}
begin{document}
section*{First Section}
lipsum[1-20]
end{document}
Use renewcommand{thesection}{}
. It will register the name but not the number. Does that solve your problem?
Answered by Someone on September 24, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP