Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
501 stars 44 forks source link

PR into master from dev/olga/5611-Add-the-ability-to-display-unnumbered-footnotes-v1 #275

Closed OlgaRedozubova closed 1 year ago

OlgaRedozubova commented 1 year ago

branch: dev/olga/5611-Add-the-ability-to-display-unnumbered-footnotes-v1

Why:

Fixed issues:

  1. [ocr-api][mmd-it]footnotetext seems to be autonumbered on snip-web #5559 comment
  2. [mmd] Add the ability to display unnumbered footnotes #5611

What's being changed:

1. Do not display a null footnote marker for the \footnotetext{} command

If the document has only the \footnotetext{} command and no commands that increase the footnote marker such as \footnote{} and \footnotemarker{}, then the footnote marker will always have the value 0

mmd:

 Some text

\footnotetext{
\({ }^{*}\) Equal contribution.
}

\footnotetext{
\({ }^{0}\) Compared to V1, this draft includes better baselines, experiments on GLUE, and more on adapter latency.
}

\footnotetext{
\({ }^{1}\) While GPT-3 175B achieves non-trivial performance with few-shot learning, fine-tuning boosts its performance significantly as shown in Appendix A
}

\footnotetext{
\({ }^{*}\) Equal contribution.

\({ }^{0}\) Compared to V1, this draft includes better baselines, experiments on GLUE, and more on adapter latency.

\({ }^{1}\) While GPT-3 175B achieves non-trivial performance with few-shot learning, fine-tuning boosts its performance significantly as shown in Appendix A}

Before:

Screen Shot 2023-09-22 at 10 54 29

After:

Screen Shot 2023-09-22 at 10 52 30

2. Added the ability to change the font size for footnotes.

By default, the font size for footnotes matches the document font size. To change this behavior, set the parameter:

  footnotes: {
    fontSize: '85%'
  }
Screen Shot 2023-09-19 at 16 53 56

3. Added the \blfootnotetext{} command for which the numbering will always be hidden.

Some text

\blfootnotetext{
\({ }^{*}\) Equal contribution.

\({ }^{0}\) Compared to V1, this draft includes better baselines, experiments on GLUE, and more on adapter latency.

\({ }^{1}\) While GPT-3 175B achieves non-trivial performance with few-shot learning, fine-tuning boosts its performance significantly as shown in Appendix A
}
Screen Shot 2023-09-19 at 16 58 21