\def\fileversion{1.0}
\def\filerevdate{2014/05/07}
%
\documentclass[12pt]{article}
\usepackage{robinsonfonts}
\usepackage[margin=3cm,noheadfoot]{geometry}
\parindent0pt

%\usepackage{multicol}
\usepackage{pifont}
\usepackage{xparse}
\usepackage[svgnames]{xcolor}
\usepackage{tcolorbox}
\newtcolorbox{correxample}{%
  before=\begin{center}, after=\end{center},
  colback=blue!10!white, colframe=blue!75!white,
  width=0.9\linewidth, leftrule=2mm, rightrule=2mm, center lower,
}


\usepackage[colorlinks, allcolors={NavyBlue},
  pdfauthor={Jonathan Robinson},
  pdftitle={Corrigenda for William of Ockham's Early Theory of
    Property Rights in Context},
]{hyperref}

\newcommand{\doctitle}[1]{%
  {\par\centering
    \bfseries \sffamily \large
    #1\par}\bigskip}%
\newcommand{\printdocdetails}{%
  {\par\centering
  \bfseries \sffamily
  Version:\space
  \textcolor{Maroon}{\fileversion}\quad
  (\filerevdate)\par\bigskip}}


\NewDocumentCommand {\corrigendum} {s mm mm o}
% #1 = star [T = foonote; F = line(s)] ; #2 = page ; #3 =
% line(s)/footnote ; #4 = orig. word(s) ; #5 = correction ; #6 = notes
% (optional)
{%
\hangindent=20pt%
\IfBooleanTF{#1}%
  {\pageandnote{#2}{#3}:}%
  {\pageandline{#2}{#3}:}%
  \space \origtext{#4}%
  \space\space\corrmark\space\space
%  \quad\corrmark\quad
  \newtext{#5}%
  \IfNoValueTF{#6}%
  {\relax}%
  {\space [\emph{Note:} #6]}%
\par}
\newcommand{\pageandnote}[2]{\pagefont{#1, n.\,#2}}
\newcommand{\pageandline}[2]{\pagefont{#1, l.\,#2}}% = starting line
\newcommand{\origtext}[1]{#1}
\newcommand{\newtext}[1]{#1}
\newcommand{\corrmark}{\ding{223}}
\newcommand{\pagefont}[1]{#1}
\newcommand{\listel}[1]{\textlangle\texttt{#1}\textrangle}


% use better \textlangle and \textrangle (engine sensitive)
\ifluatex
  \def\textlangle{⟨}% ‹ (= C-x 8 RET 27e8)
  \def\textrangle{⟩}% › (= C-x 8 RET 27e9)
  \let\otla\textlangle% ⟨⟩
  \let\otra\textrangle%
\else
  \let\otla\textlangle%
  \let\otra\textrangle%
  % requires TS1 encoding...
  \renewcommand{\textlangle}{{\fontfamily{lmr}\selectfont\otla}}%
  \renewcommand{\textrangle}{{\fontfamily{lmr}\selectfont\otra}}%
\fi


\begin{document}% ====================================================
\thispagestyle{empty}


\doctitle{Corrigenda and errata for\\
\emph{William of Ockham's Early Theory of Property Rights in Context}}

\printdocdetails


My book, sadly, is not perfect; but hopefully no serious errors that
obscure what I was trying to say.  However, I shall strive to include
here a list of corrigenda for future reference. As always, your own
contributions are welcome.
%
For reference, all entries take the following form:


\begin{correxample}
  \listel{page}, \listel{line number\,/\,footnote}: \listel{original
    text}\space\space \corrmark\space\space \listel{corrected text}
\end{correxample}


\begingroup
\parskip 3pt

% Usage
% \corrigendum{page}{line/note}{orig. text}{corr. text}
% \corrigendum*{page}{line/note}{orig. text}{corr. text} == footnote
% \corrigendum{page}{line/note}{orig. text}{corr. text}[optional note]

\corrigendum{66}{6}{This was point was}{This point was}
\corrigendum{66}{11}{discribed}{described}
\corrigendum{67}{3}{corresponding to one these}{corresponding to one
  of these}

\corrigendum*{80}{69}{\emph{about Property} put}{\emph{about Property},
  put}

\corrigendum*{258}{16}{hiusmodi}{huiusmodi}


\endgroup
\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-engine: luatex
%%% End:
