rbeezer avatar rbeezer committed 407aca1

Improvements to tex4ht configuration file

Comments (0)

Files changed (2)

jsmath-noexpand.4ht

 
 \def\tempc#1{\def\temp{\HCode{\string#1}\HCode{ }}\HLet#1\temp}
 
-\tempc\alpha 
-\tempc\beta 
+\tempc\alpha
+\tempc\beta
 \tempc\gamma
-\tempc\delta 	
-\tempc\epsilon 
-\tempc\varepsilon 
-\tempc\zeta 
-\tempc\eta 
-\tempc\theta 
-\tempc\vartheta 
+\tempc\delta
+\tempc\epsilon
+\tempc\varepsilon
+\tempc\zeta
+\tempc\eta
+\tempc\theta
+\tempc\vartheta
 \tempc\iota
 \tempc\kappa
 \tempc\lambda
 \tempc\varphi
 \tempc\chi
 \tempc\psi
-	
-\tempc\Gamma 
-\tempc\Xi 	
+
+\tempc\Gamma
+\tempc\Xi
 \tempc\Phi
-\tempc\Delta 
-\tempc\Pi 	
+\tempc\Delta
+\tempc\Pi
 \tempc\Psi
-\tempc\Theta	
-\tempc\Sigma 	
+\tempc\Theta
+\tempc\Sigma
 \tempc\Omega
-\tempc\Lambda	
+\tempc\Lambda
 \tempc\Upsilon
-									
-\tempc\Im 	 	
-\tempc\Re 		
-\tempc\aleph 		
-\tempc\angle 		
-\tempc\backslash 		
-\tempc\bot 		
-\tempc\cdots 		
+
+\tempc\Im
+\tempc\Re
+\tempc\aleph
+\tempc\angle
+\tempc\backslash
+\tempc\bot
+\tempc\cdots
 \tempc\clubsuit
 \tempc\ddots
 \tempc\diamondsuit
-\tempc\ell 		
-\tempc\emptyset 		
+\tempc\ell
+\tempc\emptyset
 \tempc\exists
 \tempc\flat
 \tempc\forall
-\tempc\hbar 		
+\tempc\hbar
 \tempc\heartsuit
-\tempc\imath 		
-\tempc\infty 		
-\tempc\jmath 	 	
-\tempc\ldots 		
-\tempc\nabla 		
+\tempc\imath
+\tempc\infty
+\tempc\jmath
+\tempc\ldots
+\tempc\nabla
 \tempc\natural
 \tempc\neg
-\tempc\partial 		
-\tempc\prime 		
+\tempc\partial
+\tempc\prime
 
 \tempc\sharp
 \tempc\spadesuit
-\tempc\surd 		
-\tempc\top 		
-\tempc\triangle 		
-\tempc\vdots 		
-\tempc\wp 		
+\tempc\surd
+\tempc\top
+\tempc\triangle
+\tempc\vdots
+\tempc\wp
 
 \tempc\Pr
-\tempc\arccos 	
-\tempc\arcsin 
-\tempc\arctan 	
-\tempc\arg 	
-\tempc\cos 	
-\tempc\cosh 	
-\tempc\cot 	
-\tempc\coth 	
-\tempc\csc 	
-\tempc\deg 	
-\tempc\det 	
-\tempc\dim 	
-\tempc\exp 	
-\tempc\gcd 	
-\tempc\hom 	
-\tempc\inf 	
-\tempc\ker 	
-\tempc\lg 	
-\tempc\lim 	
-\tempc\liminf 	
-\tempc\limsup 	
+\tempc\arccos
+\tempc\arcsin
+\tempc\arctan
+\tempc\arg
+\tempc\cos
+\tempc\cosh
+\tempc\cot
+\tempc\coth
+\tempc\csc
+\tempc\deg
+\tempc\det
+\tempc\dim
+\tempc\exp
+\tempc\gcd
+\tempc\hom
+\tempc\inf
+\tempc\ker
+\tempc\lg
+\tempc\lim
+\tempc\liminf
+\tempc\limsup
 \tempc\ln
 \tempc\log
 \tempc\max
 \tempc\sup
 \tempc\tan
 \tempc\tanh
- 	 	
+
 \tempc\Downarrow
-\tempc\Leftarrow 		
-\tempc\Leftrightarrow 		
-\tempc\Longleftarrow 		
-\tempc\Longleftrightarrow 	 	
-\tempc\Longrightarrow 		
-\tempc\Rightarrow 		
+\tempc\Leftarrow
+\tempc\Leftrightarrow
+\tempc\Longleftarrow
+\tempc\Longleftrightarrow
+\tempc\Longrightarrow
+\tempc\Rightarrow
 \tempc\Uparrow
 \tempc\Updownarrow
 \tempc\amalg
 \tempc\approx
