GeneralTable as a Header

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pooley343
Posts: 17
Joined: Mon Oct 20, 2008 2:53 pm

Table as a Header

Post by pooley343 »

I am relatively new to LaTeX, and I am trying to create a page header that is a table. I have tried using the fancyheading package but I can't seem to let it create a table.

Can someone suggest how I can do this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Table as a Header

Post by gmedina »

Hi,

hereś a simple example:

Code: Select all

\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{lipsum}%just to generate some text

\renewcommand\headheight{24pt}
\lhead{\begin{tabular}{c|c}%
          1a & 2a\\
          1b & 2b 
        \end{tabular}}

\begin{document}

\chapter{Dummy Chapter}
\lipsum[1-20]

\end{document}
feel free to modify it to suit your needs.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pooley343
Posts: 17
Joined: Mon Oct 20, 2008 2:53 pm

Re: Table as a Header

Post by pooley343 »

Thanks gmedina that's solved my problem.
Post Reply