我正在尝试在标题页上插入图片之间实际标题和作者。我尝试使用,\titlepic{\includegraphics[width=70mm]{img/myimg.png}}
但这总是在标题、作者和日期之后插入图像。有没有办法将图像准确地插入到标题和作者之间?以下是展示该问题的示例文档:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{titlepic}
\usepackage{graphicx}
\title{LaTeX Test Document}
\author{John Smith }
\date{September 2018}
\titlepic{\includegraphics[width=70mm]{myimage.png}}
\begin{document}
\maketitle
\end{document}
输出结果如下:
答案1
你可以尝试titling
包:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{titling}
\pretitle{\begin{center}\fontsize{18bp}{18bp}\selectfont}
\posttitle{\vspace{14bp}\par\includegraphics[width=70mm]{respect-cat}\par\end{center}}
\preauthor{\begin{center}\fontsize{14bp}{14bp}\selectfont}
\postauthor{\par\end{center}}
\predate{\begin{center}}
\postdate{\par\end{center} }
\title{titling-proof}
\author{Kyu96}
\date{\today}
\begin{document}
\maketitle
\end{document}
你可以玩尺寸...