mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #15497 from overleaf/mj-mathjax-bm
[web] Add support for bm command in the visual editor GitOrigin-RevId: be14802a75c14b6a07ef8e47a3a3484e4086b869
This commit is contained in:
parent
474c1f8947
commit
8844755e5a
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,11 @@ export const loadMathJax = async () => {
|
|||
window.MathJax = {
|
||||
// https://docs.mathjax.org/en/latest/options/input/tex.html#the-configuration-block
|
||||
tex: {
|
||||
macros: {
|
||||
// Implements support for the \bm command from the bm package. It bolds the argument in math mode.
|
||||
// https://github.com/mathjax/MathJax/issues/1219#issuecomment-341059843
|
||||
bm: ['\\boldsymbol{#1}', 1],
|
||||
},
|
||||
inlineMath: [
|
||||
['\\(', '\\)'],
|
||||
['$', '$'],
|
||||
|
|
Loading…
Reference in a new issue