Mercurial > pub > dyncall > dyncall
view 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 |
line wrap: on
line source
% Set html output type and how the pages will be organized; index=a,b,c means a % column index, b depth partitioning per page, and if c is present and 'next', % that next-links recurses. % Use b=1 for outputting one big html page. b=2 would partition by sections, b=3 % by sections and subsections, and so on... \Preamble{html,info,index=2,1,next,pic-tabular,charset="utf-8",p-width,pic-align} % For manual partitioning we use b=1 above, then \CutAt %\CutAt{subsubsection,subsection,likesubsection,section,likesection,part} \CutAt{section} %% Don't want TOC to be on own page. %\ConfigureToc{likesubsubsection}{}{~}{}{ } % Here goes stuff that should be *before* <head>...</head> % Use it for configurations, no actual output. \Configure{VERSION}{} \Configure{DOCTYPE}{\HCode{<!DOCTYPE html>\Hnewline}} \Configure{HTML}{\HCode{<html>\Hnewline}}{\HCode{\Hnewline</html>}} \Configure{BODY}{\HCode{<body><div class="mainDiv">\Hnewline}}{\HCode{\Hnewline</div></body>}} % Clear default header, define our custom one. Using @HEAD will make this be used on all pages generated. \Configure{@HEAD}{} \Configure{@HEAD}{\HCode{<meta http-equiv="content-type" content="text/html; charset=utf-8"/>\Hnewline}} \Configure{@HEAD}{\HCode{<meta name="resource-type" content="document"/>\Hnewline}} \Configure{@HEAD}{\HCode{<meta name="keywords" content="C, function, dynamic, call, calling, convention, VM, abstraction, closure"/>\Hnewline}} \Configure{@HEAD}{\HCode{<meta name="distribution" content="global"/>\Hnewline}} \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}} % should this really rely on online content (dyncall's .css) even for an offline build? @@@ \Configure{@HEAD}{\HCode{<link rel="stylesheet" href="http://dyncall.org/data/main.css" type="text/css" media="all"/>\Hnewline}} %\ConfigureEnv{titlepage} %{\ifvmode \IgnorePar\fi % \EndP % \HCode{<h1>}\IgnorePar } %{\ifvmode \IgnorePar\fi % \EndP \HCode{</h1>}} %{} %{} %\ConfigureList{enumerate} %{\HCode{<div>}} %{\HCode{</div>}} %{\HCode{<span class="mark">}} %{\HCode{</span>} } % Configure element translations. % Sections (to include number, use \thesection) \Configure{section} {} {} {\HCode{<h1>}} {\HCode{</h1>}} \Configure{subsection} {} {} {\HCode{<h2>}} {\HCode{</h2>}} \Configure{subsubsection} {} {} {\HCode{<h3>}} {\HCode{</h3>}} %\DeclareMathSizes{12}{11}{7}{6} %\DeclareMathSizes{10}{9}{5}{4} %\DeclareMathSizes{11}{10}{6}{5} \begin{document} % After this comes stuff that should be *in* <head>...</head>, however only for main generated page. \EndPreamble