Open szcf-weiya opened 3 years ago
display:none; height:0px
not work, and actually the script would render as
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 \
mathop
it seems that \mathop
can achieve the star version,
but it seems not to work in the mkdocs.
\hat f_1(x)
\hat f_{\!1}(x)
but for inline math formula, one more
\
is needed to escape \!
. However, if there are two math formulas, it would problematic, such as
so no change for them
\DeclareMathOperator
in the headsince Marcos does not support
but there will be an extra space in the header,
![image](https://user-images.githubusercontent.com/13688320/117302338-197b8500-aeae-11eb-9753-7bd8f34fce51.png)
DeclareMathOperator
, so try to also put the declaration in the header, such as