[tex4ht-commits] [SCM] tex4ht updated: r653 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Wed Jan 22 13:48:23 CET 2020


Author: michal_h21
Date: 2020-01-22 14:48:23 +0200 (Wed, 22 Jan 2020)
New Revision: 653

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Use plain text versions of \TeX and \LaTeX commands by default

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-01-22 11:34:10 UTC (rev 652)
+++ trunk/lit/ChangeLog	2020-01-22 12:48:23 UTC (rev 653)
@@ -1,5 +1,9 @@
 2020-01-22 Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-html4.tex (html4.4ht): use plain text for \TeX and \LaTeX commands
+	by default. Versions that try to emulate their visual appearance in PDF can
+	be requested using the "fancylogo" option.
+
 	* tex4ht-fonts-cjk.tex: (
 	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/gbk/gbkkai/gbkkai62.htf
 	./tex4ht.dir/texmf/tex4ht/ht-fonts/alias/gbk/gbkkai/gbkkai77.htf

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2020-01-22 11:34:10 UTC (rev 652)
+++ trunk/lit/tex4ht-html4.tex	2020-01-22 12:48:23 UTC (rev 653)
@@ -7134,11 +7134,15 @@
 
 
 \</TeX for 4.0t\><<<
+\:CheckOption{fancylogo}\if:Option
 \def\TeX{\HCode{<span class="TEX">}T\HCode{<span\Hnewline
      class="E">}E\HCode{</span>}X\HCode{</span>}}
 \Css{span.TEX {letter-spacing: -0.125em; }}
 \Css{span.TEX span.E{ position:relative;top:0.5ex;left:-0.0417em;}} 
 \Css{a span.TEX span.E {text-decoration: none; }}
+\else
+\def\TeX{TeX}
+\fi
 >>>
 
 \verb'\def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@}'
@@ -8013,6 +8017,7 @@
 
 \<configure html4 latex\><<<
 |</TeX for 4.0t|>
+\:CheckOption{fancylogo}\if:Option
 \def\:temp{\HCode{<span class="LATEX">}L\HCode{<span
    class="A">}A\HCode{</span>}\TeX\HCode{</span>}}
 \HLet\LaTeX|=\:temp
@@ -8023,6 +8028,10 @@
 \Css{span.LATEX span.A{ position:relative; top:-0.5ex;
    left:-0.4em; font-size:85\%;}}
 \Css{span.LATEX span.TEX{ position:relative; left: -0.4em; }}
+\else
+\def\LaTeX{LaTeX}
+\def\LaTeXe{LaTeX2e}
+\fi
 \Configure{@TITLE}{\def\LaTeX{LaTeX}\let\fontencoding|=\:gobble
   \let\fontfamily|=\:gobble \let\fontseries|=\:gobble
   \let\fontshape|=\:gobble  \let\usefont|=\:gobbleIV  }



More information about the tex4ht-commits mailing list