Skip to content

Commit

Permalink
references 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Dec 10, 2024
1 parent af31867 commit 4dd9a7d
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 62 deletions.
23 changes: 0 additions & 23 deletions Part0-Preamble/1-ObjectStructure/figures/ObjectLayout2-ascii.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,3 @@
| | | |
32 +---------------+ 32 =+===============+
| | | |






















| |
Binary file modified Part0-Preamble/1-ObjectStructure/figures/ObjectLayout2.pdf
Binary file not shown.
15 changes: 15 additions & 0 deletions Part0-Preamble/1-ObjectStructure/figures/references4-ascii.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
,------------------.
| |
header | Vheader
-----------+---+---+---|---+---+---+---+---+---+---+---+---+---+---+---------
| | | sl | sl | sl | | | sl | sl |
+---+---+ + + +---+---+ + +
| | | ot | ot | ot | | | ot | ot |
+---+---+ + + +---+---+ + +
| | | 1 | 2 | 3 | | | 1 | 2 |
+---+---+ + + +---+---+ + +
| | | | | | | | | |
-----------+---+---+---+---+---+---+---+---+---+---+---|---+---+---+---------
^ |
| |
`-------------------------------------------'
Binary file not shown.
2 changes: 1 addition & 1 deletion Part0-Preamble/1-ObjectStructure/objectStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ An object `A` references an object `B` with an absolute pointer to `B`'s base he
Figure *@references@* shows two objects forming a cycle. Each object has a reference slot pointing to the other.
References point to the object base header.

![References to heap-allocated objects are pointers to an object's base header. %](figures/references3.pdf)
![References to heap-allocated objects are pointers to an object's base header. %](figures/references4.pdf)


### Immediate Objects
Expand Down
79 changes: 41 additions & 38 deletions _support/templates/latex/main.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
\usepackage{import}
\subimport{_support/latex/}{common.tex}

% to have the bod format
% normally common.tex already sets the pagelayout using \pagelayout{\bodpage}
\providecommand{\setuppage}{\bodpage}


%=================================================================
% Debug packages for page layout and overfull lines
% Remove the showtrims document option before printing
Expand All @@ -13,7 +18,6 @@
\usepackage[color=magenta,width=5mm]{_support/latex/overcolored}
\fi

\bodpage{}

% =================================================================
\title{«& title»}
Expand All @@ -30,6 +34,13 @@
% =================================================================
\begin{document}

\newpage
\thispagestyle{empty}
\mbox{}
\newpage
\thispagestyle{empty}
\mbox{}

% Title page and colophon on verso
\maketitle
\pagestyle{titlingpage}
Expand All @@ -38,65 +49,57 @@
\cleartoverso
{\small

Copyright 2017 by «& attribution».
Copyright 2024 by «& attribution».

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

You are \textbf{free}:
\begin{itemize}
\item to \textbf{Share}: to copy, distribute and transmit the work,
\item to \textbf{Remix}: to adapt the work,
\end{itemize}

Attribution-NonCommercial-NoDerivs
CC BY-NC-ND\\
You are free to:
\begin{description}
\item Share --- copy and redistribute the material in any medium or format
\end{description}

The licensor cannot revoke these freedoms as long as you follow the license terms.
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.
\item[Attribution.] --- You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
\item[NonCommercial.] --- You may not use the material for commercial purposes.
\item [NoDerivatives.] --- If you remix, transform, or build upon the material, you may not distribute the modified material.
\item [No additional restrictions.] --- You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
\end{description}

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{http://creativecommons.org/licenses/by-sa/3.0/}

Any of the above conditions can be waived if you get permission from
the copyright holder. Nothing in this license impairs or restricts the
author's moral rights.
\url{https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode}

\begin{center}
\includegraphics[width=0.2\textwidth]{_support/latex/sbabook/CreativeCommons-BY-SA.pdf}
\end{center}
Any of the above conditions can be waived if you get permission from
the copyright holder. Nothing in this license impairs or restricts the
author's moral rights.

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{http://creativecommons.org/licenses/by-sa/3.0/legalcode}
\begin{center}
\includegraphics[width=0.2\textwidth]{_support/latex/CreativeCommons-BY-NC-ND.pdf}
\end{center}

\vfill

% Publication info would go here (publisher, ISBN, cover design…)
Layout and typography based on the \textcode{sbabook} \LaTeX{} class by Damien
Pollet.
Keepers of the lighthouse\\
Édition : BoD - Books on Demand,\\
12/14 rond-point des Champs-Élysées,75008 Paris\\
Impression : Books on Demand GmbH, Norderstedt, Allemagne\\
ISBN: xxxxxx\\
Dépôt légal : xxxx\\
Layout and typography based on the \textcode{sbabook} \LaTeX{} class by Damien Pollet.
}


\frontmatter
\pagestyle{plain}

\tableofcontents*
\clearpage\listoffigures
%\clearpage\listoffigures

\mainmatter

«& content»

% lulu requires an empty page at the end. That's why I'm using
% \backmatter here.

\backmatter

% Index would go here
Expand Down

0 comments on commit 4dd9a7d

Please sign in to comment.