update tip

This commit is contained in:
Tom van Woudenberg 2025-03-27 08:37:21 +01:00
parent 09e0a7a2ce
commit 601c7704f0
2 changed files with 7 additions and 2 deletions

View file

@ -35,8 +35,8 @@ align: center
Make sure the file extension of your figure is correct because markdown differentiates capital letters! Make sure the file extension of your figure is correct because markdown differentiates capital letters!
``` ```
```{Warning} ```{tip}
If your figure is in a different directory than your chapter, you'll need to refer it using relative parts. If your figure is in a subdirectory of the directory of the chapter, go deeper with `subdirectory/` (e.g. `figures/<figure in figures-subdirectory>.png`). If your figure is in another directory, move upwards with `../` (e.g. `../../figure/<figure in figures-subdirectory which is located two folders above the current page>` ) If your figure is in a different directory than your chapter, you'll need to refer it using relative parts. If your figure is in a subdirectory of the directory of the chapter, go deeper with `subdirectory/` (e.g. `<subdirectory>/<figure in subdirectory>.png`). If your figure is in another directory, move upwards with `../` (e.g. `../../<subdirectory>/<figure which is located in a subdirectory two folders above the current page.png>` )
``` ```
6. To link and display an online figure, you can use the same `{figure}` directive. Just past in the : 6. To link and display an online figure, you can use the same `{figure}` directive. Just past in the :

View file

@ -30,6 +30,11 @@ If you leave the text part empty, the title of the chapter you're referring to w
```md ```md
[](path/to/file.md) [](path/to/file.md)
``` ```
```{tip}
If the chapter you're referring to is in different directory than your chapter, you'll need to refer it using relative parts. If the to be referenced chapter is in a subdirectory of the directory of the chapter, go deeper with `subdirectory/` (e.g. `<subdirectory>/<chapter in subdirectory>.md`). If the to be referenced chapter is in another directory, move upwards with `../` (e.g. `../../<subdirectory>/<chapter which is located in a subdirectory two folders above the current page.md>` )
```
3. Try out another way of referencing by using a target header. Navigate to the chapter or section you want to reference and assign it an identifier using `{ref}` as shown in the example below. 3. Try out another way of referencing by using a target header. Navigate to the chapter or section you want to reference and assign it an identifier using `{ref}` as shown in the example below.
```md ```md