Document Classes ⇒ How to highlight header using fancyhdr package.
-
- Posts: 6
- Joined: Thu Nov 06, 2008 1:15 pm
How to highlight header using fancyhdr package.
http://homepage.boku.ac.at/imrannad/instruct.pdf
Any help will be highly appreciated.
Centurion555
- Attachments
-
- header.gif (7.29 KiB) Viewed 3338 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
How to highlight header using fancyhdr package.
Code: Select all
\definecolor{LightGray}{gray}{0.8}
\newcommand{\BigBox}[2][c]{\makebox[\dimexpr\textwidth-2\fboxsep-2\fboxrule][#1]{#2}}
\fancyhead{}
\fancyhead[C]{\addtolength{\fboxsep}{5pt}%
\colorbox{LightGray}{\BigBox{\sffamily Proceedings ISARS 1998 Vienna}}}
\renewcommand{\headrulewidth}{0pt}
Code: Select all
\addtolength{\headheight}{15pt}
-
- Posts: 6
- Joined: Thu Nov 06, 2008 1:15 pm
Re: How to highlight header using fancyhdr package.
Thanks a lot. It worked after slight modifications.
Regards, Nadeem