mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
Update 008.md
This commit is contained in:
parent
8a0b9e0a1b
commit
6f407ddebe
1 changed files with 2 additions and 8 deletions
|
|
@ -7,8 +7,7 @@ To help you illustrate your content, it can be sueful to add some type of visual
|
|||
|
||||
In Jupyter Book, you can embed a YouTube video using the `{iframe}` directive, ensuring you use the embed URL format.
|
||||
|
||||
```md
|
||||
|
||||
<!-- ```md
|
||||
```{iframe} https://www.youtube.com/embed/x2eonqw5M6o
|
||||
---
|
||||
width: 80%
|
||||
|
|
@ -17,7 +16,6 @@ name: my_linked_video
|
|||
---
|
||||
<caption>
|
||||
```
|
||||
|
||||
```
|
||||
For example, the above code cell, will result in the following video.
|
||||
|
||||
|
|
@ -28,12 +26,11 @@ align: center
|
|||
name: my_linked_video
|
||||
---
|
||||
<caption>
|
||||
```
|
||||
``` -->
|
||||
|
||||
To link and display an online figure, you can use the `{figure}` directive, which also allows captions and references.
|
||||
|
||||
```md
|
||||
|
||||
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
||||
---
|
||||
width: 80%
|
||||
|
|
@ -42,7 +39,6 @@ name: my_linked_figure
|
|||
---
|
||||
<caption>
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
||||
|
|
@ -68,7 +64,6 @@ name: my_linked_figure
|
|||
5. Copy this syntax and adjust the file name, width, alignment and caption.
|
||||
|
||||
```md
|
||||
|
||||
```{figure} figures/<new_figure>.PNG
|
||||
---
|
||||
width: 80%
|
||||
|
|
@ -77,7 +72,6 @@ name: my_new_figure
|
|||
---
|
||||
<caption>
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
```{Warning}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue