quarto-dev / quarto-dev/quarto-cli
`fig-align` code cell option not supported in Typst
Open
Nobody has claimed this yet.
enhancement
typst
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/8766
Originally posted by psads-git February 17, 2024
Please, consider the following quarto document. The figure is not being centered. Am I doing something wrong? Thanks!
---
format: typst
jupyter: python3
---
```{python}
#| echo: false
#| fig-align: center
import matplotlib.pyplot as plt
import numpy as np
# Data for plotting
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)
fig, ax = plt.subplots()
ax.plot(t, s)
ax.set(xlabel='time (s)', ylabel='voltage (mV)',
title='About as simple as it gets, folks')
ax.grid()
plt.show()
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.