Answer the question
In order to leave comments, you need to log in
How to place text under header line in LATEX?
Good day to all. I use the fancyhdr package to work with headers and footers. The problem is that this package allows you to either write above the header line, or (from the tech docs) you can break and insert a character/picture below the line level. And I would like this: information (text, picture) \ bottom line \ bottom information. Who knows how to implement such a "sandwich", in Google there is absolutely nothing on this topic. I am attaching a picture for clarity.
Answer the question
In order to leave comments, you need to log in
\documentclass{article}
\usepackage{fancyhdr}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[C]{
\begin{tabular}{@{}p{\textwidth}@{}}
Info~1\hfill \\
\hline
Info~2\hfill
\end{tabular}
}
\setlength{\headheight}{26.4pt}
\begin{document}
\lipsum
\end{document}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question