diff --git a/src/content/1.2/Types and Functions.tex b/src/content/1.2/Types and Functions.tex index 4ad9fb3..8d1e06a 100644 --- a/src/content/1.2/Types and Functions.tex +++ b/src/content/1.2/Types and Functions.tex @@ -453,7 +453,7 @@ the Haskell library \code{Data.Char} is full of predicates like \code{} that defines, among others, \code{isalpha} and \code{isdigit}, but these return an \code{int} rather than a Boolean. The actual predicates are defined in \code{std::ctype} and -have the form \code{ctype::is(alpha, c)}, +have the form \code{ctype::is(alpha, c)},\\ \code{ctype::is(digit, c)}, etc. \section{Challenges} diff --git a/src/preamble.tex b/src/preamble.tex index 79a2d0a..79a1e8c 100644 --- a/src/preamble.tex +++ b/src/preamble.tex @@ -122,7 +122,7 @@ \newcommand{\acronym}[1]{\textsc{\fontspec[Numbers={OldStyle}]{Linux Libertine O}\MakeLowercase{#1}}} \newcommand{\newterm}[1]{\index{#1}\emph{#1}} -\newcommand{\code}[1]{\small\texttt{#1}} +\newcommand{\code}[1]{\Verb+{#1}+} \newcommand{\heading}[1]{{\sffamily\bfseries #1}} \newcommand{\mono}[1]{\hbox{\ttfamily\scriptsize #1}} \newcommand{\monoit}[1]{\hbox{\ttfamily\itshape\scriptsize #1}}