File: htFixes.cfg

package info (click to toggle)
stellarium 24.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 911,396 kB
  • sloc: ansic: 317,377; cpp: 204,602; xml: 48,590; javascript: 26,348; python: 1,254; perl: 1,108; sh: 207; makefile: 190; pascal: 169
file content (126 lines) | stat: -rw-r--r-- 4,437 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
% Part of Stellarium User Guide


%\Preamble{xhtml,2,next,index=3,fn-in,info,charset=utf-8} 
\Preamble{xhtml,2,next,index=3,fn-in,info} % This line can include all options from the htlatex or tex4ht command line when that only gives the .cfg file name.
%configuration options or extra packages to load before \begin{document}
\makeatletter

% Fix a deficiency in tabu package when processed with htlatex.
% Hint from https://tex.stackexchange.com/questions/222562/tabu-and-tabularx-compatibility-for-htlatex-tex4ht-and-migration-between-tabu
%\let\originaltabu\tabu
%\def\tabu#1#{%
%  \setbox\z@=\hbox#1{}%
%  \ifdim\wd\z@=\z@
%    \expandafter\@firstoftwo
%  \else
%    \expandafter\@secondoftwo
%  \fi
%  {\originaltabu}%
%  {\let\endtabu\endtabularx\tabularx{\wd\z@}}%
%}



% Strange error after activating biber: http://tug.org/pipermail/tex4ht/2010q1/000031.html
% Unfortunately it does not seem to help.
% \let\blx at resetpuncthook\@empty
% \let\blx at csq@ifkernmark\@empty


% See tutorial on these Configure+Css lines at https://github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial

% default makes bad icon buttons. If this does not solve, create dedicated formatting instructions.
% This is solution 2 from http://michal-h21.github.io/src4ht/tex4ht-infose2.html
% However, this creates a break at end of each fbox, i.e. after every button.
%\Configure{fbox}
%	{\HCode{<table cellspacing="0pt" border="1"><tr><td>}\bgroup \fboxrule=0pt}
%	{\egroup\HCode{</td></tr></table>}}







% GZ This taken from % https://tex.stackexchange.com/questions/317686/trouble-building-a-site-with-frames-using-tex4ht

\Configure{tableofcontents*}{part,likepart,chapter,likechapter,section,likesection,subsection,likesubsection}

\Configure{TITLE}{\HCode{<title>}\special{t4ht@[}}{\special{t4ht@]}SUGO (Stellarium User Guide Online)\HCode{</title>\Hnewline}}
%\Configure{@HEAD}{\HCode{<title>Stel SUB</title>\Hnewline}}
\Configure{@HEAD}{\HCode{<link rel="profile" href="http://stellarium.org" />\Hnewline}}
\Configure{@HEAD}{\HCode{<link rel="shortcut icon"  href="css/images/favicon.ico" />\Hnewline}}

\let\Title\@empty
\let\Author\@empty
\let\Date\@empty
\def\title#1{\gdef\@title{#1}
\immediate\write\@auxout{\string\gdef\string\Title{#1}}}
\def\author#1{\gdef\@author{#1}
\immediate\write\@auxout{\string\gdef\string\Author{#1}}}
\def\date#1{\gdef\@date{#1}
\immediate\write\@auxout{\string\gdef\string\Date{#1}}}


%% If we ever want a frameset, continue playing here and add "frames" to the tex4ht options.
%\Configure{BODY}
%{\Tg<a id="title"/>%
%  \HorFrames{*,3*}\Frame{s1}\Frame[ name="f2"]{s2}
%  \NoFrames
%  \PushStack\eBody{}
%  \SubConfig
%
%  \HPage[p1]{hello}\Link{}{s1}\EndLink
%  \bgroup
% 
%   \HPage[p1]{hello}\Link{}{s1}\EndLink
%    \bgroup
%    \Tg<span class="likechapterToc" >
%    \Tg<a target="f2" href="\jobname4.html\#s2" name="">\Title\Tg</a>
%    \Tg</span>\Tg<br />
%    \Tg<span class="likechapterToc" >
%    \Tg<a target="f2" href="\jobname4.html\#s2" name="">\Author\Tg</a>
%    \Tg</span>\Tg<br />
%    \Tg<span class="likechapterToc" >
%    \Tg<a target="f2" href="\jobname4.html\#s2" name="">\Date\Tg</a>
%    \Tg</span>\Tg<br />
%    \Configure{Link}{a}{target="f2" href=}{name=}{}
%    \tableofcontents
%    \egroup
%    \EndHPage{p1} \Tg<br />
%
%  \HPage[p2]{text2222}\Link{}{s2}\EndLink
%    }
%    {  \EndHPage{p2}}
%    \Configure{DOCTYPE}
%    {\HCode{<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
%\Hnewline  "http://Hello1">\Hnewline}}

%  \def\SubConfig{%
%  \Configure{BODY}
%   {\PushStack\eBody{x}\Tg<body>}
%   {\PopStack\eBody\temp
% \ifx \temp\empty \EndFrames \else\Tg</body>\fi}

%  \Configure{DOCTYPE}
%   {\HCode{%
%     <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"     \Hnewline "http://Hello2"> \Hnewline}}%
%
%   }
\makeatother

% You can go through the created pages and read the div/class name of particular results, and add some instructions here. 
% This is for the config file and command line example boxes.
\Css{.tt,.verb,.fancyvrb{font-family: monospace; white-space: nowrap; color:\#000; font-size:100\%; background-color:\#eee;}}
% This makes fbox backgrounds gray.
\Css{.fbox{font-family: monospace; white-space: nowrap; color:\#040; font-size:100\%; background-color:\#cce;}}
\Css{table.longtable{margin-left:auto; margin-right:auto;}}
% For more about HTML conversion, read the info on "hooks".



%
\begin{document}
%
\EndPreamble