-\tempc\ast 		
+\tempc\ast
 \tempc\asymp
-\tempc\bigcap 	 	 	
-\tempc\bigcirc 		
-\tempc\bigcup 	 	 	
+\tempc\bigcap
+\tempc\bigcirc
+\tempc\bigcup
 \tempc\bigodot
 \tempc\bigoplus
 \tempc\bigotimes
-\tempc\bigsqcup 	 	 	
+\tempc\bigsqcup
 \tempc\bigtriangledown
-\tempc\bigtriangleup 		
+\tempc\bigtriangleup
 \tempc\biguplus
-\tempc\bigvee 	 	 	
+\tempc\bigvee
 \tempc\bigwedge
 \tempc\bowtie
-\tempc\bullet 		
-\tempc\cap 		
-\tempc\cdot 		
-\tempc\circ 		
+\tempc\bullet
+\tempc\cap
+\tempc\cdot
+\tempc\circ
 \tempc\cong
-\tempc\coprod 	 	 	
-\tempc\cup 		
+\tempc\coprod
+\tempc\cup
 \tempc\dagger
 \tempc\dagger
-\tempc\dashv 		
+\tempc\dashv
 \tempc\ddagger
 \tempc\ddagger
-\tempc\diamond 		
-\tempc\div 		
+\tempc\diamond
+\tempc\div
 \tempc\doteq
 \tempc\downarrow
 \tempc\equiv
-\tempc\frown 		
-\tempc\geq 		
-\tempc\gg 		
-\tempc\hookleftarrow 		
-\tempc\hookrightarrow 		
-\tempc\in 		
-\tempc\int 	 	 	
-\tempc\leftarrow 		
-\tempc\leftharpoondown 		
-\tempc\leftharpoonup 		
-\tempc\leftrightarrow 		
-\tempc\leq 		
-\tempc\ll 		
-\tempc\longleftarrow 		
-\tempc\longleftrightarrow 	 	
-\tempc\longmapsto 		
-\tempc\longrightarrow 		
-\tempc\mapsto 		
-\tempc\mid 		
+\tempc\frown
+\tempc\geq
+\tempc\gg
+\tempc\hookleftarrow
+\tempc\hookrightarrow
+\tempc\in
+\tempc\int
+\tempc\leftarrow
+\tempc\leftharpoondown
+\tempc\leftharpoonup
+\tempc\leftrightarrow
+\tempc\leq
+\tempc\ll
+\tempc\longleftarrow
+\tempc\longleftrightarrow
+\tempc\longmapsto
+\tempc\longrightarrow
+\tempc\mapsto
+\tempc\mid
 \tempc\models
-\tempc\mp 		
+\tempc\mp
 \tempc\nearrow
-\tempc\ni 		
+\tempc\ni
 \tempc\not
 \tempc\nwarrow
 \tempc\odot
-\tempc\oint 	 	 	
+\tempc\oint
 \tempc\ominus
 \tempc\oplus
 \tempc\oslash
 \tempc\otimes
-\tempc\parallel 		
+\tempc\parallel
 \tempc\perp
-\tempc\pm 		
-\tempc\prec 		
-\tempc\preceq 		
-\tempc\prod 	 	 	
+\tempc\pm
+\tempc\prec
+\tempc\preceq
+\tempc\prod
 \tempc\propto
-\tempc\rightarriw 		
-\tempc\rightharpoondown 		
-\tempc\rightharpoonup 		
+\tempc\rightarriw
+\tempc\rightharpoondown
+\tempc\rightharpoonup
 \tempc\rightleftharpoons
 \tempc\searrow
-\tempc\setminus 		
+\tempc\setminus
 \tempc\sim
 \tempc\simeq
-\tempc\smile 		
-\tempc\sqcap 		
-\tempc\sqcup 		
-\tempc\sqsubseteq 		
-\tempc\sqsupseteq 		
-\tempc\star 		
-\tempc\subset 		
-\tempc\subseteq 		
-\tempc\succ 		
-\tempc\succeq 		
-\tempc\sum 	 	 	
-\tempc\supset 		
-\tempc\supseteq 		
+\tempc\smile
+\tempc\sqcap
+\tempc\sqcup
+\tempc\sqsubseteq
+\tempc\sqsupseteq
+\tempc\star
+\tempc\subset
+\tempc\subseteq
+\tempc\succ
+\tempc\succeq
+\tempc\sum
+\tempc\supset
+\tempc\supseteq
 \tempc\swarrow
