[latex3-commits] [latex2e-public] r1374 - more asterisk adjustments for TU encoding

noreply at latex-project.org noreply at latex-project.org
Sun Feb 12 15:30:30 CET 2017


Author: carlisle
Date: 2017-02-12 15:30:30 +0100 (Sun, 12 Feb 2017)
New Revision: 1374

Modified:
   trunk/base/changes.txt
   trunk/base/ltoutenc.dtx
Log:
more asterisk adjustments for TU encoding

Modified: trunk/base/changes.txt
===================================================================
--- trunk/base/changes.txt	2017-01-30 20:41:01 UTC (rev 1373)
+++ trunk/base/changes.txt	2017-02-12 14:30:30 UTC (rev 1374)
@@ -4,9 +4,15 @@
 are not part of the distribution.
 =======================================================================
 
+2017-02-12  David Carlisle  <latex-bugs at latex-project.org>
+
+	* ltoutenc.dtx: add fallback code for \textasteriskcentered
+	in TU encoding (http://tex.stackexchange.com/q/353425/)
+
 2017-01-28  David Carlisle  <latex-bugs at latex-project.org>
 
-	* build.lua bugs.txt, maifest.txt: drop latexbug.tex from the distribution
+	* build.lua bugs.txt, maifest.txt: drop latexbug.tex from the
+          distribution
 
 	* ltoutenc.dtx, utf8ienc.dtx: add \= for YyGg
 	U+0232, U+0233, U+1E20, U+1E21

Modified: trunk/base/ltoutenc.dtx
===================================================================
--- trunk/base/ltoutenc.dtx	2017-01-30 20:41:01 UTC (rev 1373)
+++ trunk/base/ltoutenc.dtx	2017-02-12 14:30:30 UTC (rev 1374)
@@ -38,14 +38,14 @@
 %<TU>\ProvidesFile{tuenc.def}
 %<package>\ProvidesPackage{fontenc}
 %<TS1sty>\ProvidesPackage{textcomp}
-%<OT1|T1|OMS|OML|OT4|TU|package|TS1sty> [2017/01/28 v2.0d
+%<OT1|T1|OMS|OML|OT4|TU|package|TS1sty> [2017/02/12 v2.0e
 %<OT1|T1|OMS|OML|OT4|TS1|TU>         Standard LaTeX file]
 %<package|TS1sty>                 Standard LaTeX package]
 %
 %<*driver>
 % \fi
 \ProvidesFile{ltoutenc.dtx}
-             [2017/01/28 v2.0d LaTeX Kernel (font encodings)]
+             [2017/02/12 v2.0e LaTeX Kernel (font encodings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltoutenc.dtx}
@@ -2645,6 +2645,7 @@
 % \changes{v2.0c}{2017/01/24}{Make \cs{textasteriskcentered} U+2217 not U+204E}
 % \changes{v2.0c}{2017/01/24}{Declare TU composites for i and j}
 % \changes{v2.0d}{2017/01/24}{Declare macron composites for YyGg}
+% \changes{v2.0e}{2017/02/12}{Declare fallback code for \cs{textasteriskcentered}}
 %
 % The TU encoding was originally introduced in the contributed
 % package \texttt{fontspec} as a Unicode encoding for XeTeX and
@@ -2863,7 +2864,22 @@
 \DeclareTextSymbol{\textrightarrow}      \UnicodeEncodingName{"2192}
 \DeclareTextSymbol{\textdownarrow}       \UnicodeEncodingName{"2193}
 \DeclareTextSymbol{\textminus}           \UnicodeEncodingName{"2212}
-\DeclareTextSymbol{\textasteriskcentered}\UnicodeEncodingName{"2217}
+%    \end{macrocode}
+% Not all fonts have U+2217 but using U+002A requires some adjustment.
+%    \begin{macrocode}
+\DeclareTextCommand{\textasteriskcentered}\UnicodeEncodingName{%
+  \iffontchar\font"2217 \char"2217 \else
+    \begingroup
+      \fontsize
+       {\the\dimexpr1.2\dimexpr\f at size pt\relax}%
+       {\f at baselineskip}%
+      \selectfont 
+      \raisebox{-0.6ex}{*}%
+    \endgroup
+  \fi
+}
+%    \end{macrocode}
+%    \begin{macrocode}
 \DeclareTextSymbol{\textsurd}            \UnicodeEncodingName{"221A}
 \DeclareTextSymbol{\textlangle}          \UnicodeEncodingName{"2329}
 \DeclareTextSymbol{\textrangle}          \UnicodeEncodingName{"232A}



More information about the latex3-commits mailing list