mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
revert old syntax
This commit is contained in:
parent
d8e3a347f8
commit
f6897186ba
1 changed files with 9 additions and 5 deletions
|
|
@ -19,12 +19,14 @@ Unless you are using a file format like `*.svg`, the raw contents of a visual me
|
|||
|
||||
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 same branch as where you've added your figure.
|
||||
|
||||
5. Copy this syntax and adjust the file name, width, alignment and caption (for more options see the [MyST documentation](https://myst-parser.readthedocs.io/en/latest/syntax/images_and_figures.html#block-level-images)):
|
||||
5. Copy this syntax and adjust the file name, width, alignment and caption (for more options see the [JupyterBook documentation](https://jupyterbook.org/en/stable/content/figures.html#figure-parameters)):
|
||||
|
||||
````md
|
||||
```{figure} figures/<new_figure>.png
|
||||
:width: 80%
|
||||
:align: center
|
||||
---
|
||||
width: 80%
|
||||
align: center
|
||||
---
|
||||
<caption text>
|
||||
```
|
||||
````
|
||||
|
|
@ -41,8 +43,10 @@ If your figure is in a different directory than your chapter, you'll need to ref
|
|||
|
||||
````md
|
||||
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
||||
:width: 80%
|
||||
:align: center
|
||||
---
|
||||
width: 80%
|
||||
align: center
|
||||
---
|
||||
<caption>
|
||||
```
|
||||
````
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue