答案1
我建议你看一下这个titling
软件包,它有很多用于自定义标题的工具。
以下是一个演示:
\documentclass[11pt, svgnames]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{garamondx}
\usepackage{geometry}
\usepackage{verse}
\usepackage{titling, xcolor}
\author{Edward Lear}
\title{The Quangle Wangle’s Hat}
\date{(n.\,d.)}
\pretitle{\LARGE\color{IndianRed}}
\posttitle{\hfill\raisebox{-0.4\height}{ \includegraphics[scale =0.35]{Quangle_Wangle_Hat}}\null}
\begin{document}
\maketitle
\settowidth{\versewidth}{For his Hat was a hundred and two feet wide,}
\begin{verse}[\versewidth]
\begin{altverse}
On the top of the Crumpetty Tree\\
The Quangle Wangle sat,\\
But his face you could not see,\\
On account of his Beaver Hat.\\
For his Hat was a hundred and two feet wide,\\
With ribbons and bibbons on every side\\
And bells, and buttons, and loops, and lace,\\
So that nobody ever could see the face\\
Of the Quangle Wangle Quee.
\end{altverse}
\end{verse}
\end{document}
答案2
\documentclass{article}
\usepackage{graphicx}
\usepackage[export]{adjustbox}% http://ctan.org/pkg/adjustbox
\usepackage[margin=2cm]{geometry}
\usepackage{xcolor}
\usepackage{lipsum} % for dummy text
\makeatletter
\def\mytitle#1{
\noindent\begin{minipage}[t]{.65\linewidth}\raggedright
{\Huge\bfseries\sffamily\color{red}\@title}\par\bigskip
{\bfseries\@author}\par\medskip \@date
\end{minipage}\hfill%
\includegraphics[width=.25\linewidth,valign=t]{#1}
\par\bigskip}
\makeatother
\title{My nice very long and impressive title}
\author{Arnaud Vivi}
\date{\today}
\begin{document}
\mytitle{example-image-duck}
\section{Lore ipsum} \lipsum[1]
\end{document}