我在处理标题对齐时遇到了问题fancyhdr
。
这是我的代码
\documentclass[a4paper,italian,10pt]{report}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage{graphicx}
\usepackage[a4paper,top=25mm,left=20mm,right=20mm]{geometry}
\usepackage{color}
\usepackage{xcolor}
\usepackage[hyperindex]{hyperref}
\usepackage{colortbl}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{fixltx2e}
\usepackage{times}
\usepackage{booktabs}
\usepackage{multirow}
%\usepackage{showframe}
\pagestyle{fancy}
\font\sans=cmss10
\renewcommand{\chaptermark}[1]{\markboth{}{}}
\definecolor{light-blue}{rgb}{0.3,0.3,1}
\definecolor{dark-green}{RGB}{125,180,125}
\definecolor{dark-red}{RGB}{180,125,125}
\textheight 220mm
\setlength{\headheight}{90pt} %header largo circa 26mm
\fancypagestyle{egiconheader}{%
\fancyhf{}% Clear all headers/footers
\fancyhead[L]{\raisebox{\includegraphics[height=18mm]{logo_con_scritta.jpg}}% Header Left
\fancyhead[C]{}
\fancyhead[R]{
\begin{tabular}{ll}
&\\
\textbf{Company } & \\
\textbf{via fgfgfg, 36} & \\
\textbf{404040 City(Prov.)} & \\
\textbf{P.I. e C.F 5455454545} &\multirow{-5}{*}{\includegraphics[height=24mm]{certificazione.png}}\\
\end{tabular}
}
\fancyfoot[L]{My document}
\fancyfoot[R]{{Pag. \thepage~di \pageref{LastPage}}}% Footer Centred
\renewcommand{\headrulewidth}{3pt}% 2pt header rule
\renewcommand{\headrule}{\hbox to\headwidth{%
\color{dark-green}\leaders\hrule height \headrulewidth\hfill}}
\renewcommand{\footrulewidth}{3pt}
\renewcommand{\footrule}{\hbox to\headwidth{%
\color{dark-red}\leaders\hrule height \headrulewidth\hfill}}
}
\columnsep .7cm
\frenchspacing
\begin{document}
\thispagestyle{egiconheader}
ciao
\end{document}
不幸的是,这导致了我意想不到的结果:
尽管我预料到了这一点:
有人能解释我错在哪里并帮助我消除这个问题吗?
答案1
感谢你长篇的非 MWE,但你需要的是[b]
像\begin{tabular}[b]{ll}
\fancyhead[R]{
\begin{tabular}[b]{ll}
&\\
\textbf{Company } & \\
\textbf{via fgfgfg, 36} & \\
\textbf{404040 City(Prov.)} & \\
\textbf{P.I. e C.F 5455454545} &\multirow{-5}{*}{\includegraphics[height=24mm]{certificazione.png}}\\
\end{tabular}
}
顺便说一句,24mm
太高了。