mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-13 14:45:52 +00:00
indent retry
This commit is contained in:
parent
efbfe489f6
commit
99e915ad07
1 changed files with 19 additions and 10 deletions
|
|
@ -87,15 +87,22 @@ 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:`.
|
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
|
```{table} Example Table
|
||||||
:name: tab-example
|
:name: tab-example
|
||||||
| Column 1 | Column 2 |
|
| Column 1 | Column 2 |
|
||||||
|----------|----------|
|
|----------|----------|
|
||||||
| A | B |
|
| A | B |
|
||||||
```
|
```
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
|
||||||
|
```{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:
|
11. Refer to the table like {numref}`Table {number} <tab-example>` using `{numref}` and `{number}` as follows:
|
||||||
|
|
||||||
|
|
@ -105,19 +112,21 @@ Refer to Equation {eq}`eq:Newton`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Referencing a Figure
|
## Referencing a Figure
|
||||||
|
|
||||||
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:`.
|
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
|
```{figure} figures/example.png
|
||||||
---
|
---
|
||||||
width: 80%
|
width: 80%
|
||||||
align: center
|
align: center
|
||||||
name: fig-example
|
name: fig-example
|
||||||
---
|
---
|
||||||
Example figure.
|
Example figure.
|
||||||
```
|
```
|
||||||
|
```
|
||||||
```
|
```
|
||||||
|
|
||||||
13. Refer to the figure in the format {numref}`Figure {number} <fig-example>` using `{numref}` as follows:
|
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