A
A
Ar123sj2020-09-24 17:47:56
TeX
Ar123sj, 2020-09-24 17:47:56

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.
5f6cb15ca63c6729686544.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AVKor, 2020-09-24
@Ar123sj

\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 question

Ask a Question

731 491 924 answers to any question