-\tempc\times 		
-\tempc\triangleleft 		
-\tempc\triangleright 		
+\tempc\times
+\tempc\triangleleft
+\tempc\triangleright
 \tempc\uparrow
 \tempc\updownarrow
-\tempc\uplus 		
-\tempc\vdash 		
+\tempc\uplus
+\tempc\vdash
 \tempc\vee
 \tempc\wedge
-\tempc\wr 		
+\tempc\wr
 
 \endinput
 %
 % Supplies info for jsmath version to tex4ht command line and preamble
 %   2009/01/28  Modified to build sage worksheets, dropped font info
+%   2010/02/20  Significant improvements, many from Robert Marik
 %
-% Call as   htlatex <tex-source-file> "tex4ht-sage" " -cmozhtf"
-%   Implements  sageverbatim  environment of the sagetex package
-%   Wraps contents of the environment with the tags
-%   <sage>,</sage> as markers
-%   Then a custom script converts contents to 
+% Call as   htlatex <tex-source-file> "tex4ht-sage.cfg" " -cunihtf -utf8"
+%   Implements environments of the sagetex package
+%   Wraps contents of these environments with the
+%   tags <sage>,</sage> as markers.
+%   Then a script converts contents to
 %   SAGE worksheet cell format
-%   CSS additions suggested by jsMath author
+%   CSS additions to fine-tune jsMath spacing
+%       suggested by David Cervone (jsMath author)
 %
-   \Preamble{xhtml,jsmath,info} 
+   \Preamble{xhtml,jsmath,charset=UTF-8,info}
      \ScriptEnv{sageverbatim}
         {\ifvmode \IgnorePar \fi
          \EndP\HCode{<sage>}\NoFonts\break}
         {\ifvmode \IgnorePar \fi
          \EndP\HCode{</sage>}\EndNoFonts\csname par\endcsname\ShowPar}
+     \ScriptEnv{sageblock}
+        {\ifvmode \IgnorePar \fi
+         \EndP\HCode{<sage>}\NoFonts\break}
+        {\ifvmode \IgnorePar \fi
+         \EndP\HCode{</sage>}\EndNoFonts\csname par\endcsname\ShowPar}
+     \ScriptEnv{sagesilent}
+        {\ifvmode \IgnorePar \fi
+         \EndP\HCode{<sage>}\NoFonts\break}
+        {\ifvmode \IgnorePar \fi
+         \EndP\HCode{</sage>}\EndNoFonts\csname par\endcsname\ShowPar}
    \Css{/* jsMath suggested additions for spacing control */}
    \Css{.jsMath_hiddenSpan {text-indent: 0px}}
-   \Css{.typeset {text-indent: 0px}} 
-   \begin{document} 
-   \EndPreamble 
+   \Css{.typeset {text-indent: 0px}}
+   \Css{/* Styling Sage code blocks for HTML versions*/}
+   \Css{sage {white-space:pre; font-family:monospace; font-size:120\%}}
+   \AtBeginDocument{\InputIfFileExists{\jobname.sout}{}{\typeout{No file \jobname.sout.}}}
 
+% Robert Marik's jsMath avoidance list
+% Everything here jsMath can handle, so
+% we prevent tex4ht from messing with it
+% See  jsmath-noexpand.4ht  in this distribution
+%%%%%%%%%%%%%%%%%%%%%%
 
