我正在做一个 cls 文档作为模板。
我正在用此代码制作标题,但我无法让图片与文本对齐。在这种情况下,我只与第一行对齐,即期刊名称,有人能帮我吗?我需要将图片放在文本之前的左侧,并且文本的所有 3 行都应该在图片前面。
提前致谢
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyheadoffset{1cm}
\fancyfootoffset{1cm}
\fancyhf{}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[L]{\includegraphics[height=3\baselineskip]{./images/imageinicio}% Image
\fontsize{8}{8} \selectfont
Journal on Teaching Engineering, 1:1 (2015) 5-15 \\
ISSN XXX-XXXX \\
DOI: \href{https://doi.org/10.24840/2183-6493\_00X.00X\_00XX}{10.24840/2183-6493\_001.001\_0011}}
\fancyhead[R]{
\fontsize{8}{8} \selectfont
Received: XX December, XXX \\
Revised: XX December, XXX \\
Published: XX December, XXXX}
\fancyfoot[R]{
\fontsize{8}{8} \selectfont
\textbf{\thepage}}}
答案1
这就是你想要实现的目标吗?顺便说一句,我认为\fontsize{8}{9}
这样更好,甚至可能更好\fontsize{8}{10}
。
\documentclass{article}
\usepackage[headheight=45pt, includehead]{geometry} % for margins on a A4paper
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{kantlipsum}
\usepackage{hyperref}
\pagestyle{fancy}
\fancyheadoffset{1cm}
\fancyfootoffset{1cm}
\fancyhf{}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[L]{%
\begin{tabular}[c]{@{}c@{}}
\includegraphics[height=3\normalbaselineskip]{example-image}
\end{tabular}
\fontsize{8}{9}\selectfont
\begin{tabular}[c]{@{}l@{}}
Journal on Teaching Engineering, 1:1 (2015) 5-15 \\
ISSN XXX-XXXX \\
DOI: \href{https://doi.org/10.24840/2183-6493\_00X.00X\_00XX}{10.24840/2183-6493\_001.001\_0011}
\end{tabular}}
\fancyhead[R]{\fontsize{8}{9}\selectfont%
\begin{tabular}[c]{@{}r@{}}
Received: XX December, XXX \\
Revised: XX December, XXX \\
Published: XX December, XXXX
\end{tabular}}
\fancyfoot[R]{
\fontsize{8}{8}\selectfont
\textbf{\thepage}}}
\begin{document}
\pagestyle{plain}
\kant[1-3]
\end{document}