我使用創建了自己的標題格式titling
。我希望日期與作者在同一行,用逗號分隔。那可能嗎?
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{geometry}
\geometry{
left=3cm,
right=3cm,
top=2cm,
bottom=4cm
}
\usepackage{titling}
\pretitle{\begin{center}\LARGE\scshape\bfseries}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{\begin{center}\large\scshape\lineskip 0.5em\begin{tabular}[t]{c}}
\postauthor{\end{tabular}\par\end{center}}
\predate{\begin{center}\large\scshape}
\postdate{\par\end{center}\vskip 0.5em}
\title{Some title}
\author{Some author}
\begin{document}
\maketitle
\end{document}
答案1
我將 移至\end{tabular}
,\postauthor
並使\postdate
表格有兩列。
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{geometry}
\geometry{
left=3cm,
right=3cm,
top=2cm,
bottom=4cm
}
\usepackage{titling}
\pretitle{\begin{center}\LARGE\scshape\bfseries}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{\begin{center}\large\scshape\lineskip 0.5em\begin{tabular}[t]{l r}}
\postauthor{&}
\predate{\large\scshape}
\postdate{\end{tabular}\par\end{center}\vskip 0.5em}
\title{Some title}
\author{Some author}
\begin{document}
\maketitle
\end{document}