From 97fd5b198d46f9d00c0754519ca628ffab05011e Mon Sep 17 00:00:00 2001 From: Igal Tabachnik Date: Tue, 31 Oct 2017 11:17:45 +0200 Subject: [PATCH] Fixing a broken font size in \code environments. This caused all the text to shrink. Fixes #83 --- src/content/1.2/Types and Functions.tex | 2 +- src/preamble.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}}