summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/subscript.4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-09-29 22:25:24 +0000
committerKarl Berry <karl@freefriends.org>2015-09-29 22:25:24 +0000
commit2cc16c2c2ff7d8d2e187b0daa7fcde2e1207c076 (patch)
tree0503105b75239445f63c522881bde9b62b1efc9c /Master/texmf-dist/tex/generic/tex4ht/subscript.4ht
parent6c088673b9f7d4b0e3b186b850d4fd6ba9997326 (diff)
\textsubscript support, tex4ht r155
git-svn-id: svn://tug.org/texlive/trunk@38499 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/subscript.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/subscript.4ht18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/subscript.4ht b/Master/texmf-dist/tex/generic/tex4ht/subscript.4ht
new file mode 100644
index 00000000000..b02e55cbe63
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/tex4ht/subscript.4ht
@@ -0,0 +1,18 @@
+\def\:temp#1{%
+ {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
+\ifx \@textsubscript\:temp
+ \def\:tempc#1{{\m@th%
+ \ifmmode {\HCode{}}\sb {\mbox{\fontsize\sf@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
+