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

karl at gnu.org.ua karl at gnu.org.ua
Wed Sep 30 00:18:51 CEST 2015


Author: karl
Date: 2015-09-30 01:18:50 +0300 (Wed, 30 Sep 2015)
New Revision: 155

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-ooffice.tex
Log:
\textsubscript support from Michal, https://puszcza.gnu.org.ua/bugs/?262

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2015-08-05 22:35:43 UTC (rev 154)
+++ trunk/lit/ChangeLog	2015-09-29 22:18:50 UTC (rev 155)
@@ -1,3 +1,11 @@
+2015-09-29  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-ooffice.tex (configure ooffice subscript),
+	* tex4ht-4ht.tex (subscript.4ht),
+	* tex4ht-html4.tex (configure html4 subscript):
+	support for \textsubscript.  http://puszcza.gnu.org.ua/bugs/?262
+	* Makefile (derived): add subscript.4ht.
+
 2015-08-05  Michal Hoftich  <michal.h21 at gmail.com>
         and Karl Berry <karl at gnu.org>
 

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2015-08-05 22:35:43 UTC (rev 154)
+++ trunk/lit/Makefile	2015-09-29 22:18:50 UTC (rev 155)
@@ -16,7 +16,7 @@
 derived += $(tex4ht_4ht_derived)
 tex4ht_4ht_derived = \
   book.4ht graphicx.4ht listings.4ht memoir.4ht multicol.4ht quoting.4ht \
-  scrartcl.4ht scrbook.4ht scrreprt.4ht spanish.4ht \
+  scrartcl.4ht scrbook.4ht scrreprt.4ht spanish.4ht subscript.4ht \
   titlesec.4ht tocloft.4ht wrapfig.4ht
 # and many, many more.
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2015-08-05 22:35:43 UTC (rev 154)
+++ trunk/lit/tex4ht-4ht.tex	2015-09-29 22:18:50 UTC (rev 155)
@@ -9439,6 +9439,31 @@
 The definition of \`'\@textsuperscript' in latex2e uses feartures not
 available in latex209.
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\SubSection{Subscripts}
+
+This is a variant of textsuperscript.
+
+\<subscript.4ht\><<<
+\def\:temp#1{%
+   {\m at th\ensuremath{_{\mbox{\fontsize\sf at size\z@#1}}}}}
+\ifx \@textsubscript\:temp
+  \def\:tempc#1{{\m at th%
+     \ifmmode {\HCode{}}\sb {\mbox{\fontsize\sf at size\z@#1}}%
+     \else%
+        \a:textsubscript%
+           {\mbox{#1}}\b:textsubscript%
+     \fi }}
+  \HLet\@textsubscript\:tempc
+\fi
+\NewConfigure{textsubscript}{2}
+\Configure{textsubscript}
+   {$\relax{\HCode{}}\sb}
+   {$}
+\Hinput{subscript}
+\endinput
+>>>  \AddFile{9}{subscript}
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Section{subfigure.sty}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2015-08-05 22:35:43 UTC (rev 154)
+++ trunk/lit/tex4ht-html4.tex	2015-09-29 22:18:50 UTC (rev 155)
@@ -5495,6 +5495,11 @@
   {\egroup \HCode{</sup>}}
 >>>
 
+\<configure html4 subscript\><<<
+\Configure{textsubscript}
+  {\HCode{<sub class="textsubscript">}\bgroup\small}
+  {\egroup \HCode{</sub>}}
+>>>
 
 %%%%%%%%%%%%%%%%
 \section{Floats}

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2015-08-05 22:35:43 UTC (rev 154)
+++ trunk/lit/tex4ht-ooffice.tex	2015-09-29 22:18:50 UTC (rev 155)
@@ -11674,7 +11674,20 @@
     {\endWrap}
 >>>>
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{subscript}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+\<configure ooffice subscript\><<<
+\Configure{textsubscript}
+  {\HCode{<text:span text:style-name="textsubscript">}}
+  {\HCode{</text:span>}} 
+\OOstyles{%
+<style:style style:name="textsubscript" style:family="text">\Hnewline
+   <style:text-properties style:text-position="sub"/>\Hnewline
+</style:style>\Hnewline
+}
+>>>
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \chapter{Notes}



More information about the tex4ht-commits mailing list