mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
Update 009.md
This commit is contained in:
parent
278ac39643
commit
efbfe489f6
1 changed files with 4 additions and 4 deletions
|
|
@ -87,14 +87,14 @@ Refer to Equation {eq}`eq:Newton`
|
|||
|
||||
10. Similar methods can also be used to refer to a table. Start by creating a table by copying the code below. The identifier is defined using `:name:`.
|
||||
|
||||
```md
|
||||
```md
|
||||
```{table} Example Table
|
||||
:name: tab-example
|
||||
| Column 1 | Column 2 |
|
||||
|----------|----------|
|
||||
| A | B |
|
||||
```
|
||||
```
|
||||
```
|
||||
|
||||
|
||||
11. Refer to the table like {numref}`Table {number} <tab-example>` using `{numref}` and `{number}` as follows:
|
||||
|
|
@ -109,7 +109,7 @@ Refer to Equation {eq}`eq:Newton`
|
|||
|
||||
12. This can also be done for a figure. Let's add a figure as we learnt to do in [Exercise 8](008.md), but this time adding an identifier using `name:`.
|
||||
|
||||
```md
|
||||
```md
|
||||
```{figure} figures/example.png
|
||||
---
|
||||
width: 80%
|
||||
|
|
@ -118,7 +118,7 @@ Refer to Equation {eq}`eq:Newton`
|
|||
---
|
||||
Example figure.
|
||||
```
|
||||
```
|
||||
```
|
||||
|
||||
13. Refer to the figure in the format {numref}`Figure {number} <fig-example>` using `{numref}` as follows:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue