comparison doc/manual/manual_tex4ht.cfg @ 69:43675cb378ce

- work on html doc generation
author cslag
date Sun, 06 Mar 2016 16:28:01 +0100
parents 3e629dc19168
children 33c333ec5ad2
comparison
equal deleted inserted replaced
68:b36a2fe30602 69:43675cb378ce
1 \Preamble{xhtml,index=2,2,next,pic-tabular,charset="utf-8",p-width,pic-align} 1 % Set html output type and how the pages will be organized; index=a,b,c means a
2 \Configure{VERSION}{} 2 % column index, b depth partitioning per page, and if c is present and 'next',
3 \Configure{VERSION}{} 3 % that next-links recurses.
4 \Configure{DOCTYPE}{\HCode{<!DOCTYPE html>\Hnewline}} 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}}
5 \Configure{HTML}{\HCode{<html>\Hnewline}}{\HCode{\Hnewline</html>}} 19 \Configure{HTML}{\HCode{<html>\Hnewline}}{\HCode{\Hnewline</html>}}
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.
6 \Configure{@HEAD}{} 23 \Configure{@HEAD}{}
7 \Configure{@HEAD}{\HCode{<meta http-equiv="content-type" content="text/html; charset=utf-8"/>\Hnewline}} 24 \Configure{@HEAD}{\HCode{<meta http-equiv="content-type" content="text/html; charset=utf-8"/>\Hnewline}}
8 \Configure{@HEAD}{\HCode{<meta name="resource-type" content="document"/>\Hnewline}} 25 \Configure{@HEAD}{\HCode{<meta name="resource-type" content="document"/>\Hnewline}}
9 \Configure{@HEAD}{\HCode{<meta name="keywords" content="C, function, dynamic, call, calling, convention, VM, abstraction, closure"/>\Hnewline}} 26 \Configure{@HEAD}{\HCode{<meta name="keywords" content="C, function, dynamic, call, calling, convention, VM, abstraction, closure"/>\Hnewline}}
10 \Configure{@HEAD}{\HCode{<meta name="distribution" content="global"/>\Hnewline}} 27 \Configure{@HEAD}{\HCode{<meta name="distribution" content="global"/>\Hnewline}}
11 \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}} 28 \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}}
12 % should this really rely on online content (dyncall's .css) even for an offline build? @@@ 29 % should this really rely on online content (dyncall's .css) even for an offline build? @@@
13 \Configure{@HEAD}{\HCode{<link rel="stylesheet" href="http://dyncall.org/data/main.css" type="text/css" media="all"/>\Hnewline}} 30 \Configure{@HEAD}{\HCode{<link rel="stylesheet" href="http://dyncall.org/data/main.css" type="text/css" media="all"/>\Hnewline}}
14 \Configure{@HEAD}{\HCode{<title>dyncall.org - dyncall Manual</title>\Hnewline}} 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>}}
15 52
16 %\DeclareMathSizes{12}{11}{7}{6} 53 %\DeclareMathSizes{12}{11}{7}{6}
17 %\DeclareMathSizes{10}{9}{5}{4} 54 %\DeclareMathSizes{10}{9}{5}{4}
18 %\DeclareMathSizes{11}{10}{6}{5} 55 %\DeclareMathSizes{11}{10}{6}{5}
19 56
20 \begin{document} 57
58 \begin{document} % After this comes stuff that should be *in* <head>...</head>, however only for main generated page.
21 59
22 \EndPreamble 60 \EndPreamble