https://wiki.contextgarden.net/index.php?title=Theory_book_style&feed=atom&action=history
Theory book style - Revision history
2024-03-29T04:44:19Z
Revision history for this page on the wiki
MediaWiki 1.34.1
https://wiki.contextgarden.net/index.php?title=Theory_book_style&diff=12857&oldid=prev
PChott at 10:37, 11 February 2011
2011-02-11T10:37:51Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 10:37, 11 February 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l339" >Line 339:</td>
<td colspan="2" class="diff-lineno">Line 339:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></texcode></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></texcode></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Sample documents]]</ins></div></td></tr>
</table>
PChott
https://wiki.contextgarden.net/index.php?title=Theory_book_style&diff=7461&oldid=prev
Thomas: Some minor adjustments from the copy editor
2007-03-11T11:39:59Z
<p>Some minor adjustments from the copy editor</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 11:39, 11 March 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l70" >Line 70:</td>
<td colspan="2" class="diff-lineno">Line 70:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% Definitinos for the different headers. I use chapter, section, and subsection</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% Definitinos for the different headers. I use chapter, section, and subsection</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% and "title" for the acknowledgements because they should not be included in the TOC</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% and "title" for the acknowledgements because they should not be included in the TOC</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">% The publisher wanted the chapter headings centered and split over two lines:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">\define[2]\MyChapterCommand{\startalignment[middle]\framed[frame=off]{\vbox{\headtext{chapter} #1\blank[0*small]#2}}\stopalignment}</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\setuphead[chapter][page=yes,</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\setuphead[chapter][page=yes,</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>header=empty,</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"> </ins>header=empty,</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>style=\bfc,</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"> command=\MyChapterCommand,</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>number=yes,</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"> </ins>style=\bfc,</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> align=middle,</del></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"> </ins>number=yes,</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>before={\strut\blank[line]},</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"> </ins>before={\strut\blank[line]},</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>after={\blank[4*line]}]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"> </ins>after={\blank[4*line]}]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>\<del class="diffchange diffchange-inline">setuplabeltext</del>[chapter=<del class="diffchange diffchange-inline">{{},{.}}</del>]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>\<ins class="diffchange diffchange-inline">setupheadtext</ins>[chapter=<ins class="diffchange diffchange-inline">Chapter</ins>]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\setuphead[title][page=yes,</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\setuphead[title][page=yes,</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l295" >Line 295:</td>
<td colspan="2" class="diff-lineno">Line 299:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>%%% CUSTOM ENVIRONMENTS %%%%%%%%%%%%%%%%%%%%%%%</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>%%% CUSTOM ENVIRONMENTS %%%%%%%%%%%%%%%%%%%%%%%</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">% I used tikz for one picture with arrows (its default arrows are nicer than the metapost ones)</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">\usemodule[tikz]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">\usetikzlibrary[arrows,snakes,backgrounds]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% the Greek module with Monotype Porson as font, scaled just a bit</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% the Greek module with Monotype Porson as font, scaled just a bit</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l314" >Line 314:</td>
<td colspan="2" class="diff-lineno">Line 323:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\define\textbar{\getglyph{Serif}{\char124}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\define\textbar{\getglyph{Serif}{\char124}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>% <del class="diffchange diffchange-inline">This is to prevent empty pages at </del>the <del class="diffchange diffchange-inline">end of blocks.</del></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>% <ins class="diffchange diffchange-inline">I had only four or five tables, so I wanted them numbered across </ins>the <ins class="diffchange diffchange-inline">entire book</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>\<del class="diffchange diffchange-inline">setupsectionblock</del>[<del class="diffchange diffchange-inline">frontpart][page</del>=<del class="diffchange diffchange-inline">no]</del></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>\<ins class="diffchange diffchange-inline">setupcaptions</ins>[<ins class="diffchange diffchange-inline">headstyle=italic,style</ins>=<ins class="diffchange diffchange-inline">{</ins>\<ins class="diffchange diffchange-inline">switchtobodyfont</ins>[\<ins class="diffchange diffchange-inline">SSize</ins>]<ins class="diffchange diffchange-inline">},way</ins>=<ins class="diffchange diffchange-inline">bytext,stopper</ins>=]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>\<del class="diffchange diffchange-inline">setupsectionblock[bodypart]</del>[<del class="diffchange diffchange-inline">page=no]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>\<del class="diffchange diffchange-inline">setupsectionblock[appendix</del>]<del class="diffchange diffchange-inline">[page</del>=<del class="diffchange diffchange-inline">no]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">\setupsectionblock[backpart][page</del>=<del class="diffchange diffchange-inline">no</del>]</div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">% I had only four or five tables, so I wanted them numbered across the entire book</del></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">\setupreferencing[partnumber=no]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">\setupcaptions[headstyle=normal</del>,<del class="diffchange diffchange-inline">style={\switchtobodyfont[\SSize]},way=bytext,stopper=:]</del></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">% In the table of contents</ins>, <ins class="diffchange diffchange-inline">I wanted tabular numerals</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>\<del class="diffchange diffchange-inline">setupreferencing</del>[<del class="diffchange diffchange-inline">partnumber</del>=<del class="diffchange diffchange-inline">no</del>]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>\<ins class="diffchange diffchange-inline">setuplist</ins>[<ins class="diffchange diffchange-inline">chapter,section][pagecommand</ins>=<ins class="diffchange diffchange-inline">\TNum</ins>]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% and finally, indenting</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% and finally, indenting</div></td></tr>
</table>
Thomas
https://wiki.contextgarden.net/index.php?title=Theory_book_style&diff=6689&oldid=prev
Thomas: Fixed typo
2006-10-23T08:03:12Z
<p>Fixed typo</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 08:03, 23 October 2006</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l54" >Line 54:</td>
<td colspan="2" class="diff-lineno">Line 54:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% it's called in this form: \index[imp::]{someword}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>% it's called in this form: \index[imp::]{someword}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>\<del class="diffchange diffchange-inline">defineregister</del>[index][imp][pagestyle=bold]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>\<ins class="diffchange diffchange-inline">setupregister</ins>[index][imp][pagestyle=bold]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div></td></tr>
</table>
Thomas
https://wiki.contextgarden.net/index.php?title=Theory_book_style&diff=6687&oldid=prev
Thomas at 14:04, 22 October 2006
2006-10-22T14:04:53Z
<p></p>
<p><b>New page</b></p><div>This is the style for a book on literary theory that I'm publishing with Blackwell. It will hopefully appear in spring 2007. The environment is rather long and evolved; perhaps it is useful to beginners. <br />
<br />
<texcode><br />
% first, the most basic stuff: input regime, font encoding, language<br />
<br />
\enableregime[utf]<br />
<br />
\setupencoding[default=texnansi]<br />
<br />
\setupbodyfontenvironment[default][em=italic]<br />
<br />
\mainlanguage[en]<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% PAPERSIZE, MARGINS, SETUP %%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% the book uses a paper size of 6 in x 9 in which I typeset on A4 paper<br />
<br />
\definepapersize[theory][width=6in,height=9in]<br />
<br />
\setuppapersize[theory][A4]<br />
<br />
% for copy editing, I added line numbers in the margin<br />
<br />
\setupcolors[state=start]<br />
<br />
\setuplinenumbering[color=red,style=\tt\tfxx,step=1,location=inmargin]<br />
<br />
% margins etc.<br />
<br />
\setuplayout[location=middle,<br />
marking=off,<br />
topspace=1.8cm,<br />
backspace=1.6cm,<br />
height=fit,<br />
width=fit,<br />
rightmargin=2cm,<br />
leftmargin=2cm,<br />
header=1cm,<br />
footer=.1cm,<br />
setup=strict,<br />
grid=yes]<br />
<br />
\def\defaultwidowpenalty{0}<br />
<br />
\def\defaultclubpenalty{0}<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% REGISTERS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% this is a special index: "important" references will have a bold page number,<br />
% it's called in this form: \index[imp::]{someword}<br />
<br />
\defineregister[index][imp][pagestyle=bold]<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% PAGENUMBERING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
\setuppagenumbering[alternative=doublesided,location=]<br />
<br />
\setuppagenumber[number=5]<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% HEADERS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% Definitinos for the different headers. I use chapter, section, and subsection<br />
% and "title" for the acknowledgements because they should not be included in the TOC<br />
<br />
\setuphead[chapter][page=yes,<br />
header=empty,<br />
style=\bfc,<br />
number=yes,<br />
align=middle,<br />
before={\strut\blank[line]},<br />
after={\blank[4*line]}]<br />
<br />
\setuplabeltext[chapter={{},{.}}]<br />
<br />
\setuphead[title][page=yes,<br />
header=empty,<br />
style=\bfc,<br />
align=middle,<br />
before={\strut\blank[line]},<br />
after={\blank[4*line]}]<br />
<br />
\setuphead[section][page=no,<br />
style=\tfa,<br />
align=right,<br />
number=no,<br />
before={\blank[line]},<br />
after={\blank[line]}]<br />
<br />
\setuphead[subsection][page=no,<br />
style=\it,<br />
align=right,<br />
number=no,<br />
before={\blank[line]},<br />
after={\blank[line]}]<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% BIBLIOGRAPHY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% Very long section to set up the bibliographic references and the style of the \cite<br />
% commands (I use numbered references).<br />
<br />
\usemodule[bib]<br />
<br />
\setupbibtex[database={biblio}]<br />
<br />
\setupcite<br />
[num]<br />
[pubsep={, },<br />
lastpubsep={ and },<br />
compress=yes,<br />
inbetween={--},<br />
left={[},<br />
right={]}]<br />
<br />
\setupcite<br />
[year]<br />
[pubsep={, },<br />
lastpubsep={ and },<br />
compress=yes,<br />
inbetween={},<br />
left={(},<br />
right={)}]<br />
<br />
\setupcite<br />
[authoryears]<br />
[pubsep={, },<br />
lastpubsep={ and },<br />
compress=yes,<br />
inbetween={ },<br />
left={(},<br />
right={)}]<br />
<br />
\setupcite<br />
[key,number,page,short,type,doi]<br />
[pubsep={, },<br />
lastpubsep={ and },<br />
compress=no,<br />
inbetween={ },<br />
left={[},<br />
right={]}]<br />
<br />
\def\bracketed#1{\hbox to 20pt{\hfill [\TNum{#1}]}}<br />
<br />
\setuppublications<br />
[sorttype=bbl,<br />
autohang=no,<br />
refcommand=num,<br />
criterium=all,<br />
numbering=bib,<br />
numbercommand=\bracketed]<br />
<br />
\def\tasinvertedauthor#1#2#3#4#5%<br />
{#3%<br />
\bibdoif{#1}{\bibalternative{surnamesep}#1\unskip}%<br />
\bibdoifelse{#2}{\bibalternative{vonsep}#2\unskip}{\unskip}%<br />
\bibdoifelse{#5}{\bibalternative{juniorsep}#5\unskip}{\unskip}%<br />
}<br />
<br />
\setuppublicationlist<br />
[width=24pt,<br />
maybeyear=off,<br />
artauthor=\tasinvertedauthor,<br />
editor=\tasinvertedauthor,<br />
author=\tasinvertedauthor,<br />
namesep={, },<br />
lastnamesep={, and },<br />
finalnamesep={, and },<br />
firstnamesep={, },<br />
juniorsep={, },<br />
vonsep={ },<br />
surnamesep={, },<br />
authoretallimit=5,<br />
editoretallimit=5,<br />
artauthoretallimit=5,<br />
authoretaldisplay=5,<br />
editoretaldisplay=5,<br />
artauthoretaldisplay=5,<br />
authoretaltext={ et al.},<br />
editoretaltext={ et al.},<br />
artauthoretaltext={ et al.},<br />
distance=3pt]<br />
<br />
\newif\ifeditedbook<br />
\setuppublicationlayout[book]{%<br />
\insertauthors{}{: }{\inserteditors{}{, editor%<br />
\ifnum\getvalue{editor@num}> 1 s\fi<br />
\ \global\editedbooktrue <br />
\unskip: }{\unskip}}%<br />
\inserttitle{\bgroup\it }{\/\egroup}{}%<br />
\insertseries{ (}{)}{}%<br />
\insertedition{, }{\insertmonth{}{}{} edn. }{, }%<br />
\insertcity{}{: }{}%<br />
\insertpubname{}{, }{}%<br />
\insertpubyear{}{}{}%<br />
\insertnote{ [}{].}{.}%<br />
}<br />
<br />
\setuppublicationlayout[article]{%<br />
\insertartauthors{}{: }{\insertthekey{}{ }{}}%<br />
\insertarttitle{\bgroup ``}{\egroup,'' }{}%<br />
\insertjournal{\bgroup \it}{\egroup}{\insertcrossref{in }{}{}}%<br />
\insertvolume{ }{}{}%<br />
\insertpubyear{ (}{) }{\unskip.}%<br />
\insertpages{}{\insertnote{ [}{].}{.}}{.}%<br />
\insertcomment{[}{].}{}%<br />
}<br />
<br />
\setuppublicationlayout[incollection]{%<br />
\insertartauthors{}{: }{\insertthekey{}{. }{}}%<br />
\insertarttitle{\bgroup ``}{\egroup,'' }{}%<br />
\insertcrossref{in }{}{}%<br />
\insertpages{, }{}{}%<br />
\insertnote{ [}{].}{.}%<br />
}<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% CROPMARKS & VISUAL AIDS %%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% during the copy-editing and production phase, I need to add some tools for visual debugging.<br />
% They were of course commented out for the final run.<br />
<br />
% \usemodule[t-crop][Mark=Camera,Info=yes] % this is a custom module I wrote myself<br />
<br />
% \showgrid<br />
<br />
% \showframe<br />
<br />
% \showsetups<br />
<br />
% \showlayout<br />
<br />
% \version[temporary]<br />
<br />
% \enablemode[transdraft] % this mode is defined later<br />
<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% FONTS & SIZES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% first we define our Normal Size and our Small Size<br />
<br />
\define\NSize{11pt}<br />
\define\SSize{9.5pt}<br />
<br />
\starttypescript [serif] [default] [size]<br />
\definebodyfont [\NSize,\SSize] [rm] [default]<br />
\stoptypescript<br />
<br />
% My custom typescripts for the font Garamond Premier Pro from Adobe. <br />
<br />
\usetypescriptfile[type-garmprem]<br />
\usetypescript[AGaramondPrem] [texnansi]<br />
\usetypescript[AGaramondPremcpsp] [texnansi]<br />
\usetypescript[AGaramondPrempnum] [texnansi]<br />
\setupbodyfont[MyAGaramondPrempnum,\NSize]<br />
<br />
% this switches between proportional numbers (for normal bodytext) and tabular numbers<br />
% (for tables, bibliography etc.)<br />
<br />
\define\PNum{\switchtobodyfont[MyAGaramondPrempnum]}<br />
\define\TNum{\switchtobodyfont[MyAGaramondPrem]}<br />
<br />
\setupinterlinespace[line=3.1ex]<br />
<br />
% I had some (very few) Metapost pictures and wanted of course to use the same font.<br />
<br />
\startMPenvironment<br />
\usetypescriptfile[type-garmprem]<br />
\usetypescript[AGaramondPrempnum] [texnansi]<br />
\setupbodyfont[MyAGaramondPrempnum,11pt]<br />
\stopMPenvironment<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% MODE FOR COPY-EDITING %%%%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% double-spaced for copy-editing<br />
<br />
\startmode[transdraft]<br />
\setupinterlinespace[line=24pt]<br />
\stopmode<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%%% CUSTOM ENVIRONMENTS %%%%%%%%%%%%%%%%%%%%%%%<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
<br />
% the Greek module with Monotype Porson as font, scaled just a bit<br />
<br />
\usemodule[t-ancientgreek][font=GreekPorson,scale=1.03]<br />
<br />
% a very nice symbol from Garamond Premier Pro for unnumbered itemizations<br />
<br />
\definesymbol[8][{\getglyph{orn-GaramondPremrPro}{6}}]<br />
<br />
% custom definitions for unnumbered and numbered lists<br />
<br />
\define\myitem{\setupitemize[1][atmargin][alignment=left]\startitemize[8,packed]}<br />
<br />
\define\mynumber{\setupitemize[1][stopper={}]\startitemize[n,packed]}<br />
<br />
% textbar doesn't seem to have a name in the texnansi-encoding?<br />
<br />
\define\textbar{\getglyph{Serif}{\char124}}<br />
<br />
% This is to prevent empty pages at the end of blocks.<br />
<br />
\setupsectionblock[frontpart][page=no]<br />
\setupsectionblock[bodypart][page=no]<br />
\setupsectionblock[appendix][page=no]<br />
\setupsectionblock[backpart][page=no]<br />
<br />
% I had only four or five tables, so I wanted them numbered across the entire book<br />
<br />
\setupcaptions[headstyle=normal,style={\switchtobodyfont[\SSize]},way=bytext,stopper=:]<br />
<br />
\setupreferencing[partnumber=no]<br />
<br />
% and finally, indenting<br />
<br />
\setupindenting[1.5em]<br />
\setupindenting[yes]<br />
<br />
</texcode></div>
Thomas