# How to add a table in footer

How can I add a table in the footer in LaTeX? I was trying to add a table that has three rows and 2 columns. In the left column, text is left-aligned, and In the right side column, text is right-aligned. The first row of the table is a merged cell with underlined text.

Here's a working example of what I am looking for. I had to add a "." for \rfoot and wondered if there's another way around. I have a different page style on a couple pages before this page, and want this page style applied to all pages on and after this page. Thanks.

\documentclass[11pt]{article}
\usepackage[top=0.85in, bottom=1.1in, left=0.8in, right=0.8in]{geometry}
\usepackage{fancyhdr, graphicx}
\pagestyle{fancy}
\renewcommand{\thefootnote}{\textcolor{black}{\arabic{footnote}}}
\usepackage{mwe}
\begin{document}

\fancyhf{}
\lfoot{\underline{Note: Can this be a merged cell with underlined text? Can a table be inserted here without borders?} \ Part A \ Year 1}
\rfoot{. \ Page \thepage \ Site}
\lipsum
\end{document}

• Welcome to TeX.SX Take a look at this question, it could be helpful. And if you don't find the answer there, please edit your question and add a Minimal Working Example (MWE). – Aradnix Aug 21 '14 at 5:39
• Do you literally mean in the page footer (and, if that's the case, which document class and page style do you employ, and should the footer material appear on every page or just selected pages?) or in a footnote? – Mico Aug 21 '14 at 6:15
• An alternative to fancyhdr is package scrlayer-scrpage. You can customize your header/footer, including multiline elements. – Johannes_B Aug 21 '14 at 6:20
• It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The StackExchange staff can merge them together for you. – Paul Gessler Aug 21 '14 at 18:44

In the comments the fancyhdr and scrlayer-scrpage packages have been recommended, but it's always fun to roll your own.

What you need to do is to insert your table into \@oddfoot and \@even foot -- and in turn these should both be inside your own header style that you can pass to \pagestyle. Here's a fun example using the tcolorbox package to produce the following page footers:

This is produced by the following:

\documentclass{article}
\usepackage{mwe}
\usepackage{tcolorbox}
\usepackage[foot=4em]{geometry}% need to make the footer bigger

\makeatletter
\def\ps@mine{\ps@empty% clear all current headings and footings
\def\@oddfoot{\begin{tcolorbox}[title={This is my centered underlined'' text},
colframe=blue!70!white,colback=yellow!20,colupper=red!60!black,
fonttitle=\bfseries,nobeforeafter,center title,size=fbox,arc=1.5mm]
Not sure what to put here \hfill This bit is a mystery too!\\%
\today \hfill Page~\thepage%
\end{tcolorbox}}
\let\@evenfoot\@oddfoot% odd and even page footers are the same
}
\makeatother
\pagestyle{mine}

\begin{document}
\lipsum
\end{document}


As you haven't given any details, or a minimal working example, it is not clear what you are looking for, but you should be able to adapt this to your needs. If you don't want something this fancy just put a tabularx environment, of width \textwidth, inside the \@oddfoot.

Thank you for the suggestions. Here's a working example of what I am looking for. I had to add a "." for \rfoot and wondered if there's another way around. I have a different page style on a couple pages before this page, and want this page style applied to all pages on and after this page.

\documentclass[11pt]{article}

\usepackage[top=0.85in, bottom=1.1in, left=0.8in, right=0.8in]{geometry}

\usepackage{fancyhdr, graphicx}

\pagestyle{fancy}

\renewcommand{\thefootnote}{\textcolor{black}{\arabic{footnote}}}

\usepackage{mwe}

\begin{document}

\fancyhf{}

\lfoot{\underline{Note: Can this be a merged cell with underlined text? Can a table be inserted here without borders?} \\  Part A \\ Year 1}

\rfoot{. \\  Page \thepage \\ Site}

\lipsum

\end{document}

• Nice one, your next challenge ;-) – Johannes_B Aug 21 '14 at 13:11
• @Johannes_B Have tried my best but, as you said, it's not entirely clear what the OP wants... – Andrew Aug 21 '14 at 14:08
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7943263649940491, "perplexity": 1603.898543196767}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-18/segments/1555578531984.10/warc/CC-MAIN-20190421140100-20190421162100-00553.warc.gz"}