diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty | 61 |
1 files changed, 57 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty index e25de7f94a5..c1eae9e4b71 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty @@ -21,6 +21,19 @@ \let\LWR@origtextcelsius\textcelsius \let\LWR@origtextohm\textohm \let\LWR@origtextmu\textmu +\let\LWR@origtextlquill\textlquill +\let\LWR@origtextrquill\textrquill +\let\LWR@origtextcircledP\textcircledP +\let\LWR@origtexttwelveudash\texttwelveudash +\let\LWR@origtextthreequartersemdash\textthreequartersemdash +\let\LWR@origtextmho\textmho +\let\LWR@origtextnaira\textnaira +\let\LWR@origtextpeso\textpeso +\let\LWR@origtextrecipe\textrecipe +\let\LWR@origtextpertenthousand\textpertenthousand +\let\LWR@origtextbaht\textbaht +\let\LWR@origtextdiscount\textdiscount +\let\LWR@origtextservicemark\textservicemark \LetLtxMacro\LWR@origcapitalcedilla\capitalcedilla \LetLtxMacro\LWR@origcapitalogonek\capitalogonek \LetLtxMacro\LWR@origcapitalgrave\capitalgrave @@ -35,16 +48,43 @@ \LetLtxMacro\LWR@origcapitalmacron\capitalmacron \LetLtxMacro\LWR@origcapitaldotaccent\capitaldotaccent \LetLtxMacro\LWR@origtextcircled\textcircled +\AtBeginDocument{ \ifPDFTeX \renewcommand*{\textdegree}{\HTMLentity{deg}} -\renewcommand*{\textcelsius}{\HTMLentity{deg}\,C} +\renewcommand*{\textcelsius}{\HTMLunicode{2103}} \renewcommand*{\textohm}{\HTMLunicode{2126}} \renewcommand*{\textmu}{\HTMLunicode{00B5}} +\renewcommand*{\textlquill}{\HTMLunicode{2045}} +\renewcommand*{\textrquill}{\HTMLunicode{2046}} +\renewcommand*{\textcircledP}{\HTMLunicode{2117}} +\renewcommand*{\texttwelveudash}{\HTMLunicode{2014}}% emdash +\renewcommand*{\textthreequartersemdash}{\HTMLunicode{2014}}% emdash +\renewcommand*{\textmho}{\HTMLunicode{2127}} +\renewcommand*{\textnaira}{\HTMLunicode{20A6}} +\renewcommand*{\textpeso}{\HTMLunicode{20B1}} +\renewcommand*{\textrecipe}{\HTMLunicode{211E}} +\renewcommand*{\textpertenthousand}{\HTMLunicode{2031}} +\renewcommand*{\textbaht}{\HTMLunicode{0E3F}} +\renewcommand*{\textdiscount}{\%} +\renewcommand*{\textservicemark}{\HTMLunicode{2120}} \else \renewcommand*{\textdegree}{°} -\renewcommand*{\textcelsius}{°C} +\renewcommand*{\textcelsius}{℃} \renewcommand*{\textohm}{Ω} -\renewcommand*{\textmu}{μ} +\renewcommand*{\textmu}{µ} +\renewcommand*{\textlquill}{⁅} +\renewcommand*{\textrquill}{⁆} +\renewcommand*{\textcircledP}{℗} +\renewcommand*{\texttwelveudash}{—}% emdash +\renewcommand*{\textthreequartersemdash}{—}% emdash +\renewcommand*{\textmho}{℧} +\renewcommand*{\textnaira}{₦} +\renewcommand*{\textpeso}{₱} +\renewcommand*{\textrecipe}{℞} +\renewcommand*{\textpertenthousand}{‱} +\renewcommand*{\textbaht}{฿} +\renewcommand*{\textdiscount}{\%} +\renewcommand*{\textservicemark}{℠} \fi \renewcommand*{\capitalcedilla}[1]{#1\HTMLunicode{0327}} \renewcommand*{\capitalogonek}[1]{#1\HTMLunicode{0328}} @@ -62,11 +102,25 @@ \renewcommand*{\textcircled}[1]{% \InlineClass[border: 1px solid \LWR@currenttextcolor]{textcircled}{#1}% } +}% AtBeginDocument \appto{\LWR@restoreorigformatting}{% \let\textdegree\LWR@origtextdegree% \let\textcelsius\LWR@origtextcelsius% \let\textohm\LWR@origtextohm% \let\textmu\LWR@origtextmu% +\let\textlquill\LWR@origtextlquill% +\let\textrquill\LWR@origtextrquill% +\let\textcircledP\LWR@origtextcircledP% +\let\texttwelveudash\LWR@origtexttwelveudash% +\let\textthreequartersemdash\LWR@origtextthreequartersemdash% +\let\textmho\LWR@origtextmho% +\let\textnaira\LWR@origtextnaira% +\let\textpeso\LWR@origtextpeso% +\let\textrecipe\LWR@origtextrecipe% +\let\textpertenthousand\LWR@origtextpertenthousand% +\let\textbaht\LWR@origtextbaht% +\let\textdiscount\LWR@origtextdiscount% +\let\textservicemark\LWR@origtextservicemark% \LetLtxMacro\capitalcedilla\LWR@origcapitalcedilla% \LetLtxMacro\capitalogonek\LWR@origcapitalogonek% \LetLtxMacro\capitalgrave\LWR@origcapitalgrave% @@ -82,7 +136,6 @@ \LetLtxMacro\capitaldotaccent\LWR@origcapitaldotaccent% \LetLtxMacro\textcircled\LWR@origtextcircled% } - \endinput %% %% End of file `lwarp-textcomp.sty'. |