![需要帮助来制作 CLS 文档,我需要一个带有图片和文本表格的 \fancyhead?](https://linux22.com/image/433932/%E9%9C%80%E8%A6%81%E5%B8%AE%E5%8A%A9%E6%9D%A5%E5%88%B6%E4%BD%9C%20CLS%20%E6%96%87%E6%A1%A3%EF%BC%8C%E6%88%91%E9%9C%80%E8%A6%81%E4%B8%80%E4%B8%AA%E5%B8%A6%E6%9C%89%E5%9B%BE%E7%89%87%E5%92%8C%E6%96%87%E6%9C%AC%E8%A1%A8%E6%A0%BC%E7%9A%84%20%5Cfancyhead%EF%BC%9F.png)
我正在做一个 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}