From effdcab5250b864fc2999bd6eac8a0bfa49fd9e5 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sat, 5 Aug 2023 18:31:47 -0600 Subject: [PATCH] Fix running head and ToC --- .gitignore | 3 ++- Makefile | 2 +- book.tex | 14 ++++++++++++-- original/01.markdown | 5 +++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 418b68a..d7028a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ book.pdf *.log *.aux -*.out \ No newline at end of file +*.out +*.toc diff --git a/Makefile b/Makefile index c9e4be6..e57f709 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,4 @@ tex: $(tex_chapters) .PHONY: clean clean: - $(RM) $(edited_chapters) $(tex_chapters) book.pdf *.aux *.log *.out + $(RM) $(edited_chapters) $(tex_chapters) book.pdf *.aux *.log *.out *.toc diff --git a/book.tex b/book.tex index 07a3398..7567e8c 100644 --- a/book.tex +++ b/book.tex @@ -1,18 +1,28 @@ \documentclass{book} \usepackage{hyperref} -\usepackage{titleps} +\usepackage[pagestyles]{titlesec} +\usepackage{etoolbox} +% \usepackage{titleps} \usepackage{babel} \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} \begin{document} -\title[Trial by Jury]{An Essay on the Trial by Jury} + +\renewpagestyle{headings}{ + \sethead[\thepage][\MakeUppercase{Trial by Jury.}][]% + {}{\MakeUppercase{\sectiontitle}}{\thepage} +} + +\title{An Essay on the Trial by Jury} \author{Lysander Spooner} \date{1852} \frontmatter \maketitle +\tableofcontents + \input{tex/note.tex} \mainmatter diff --git a/original/01.markdown b/original/01.markdown index 0cfe0e7..f317f20 100644 --- a/original/01.markdown +++ b/original/01.markdown @@ -1,6 +1,7 @@ \chapter[Juries Judges of the Justice of Laws.]{The Right of Juries to Judge of the Justice of Laws.} +\pagestyle{headings} -\section{} +\section[Juries Judges of the Justice of Laws.]{} For more than six hundred years--that is, since Magna Carta, in 1215--there has been no clearer principle of English or American @@ -190,7 +191,7 @@ substantially the whole people (through a jury) consent that it may exercise. -\section{} +\section[Juries Judges of the Justice of Laws.]{} The force and justice of the preceding argument cannot be evaded by saying that the government is chosen by the people; that, in theory, it