Skip to content

Commit 8aac772

Browse files
committed
Refactor colophon & preface
Separate files, more idiomatic markup
1 parent 5468002 commit 8aac772

File tree

4 files changed

+91
-77
lines changed

4 files changed

+91
-77
lines changed

Colophon.tex

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
\begin{footnotesize}
2+
\vspace*{\fill}
3+
\setlength{\parindent}{0pt}
4+
This book is available as a free download from:\\ \url{https://github.com/SquareBracketAssociates/NumericalMethods}.
5+
\bigskip
6+
7+
Copyright \copyright~2001, 2015 by Didier H. Besset.
8+
\bigskip
9+
10+
The contents of this book are protected under Creative Commons Attribution-ShareAlike 3.0 Unported license.
11+
\medskip
12+
13+
You are free:
14+
\begin{description}
15+
\item[to Share] --- to copy, distribute and transmit the work
16+
\item[to Remix] --- to adapt the work
17+
\end{description}
18+
\medskip
19+
20+
Under the following conditions:
21+
\begin{description}
22+
\item[Attribution.] You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
23+
\item[Share Alike.] If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license.
24+
\end{description}
25+
\begin{itemize}
26+
\item For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page:
27+
\url{creativecommons.org/licenses/by-sa/3.0/}
28+
\item Any of the above conditions can be waived if you get permission from the copyright holder.
29+
\item Nothing in this license impairs or restricts the author's moral rights.
30+
\end{itemize}
31+
\raisebox{-0.25cm}{\includegraphics[width=2cm]{Figures/CreativeCommons-BY-SA}}\quad
32+
\parbox{\textwidth}{
33+
Your fair dealing and other rights are in no way affected by the above.\\
34+
This is a human-readable summary of the Legal Code (the full license):\\
35+
\url{creativecommons.org/licenses/by-sa/3.0/legalcode}}
36+
\bigskip
37+
38+
Published by Square Bracket Associates, Switzerland.\\
39+
% ISBN 978-3-9523341-0-2\\
40+
First Edition, 2001
41+
\vspace*{\fill}
42+
\end{footnotesize}

DhbDefinitions.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
\usepackage{url}
2+
\makeatletter
3+
\def\url@leostyle{%
4+
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\sffamily}}}
5+
\makeatother
6+
% Now actually use the newly defined style.
7+
\urlstyle{leo}
8+
19
\usepackage{graphicx}
210
\def\etc{{\it etc}}
311
\def\eg{{\it e.g.}}

Preface.tex

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
\ifx\wholebook\relax\else
22
\documentclass[twoside]{book}
3-
\usepackage[active]{srcltx}
4-
%\usepackage[LY1]{em}
53
\input{DhbDefinitions}
64
\begin{document}
75
\fi
86

9-
\begin{titlepage}
10-
\hbox{\/}\vspace{12 ex} {\Huge \bf About this version}
117

12-
\vspace{10 ex}
8+
\chapter*{About this version}
9+
1310
We would like to thank Didier Besset for his great book and for his gift of the source and implementation to the community.
1411

1512

