答案1
最方便的方法是使用fancyhdr
。以下注释的代码提供了您所需的内容:
\documentclass{article}
\usepackage[export]{adjustbox}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}% Clear all headers/footers
\renewcommand{\headrulewidth}{.4pt}% Header rule width
\renewcommand{\footrulewidth}{0pt}% No footer rule
\fancyhead[L]{% Left header
\rule[-1.75\baselineskip]{0pt}{0pt}% Strut to ensure a 1/4 \baselineskip between image and header rule
\includegraphics[height=3\baselineskip,valign=c]{example-image}% Image
\quad% Space
Name of organization% Name
}
\setlength{\headheight}{3.5\baselineskip}% To accommodate new oversized header
\usepackage{lipsum}% Just for this example
\begin{document}
\sloppy% Just for this example
\lipsum[1-10]% Dummy text
\end{document}
如果你需要Name of organization
在多行上使用 ,我建议使用tabular
。 的默认垂直对齐方式tabular
是居中:
% ...
\begin{tabular}{l}
Name \\ of \\ organization% Name
\end{tabular}
%...