Update 009.md

This commit is contained in:
Katia Gatt 2025-03-26 16:00:50 +01:00
parent 278ac39643
commit efbfe489f6

View file

@ -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: