Skip to content

Directly reference definition, theorem, and lemma when using latex blockquote styles. #29

@branyang02

Description

@branyang02

Enhance Theorem/Definition/Lemma Referencing

Current Situation

Blockquote styles for definition, theorem, and lemma:

<blockquote class="[definition/theorem/lemma]">
...content
</blockquote>
image

To reference, users add id:

<blockquote class="[definition/theorem/lemma]" id="[unique_id]">
...content
</blockquote>

Reference using $\ref{[unique_id]}$ or $\eqref{[unique_id]}$, which only shows the number.

Goal

Mimic LaTeX's Theorems and proofs referencing style.

Desired Outcome

LaTeX-like syntax:

\begin{theorem}[Pythagorean theorem]
\label{pythagorean}
This is a theorem about right triangles and can be summarised as:
\[ x^2 + y^2 = z^2 \]
\end{theorem}

Referencing:

And a consequence of theorem \ref{pythagorean} is the statement in the next corollary.

Result:

image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions