mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
final changes 09
This commit is contained in:
parent
2d74872a6e
commit
cfdcfe8482
1 changed files with 10 additions and 8 deletions
|
|
@ -1,4 +1,6 @@
|
|||
In this exercise, you will learn how to create references to other parts of your book, such as chapters, sections, equations, tables, figures, and links.
|
||||
# Exercise 9: Cross-referencing content
|
||||
|
||||
In this exercise, you will learn how to create references to other parts of your book, such as chapters, sections, equations, tables and figures, as well as links.
|
||||
|
||||
::::::{topic} Exercise objective
|
||||
Can you create internal references to other sections, equations, tables, figures, and links?
|
||||
|
|
@ -57,14 +59,14 @@ These three referencing methods can also be used for referencing equations, tabl
|
|||
|
||||
## 2. Referencing an Equation
|
||||
|
||||
To reference an equation, you need to define a label using `{eq}` and refer to it elsewhere in your text:
|
||||
To reference an equation, you need to define a label when creating the equation and refer to it elsewhere in your text using `{eq}`:
|
||||
|
||||
```md
|
||||
|
||||
```{math}
|
||||
:label: eq-example
|
||||
E = mc^2
|
||||
```
|
||||
```{math}
|
||||
:label: eq-example
|
||||
E = mc^2
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
|
|
@ -89,7 +91,7 @@ To reference a table, assign a label when defining it:
|
|||
```
|
||||
```
|
||||
|
||||
And refer to it using:
|
||||
And refer to it using `{numref}`:
|
||||
|
||||
```md
|
||||
Table {numref}`tab-example`
|
||||
|
|
@ -111,7 +113,7 @@ To reference a figure, label it when inserting it:
|
|||
```
|
||||
```
|
||||
|
||||
And refer to it using:
|
||||
And refer to it using `{numref}`:
|
||||
|
||||
```md
|
||||
Figure {numref}`fig-example`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue