使用 Fancyhdr 在 Tufte 文档类中实现全宽标题

使用 Fancyhdr 在 Tufte 文档类中实现全宽标题

我希望标题能占据整页而不是第一列。Tufte 可以实现fullwidth这一点,但是标题页溢出并移到第二页。

软件包 Fancyhdr 警告:\headheight 太小(14.0pt):至少将其设置为 25.54448pt。我们现在将其设置为与文档其余部分一样大。但是,这可能会导致页面布局不一致。

\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{Investigating Alzheimer's Disease using Large Scale Models of Mammalian Thalamocortical Networks}
\author[Thomas H. Alderson]{Thomas H. Alderson}
\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

\begin{document}
\begin{fullwidth}
\maketitle% this prints the handout title, author, and date
\end{fullwidth}

\end{document}

答案1

我不确定你是否真的想要这个。

\documentclass{tufte-handout}

\geometry{showframe}% for debugging purposes -- displays the margins
\usepackage{calc}

\usepackage{lipsum} % just for the example

\title[Investigating Alzheimer's Disease]
      {Investigating Alzheimer's Disease using Large Scale Models
       of Mammalian Thalamocortical Networks}
\author[Thomas H. Alderson]{Thomas H. Alderson}
\date{}  % if the \date{} command is left out, the current date will be used

\begin{document}

\noindent
\makebox[\textwidth][l]{%
  \begin{minipage}[b]{\textwidth+\marginparsep+\marginparwidth}
  \raggedright
  \maketitle
  \end{minipage}%
}

\lipsum

\end{document}

在此处输入图片描述

有关的消息\headheight is too small是由于标题太长,我用一个简短的标题解决了这个问题。

相关内容