From f58721c053c994962dc03a195a08259859c66b32 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sat, 5 Aug 2023 16:11:55 -0600 Subject: [PATCH] Convert each chapter to TeX and build with LaTex Also hardcode chapter and section titles and start messing with trickery to get rid of LaTeX warnings. --- .gitignore | 5 +++-- Makefile | 12 ++++++++---- book.tex | 39 ++++++++++++++++++++++++++++++++++++++ edit-chapter.go | 10 +++++++--- original/01.markdown | 9 +++------ original/02.markdown | 15 +++------------ original/03.markdown | 30 +++++++---------------------- original/04.markdown | 5 +---- original/05.markdown | 5 +---- original/06.markdown | 5 +---- original/07.markdown | 5 +---- original/08.markdown | 5 +---- original/09.markdown | 5 +---- original/10.markdown | 5 +---- original/11.markdown | 5 +---- original/12.markdown | 5 +---- original/appendix.markdown | 2 +- original/note.markdown | 2 +- tex/.gitignore | 1 + 19 files changed, 82 insertions(+), 88 deletions(-) create mode 100644 book.tex create mode 100644 tex/.gitignore diff --git a/.gitignore b/.gitignore index a83fc8f..418b68a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ book.pdf -book.tex -*.log \ No newline at end of file +*.log +*.aux +*.out \ No newline at end of file diff --git a/Makefile b/Makefile index 23921c6..982e043 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ chapters := note 01 02 03 04 05 06 07 08 09 10 11 12 appendix edited_chapters := $(foreach chapter,$(chapters),edited/$(chapter).markdown) +tex_chapters := $(foreach chapter,$(chapters),tex/$(chapter).tex) -book.pdf: $(edited_chapters) title.txt Makefile - pandoc -o book.pdf title.txt $(edited_chapters) --table-of-contents --number-sections -V documentclass=book + +book.pdf: $(tex_chapters) book.tex Makefile + pdflatex book.tex edited/%.markdown: original/%.markdown edit-chapter.go Makefile go run edit-chapter.go $< $@ -book.tex: $(edited_chapters) title.txt Makefile - pandoc -o book.tex title.txt $(edited_chapters) --table-of-contents --number-sections -V documentclass=book +tex/%.tex: edited/%.markdown Makefile + pandoc -o $@ $< --top-level-division=chapter + +tex: $(tex_chapters) diff --git a/book.tex b/book.tex new file mode 100644 index 0000000..30cb676 --- /dev/null +++ b/book.tex @@ -0,0 +1,39 @@ +\documentclass{book} +\usepackage{hyperref} +\usepackage{titleps} + +\hfuzz=7pt + +\newpagestyle{main}{ + \sethead[\thepage][Trial by Jury.][][][(section title)][\thepage] +} + +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} + +\begin{document} +\title[Trial by Jury]{An Essay on the Trial by Jury} +\author{Lysander Spooner} +\date{1852} + +\pagestyle{main} + +\frontmatter +\maketitle +\input{chapters/tex/note.tex} + +\mainmatter +\input{chapters/tex/01.tex} +\input{chapters/tex/02.tex} +\input{chapters/tex/03.tex} +\input{chapters/tex/04.tex} +\input{chapters/tex/05.tex} +\input{chapters/tex/06.tex} +\input{chapters/tex/07.tex} +\input{chapters/tex/08.tex} +\input{chapters/tex/09.tex} +\input{chapters/tex/10.tex} +\input{chapters/tex/11.tex} +\input{chapters/tex/12.tex} + +\input{chapters/tex/appendix.tex} diff --git a/edit-chapter.go b/edit-chapter.go index 48b53ad..87cb88e 100644 --- a/edit-chapter.go +++ b/edit-chapter.go @@ -31,13 +31,13 @@ func compile(raw [2]string) Replacer { var replacers = mapSlice(compile, [][2]string{ // Chapter titles - {`CHAPTER [IVX]+\.` + "\n\n" + `(.*)\.`, `# $1`}, + // {`CHAPTER [IVX]+\.` + "\n\n" + `(.*)\.`, `# $1`}, // Section titles - {`(?ms)SECTION [IVX]+\.\n\n_([^_]+)\._`, `## $1`}, + // {`(?ms)SECTION [IVX]+\.\n\n_([^_]+)\._`, `## $1`}, // Untitled sections - {`SECTION [IVX]+\.`, `\section{}`}, + // {`SECTION [IVX]+\.`, `\section{}`}, // Em dashes {"--", "—"}, @@ -58,6 +58,10 @@ var replacers = mapSlice(compile, [][2]string{ // Footnote superscript {`\[(\d+)\]`, `[^$1]`}, + // {`\[(\d+)\]`, `\footnotemark[$1]`}, + + // experimental footnote + // {`\[Footnote (\d+): ((?:[^\[\]]|(?:\[\^\d+\]))+)\]`, `\footnotetext[$1]{$2}`}, }) var footnoteRE = regexp.MustCompile(`\[Footnote \d+: ([^\[\]]|(\[\^\d+\]))+\]`) diff --git a/original/01.markdown b/original/01.markdown index 2b37d1e..0cfe0e7 100644 --- a/original/01.markdown +++ b/original/01.markdown @@ -1,9 +1,6 @@ -CHAPTER I. +\chapter[Juries Judges of the Justice of Laws.]{The Right of Juries to Judge of the Justice of Laws.} -THE RIGHT OF JURIES TO JUDGE OF THE JUSTICE OF LAWS. - - -SECTION I. +\section{} For more than six hundred years--that is, since Magna Carta, in 1215--there has been no clearer principle of English or American @@ -193,7 +190,7 @@ substantially the whole people (through a jury) consent that it may exercise. -SECTION II. +\section{} 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 diff --git a/original/02.markdown b/original/02.markdown index c1ea0a0..6671b54 100644 --- a/original/02.markdown +++ b/original/02.markdown @@ -1,7 +1,4 @@ -CHAPTER II. - -THE TRIAL BY JURY, AS DEFINED BY MAGNA CARTA. - +\chapter{The Trial by Jury, as Defined by Magna Carta.} That the trial by jury is all that has been claimed for it in the preceding chapter, is proved both by the history and the language of the @@ -9,10 +6,7 @@ Great Charter of English Liberties, to which we are to look for a true definition of the trial by jury, and of which the guaranty for that trial is the vital, and most memorable, part. - -SECTION I. - -_The History of Magna Carta._ +\section[History of Magna Carta.]{The History of Magna Carta.} In order to judge of the object and meaning of that chapter of Magna Carta which secures the trial by jury, it is to be borne in mind that, @@ -156,10 +150,7 @@ that it was of some value as a guaranty against oppression. Yet that idea has been an entire delusion, unless the jury have had the right to judge of the justice of the laws they were called on to enforce. - -SECTION II. - -_The Language of Magna Carta._ +\section[Language of Magna Carta.]{The Language of Magna Carta.} The language of the Great Charter establishes the same point that is established by its history, viz., that it is the right and duty of the diff --git a/original/03.markdown b/original/03.markdown index 1413e16..2ff3377 100644 --- a/original/03.markdown +++ b/original/03.markdown @@ -1,7 +1,4 @@ -CHAPTER III. - -ADDITIONAL PROOFS OF THE RIGHTS AND DUTIES OF JURORS. - +\chapter{Additional Proofs of the Rights and Duties of Jurors.} If any evidence, extraneous to the history and language of Magna Carta, were needed to prove that, by that chapter which guaranties the trial by @@ -17,9 +14,7 @@ This evidence can be exhibited here but partially. To give it all would require too much space and labor. -SECTION I. - -_Weakness of the Regal Authority._ +\section{Weakness of the Regal Authority.} Hughes, in his preface to his translation of Horne's "_Mirror of Justices_," (a book written in the time of Edward I., 1272 to 1307,) @@ -415,10 +410,7 @@ will that the laws of England be not changed,) was a determined principle with the Anglo-Saxons, from which they seldom departed, up to the time of Magna Carta, and indeed until long after.[43] - -SECTION II. - -_The Ancient Common Law Juries were mere Courts of Conscience._ +\section[Ancient Common Law Juries Courts of Conscience.]{The Ancient Common Law Juries Were Mere Courts of Conscience.} But it is in the administration of justice, or of law, that the freedom or subjection of a people is tested. If this administration be in @@ -1129,9 +1121,7 @@ pretext, by the way, almost universally used for overturning, instead of establishing, the principles of justice. -SECTION III. - -_The Oaths of Jurors._ +\section[Oaths of Jurors]{The Oaths of Jurors.} The oaths that have been administered to jurors, in England, and which are their _legal_ guide to their duty, _all_ (so far as I have @@ -1334,9 +1324,7 @@ instructions of the judges, nor the statutes of kings nor legislatures, are their legal guides to their duties.[57] -SECTION IV. - -_The Right of Juries to fix the Sentence._ +\section[Right of Juries to Fix Sentence]{The Right of Juries to Fix the Sentence.} The nature of the common law courts existing prior to Magna Carta, such as the county courts, the hundred courts, the court-leet, and the @@ -1623,9 +1611,7 @@ have been trampled upon and rendered obsolete by the usurpation and corruption of the government and the courts. -SECTION V. - -_The Oaths of Judges._ +\section[Oaths of Judges.]{The Oaths of Judges.} As further proof that the legislation of the king, whether enacted with or without the assent and advice of his parliaments, was of no authority @@ -1749,9 +1735,7 @@ years past, they actually have been sworn to treat as invalid all statutes that were contrary to the common law. -SECTION VI. - -_The Coronation Oath._ +\section{The Coronation Oath.} That the legislation of the king was of no authority over a jury, is further proved by the oath taken by the kings at their coronation. This diff --git a/original/04.markdown b/original/04.markdown index c0971f9..5e88a23 100644 --- a/original/04.markdown +++ b/original/04.markdown @@ -1,7 +1,4 @@ -CHAPTER IV. - -THE RIGHTS AND DUTIES OF JURIES IN CIVIL SUITS. - +\chapter[Rights and Duties of Juries in Civil Suits.]{The Rights and Duties of Juries in Civil Suits.} The evidence already given in the preceding chapters proves that the rights and duties of jurors, in civil suits, were anciently the same as diff --git a/original/05.markdown b/original/05.markdown index 71d563f..45e0b19 100644 --- a/original/05.markdown +++ b/original/05.markdown @@ -1,7 +1,4 @@ -CHAPTER V. - -OBJECTIONS ANSWERED - +\chapter{Objections Answered} The following objections will be made to the doctrines and the evidence presented in the preceding chapters. diff --git a/original/06.markdown b/original/06.markdown index ba7ed89..9fe3cbc 100644 --- a/original/06.markdown +++ b/original/06.markdown @@ -1,7 +1,4 @@ -CHAPTER VI. - -JURIES OF THE PRESENT DAY ILLEGAL. - +\chapter{Juries of the Present Day Illegal.} It may probably be safely asserted that there are, at this day, no legal juries, either in England or America. And if there are no legal juries, diff --git a/original/07.markdown b/original/07.markdown index 654e18c..53d3fdb 100644 --- a/original/07.markdown +++ b/original/07.markdown @@ -1,7 +1,4 @@ -CHAPTER VII. - -ILLEGAL JUDGES. - +\chapter{Illegal Judges.} It is a principle of Magna Carta, and therefore of the trial by jury, (for all parts of Magna Carta must be construed together,) that no judge diff --git a/original/08.markdown b/original/08.markdown index 68daad8..9c38a1a 100644 --- a/original/08.markdown +++ b/original/08.markdown @@ -1,7 +1,4 @@ -CHAPTER VIII. - -THE FREE ADMINISTRATION OF JUSTICE. - +\chapter{The Free Administration of Justice.} The free administration of justice was a principle of the common law; and it must necessarily be a part of every system of government which is diff --git a/original/09.markdown b/original/09.markdown index 65c759b..18ac47b 100644 --- a/original/09.markdown +++ b/original/09.markdown @@ -1,7 +1,4 @@ -CHAPTER IX. - -THE CRIMINAL INTENT. - +\chapter{The Criminal Intent.} It is a maxim of the common law that there can be no crime without a criminal intent. And it is a perfectly clear principle, although one diff --git a/original/10.markdown b/original/10.markdown index c799170..781e4d6 100644 --- a/original/10.markdown +++ b/original/10.markdown @@ -1,7 +1,4 @@ -CHAPTER X. - -MORAL CONSIDERATIONS FOR JURORS. - +\chapter{Moral Considerations for Jurors.} The trial by jury must, if possible, be construed to be such that a man can rightfully sit in a jury, and unite with his fellows in giving diff --git a/original/11.markdown b/original/11.markdown index c8131c9..5f7ce99 100644 --- a/original/11.markdown +++ b/original/11.markdown @@ -1,7 +1,4 @@ -CHAPTER XI. - -AUTHORITY OF MAGNA CARTA. - +\chapter{Authority of Magna Carta.} Probably no political compact between king and people was ever entered into in a manner to settle more authoritatively the fundamental law of a diff --git a/original/12.markdown b/original/12.markdown index 2372452..46ef29e 100644 --- a/original/12.markdown +++ b/original/12.markdown @@ -1,7 +1,4 @@ -CHAPTER XII. - -LIMITATIONS IMPOSED UPON THE MAJORITY BY THE TRIAL BY JURY. - +\chapter[Limitations Upon the Majority.]{Limitations Imposed upon the Majority by the Trial by Jury.} The principal objection, that will be made to the doctrine of this essay, is, that under it, a jury would paralyze the power of the diff --git a/original/appendix.markdown b/original/appendix.markdown index 3f4e721..b55dba0 100644 --- a/original/appendix.markdown +++ b/original/appendix.markdown @@ -1,5 +1,5 @@ \appendix -# TAXATION +\chapter{Taxation.} It was a principle of the Common Law, as it is of the law of nature, and of common sense, that no man can be taxed without his personal consent. diff --git a/original/note.markdown b/original/note.markdown index 5993b5a..b9b9b42 100644 --- a/original/note.markdown +++ b/original/note.markdown @@ -1,4 +1,4 @@ -\chapter*{NOTE} +\chapter*{Note.} This volume, it is presumed by the author, gives what will generally be considered satisfactory evidence,--though not all the evidence,--of what diff --git a/tex/.gitignore b/tex/.gitignore new file mode 100644 index 0000000..b722e9e --- /dev/null +++ b/tex/.gitignore @@ -0,0 +1 @@ +!.gitignore \ No newline at end of file