mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
updated content
This commit is contained in:
parent
b33df99f2b
commit
36cd954095
1 changed files with 28 additions and 6 deletions
|
|
@ -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 <exercise_1>`.
|
||||
```
|
||||
This will display: *My favourite exercise was the first one.*
|
||||
This will display: My favourite exercise was {ref}`the first one <exercise_1>`.
|
||||
|
||||
- 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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue