Skip to content

Commit

Permalink
fix all invalid \seeindex's
Browse files Browse the repository at this point in the history
Supported by 61df36d 🤓
  • Loading branch information
LinqLover committed Nov 26, 2023
1 parent f1512e5 commit b4c4d64
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions FirstApp/FirstApp.tex
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ \section{Creating a new class category}

We have already seen the \ind{system browser} in \charef{quick}, where we learned how to navigate to classes and methods, and saw how to define new methods.
Now we will see how to create system categories and classes.
\seeindex{system category}{category}
\seeindex{system category}{category, system}
\seeindex{class category}{system category}
\index{category!creating}

Expand Down Expand Up @@ -767,7 +767,7 @@ \section{Saving and sharing Smalltalk code}
The yellow-button menu in the System Categories pane will give you the option to file out the whole of category \scat{SBE-Quinto}.
The resulting file is more or less human-readable, but is really intended for computers, not humans.
You can email this file to your friends, and they can file it into their own \squeak images using drag-and-drop.
\seeindex{saving code}{categories}
\seeindex{saving code}{file, filing out}
\seeindex{category!filing out}{file, filing out}
\seeindex{class!filing out}{file, filing out}
\seeindex{method!filing out}{file, filing out}
Expand Down
2 changes: 1 addition & 1 deletion QuickTour/QuickTour.tex
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ \section{The system browser}
You may have to scroll down to find it.
Now you will see in the fourth pane only methods related to printing.
\index{category!method}
\index{category!message|see method}
\index{category!message|see category, method}
\dothis{Select the \mthind{Object}{printString} method.}
Now we see in the bottom pane the source code of the \ct{printString} method, shared by all objects in the system (except those that override it).
Expand Down
2 changes: 1 addition & 1 deletion SUnit/SUnit.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ \chapter{SUnit}
\sunit was originally developed by Kent Beck and subsequently extended by Joseph Pelrine and others to incorporate the notion of a resource, which we will describe in \secref{resource}.
\index{Beck, Kent}
\index{Pelrine, Joseph}
\seeindex{resource}{test, resource}
\seeindex{resource}{TestResource, (class)}

The interest in testing and \ind{Test Driven Development} is not limited to \squeak or \st.
Automated testing has become a hallmark of the \ind{agile software development} movement, and any software developer concerned with improving software quality would do well to adopt it.
Expand Down
13 changes: 7 additions & 6 deletions Syntax/Syntax.tex
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ \section{Syntactic elements}
\seeindex{"" ""@{\textsf{"" ""}}}{comment}

\item[Temporary variable declaration.]
\index{temporary variable declaration}
Vertical bars \ct{| |} enclose the \subind{variable}{declaration} of one or more temporary variables in a method (and also in a block).
\seeindex{$\vert\ \vert$@{\textsf{$\vert\ \vert$}}}{temporary variable declaration}
\seeindex{variable declaration}{temporary variable declaration}
Expand Down Expand Up @@ -230,7 +231,7 @@ \section{Syntactic elements}
Primitives denote an invocation of a \ind{virtual machine} \ind{primitive.}
For instance, \ct{<primitive: 1>} is the VM primitive for \cmind{SmallInteger}{+}.
Any code following the primitive is executed only if the primitive fails.
\seeindex{< >}{\textsf{< >}}{pragma}
\seeindex{< >@\textsf{< >}}{pragma}

\item[Unary messages] consist of a single word (such as \ct{factorial}) sent to a receiver (like the number \ct{3}).
\index{message!unary}
Expand All @@ -257,9 +258,9 @@ \section{Syntactic elements}
\item[Sequences of statements.]
A period or full-stop (\ct{.}) is the \emph{statement} \emphsubind{statement}{separator}.
Putting a period between two expressions turns them into independent statements.
\seeindex{full stop}{statement separator}
\seeindex{period}{statement separator}
\seeindex{\ct{.}}{statement separator}
\seeindex{full stop}{statement, separator}
\seeindex{period}{statement, separator}
\seeindex{\ct{.}}{statement, separator}

\item[Cascades.]
Semicolons can be used to send a \emphind{cascade} of messages to a single receiver.
Expand Down Expand Up @@ -419,7 +420,7 @@ \section{Block syntax}
A \ind{block} is essentially an anonymous function.
A block is evaluated by sending it the message \mthind{BlockClosure}{value}.
The block answers the value of the last expression in its body unless there is an explicit return (with \ct{^}), in which case it does not answer any value.
\seeindex{value}{BlockClosure}
\seeindex{value}{BlockClosure, value}

\begin{code}{@TEST}
[1 + 2] value --> 3
Expand Down Expand Up @@ -589,7 +590,7 @@ \section{Primitives and pragmas}
bit manipulation (\mthind{Integer}{bitAnd:}, \mthind{Integer}{bitOr:}, \mthind{Integer}{bitShift:}),
pointer and integer arithmetic (\ct{+}, \ct{-}, \ct{<}, \ct{>}, \ct{*}, \ct{/ }, \ct{=}, \ct{==}, ...),
and array access (\mthind{Object}{at:}, \mthind{Object}{at:put:}).
\seeindex{new@{\ct{new}}}{\ct{Behavior>>>new}}
\seeindex{new@{\ct{new}}}{Behavior, new}
Primitives are invoked with the syntax \ct{<primitive: aNumber>}.
A method that invokes such a primitive may also include \st code, which will be evaluated \emph{only} if the primitive fails.
Expand Down
2 changes: 1 addition & 1 deletion common.tex
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
\newcommand{\ind}[1]{\index{#1}#1\xspace} % plain text
\newcommand{\subind}[2]{\index{#1!#2}#2\xspace} % show #2, subindex under #1
\newcommand{\emphind}[1]{\index{#1}\emph{#1}\xspace} % emph #1
\newcommand{\emphsubind}[2]{\index{#1!#2}\emph{#2}\xspace} % show emph #2, subindex inder #1
\newcommand{\emphsubind}[2]{\index{#1!#2}\emph{#2}\xspace} % show emph #2, subindex under #1
\newcommand{\scatind}[1]{\index{#1@\textsf{#1} (category)}\scat{#1}} % category
\newcommand{\protind}[1]{\index{#1@\textsf{#1} (protocol)}\prot{#1}} % protocol
% \newcommand{\clsind}[1]{\index{#1@\textsf{#1} (class)}\ct{#1}\xspace}
Expand Down

0 comments on commit b4c4d64

Please sign in to comment.