diff --git a/book/syntax_exercises/009.md b/book/syntax_exercises/009.md index 7b071a2..70d37f1 100644 --- a/book/syntax_exercises/009.md +++ b/book/syntax_exercises/009.md @@ -41,19 +41,19 @@ Then, you can reference this section in three ways: ```md My favourite exercise was {ref}`exercise_1`. ``` - This will display: *My favourite exercise was Exercise 1: First file edit.* + This will display: My favourite exercise was {ref}`exercise_1`. - Specifying a custom title text: ```md My favourite exercise was {ref}`the first one `. ``` - This will display: *My favourite exercise was the first one.* + This will display: My favourite exercise was {ref}`the first one `. - Using Markdown syntax: ```md My favourite exercise was [this one](exercise_1). ``` - This will display: *My favourite exercise was this one.* + This will display: My favourite exercise was [this one](exercise_1). ## 2. Referencing an Equation @@ -72,6 +72,10 @@ You can then reference this equation using: Equation {eq}`eq-example` ``` +This will display: Equation {eq}`eq-example`. + + + ## 3. Referencing a Table To reference a table, assign a label when defining it: @@ -112,7 +116,25 @@ And refer to it using: Figure {numref}`fig-example` ``` -## 5. Commit Your Changes +## 5. Referencing a Link + +To reference a link, use the following syntax: + +```md +[Text to display](https://teachbooks.github.io/template/) +``` +For example, you can write: + +```md +Here is the [link to the template](https://teachbooks.github.io/template/). +``` + +This wil display: Here is the [link to the template](https://teachbooks.github.io/template/). + + + + +## 6. Commit Your Changes 1. Once you have added your references, commit your changes to the repository. 2. Click the green `Commit changes` button. @@ -124,5 +146,5 @@ Figure {numref}`fig-example` Before moving on to the next exercise, make sure you understand the following: - How do you reference another chapter or section? -- How do you create a reference to an equation? -- How can you refer to a table or a figure in your book? +- How do you create a reference to an equation, table or figure in your book? +- How do you reference a link?