16-
This version is a version without the Java implementation and Java reference. Our goal is to make this book slimmer and easier to read. Check the full version available at \textsf{http://https://github.com/SquareBracketAssociates/\-ArchiveOONumericalMethod/tree/master/NumericalMethods} if you want to get both the Java and Smalltalk implementations.
13+
This is an abridged version of Didier's book, without the Java implementation and reference; our goal is to make the book slimmer and easier to read.
14+
The implementation presented in this book is part of the SciSmalltalk library.
15+
Both versions of the book are now maintained under open-source terms and are available at the following URLs:
1716

18-
The implementation presented in this book is part of the SciSmalltalk library available at
19-
\textsf{https://github.com/SergeStinckwich/SciSmalltalk}.
17+
\begin{itemize}
18+
\item Abridged version (this book)\\
19+
\url{https://github.com/SquareBracketAssociates/NumericalMethods}
20+
\item Archive of the original book, with code in both Java and Smalltalk\\
21+
\url{https://github.com/SquareBracketAssociates/ArchiveOONumericalMethods}
22+
\item SciSmalltalk library
23+
\url{https://github.com/SergeStinckwich/SciSmalltalk}
24+
\end{itemize}
2025

26+
Both this and the full version are maintained by St\'ephane Ducasse and Serge Stinckwich.
27+
Remember that we are all Charlie.
2128

22-
This version and the full version are maintained by S. Ducasse and S. Stinckwich.
23-
Remember that we are all Charly.
29+
\bigskip\noindent
30+
--- 28 January 2015
2431

25-
\vspace{5 ex}
26-
28 January 2015.
27-
\end{titlepage}
2832

2933

30-
\begin{titlepage}
31-
\hbox{\/}\vspace{12 ex} {\Huge \bf Preface}
34+
\chapter*{Preface}
3235

3336
\vspace{10 ex} \begin{flushright} {\sl Si je savais une chose
3437
utile \`{a} ma nation qui f\^{u}t ruineuse \`{a} une autre,\\je ne
@@ -38,12 +41,10 @@
3841
knew some trade useful to my country, but which would ruin
3942
another, I would not disclose it to my ruler, because I am a man
4043
before being French, because I belong to mankind while I am French
41-
only by a twist of fate.}\\ Charles de Montesquieux
44+
only by a twist of fate.}\\ Charles de Montesquieu
4245
\end{flushright}
4346

4447

45-
46-
4748
\vspace{8 ex} When I first encountered object-oriented
4849
programming I immediately became highly enthusiastic about it,
4950
mainly because of my mathematical inclination. After all I learned
@@ -95,7 +96,8 @@
9596
field of application and concentrate on the universal aspects of
9697
it.
9798

98-
\rubrique{Acknowledgements} The author wishes to express his
99+
\rubrique{Acknowledgements}%
100+
The author wishes to express his
99101
thanks to the many people with whom he had interactions about the
100102
object-oriented approach --- Smalltalk and Java in particular ---
101103
on the various electronic forums. One special person is Kent Beck
@@ -109,7 +111,7 @@
109111
inspiration for me and many other programmers with his series of
110112
books {\sl The Art of Computer Programming}, and for making this
111113
wonderful typesetting program \TeX. This present book was typeset
112-
with \TeX and \LaTeX.
114+
with \TeX{} and \LaTeX.
113115

114116
Furthermore, I would like to give credit to a few people without
115117
whom this present book would never have been published. First,
@@ -131,5 +133,5 @@
131133

132134
\vspace{5 ex}\relboxr{1}{Genolier, 11 April 2000}
133135

134-
\end{titlepage}
136+
135137
\ifx\wholebook\relax\else\end{document}\fi

WholeBook.tex

Lines changed: 18 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,33 @@
11
\documentclass[twoside]{book}
2-
\usepackage{url}
32

4-
\usepackage[active]{srcltx}
5-
%\usepackage[LY1]{fontenc} "cela change le printing du code et si on l'utilise le code est affiche en times normal"
6-
%\usepackage{listing}
73
\input{DhbDefinitions}
84
\let\wholebook=\relax
9-
%\renewcommand{\baselinestretch}{2} % to produce double-spaced reference document
10-
%\renewcommand{\psfig}[1]{{ }}% to suppress references to figures
11-
12-
\begin{document}
13-
\title{\LARGE \textbf{Object-Oriented Implementation of \linebreak Numerical Methods\linebreak
14-
An Introduction with Smalltalk}}
15-
\author{Didier H. Besset \\ Maintained by S. Ducasse and S. Stinckwich}
16-
\maketitle \pagenumbering{roman}
175

6+
\title{Object-Oriented Implementation \linebreak
7+
of Numerical Methods\linebreak
8+
An Introduction with Smalltalk}
9+
\author{Didier H. Besset \\
10+
Maintained by S. Ducasse and S. Stinckwich}
1811

19-
\makeatletter
20-
\def\url@leostyle{%
21-
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\sffamily}}}
22-
\makeatother
23-
% Now actually use the newly defined style.
24-
\urlstyle{leo}
12+
\begin{document}
13+
\frontmatter
14+
\maketitle
2515

26-
%=================================================================
27-
~ % force the vfill
28-
\vfill
29-
\begin{footnotesize}
30-
\setlength{\parindent}{0pt}
31-
This book is available as a free download from \url{https://github.com/SquareBracketAssociates/NumericalMethods}.\\[1cm]
3216

33-
Copyright \copyright~2001, 2015 by Didier H. Besset.\\[1cm]
17+
\input{Colophon}
3418

35-
The contents of this book are protected under Creative Commons Attribution-ShareAlike 3.0 Unported license.
3619

37-
\emph{You are free:}
38-
\begin{description}
39-
\item[to Share] \,---\, to copy, distribute and transmit the work
40-
\item[to Remix] \,---\, to adapt the work
41-
\end{description}
42-
\emph{Under the following conditions:}
43-
\begin{description}
44-
\item[Attribution.] You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
45-
\item[Share Alike.] If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license.
46-
\end{description}
47-
\begin{itemize}
48-
\item For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page:
49-
\url{creativecommons.org/licenses/by-sa/3.0/}
50-
\item Any of the above conditions can be waived if you get permission from the copyright holder.
51-
\item Nothing in this license impairs or restricts the author's moral rights.
52-
\end{itemize}
53-
\raisebox{-0.25cm}{\includegraphics[width=2cm]{Figures/CreativeCommons-BY-SA}}\quad
54-
\parbox{\textwidth}{
55-
Your fair dealing and other rights are in no way affected by the above.\\
56-
This is a human-readable summary of the Legal Code (the full license):\\
57-
\url{creativecommons.org/licenses/by-sa/3.0/legalcode}}\\[1cm]
58-
Published by Square Bracket Associates, Switzerland.\\
59-
% ISBN 978-3-9523341-0-2\\
60-
First Edition, 2001
61-
\end{footnotesize}
62-
\vfill
20+
\input{Preface} %no Java
21+
{\parskip 0pt
22+
\tableofcontents
23+
\listoffigures
24+
\listoftables
25+
% \listoflistings
26+
}
27+
\cleardoublepage
6328

29+
\mainmatter
6430

65-
\input{Preface} %no Java
66-
{\parskip 0pt \tableofcontents \listoffigures \listoftables
67-
%\listoflistings
68-
} \cleardoublepage\pagenumbering{arabic}
6931
\input{Introduction} % no java :)
7032
\input{Function} % no java :)
7133
\input{Interpolation} % no java :)

0 commit comments

Comments
 (0)