我正在尝试在 Tufte 格式的文档页面上添加页眉。该怎么做?我输入了有关\title
、的信息\author
,\publisher
但结果却出现错误。
有没有什么帮助?
\documentclass{tufte-book}
%\title{Machiavelli and Pluralism}
%\author{Rod Johnson}
%\publisher{Interdisciplinary Institute}
\definecolor{Ahrenge}{RGB}{214, 88, 18}
\usepackage{fontspec}
\setmainfont{Amiri}
%------------------------------
\usepackage{hyperref}
\hypersetup{colorlinks,linktocpage,urlcolor=Ahrenge}
\usepackage{pifont}
%\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\begin{document}
\chapter{Machiavelli and Pluralism}
\ding{96} 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.}
\end{document}
答案1
当我更改字体时,我没有遇到任何问题(我猜 Amiri 没有小写字母作为标题)。“soul”包与 xelatex 配合使用效果不佳,因此请使用“nols”选项将其禁用。
每当使用 xelatex 运行时,我都会按照 tufte-latex 问题页面中的建议添加字母间距。
参见下面的示例。
\documentclass[nols,nohyper]{tufte-book}
\title{Machiavelli and Pluralism}
\author{Rod Johnson}
\publisher{Interdisciplinary Institute}
\definecolor{Ahrenge}{RGB}{214, 88, 18}
\usepackage{fontspec}
\setmainfont{Minion Pro}
\setsansfont{Myriad Pro}
\usepackage{lipsum}
%------------------------------
\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}
\begin{document}
\maketitle
\chapter{Machiavelli and Pluralism}
\ding{96} 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-5]
\end{document}