+\def\tempc#1{\def\temp{\HCode{\string#1}\HCode{ }}\HLet#1\temp}
+
+\tempc\alpha
+\tempc\beta
+\tempc\gamma
+\tempc\delta
+\tempc\epsilon
+\tempc\varepsilon
+\tempc\zeta
+\tempc\eta
+\tempc\theta
+\tempc\vartheta
+\tempc\iota
+\tempc\kappa
+\tempc\lambda
+\tempc\mu
+\tempc\nu
+\tempc\xi
+\tempc\pi
+\tempc\varpi
+\tempc\rho
+\tempc\varrho
+\tempc\sigma
+\tempc\varsigma
+\tempc\tau
+\tempc\upsilon
+\tempc\phi
+\tempc\varphi
+\tempc\chi
+\tempc\psi
+
+\tempc\Gamma
+\tempc\Xi
+\tempc\Phi
+\tempc\Delta
+\tempc\Pi
+\tempc\Psi
+\tempc\Theta
+\tempc\Sigma
+\tempc\Omega
+\tempc\Lambda
+\tempc\Upsilon
+
+\tempc\Im
+\tempc\Re
+\tempc\aleph
+\tempc\angle
+\tempc\backslash
+\tempc\bot
+\tempc\cdots
+\tempc\clubsuit
+\tempc\ddots
+\tempc\diamondsuit
+\tempc\ell
+\tempc\emptyset
+\tempc\exists
+\tempc\flat
+\tempc\forall
+\tempc\hbar
+\tempc\heartsuit
+\tempc\imath
+\tempc\infty
+\tempc\jmath
+\tempc\ldots
+\tempc\nabla
+\tempc\natural
+\tempc\neg
+\tempc\partial
+\tempc\prime
+
+\tempc\sharp
+\tempc\spadesuit
+\tempc\surd
+\tempc\top
+\tempc\triangle
+\tempc\vdots
+\tempc\wp
+
+\tempc\Pr
+\tempc\arccos
+\tempc\arcsin
+\tempc\arctan
+\tempc\arg
+\tempc\cos
+\tempc\cosh
+\tempc\cot
+\tempc\coth
+\tempc\csc
+\tempc\deg
+\tempc\det
+\tempc\dim
+\tempc\exp
+\tempc\gcd
+\tempc\hom
+\tempc\inf
+\tempc\ker
+\tempc\lg
+\tempc\lim
+\tempc\liminf
+\tempc\limsup
+\tempc\ln
+\tempc\log
+\tempc\max
+\tempc\min
+\tempc\sec
+\tempc\sin
+\tempc\sinh
+\tempc\sup
+\tempc\tan
+\tempc\tanh
+
+\tempc\Downarrow
+\tempc\Leftarrow
+\tempc\Leftrightarrow
+\tempc\Longleftarrow
+\tempc\Longleftrightarrow
+\tempc\Longrightarrow
+\tempc\Rightarrow
+\tempc\Uparrow
+\tempc\Updownarrow
+\tempc\amalg
+\tempc\approx
+\tempc\ast
+\tempc\asymp
+\tempc\bigcap
+\tempc\bigcirc
+\tempc\bigcup
+\tempc\bigodot
+\tempc\bigoplus
+\tempc\bigotimes
+\tempc\bigsqcup
+\tempc\bigtriangledown
+\tempc\bigtriangleup
+\tempc\biguplus
+\tempc\bigvee
+\tempc\bigwedge
+\tempc\bowtie
+\tempc\bullet
+\tempc\cap
+\tempc\cdot
+\tempc\circ
+\tempc\cong
+\tempc\coprod
+\tempc\cup
+\tempc\dagger
+\tempc\dagger
+\tempc\dashv
+\tempc\ddagger
+\tempc\ddagger
+\tempc\diamond
+\tempc\div
+\tempc\doteq
+\tempc\downarrow
+\tempc\equiv
+\tempc\frown
+\tempc\geq
+\tempc\gg
+\tempc\hookleftarrow
+\tempc\hookrightarrow
+\tempc\in
+\tempc\int
+\tempc\leftarrow
+\tempc\leftharpoondown
+\tempc\leftharpoonup
+\tempc\leftrightarrow
+\tempc\leq
+\tempc\ll
+\tempc\longleftarrow
+\tempc\longleftrightarrow
+\tempc\longmapsto
+\tempc\longrightarrow
+\tempc\mapsto
+\tempc\mid
+\tempc\models
+\tempc\mp
+\tempc\nearrow
+\tempc\ni
+\tempc\not
+\tempc\nwarrow
+\tempc\odot
+\tempc\oint
+\tempc\ominus
+\tempc\oplus
+\tempc\oslash
+\tempc\otimes
+\tempc\parallel
+\tempc\perp
+\tempc\pm
+\tempc\prec
+\tempc\preceq
+\tempc\prod
+\tempc\propto
+\tempc\rightarriw
+\tempc\rightharpoondown
+\tempc\rightharpoonup
+\tempc\rightleftharpoons
+\tempc\searrow
+\tempc\setminus
+\tempc\sim
+\tempc\simeq
+\tempc\smile
+\tempc\sqcap
+\tempc\sqcup
+\tempc\sqsubseteq
+\tempc\sqsupseteq
+\tempc\star
+\tempc\subset
+\tempc\subseteq
+\tempc\succ
+\tempc\succeq
+\tempc\sum
+\tempc\supset
+\tempc\supseteq
+\tempc\swarrow
+\tempc\times
+\tempc\triangleleft
+\tempc\triangleright
+\tempc\uparrow
+\tempc\updownarrow
+\tempc\uplus
+\tempc\vdash
+\tempc\vee
+\tempc\wedge
+\tempc\wr
+%%%%%%%%%%%%%%%%%%%%%%
+
+   \begin{document}
+   \EndPreamble
+
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.