Skip to content

Commit

Permalink
Refactor colophon & preface
Browse files Browse the repository at this point in the history
Separate files, more idiomatic markup
  • Loading branch information
cdlm committed Jan 26, 2015
1 parent 5468002 commit 8aac772
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 77 deletions.
42 changes: 42 additions & 0 deletions Colophon.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
\begin{footnotesize}
\vspace*{\fill}
\setlength{\parindent}{0pt}
This book is available as a free download from:\\ \url{https://github.com/SquareBracketAssociates/NumericalMethods}.
\bigskip

Copyright \copyright~2001, 2015 by Didier H. Besset.
\bigskip

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

You are free:
\begin{description}
\item[to Share] --- to copy, distribute and transmit the work
\item[to Remix] --- to adapt the work
\end{description}
\medskip

Under the following conditions:
\begin{description}
\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).
\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.
\end{description}
\begin{itemize}
\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:
\url{creativecommons.org/licenses/by-sa/3.0/}
\item Any of the above conditions can be waived if you get permission from the copyright holder.
\item Nothing in this license impairs or restricts the author's moral rights.
\end{itemize}
\raisebox{-0.25cm}{\includegraphics[width=2cm]{Figures/CreativeCommons-BY-SA}}\quad
\parbox{\textwidth}{
Your fair dealing and other rights are in no way affected by the above.\\
This is a human-readable summary of the Legal Code (the full license):\\
\url{creativecommons.org/licenses/by-sa/3.0/legalcode}}
\bigskip

Published by Square Bracket Associates, Switzerland.\\
% ISBN 978-3-9523341-0-2\\
First Edition, 2001
\vspace*{\fill}
\end{footnotesize}
8 changes: 8 additions & 0 deletions DhbDefinitions.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
\usepackage{url}
\makeatletter
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\sffamily}}}
\makeatother
% Now actually use the newly defined style.
\urlstyle{leo}

\usepackage{graphicx}
\def\etc{{\it etc}}
\def\eg{{\it e.g.}}
Expand Down
44 changes: 23 additions & 21 deletions Preface.tex
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
\ifx\wholebook\relax\else
\documentclass[twoside]{book}
\usepackage[active]{srcltx}
%\usepackage[LY1]{em}
\input{DhbDefinitions}
\begin{document}
\fi

\begin{titlepage}
\hbox{\/}\vspace{12 ex} {\Huge \bf About this version}

\vspace{10 ex}
\chapter*{About this version}

We would like to thank Didier Besset for his great book and for his gift of the source and implementation to the community.


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.
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.
The implementation presented in this book is part of the SciSmalltalk library.
Both versions of the book are now maintained under open-source terms and are available at the following URLs:

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

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

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

\vspace{5 ex}
28 January 2015.
\end{titlepage}


\begin{titlepage}
\hbox{\/}\vspace{12 ex} {\Huge \bf Preface}
\chapter*{Preface}

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




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

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

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

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

\end{titlepage}

\ifx\wholebook\relax\else\end{document}\fi
74 changes: 18 additions & 56 deletions WholeBook.tex
Original file line number Diff line number Diff line change
@@ -1,71 +1,33 @@
\documentclass[twoside]{book}
\usepackage{url}

\usepackage[active]{srcltx}
%\usepackage[LY1]{fontenc} "cela change le printing du code et si on l'utilise le code est affiche en times normal"
%\usepackage{listing}
\input{DhbDefinitions}
\let\wholebook=\relax
%\renewcommand{\baselinestretch}{2} % to produce double-spaced reference document
%\renewcommand{\psfig}[1]{{ }}% to suppress references to figures

\begin{document}
\title{\LARGE \textbf{Object-Oriented Implementation of \linebreak Numerical Methods\linebreak
An Introduction with Smalltalk}}
\author{Didier H. Besset \\ Maintained by S. Ducasse and S. Stinckwich}
\maketitle \pagenumbering{roman}

\title{Object-Oriented Implementation \linebreak
of Numerical Methods\linebreak
An Introduction with Smalltalk}
\author{Didier H. Besset \\
Maintained by S. Ducasse and S. Stinckwich}

\makeatletter
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\sffamily}}}
\makeatother
% Now actually use the newly defined style.
\urlstyle{leo}
\begin{document}
\frontmatter
\maketitle

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

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

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

\emph{You are free:}
\begin{description}
\item[to Share] \,---\, to copy, distribute and transmit the work
\item[to Remix] \,---\, to adapt the work
\end{description}
\emph{Under the following conditions:}
\begin{description}
\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).
\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.
\end{description}
\begin{itemize}
\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:
\url{creativecommons.org/licenses/by-sa/3.0/}
\item Any of the above conditions can be waived if you get permission from the copyright holder.
\item Nothing in this license impairs or restricts the author's moral rights.
\end{itemize}
\raisebox{-0.25cm}{\includegraphics[width=2cm]{Figures/CreativeCommons-BY-SA}}\quad
\parbox{\textwidth}{
Your fair dealing and other rights are in no way affected by the above.\\
This is a human-readable summary of the Legal Code (the full license):\\
\url{creativecommons.org/licenses/by-sa/3.0/legalcode}}\\[1cm]
Published by Square Bracket Associates, Switzerland.\\
% ISBN 978-3-9523341-0-2\\
First Edition, 2001
\end{footnotesize}
\vfill
\input{Preface} %no Java
{\parskip 0pt
\tableofcontents
\listoffigures
\listoftables
% \listoflistings
}
\cleardoublepage

\mainmatter

\input{Preface} %no Java
{\parskip 0pt \tableofcontents \listoffigures \listoftables
%\listoflistings
} \cleardoublepage\pagenumbering{arabic}
\input{Introduction} % no java :)
\input{Function} % no java :)
\input{Interpolation} % no java :)
Expand Down

0 comments on commit 8aac772

Please sign in to comment.