Skip to content

Commit

Permalink
Added \Hwithstroke and \hwithstroke
Browse files Browse the repository at this point in the history
After discussion in https://tex.stackexchange.com/a/460116/4427 and team list
  • Loading branch information
eg9 committed Nov 19, 2018
1 parent d97c56e commit 8894d85
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion base/ltoutenc.dtx
Expand Up @@ -45,7 +45,7 @@
%<*driver>
% \fi
\ProvidesFile{ltoutenc.dtx}
[2017/04/05 v2.0i LaTeX Kernel (font encodings)]
[2018/11/18 v2.0k LaTeX Kernel (font encodings)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltoutenc.dtx}
Expand Down Expand Up @@ -1886,6 +1886,46 @@
{\%\char 24\char 24 } % space or `relax as delimiter?
% \end{macrocode}
%
% For Maltese, \cs{Hcrossbeam} and \cs{hcrossbeam} are needed.
%
% \changes{v2.0k}{2018/11/19}
% {Added \cs{Hwithstroke} and \cs{hwithstroke}}
%
% \begin{macrocode}
\DeclareTextCommand{\Hwithstroke}{T1}
{%
\hmode@bgroup
\vphantom{H}%
\sbox\z@{H}%
\ooalign{%
H\cr
\hidewidth
\vrule
height \dimexpr 0.7\ht\z@+0.1ex\relax
depth -0.7\ht\z@
width 0.8\wd\z@
\hidewidth\cr
}%
\egroup
}
\DeclareTextCommand{\hwithstroke}{T1}
{%
\hmode@bgroup
\vphantom{h}%
\sbox\z@{h}%
\ooalign{%
h\cr
\kern0.075\wd\z@
\vrule
height \dimexpr 0.7\ht\z@+0.1ex\relax
depth -0.7\ht\z@
width 0.4\wd\z@
\hidewidth\cr
}%
\egroup
}
% \end{macrocode}
%
% Declare the text symbols.
% \changes{v1.7t}{1995/11/29}{Added \cs{textasciicircum},
% \cs{textasciitilde}, \cs{textbackslash}, \cs{textbar},
Expand Down Expand Up @@ -3013,7 +3053,14 @@
\DeclareTextSymbol{\textrightarrow} \UnicodeEncodingName{"2192}
\DeclareTextSymbol{\textdownarrow} \UnicodeEncodingName{"2193}
\DeclareTextSymbol{\textminus} \UnicodeEncodingName{"2212}

% \end{macrocode}
% \changes{v2.0k}{2018/11/18}{Provide \cs{Hwithstroke} and \cs{hwithstroke}}
% \begin{macrocode}
\DeclareTextSymbol{\Hwithstroke} \UnicodeEncodingName{"0126}
\DeclareTextSymbol{\hwithstroke} \UnicodeEncodingName{"0127}
% \end{macrocode}
%
% Not all fonts have U+2217 but using U+002A requires some adjustment.
% \begin{macrocode}
\DeclareTextCommand{\textasteriskcentered}\UnicodeEncodingName{%
Expand Down

0 comments on commit 8894d85

Please sign in to comment.