
我正在使用 tufte-handout 文檔類,文檔的標題有 101 個字元。因此,第一頁之後的頁面上的標題會轉移到標題中的第二行。
如果我的標題是“這是論文的標題:為了完成而對一些有趣的事情進行調查”,是否可以只將標題的第一部分出現在標題中(即“這是論文標題')?
這是我的序言:
\documentclass{tufte-handout}
%\geometry{showframe}% for debugging purposes -- displays the margins
\usepackage{amsmath}
% Set up the images/graphics package
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\graphicspath{{graphics/}}
\title{This is the title of the paper: An inquiry into something interesting to talk about in order to finish}
\author{John Doe}
\date{} % if the \date{} command is left out, the current date will be used
% The following package makes prettier tables. We're all about the bling!
\usepackage{booktabs}
% The units package provides nice, non-stacked fractions and better spacing
% for units.
\usepackage{units}
% The fancyvrb package lets us customize the formatting of verbatim
% environments. We use a slightly smaller font.
\usepackage{fancyvrb}
\fvset{fontsize=\normalsize}
% Small sections of multiple columns
\usepackage{multicol}
% Provides paragraphs of dummy text
\usepackage{lipsum}
% These commands are used to pretty-print LaTeX commands
\newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}% command name -- adds backslash automatically
\newcommand{\docopt}[1]{\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument
\newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument
\newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment
\newcommand{\docenv}[1]{\textsf{#1}}% environment name
\newcommand{\docpkg}[1]{\texttt{#1}}% package name
\newcommand{\doccls}[1]{\texttt{#1}}% document class name
\newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name
\titlespacing*{\chapter}{0pt}{5pt}{40pt}
\begin{document}
答案1
正是針對這些情況,tufte-handout
命令中\title
有一個可選參數,用於將其內容排版到標題:
\documentclass{tufte-handout}
\title[An inquiry into something interesting]{This is the title of the paper: An inquiry into something interesting to talk about in order to finish}
\usepackage{blindtext}
\begin{document}
\maketitle
\blindtext\blindtext\blindtext\blindtext
\end{document}
答案2
該類別tufte
保存標題,該標題將在名為 的巨集中顯示在標題中\plaintitle
。因此,更新此巨集的定義後,您可以將自訂內容放入標頭中。
\documentclass{tufte-handout}
\title{This is the title of the paper: An inquiry into something interesting to talk about in order to finish}
\renewcommand\plaintitle{This is the title of the paper}
\usepackage{blindtext}
\begin{document}
\blindtext
\end{document}