mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
update
This commit is contained in:
parent
cbdc2afeb2
commit
5062f449ef
1 changed files with 5 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ Hello
|
|||
````
|
||||
````{tab-item} Embedding
|
||||
|
||||
1. You will first need to upload your media to the repository. Navigate to the folder called figures(`book/figures`) and make sure you are i the right branch. On the right top, click on `Add file` and `Upload new file`.
|
||||
1. You will first need to upload your media to the repository. Navigate to the folder called figures(`book/figures`) and make sure you are in the right branch. On the right top, click on `Add file > Upload new file`.
|
||||
|
||||
2. Choose the visual media you want to upload. Remember its file name as you will need it later.
|
||||
|
||||
|
|
@ -18,9 +18,9 @@ Hello
|
|||
|
||||
4. Now let's add the figure to a chapter. Navigate to the file you want to work in (for example `book/some_content/overview.md`) and make sure you're in the correct branch.
|
||||
|
||||
5. Copy this syntax
|
||||
5. Copy this syntax and adjust the file name, width, alignment and caption.
|
||||
|
||||
```python
|
||||
```md
|
||||
|
||||
```{figure} figures/<new_figure>.PNG
|
||||
---
|
||||
|
|
@ -28,13 +28,12 @@ width: 80%
|
|||
align: center
|
||||
name: my_new_figure
|
||||
---
|
||||
New figure
|
||||
|
||||
<caption>
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
```{Warning}
|
||||
|
||||
Make sure the file extension of your figure is correct because markdown differentiates capital letters!
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue