mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
Fix \pmb (#1924)
* Fix \pmb * Update screenshots * Use \mathbf for MathML
This commit is contained in:
@@ -662,13 +662,12 @@ defineMacro("\\mod", "\\allowbreak" +
|
||||
"{\\rm mod}\\,\\,#1");
|
||||
|
||||
// \pmb -- A simulation of bold.
|
||||
// It works by typesetting three copies of the argument with small offsets.
|
||||
// Ref: a rather lengthy macro in ambsy.sty
|
||||
defineMacro("\\pmb", "\\html@mathml{\\@binrel{#1}{" +
|
||||
"\\mathrlap{#1}" +
|
||||
"\\mathrlap{\\mkern0.4mu\\raisebox{0.4mu}{$#1$}}" +
|
||||
"{\\mkern0.8mu#1}" +
|
||||
"}}{\\mathbf{#1}}");
|
||||
// The version in ambsy.sty works by typesetting three copies of the argument
|
||||
// with small offsets. We use two copies. We omit the vertical offset because
|
||||
// of rendering problems that makeVList encounters in Safari.
|
||||
defineMacro("\\pmb", "\\html@mathml{" +
|
||||
"\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}" +
|
||||
"{\\mathbf{#1}}");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// LaTeX source2e
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.4 KiB |
Reference in New Issue
Block a user