Ticket #8105: tex4ht-sage.cfg

File tex4ht-sage.cfg, 2.3 KB (added by robert.marik, 12 years ago)

the version which does not replace \infty etc. by unicode characters

Line 
1% tex4ht-sage.cfg
2% Copyright 2009 by Robert A. Beezer
3%
4% Supplies info for jsmath version to tex4ht command line and preamble
5%   2009/01/28  Modified to build sage worksheets, dropped font info
6%
7% Call as   htlatex <tex-source-file> "tex4ht-sage" " -cmozhtf"
8%   Implements  sageverbatim  environment of the sagetex package
9%   Wraps contents of the environment with the tags
10%   <sage>,</sage> as markers
11%   Then a custom script converts contents to 
12%   SAGE worksheet cell format
13%   CSS additions suggested by jsMath author
14%
15   \Preamble{xhtml,jsmath,info} 
16     \ScriptEnv{sageverbatim}
17        {\ifvmode \IgnorePar \fi
18         \EndP\HCode{<sage>}\NoFonts\break}
19        {\ifvmode \IgnorePar \fi
20         \EndP\HCode{</sage>}\EndNoFonts\csname par\endcsname\ShowPar}
21   \Css{/* jsMath suggested additions for spacing control */}
22   \Css{.jsMath_hiddenSpan {text-indent: 0px}}
23   \Css{.typeset {text-indent: 0px}} 
24
25\def\R{\HCode{\string\mathbb\l:brace R\r:brace}}
26\def\N{\HCode{\string\mathbb\l:brace N\r:brace}}
27\def\Z{\HCode{\string\mathbb\l:brace Z\r:brace}}
28\def\E{\HCode{\string\mathbb\l:brace E\r:brace}}
29\def\implies{\HCode{\string\Rightarrow }\HCode{ }}
30
31\def\partial{\HCode{\string\partial\string\, }\HCode{ }}
32\def\pi{\HCode{\string\pi }\HCode{ }}
33\def\leq{\HCode{\string\leq }\HCode{ }}
34\def\geq{\HCode{\string\geq }\HCode{ }}
35\def\in{\HCode{\string\in }\HCode{ }}
36\def\int{\HCode{\string\int }\HCode{ }}
37\def\iint{\HCode{\string\int\string\int }\HCode{ }}
38\def\lim{\HCode{\string\lim }\HCode{ }}
39\def\cdots{\HCode{\string\cdots }\HCode{ }}
40\def\mu{\HCode{\string\mu }\HCode{ }}
41%%%%% short form for the above commands:
42\def\:tempcc#1{\def#1{\HCode{\string#1 }\HCode{ }}}
43\:tempcc\times
44\:tempcc\sim
45\:tempcc\det
46\:tempcc\subseteq
47\:tempcc\psi
48\:tempcc\phi
49\:tempcc\varphi
50\:tempcc\sigma
51\:tempcc\lambda
52
53\:tempcc\xi
54\:tempcc\nu
55\:tempcc\sum
56\:tempcc\infty
57\:tempcc\pm
58\:tempcc\equiv
59\:tempcc\approx
60\:tempcc\to
61\:tempcc\cup
62\:tempcc\cdot
63\:tempcc\ln
64\:tempcc\log
65\:tempcc\sin
66\:tempcc\cos
67\:tempcc\arcsin
68\:tempcc\arccos
69\:tempcc\Longleftrightarrow
70\:tempcc\Rightarrow
71\:tempcc\Leftarrow
72\:tempcc\Uparrow
73\:tempcc\not
74\:tempcc\neq
75\:tempcc\epsilon
76\:tempcc\varepsilon
77\:tempcc\alpha
78\:tempcc\beta
79\:tempcc\Delta
80\:tempcc\delta
81\:tempcc\Phi
82\:tempcc\Omega
83\:tempcc\setminus
84\:tempcc\rho
85
86   \begin{document} 
87   \EndPreamble 
88
89