Mathpix / mathpix-markdown-it

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

PR into master from dev/olga/5436-Duplicate-list-of-footnotes #270

Closed OlgaRedozubova closed 1 year ago

OlgaRedozubova commented 1 year ago

branch: dev/olga/5436-Duplicate-list-of-footnotes

Why

Fixed issues:

What's being changed:

1. [mmd] Duplicate list of footnotes #5436

These changes allow the list of footnotes env.mmd_footnotes containing latex footnotes and MD footnotes to be synchronized. However, we do not disable the rules for markdown-it-footnotes. The list of footnotes is now built once and uses env.mmd_footnotes.

Screen Shot 2023-08-23 at 17 32 00

Synchronization of latex footnotes and MD footnotes.

\footnote[5]{should be 5}
\footnote{should be 1}
\title{Title[^1]}
[^1]: footnote text
In Snip, You can use the `\title{}` command wherever you want the title to appear in your document. If pasting LaTeX code into Snip, please note that the `\maketitle` command will be ignored.

\author{Author[^1]}

\author{Author\\can also be\\multiline}

\author{
    First[^1]Last\\
    Department\\
    school\\
    email@edu
  \and
    First Last[^1]\\
    ...
}
\footnote{should be 3}

\begin{abstract}
[^1] footnote 
This is the abstract to my paper. You are going to learn a lot in this paper, just you wait. I am going to tell you about all the different LaTeX and Markdown syntax you can use in Snip. 
\end{abstract}
Screen Shot 2023-08-23 at 18 57 57

2. Fixed rendering for [[mmd] Note can't be converted to DOCX because of \textbf inside \begin{itemize} #5452]

mmd:

\begin{itemize} \item \(1\) \textbf{text}  \item \(2\) text\end{itemize} 
Screen Shot 2023-08-23 at 19 00 37

mmd:

\textbf{Rubric:}

\begin{itemize}
    \item \textbf{2 marks:} For clearly stating the assumptions and initiating the proof by contradiction.
    \item \textbf{1 mark:} For showing the relationship between \( d \), \text{HCF}( b, r ) and the prime factorizations of \( a \) and \( b \).
    \item \textbf{2 marks:} For successfully proving that the assumption leads to a contradiction with the Fundamental Theorem of Arithmetic using the prime factorization method.
\end{itemize}
Screen Shot 2023-08-23 at 19 01 36