Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different rendering with renewcommand in config file than directly used #34

Closed
Joalland opened this issue Sep 28, 2020 · 3 comments
Closed

Comments

@Joalland
Copy link

Thanks for the plugin. I like my vector to be in bold. I ussualy redefine the latex \vec{} command :

If i put

$\renewcommand\vec[1]{\mathbf{#1}}\vec{AA'}$

inside a dokuwiki page i get :
image

If I put in on the mathax config file above :

MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ["$","$"], ["\\(","\\)"] ],
        displayMath: [ ["$$","$$"], ["\\[","\\]"] ],
        processEscapes: true
    },
    TeX: {
        Macros: {
          RR: '{\\bf R}',
          bold: ['{\\bf #1}',1],
          vec: ['{\\mathbf #1}',1]
        }
    }
});

I get :
image

Is this a bug or I'm missing something in the matjax configuration file ?

Thanks

@Joalland Joalland changed the title Different rendering with renewcommand in config file than in Different rendering with renewcommand in config file than directly used Sep 28, 2020
@liffiton
Copy link
Owner

I may be way off, but does the line in the config need to be vec: ['{\\mathbf{#1}}',1]?

@Joalland
Copy link
Author

Yes your are right. Thanks and sorry for the spurious issue.

@liffiton
Copy link
Owner

No worries. Glad it was an easy fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants