我尝试用以下方式回答我的问题这个,但我收到错误消息并且无法弄清楚。
梅威瑟:
\documentclass[12pt,a4paper, twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\DeclareUnicodeCharacter{202F}{\,}
\usepackage[colorlinks,hidelinks,urlcolor=blue,bookmarks=false,hypertexnames=true]{hyperref}
\usepackage[authordate,autocite=inline,backend=biber, natbib=true,sorting=nyt,]{biblatex-chicago}
\ExecuteBibliographyOptions{maxcitenames=1}
\DeclareFieldFormat{citehyperref}{%
\DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links
\bibhyperref{#1}}
\savebibmacro{cite}
\renewbibmacro*{cite}{%
\printtext[citehyperref]{%
\restorebibmacro{cite}%
\usebibmacro{cite}}}
\usepackage[]{fancyhdr}
\pagestyle{fancy}
%%% headers and footers
\fancyhf{}
\fancyhead[OR]{The Prime Minister’s Prerogatives}
\fancyhead[EL]{Louis Vigneras}
\fancyfoot[OR]{\thepage}
\fancyfoot[EL]{\thepage}
\renewcommand{\headrulewidth}{0.2pt}
\fancypagestyle{first}{%
\renewcommand{\headrulewidth}{0pt}%
\fancyhf{}%
\fancyfoot[R]{\thepage\}%
}
\author{Author}
\title{The Prime Minister’s Prerogatives}
\begin{document}
\maketitle
\section{Thext}
\thispagestyle{first}
Text....
\end{document}
消息/日志:
! File ended while scanning use of \f@nch@pagestyle.
知道这是什么吗?如何解决?
答案1
@Mensch 指出的简单的拼写错误问题:删除\fancyfoot[R]{\thepage\}%
\fancyfoot[R]{\thepage}% 中的最后一个 \ ...