Skip to content

Commit fce8bc4

Browse files
committed
Removing duplicate table/tabular that was causing over-numbering.
Closes #171.
1 parent a0ac316 commit fce8bc4

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

htmlcss.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ \section{Text}\label{s:htmlcss-text}
4343
an ampersand, the name of the character, and a semi-colon.
4444
A few common escape sequences are shown in \tblref{t:htmlcss-escapes}.
4545

46-
\begin{table}
4746
\begin{longtable}{lll}
4847
Name & Escape Sequence & Character \\
4948
Less than & \texttt{\<} & {\textless} \\
@@ -52,10 +51,9 @@ \section{Text}\label{s:htmlcss-text}
5251
Copyright & \texttt{\©} & © \\
5352
Plus/minus & \texttt{\±} & ± \\
5453
Micro & \texttt{\µ} & µ \\
55-
\end{longtable}
5654
\caption{HTML Escapes}
5755
\label{t:htmlcss-escapes}
58-
\end{table}
56+
\end{longtable}
5957

6058
The first two are self-explanatory,
6159
and \texttt{\&} is needed so that we can write a literal ampersand

legacy.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ \section{Equality}\label{s:legacy-equality}
1313
he rattles through some truths about the language that may surprise you
1414
(\tblref{t:legacy-surprises}).
1515

16-
\begin{table}
1716
\begin{longtable}{lll}
1817
Operation & Code & Result \\
1918
empty array plus empty array & \texttt{[]\ +\ []} & \texttt{""} (empty string) \\
2019
empty array plus empty object & \texttt{[]\ +\ \{\}} & \texttt{\{\}} (empty object) \\
2120
empty object plus empty array & \texttt{\{\}\ +\ []} & \texttt{0} (number zero) \\
2221
empty object plus empty object & \texttt{\{\}\ +\ \{\}} & \texttt{NaN} (not a number) \\
23-
\end{longtable}
2422
\caption{Surprising Results}
2523
\label{t:legacy-surprises}
26-
\end{table}
24+
\end{longtable}
2725

2826
In order to understand this, we need to know several things
2927
(which are laid out in more detail in \hreffoot{https://medium.com/dailyjs/the-why-behind-the-wat-an-explanation-of-javascripts-weird-type-system-83b92879a8db}{this article} by Abhinav Suri):

regexp.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ \chapter{Regular Expressions}\label{s:regexp}
5353

5454
\end{itemize}
5555

56-
\begin{table}
5756
\begin{longtable}{llll}
5857
Text
5958
& Pattern
@@ -114,10 +113,9 @@ \chapter{Regular Expressions}\label{s:regexp}
114113
& yes & contains either ``Dr'' or ``Prof'' followed by literal '.'
115114
\\
116115

117-
\end{longtable}
118116
\caption{Regular Expression Matches}
119117
\label{t:regexp-examples}
120-
\end{table}
118+
\end{longtable}
121119

122120
This is a lot to digest,
123121
so \tblref{t:regexp-examples} shows a few examples.

0 commit comments

Comments
 (0)