updated numbering 09

This commit is contained in:
Katia Gatt 2025-03-26 15:50:13 +01:00
parent 8df769acf7
commit 3a2db9bc6f

View file

@ -76,7 +76,7 @@ This will display: My favourite exercise was {ref}`the first one <exercise_1>`.
$$ F = m \cdot a$$ (eq:Newton) $$ F = m \cdot a$$ (eq:Newton)
8. Refer to this equation by using `{eq}` and calling the identifier within the `` to achieve: Refer to Equation {eq}`eq:Newton`. 9. Refer to this equation by using `{eq}` and calling the identifier within the `` to achieve: Refer to Equation {eq}`eq:Newton`.
```md ```md
Refer to Equation {eq}`eq:Newton` Refer to Equation {eq}`eq:Newton`
@ -85,16 +85,17 @@ Refer to Equation {eq}`eq:Newton`
## Referencing a Table ## Referencing a Table
9. 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 ```{table} Example Table
@ -104,7 +105,7 @@ name: tab-example
| A | B | | A | B |
``` ```
10. 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:
```md ```md
@ -114,7 +115,7 @@ name: tab-example
## Referencing a Figure ## Referencing a Figure
11. This can also be done for a figure. Let's add a figure as we learnt to do in [Exercise 7](007.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
@ -127,7 +128,7 @@ name: tab-example
``` ```
``` ```
12. 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:
```md ```md
{numref}`Figure {number} <fig-example>` {numref}`Figure {number} <fig-example>`
@ -135,7 +136,7 @@ name: tab-example
## Referencing a Link ## Referencing a Link
13. Finally, let's reference a link, using the following syntax: 14. Finally, let's reference a link, using the following syntax:
```md ```md
[Text to display](url) [Text to display](url)
@ -148,13 +149,13 @@ Here is the [link to the template](https://teachbooks.github.io/template/).
``` ```
14. When you are ready, commit your changes to the repository by clicking on the green `Commit changes` button. 15. When you are ready, commit your changes to the repository by clicking on the green `Commit changes` button.
15. Add a commit message. 16. Add a commit message.
16. To see you changes, go to {octicon}`play;1em` `Actions` - The most recent workflow run `overview.md / the commit message of the commit you just made` - Wait for it to finish - In the summary, click on the link of your book shown in the table `Branches deployed` and under `Primary book at root` (getting bored of waiting? There'll be exercising on doing this locally which prevents you from waiting). 17. To see you changes, go to {octicon}`play;1em` `Actions` - The most recent workflow run `overview.md / the commit message of the commit you just made` - Wait for it to finish - In the summary, click on the link of your book shown in the table `Branches deployed` and under `Primary book at root` (getting bored of waiting? There'll be exercising on doing this locally which prevents you from waiting).
17. Do you see your change? If you don't see it click `CTRL`+`F5`/`Control`+`F5`to refresh the page. 18. Do you see your change? If you don't see it click `CTRL`+`F5`/`Control`+`F5`to refresh the page.
```{admonition} Check your understanding ```{admonition} Check your understanding