I want to add a table as headers to all the pages (except title page) in my document. I tried this:
\usepackage{fancyhdr}
%...
\chead{
\begin{tabular}{l|r}
Lorem&Ipsum
\end{tabular}
}
But it did not work. How should I get it done?
I want to add a table as headers to all the pages (except title page) in my document. I tried this:
\usepackage{fancyhdr}
%...
\chead{
\begin{tabular}{l|r}
Lorem&Ipsum
\end{tabular}
}
But it did not work. How should I get it done?
Add \pagestyle{fancy}
\documentclass[]{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
%...
\chead{
\begin{tabular}{l|r}
Lorem&Ipsum\\
Lorem&Ipsum
\end{tabular}
}
\lhead{}
\rhead{}
\renewcommand{\headrulewidth}{0pt}
\usepackage{lipsum}
\title{My title}
\begin{document}
\maketitle
\lipsum
\clearpage
\lipsum
\end{document}
\renewcommand{\headrulewidth}{0pt} or \renewcommand{\headrule}{}
– Hafid Boukhoulda
Feb 18 '19 at 14:39