Skip to content

Commit 81a1362

Browse files
committed
adding figure callouts for ch1-5
1 parent cc0c9ee commit 81a1362

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

basics.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ \section{Modules}\label{s:basics-modules}
512512
\end{aside}
513513
514514
Since we're going to build command-line programs before doing anything in the browser,
515-
we will introduce Node's module system first.
515+
we will introduce Node's module system first (\figref{f:basics-require}).
516516
We start by putting this code in a file called \texttt{utilities.js}:
517517
518518
\begin{minted}{js}

htmlcss.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ \section{Formatting}\label{s:htmlcss-formatting}
1515
and a corresponding closing tag \texttt{\htmltag{/tagname}} (with a leading slash) shows where it ends.
1616
If there's nothing between the two, we can write \texttt{\htmltag{tagname/}} (with a trailing slash).
1717

18-
A document's elements must form a \gref{g:tree}{tree},
18+
A document's elements must form a \gref{g:tree}{tree} (\figref{f:htmlcss-tree}),
1919
i.e.,
2020
they must be strictly nested.
2121
This means that if Y starts inside X,
@@ -306,7 +306,7 @@ \section{Tables}\label{s:htmlcss-tables}
306306
307307
\section{Links}\label{s:htmlcss-links}
308308
309-
Links to other pages are what make HTML hypertext.\index{link!in HTML page}
309+
Links to other pages are what make HTML hypertext (\figref{f:htmlcss-links}).\index{link!in HTML page}
310310
Confusingly,
311311
the element used to show a link is called \texttt{a}.
312312
The text inside the element is displayed and (usually) highlighted for clicking.
@@ -542,7 +542,7 @@ \section{Bootstrap}\label{s:htmlcss-bootstrap}
542542
One of the most popular is \hreffoot{https://getbootstrap.com/}{Bootstrap}\index{Bootstrap}
543543
(which is what we're using to style this website).
544544
Here's the entire source of a page that uses Bootstrap
545-
to create a two-column layout with a banner at the top:
545+
to create a two-column layout with a banner at the top (\figref{f:htmlcss-bootstrap}):
546546
547547
\begin{minted}{html}
548548
<html>

oop.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ \section{Classes}\label{s:oop-classes}
103103
Building every object by hand and calling \texttt{thing.function(thing)} is clumsy.
104104
JavaScript solved these problems using \grefdex{g:prototype}{prototypes}{prototype},
105105
which also turned out to be almost as clumsy as our hand-rolled solution (\secref{s:legacy-prototypes}).
106-
Most object-oriented languages use \grefdex{g:class}{classes}{class!in JavaScript} instead;
106+
Most object-oriented languages use \grefdex{g:class}{classes}{class!in JavaScript} instead (\figref{f:oop-memory});
107107
these were added to JavaScript in ES6,
108108
and we will use them instead of prototypes throughout.
109109
Here's how we create a class that defines the properties of a square,

0 commit comments

Comments
 (0)