mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
update tip
This commit is contained in:
parent
09e0a7a2ce
commit
601c7704f0
2 changed files with 7 additions and 2 deletions
|
|
@ -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/<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>` )
|
||||
```{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. `<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 :
|
||||
|
|
|
|||
|
|
@ -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. `<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.
|
||||
|
||||
```md
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue