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

mathjax #24

Open
szcf-weiya opened this issue May 6, 2021 · 4 comments
Open

mathjax #24

szcf-weiya opened this issue May 6, 2021 · 4 comments

Comments

@szcf-weiya
Copy link
Owner

\DeclareMathOperator in the head

since Marcos does not support DeclareMathOperator, so try to also put the declaration in the header, such as
image
but there will be an extra space in the header,
image

@szcf-weiya
Copy link
Owner Author

try to set display:none; height:0px

not work, and actually the script would render as
image

@szcf-weiya
Copy link
Owner Author

szcf-weiya commented May 6, 2021

an alternative way

image
refer to

also check their definitions

~$ latexdef -p amsmath DeclareMathOperator

\DeclareMathOperator:
macro:->\@latex@error {Can be used only in preamble}\@eha 


(in preamble)
\DeclareMathOperator:
\long macro:->\@ifstar {\@declmathop m}{\@declmathop o}

~$ latexdef -p amsmath operatorname

\operatorname:
macro:->\protect \operatorname  


\operatorname :
\long macro:->\@ifstar {\qopname \newmcodes@ m}{\qopname \newmcodes@ o}

but the star version * seems not work, even tried to escape * via \

@szcf-weiya
Copy link
Owner Author

mathop

it seems that \mathop can achieve the star version,
image
but it seems not to work in the mkdocs.

@szcf-weiya
Copy link
Owner Author

\hat f

\hat f_1(x)
image
\hat f_{\!1}(x)
image
but for inline math formula, one more \ is needed to escape \!. However, if there are two math formulas, it would problematic, such as
image
so no change for them

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

1 participant