69
|
1 % Set html output type and how the pages will be organized; index=a,b,c means a
|
|
2 % column index, b depth partitioning per page, and if c is present and 'next',
|
|
3 % that next-links recurses.
|
|
4 % Use b=1 for outputting one big html page. b=2 would partition by sections, b=3
|
|
5 % by sections and subsections, and so on...
|
|
6 \Preamble{html,info,index=2,1,next,pic-tabular,charset="utf-8",p-width,pic-align}
|
|
7 % For manual partitioning we use b=1 above, then \CutAt
|
|
8 %\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
|
|
9 \CutAt{section}
|
|
10
|
|
11 %% Don't want TOC to be on own page.
|
|
12 %\ConfigureToc{likesubsubsection}{}{~}{}{ }
|
|
13
|
|
14 % Here goes stuff that should be *before* <head>...</head>
|
|
15 % Use it for configurations, no actual output.
|
|
16
|
|
17 \Configure{VERSION}{}
|
|
18 \Configure{DOCTYPE}{\HCode{<!DOCTYPE html>\Hnewline}}
|
0
|
19 \Configure{HTML}{\HCode{<html>\Hnewline}}{\HCode{\Hnewline</html>}}
|
69
|
20 \Configure{BODY}{\HCode{<body><div class="mainDiv">\Hnewline}}{\HCode{\Hnewline</div></body>}}
|
|
21
|
|
22 % Clear default header, define our custom one. Using @HEAD will make this be used on all pages generated.
|
0
|
23 \Configure{@HEAD}{}
|
|
24 \Configure{@HEAD}{\HCode{<meta http-equiv="content-type" content="text/html; charset=utf-8"/>\Hnewline}}
|
|
25 \Configure{@HEAD}{\HCode{<meta name="resource-type" content="document"/>\Hnewline}}
|
|
26 \Configure{@HEAD}{\HCode{<meta name="keywords" content="C, function, dynamic, call, calling, convention, VM, abstraction, closure"/>\Hnewline}}
|
|
27 \Configure{@HEAD}{\HCode{<meta name="distribution" content="global"/>\Hnewline}}
|
|
28 \Configure{@HEAD}{\HCode{<link rel="stylesheet" id="dyn-fonts-css" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin,latin-ext" type="text/css" media="all"/>\Hnewline}}
|
|
29 % should this really rely on online content (dyncall's .css) even for an offline build? @@@
|
|
30 \Configure{@HEAD}{\HCode{<link rel="stylesheet" href="http://dyncall.org/data/main.css" type="text/css" media="all"/>\Hnewline}}
|
69
|
31
|
|
32 %\ConfigureEnv{titlepage}
|
|
33 %{\ifvmode \IgnorePar\fi
|
|
34 % \EndP
|
|
35 % \HCode{<h1>}\IgnorePar }
|
|
36 %{\ifvmode \IgnorePar\fi
|
|
37 % \EndP \HCode{</h1>}}
|
|
38 %{}
|
|
39 %{}
|
|
40 %\ConfigureList{enumerate}
|
|
41 %{\HCode{<div>}}
|
|
42 %{\HCode{</div>}}
|
|
43 %{\HCode{<span class="mark">}}
|
|
44 %{\HCode{</span>} }
|
|
45
|
|
46 % Configure element translations.
|
|
47
|
|
48 % Sections (to include number, use \thesection)
|
|
49 \Configure{section} {} {} {\HCode{<h1>}} {\HCode{</h1>}}
|
|
50 \Configure{subsection} {} {} {\HCode{<h2>}} {\HCode{</h2>}}
|
|
51 \Configure{subsubsection} {} {} {\HCode{<h3>}} {\HCode{</h3>}}
|
0
|
52
|
|
53 %\DeclareMathSizes{12}{11}{7}{6}
|
69
|
54 %\DeclareMathSizes{10}{9}{5}{4}
|
0
|
55 %\DeclareMathSizes{11}{10}{6}{5}
|
|
56
|
69
|
57
|
|
58 \begin{document} % After this comes stuff that should be *in* <head>...</head>, however only for main generated page.
|
0
|
59
|
|
60 \EndPreamble
|