使标题显示章节标题,而不是 tufte-book 中的书名

使标题显示章节标题,而不是 tufte-book 中的书名

我正在用 tufte-book 创建一本编辑卷\documentclass。每一章都由不同的作者撰写。

我正在尝试让标题显示每个章节及其作者。目前,它显示单个作者和书名。

是否有可能做到这一点?

答案1

由于tufte-book内部加载fancyhdr,您可以轻松定义新的页面样式,其标题包含适当的信息。我还定义了一个\chapterauthor命令,在每个作者之后使用\chapter;此命令排版作者姓名,并生成要在标题中使用的标记:

\documentclass[nols,nohyper]{tufte-book}

\title{Machiavelli and Pluralism}
\author{Rod Johnson}
\publisher{Interdisciplinary Institute}

\definecolor{Ahrenge}{RGB}{214, 88, 18}
\usepackage{fontspec}
%\setmainfont{Linux Libertine}
%\setsansfont{Linux Libertine}
\usepackage{lipsum}
%\usepackage{biblatex}
\usepackage{hyperref}
\hypersetup{colorlinks,linktocpage,urlcolor=Ahrenge}

\renewcommand{\allcapsspacing}[1]{{\addfontfeature{LetterSpace=20.0}#1}}
\renewcommand{\smallcapsspacing}[1]{{\addfontfeature{LetterSpace=5.0}#1}}
\renewcommand{\textsc}[1]{\smallcapsspacing{\textsmallcaps{#1}}}
\renewcommand{\smallcaps}[1]{\smallcapsspacing{\scshape\MakeTextLowercase{#1}}}

\usepackage{pifont}

%\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}

\makeatletter
\newcommand\chapterauthor[1]{#1\gdef\@chapterauthor{#1}}
\def\@chapterauthor{}
\fancypagestyle{mystyle}{%
\fancyhf{}%
\renewcommand{\chaptermark}[1]{\markboth{##1}{}}%
\fancyhead[LE]{\thepage\quad\smallcaps{\newlinetospace{\leftmark}}}% 
\fancyhead[RO]{\smallcaps{\newlinetospace{\@chapterauthor}}\quad\thepage}%
}
\makeatother

\begin{document}

\maketitle

\pagestyle{mystyle}
\chapter{Machiavelli and Pluralism}

\ding{96} \chapterauthor{Rod Johnson, BYU}

\section{Introduction}

Machiavelli’s cardinal achievement is his uncovering of an insoluble dilemma, the planting of a permanent question mark in the path of posterity. It stems from his \emph{de facto} recognition that ends equally ultimate, equally sacred, may contradict each other, that entire systems of value may come into collision without possibility of rational arbitration, and that not merely in exceptional circumstances, as a result of abnormality or accident or error—the clash of Antigone and Creon or in the story of Tristan—but (this was surely new) as part of the \href{http://www.google.com}{\textbf{normal human situation}}.\sidenote{Johnson, Rod. \emph{A Machiavellian Pluralism}. New York: NYU P, 2010.}

\lipsum[1-10]

\end{document}

相关内容