annotate doc/manual/manual_tex4ht.cfg @ 90:e932e6331f35

- manual improvements * html output improved * consistency in tables * little bit of rewording, typos - todo item added
author cslag
date Fri, 03 Jun 2016 02:40:13 +0200
parents 186af66ae67f
children 00fc2b9b4e3d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
1 %//////////////////////////////////////////////////////////////////////////////
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
2 %
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
3 % Copyright (c) 2015-2016 Tassilo Philipp <tphilipp@potion-studios.com>
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
4 %
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
5 % Permission to use, copy, modify, and distribute this software for any
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
6 % purpose with or without fee is hereby granted, provided that the above
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
7 % copyright notice and this permission notice appear in all copies.
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
8 %
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
9 % THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
10 % WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
11 % MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
12 % ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
13 % WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
14 % ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
15 % OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
16 %
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
17 %//////////////////////////////////////////////////////////////////////////////
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
18
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
19 % Set html output type and how the pages will be organized; index=a,b,c means a
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
20 % column index, b depth partitioning per page, and if c is present and 'next',
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
21 % that next-links recurses.
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
22 % Use b=1 for outputting one big html page. b=2 would partition by sections, b=3
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
23 % by sections and subsections, and so on...
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
24 \Preamble{html,info,index=2,1,pic-tabular,pic-align,charset="utf-8",p-width}
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
25 % For manual partitioning we use b=1 above, then \CutAt
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
26 %\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
27 \CutAt{section}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
28
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
29 %% Don't want TOC to be on own page.
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
30 %\ConfigureToc{likesubsubsection}{}{~}{}{ }
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
31
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
32 % Here goes stuff that should be *before* <head>...</head>
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
33 % Use it for configurations, no actual output.
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
34
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
35 \Configure{VERSION}{}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
36 \Configure{DOCTYPE}{\HCode{<!DOCTYPE html>\Hnewline}}
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37 \Configure{HTML}{\HCode{<html>\Hnewline}}{\HCode{\Hnewline</html>}}
71
edc2afc17aa0 - more html doc work
cslag
parents: 70
diff changeset
38 \Configure{BODY}{\HCode{\Hnewline<body>\Hnewline<div class="mainDiv">\Hnewline}}{\HCode{\Hnewline</div></body>}} % KEEP the body on it's own line, as it's used as a marker for postprocessing.
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
39
70
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
40 % TITLE+ is only on main page, other use section title. Prefix everything, though.
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
41 \Configure{TITLE}{\HCode{<title>}dyncall Manual - }{\HCode{</title>}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
42 \Configure{TITLE+}{Index}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
43
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
44 % Clear default header, define our custom one. Using @HEAD will make this be used on all pages generated.
82
186af66ae67f - html doc todo note
cslag
parents: 76
diff changeset
45 % @@@Ideally, this wouldn't be a copy&paste of the website's header, here. Such thing should be done in the website build, and this here a generic header (however, style is kinda needed).
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
46 \Configure{@HEAD}{}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
47 \Configure{@HEAD}{\HCode{<meta http-equiv="content-type" content="text/html; charset=utf-8"/>\Hnewline}}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
48 \Configure{@HEAD}{\HCode{<meta name="resource-type" content="document"/>\Hnewline}}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
49 \Configure{@HEAD}{\HCode{<meta name="keywords" content="C, function, dynamic, call, calling, convention, VM, abstraction, closure"/>\Hnewline}}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
50 \Configure{@HEAD}{\HCode{<meta name="distribution" content="global"/>\Hnewline}}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
51 \Configure{@HEAD}{\HCode{<link rel="stylesheet" id="dyn-fonts-css" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&amp;subset=latin,latin-ext" type="text/css" media="all"/>\Hnewline}}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
52 % should this really rely on online content (dyncall's .css) even for an offline build? @@@
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
53 \Configure{@HEAD}{\HCode{<link rel="stylesheet" href="http://dyncall.org/data/main.css" type="text/css" media="all"/>\Hnewline}}
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
54
76
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
55 % Image path prefix can be set here...
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
56 %\Configure{IMG}
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
57 %{\ht:special{t4ht=<img src="}}
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
58 %{\ht:special{t4ht=" alt="}}
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
59 %{" }
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
60 %{\ht:special{t4ht=" }}
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
61 %{\ht:special{t4ht=/>}}
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
62
70
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
63 % Make TOC display as nested "ul"s.
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
64 \Configure{tableofcontents} {}{\tocItem{0}}{}{}{}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
65 \ConfigureToc{section} {}{\tocItem{1}{\HCode{<li>}}}{}{}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
66 \ConfigureToc{subsection} {}{\tocItem{2}{\HCode{<li>}}}{}{}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
67 \ConfigureToc{subsubsection} {}{\tocItem{3}{\HCode{<li>}}}{}{}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
68
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
69 % Logic to open/close "ul"s correctly.
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
70 \newcount\c
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
71 \def\tocItem#1{%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
72 \loop
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
73 \ifnum \c<#1
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
74 \advance\c by 1
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
75 \HCode{<ul>}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
76 \else
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
77 \ifnum \c>#1
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
78 \advance\c by -1
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
79 \HCode{</li></ul>}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
80 \fi
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
81 \ifnum \c=#1
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
82 \ifnum #1>0 \HCode{</li>} \fi
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
83 \fi
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
84 \fi
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
85 \unless\ifnum \c=#1 \repeat
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
86 }
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
87
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
88 % Define layout of tables - for some reason tabular* renders fine
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
89 % when pic-tabular is *not* used. When it is, it converts tabular
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
90 % (without the asterisk) into pictures, but also changes the rendering
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
91 % of tabular*, which we then mend with the code below. Not sure if
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
92 % this is just a hack around a tex4ht bug, but it nicely lets us
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
93 % pick which table should be a picture or not.
76
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
94 % This means: use tabular for pictures, tabular* for text output. @@@ might want to abstract this into \htmlpic or so
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
95 \Configure{tabular}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
96 {\HCode{<table>}}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
97 {\HCode{</table>}}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
98 {\HCode{<tr>}} %{\HCode{<tr class="row-\HRow">}}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
99 {\HCode{</tr>}}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
100 {\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi >}}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
101 {\HCode{</td>}}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
102
90
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
103 % Remove hr-tags that tex4ht inserts by default in around floats (e.g. tables) and replace them with a background.
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
104 % Also remove hr-tags around figures, entirely.
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
105 \Configure{float}[]{\HCode{<div style="margin:1em;padding:0.5em;background:rgba(200,200,200,0.1);width:100\%;">}}{}{\HCode{</div>}}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
106 \ConfigureEnv{figure}{\HCode{}}{\HCode{}}{}{}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
107
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
108 %% Simplest possible table layout - do rest in css.
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
109 %\Configure{HBorder}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
110 % {<tr>}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
111 % {}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
112 % {</tr>}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
113 % {<tr>}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
114 % {}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
115 % {}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
116 % {</tr>}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
117 % {<tr>}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
118 % {}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
119 % {</tr>}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
120
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
121 % @@@ Did not get that below to work, and don't understand it, either.
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
122 % @@@ Default output is ok, so we're simply changing class name in
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
123 % @@@ instead of this postprocessing. See Makefile.
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
124 %% Listings, so that caption below isn't in same block
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
125 %\def\listingLineReset{\newcount\lstlineno}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
126 %\def\listingLine{\advance\lstlineno by 1}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
127 %\ConfigureEnv{lstlisting}{\listingLineReset\Tg<div class="ttDiv">}{\Tg</div>}{}{}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
128 %\Configure{listings}{}{}{}{\ifnum \lstlineno>0 \Tg<br> \fi \listingLine}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
129
73
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
130 % Make listing/table captions nicer. NOTE: the -0.5em might need to be adapted if the main css changes.@@@
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
131 \Configure{caption}
73
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
132 {\HCode{<div class="caption" style="margin:-0.5em 0;text-align:right;color:\#A0A0A0"><small>}}
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
133 {\HCode{<span class="id">}}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
134 {\HCode{</span>: <span class="content">}}
73
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
135 {\HCode{</span></small></div>}}
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
136
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
137 % All kinds of style setting for fonts, as we don't use the autogenerated
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
138 % css file, but dyncall's website one.
73
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
139 \Configure{texttt}{\Tg<span style="background-color:red">}{\Tg</span>}
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
140 \Configure{textrm}{\Tg<span style="background-color:red">}{\Tg</span>}
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
141 \Configure{textup}{\Tg<span style="background-color:red">}{\Tg</span>}
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
142 \Configure{textsl}{\Tg<span style="background-color:red">}{\Tg</span>}
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
143 \Configure{textsf}{\Tg<span style="background-color:red">}{\Tg</span>}
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
144 \Configure{textsc}{\Tg<span style="background-color:red">}{\Tg</span>}
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
145 \Configure{textit}{\Tg<i>}{\Tg</i>}
8326c5ced916 - doc cleanup and html work
cslag
parents: 72
diff changeset
146 \Configure{textbf}{\Tg<b>}{\Tg</b>}
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
147 \Configure{emph}{\Tg<em>}{\Tg</em>}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
148
76
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
149 % @@@ list of things that are still open:
7ca46969e0ad - tweaks in manual, mainly for html generation
cslag
parents: 73
diff changeset
150 % paragraph{xxx} - should probably be forced to always be on newline to reflect pdf
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
151
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
152 %\lstset{ language=C, basicstyle=\ttfamily, numbers=left,
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
153 %numberstyle=\tiny, numbersep=10pt, showstringspaces=false}
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
154
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
155 %http://www.itisnotoverengineering.com/2013/06/syntax-highlighting-with-tex4ht.html
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
156
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
157 % Simplest possible paragraphs
90
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
158 % @@@ this creates paragraphs around block level elements, which is not what we would like
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
159 % @@@ but it looks decent, except for the space in the float-element lr-corner
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
160 \Configure{HtmlPar}{\EndP\Tg<p>}{\EndP\Tg<p>}{\HCode{</p>\Hnewline}}{\HCode{</p>\Hnewline}}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
161 %\Configure{HtmlPar}{\EndP\HCode{}}{\EndP\HCode{}}{\HCode{\Hnewline}}{\HCode{\Hnewline}}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
162 %\Configure{HtmlPar}{\EndP\Tg<p>}{\EndP\HCode{}}{\HCode{</p>\Hnewline}}{\HCode{\Hnewline}}
e932e6331f35 - manual improvements
cslag
parents: 82
diff changeset
163 %\Configure{HtmlPar}{\EndP\HCode{}}{\EndP\Tg<p>}{\HCode{\Hnewline}}{\HCode{</p>\Hnewline}}
72
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
164
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
165
2b89d8497aad - html manual work
cslag
parents: 71
diff changeset
166
70
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
167 % On site navigation texts
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
168 \Configure{crosslinks}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
169 {}%left delimiter
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
170 {}%right delimiter
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
171 {next}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
172 {previous}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
173 {}%previous-tail
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
174 {}%front
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
175 {}%tail
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
176 {index}%up
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
177
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
178 % Which nav links to show
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
179 \Configure{crosslinks*}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
180 {prev}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
181 {up}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
182 {next}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
183 {}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
184
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
185 % What's around top and bottom links section
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
186 \Configure{crosslinks+}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
187 {\HCode{<div style="width:100\%;text-align:left"><div style="width:30\%;display:inline-block;text-align:left">}}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
188 {\HCode{</div></div><hr>}}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
189 {\HCode{<hr><div style="width:100\%;text-align:left"><div style="width:30\%;display:inline-block;text-align:left">}}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
190 {\HCode{</div></div>}}%
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
191
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
192 % Hacky - output div stuff before specific crosslinks, has to play together with crosslinks+, above
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
193 \Configure{crosslinks:next}{\HCode{</div><div style="width:30\%;display:inline-block;text-align:right">}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
194 \Configure{crosslinks:up} {\HCode{</div><div style="width:40\%;display:inline-block;text-align:center">}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
195
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
196
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
197 %\ConfigureEnv{titlepage}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
198 %{\ifvmode \IgnorePar\fi
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
199 % \EndP
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
200 % \HCode{<h1>}\IgnorePar }
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
201 %{\ifvmode \IgnorePar\fi
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
202 % \EndP \HCode{</h1>}}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
203 %{}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
204 %{}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
205 %\ConfigureList{enumerate}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
206 %{\HCode{<div>}}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
207 %{\HCode{</div>}}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
208 %{\HCode{<span class="mark">}}
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
209 %{\HCode{</span>} }
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
210
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
211 % Configure element translations.
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
212
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
213 % Sections (to include number, use \thesection)
70
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
214 \Configure{section} {} {} {\HCode{<h1>}} {\HCode{</h1>}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
215 \Configure{likesection} {} {} {\HCode{<h1>}} {\HCode{</h1>}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
216 \Configure{subsection} {} {} {\HCode{<h2>}} {\HCode{</h2>}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
217 \Configure{likesubsection} {} {} {\HCode{<h2>}} {\HCode{</h2>}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
218 \Configure{subsubsection} {} {} {\HCode{<h3>}} {\HCode{</h3>}}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
219 \Configure{likesubsubsection} {} {} {\HCode{<h3>}} {\HCode{</h3>}}
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
220
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
221 %\DeclareMathSizes{12}{11}{7}{6}
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
222 %\DeclareMathSizes{10}{9}{5}{4}
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
223 %\DeclareMathSizes{11}{10}{6}{5}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
224
69
43675cb378ce - work on html doc generation
cslag
parents: 0
diff changeset
225
70
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
226 \begin{document}
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
227
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
228 % Add here stuff that should be *in* <head>...</head>, however only for main generated page.
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
229
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
230 \EndPreamble
70
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
231
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
232 % vim: ft=tex
33c333ec5ad2 - progress on html doc generation
cslag
parents: 69
diff changeset
233