mathjax · Issue #24 · szcf-weiya/techNotes · GitHub
Skip to content

mathjax #24

Open
Open

Description

@szcf-weiya

\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

Activity

  1. szcf-weiya commented on May 6, 2021

    @szcf-weiya
    OwnerAuthor

    try to set display:none; height:0px

    not work, and actually the script would render as
    image

  2. szcf-weiya commented on May 6, 2021

    @szcf-weiya
    OwnerAuthor

    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 \

  3. szcf-weiya commented on May 6, 2021

    @szcf-weiya
    OwnerAuthor

    mathop

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

  4. szcf-weiya commented on May 8, 2021

    @szcf-weiya
    OwnerAuthor

    \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

  5. added a commit that references this issue on May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions