From 601c7704f01963b3ac1b6a4f9728dfb64b5f63a8 Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 27 Mar 2025 08:37:21 +0100 Subject: [PATCH] update tip --- book/syntax_exercises/008.md | 4 ++-- book/syntax_exercises/009.md | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/book/syntax_exercises/008.md b/book/syntax_exercises/008.md index 59c792b..c363da7 100644 --- a/book/syntax_exercises/008.md +++ b/book/syntax_exercises/008.md @@ -35,8 +35,8 @@ align: center Make sure the file extension of your figure is correct because markdown differentiates capital letters! ``` -```{Warning} -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/
.png`). If your figure is in another directory, move upwards with `../` (e.g. `../../figure/
` ) +```{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. `/
.png`). If your figure is in another directory, move upwards with `../` (e.g. `../..//
` ) ``` 6. To link and display an online figure, you can use the same `{figure}` directive. Just past in the : diff --git a/book/syntax_exercises/009.md b/book/syntax_exercises/009.md index 4fb0e8f..6f8e9ef 100644 --- a/book/syntax_exercises/009.md +++ b/book/syntax_exercises/009.md @@ -30,6 +30,11 @@ If you leave the text part empty, the title of the chapter you're referring to w ```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. `/.md`). If the to be referenced chapter is in another directory, move upwards with `../` (e.g. `../..//` ) +``` + 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