From cfdcfe8482e60f82b6408a83923c04577a2503dc Mon Sep 17 00:00:00 2001 From: Katia Gatt Date: Sat, 22 Mar 2025 17:59:12 +0100 Subject: [PATCH] final changes 09 --- book/syntax_exercises/009.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/book/syntax_exercises/009.md b/book/syntax_exercises/009.md index abe02a6..f3730e6 100644 --- a/book/syntax_exercises/009.md +++ b/book/syntax_exercises/009.md @@ -1,4 +1,6 @@ -In this exercise, you will learn how to create references to other parts of your book, such as chapters, sections, equations, tables, figures, and links. +# Exercise 9: Cross-referencing content + +In this exercise, you will learn how to create references to other parts of your book, such as chapters, sections, equations, tables and figures, as well as links. ::::::{topic} Exercise objective Can you create internal references to other sections, equations, tables, figures, and links? @@ -57,14 +59,14 @@ These three referencing methods can also be used for referencing equations, tabl ## 2. Referencing an Equation -To reference an equation, you need to define a label using `{eq}` and refer to it elsewhere in your text: +To reference an equation, you need to define a label when creating the equation and refer to it elsewhere in your text using `{eq}`: ```md -```{math} -:label: eq-example -E = mc^2 -``` + ```{math} + :label: eq-example + E = mc^2 + ``` ``` @@ -89,7 +91,7 @@ To reference a table, assign a label when defining it: ``` ``` -And refer to it using: +And refer to it using `{numref}`: ```md Table {numref}`tab-example` @@ -111,7 +113,7 @@ To reference a figure, label it when inserting it: ``` ``` -And refer to it using: +And refer to it using `{numref}`: ```md Figure {numref}`fig-example`