From 99e915ad0745751ba9474ccb44192a0854907d9e Mon Sep 17 00:00:00 2001 From: Katia Gatt Date: Wed, 26 Mar 2025 16:16:16 +0100 Subject: [PATCH] indent retry --- book/syntax_exercises/009.md | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/book/syntax_exercises/009.md b/book/syntax_exercises/009.md index cb2fdd4..e7384e9 100644 --- a/book/syntax_exercises/009.md +++ b/book/syntax_exercises/009.md @@ -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:`. -```md + ```md ```{table} Example Table :name: tab-example | Column 1 | Column 2 | |----------|----------| | A | B | ``` -``` + ``` + ``` +```{table} Example Table +:name: tab-example +| Column 1 | Column 2 | +|----------|----------| +| A | B | +``` 11. Refer to the table like {numref}`Table {number} ` using `{numref}` and `{number}` as follows: @@ -103,6 +110,7 @@ Refer to Equation {eq}`eq:Newton` ```md {numref}`Table {number} ` ``` + ## Referencing a Figure @@ -110,14 +118,15 @@ 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 - ```{figure} figures/example.png - --- - width: 80% - align: center - name: fig-example - --- - Example figure. - ``` +```{figure} figures/example.png +--- +width: 80% +align: center +name: fig-example +--- +Example figure. +``` +``` ``` 13. Refer to the figure in the format {numref}`Figure {number} ` using `{numref}` as follows: