Skip to content

Theorem Components

What are Theorem Components?

In academic presentations, you often need to present formal statements like theorems, lemmas, or definitions. This theme provides a special component that:

  • Automatically numbers your theorems
  • Styles them professionally
  • Supports multiple languages

Basic Usage

markdown
<Theorem type="theorem" title="Pythagorean Theorem">

For a right triangle with legs $a$ and $b$, and hypotenuse $c$:

$$a^2 + b^2 = c^2$$

</Theorem>

Result: A nicely formatted box with "Theorem 1 (Pythagorean Theorem)" as the header and your content inside.

Available Types

Each type has a different color:

TypeEnglishChineseColor
theoremTheorem定理Blue
lemmaLemma引理Purple
propositionProposition命题Cyan
corollaryCorollary推论Green
definitionDefinition定义Amber
exampleExamplePink
remarkRemarkGray
proofProof证明Slate
noteNote注意Sky
claimClaim断言Indigo

proof and note are rendered without automatic numbering by default. claim participates in the same auto-numbering flow as the other numbered theorem types.

Examples

Simple theorem:

markdown
<Theorem type="theorem">

Every bounded sequence has a convergent subsequence.

</Theorem>

Theorem with title:

markdown
<Theorem type="definition" title="Continuity">

A function $f$ is continuous at $x = a$ if...

</Theorem>

Manual numbering:

markdown
<Theorem type="lemma" number="3.2">

This will be numbered as "Lemma 3.2" instead of auto-numbering.

</Theorem>

No numbering:

markdown
<Theorem type="remark" :autoNumber="false">

This remark has no number.

</Theorem>

Content only, without the header label:

markdown
<Theorem type="note" :showHeader="false">

The original cash payment was real, but the **expense for this year** is only the part that has been consumed.

</Theorem>