LaTeX forum ⇒ Page Layoutis it possible to insert text on my \fancyhead header?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
renato07
Posts: 12
Joined: Sat Feb 07, 2015 8:37 pm

is it possible to insert text on my \fancyhead header?

Postby renato07 » Sun Mar 10, 2024 2:02 pm

Hi,
I have this two header on my .tex:
\documentclass[a3paper,12pt,portrait]{article}
    \usepackage[italian]{babel}  %--setta regole lingua italiana
    \usepackage[ddmmyyyy]{datetime} %--setta data formato IT
    \usepackage{graphicx}
    \usepackage[document]{ragged2e} %--per allineamento testo a dx, sx o giustificato
    \usepackage{hyperref} %--- per i link
    \usepackage{multicol} %------ per formattare pagine a più colonne
    \usepackage{tcolorbox} %--- per le caselle di testo I pagina
    \usepackage[percent]{overpic}
    \usepackage[absolute,overlay]{textpos}%--posiziona testo in specifiche posizioni
    \usepackage{ebgaramond-maths}%----- uso font garamond
    \usepackage[T1]{fontenc}%----- uso font garamond
       \usepackage[a3paper]{geometry}
    \usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt} %--rimuove la linea di intestazione
  % \usepackage{showframe} %--show spazi intorno pagina
  
%--------costruisce  l'intest. ufficiale----------------------------
\fancyhead[C]{\includegraphics[width=267mm,height=39mm]{grosso_banner_corto_completo.png}}
\pagestyle{fancy}
%---------------costruisce  l'intest. speciale-------------------
\fancypagestyle{special}{%
  \fancyhead[C]{\includegraphics[width=267mm,height=39mm]{grosso_banner_tutto_757per128.png}}
}

can I insert a line of text and variable over the .png image. Consider that this both the \fancyhead... are before the \bwgin {document}statement.

Thank you
Renato

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics

Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 12 guests