https://github.com/tdjsnelling/verseslides.sty
A LaTeX helper to output verse as images, suitable for posting to social media platforms like Instagram.
https://github.com/tdjsnelling/verseslides.sty
imagemagick latex poetry verse
Last synced: 2 months ago
JSON representation
A LaTeX helper to output verse as images, suitable for posting to social media platforms like Instagram.
- Host: GitHub
- URL: https://github.com/tdjsnelling/verseslides.sty
- Owner: tdjsnelling
- License: mit
- Created: 2023-12-06T17:08:35.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-18T08:37:03.000Z (9 months ago)
- Last Synced: 2025-02-08T13:44:31.383Z (4 months ago)
- Topics: imagemagick, latex, poetry, verse
- Language: TeX
- Homepage:
- Size: 2.39 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# verseslides.sty
A LaTeX helper to output verse as images, suitable for posting to social media platforms like Instagram.
Requires ImageMagick to be installed and the `magick` executable to be available.
Your compile command should also include the `-shell-escape` option, e.g.
```
xelatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex
```The `verseslide` command creates a [verse](https://texdoc.org/serve/verse.pdf/0) environment, so that's the syntax you should use.
## Usage
Add `verseslides.sty` and `texture.jpg` to your LaTeX project directory or into your system texmf directory.
The following basic example shows the helper in use:
```tex
\documentclass[
convert={
density=1500,
size=1080x1080,
outext=.png,
convertexe={magick}
},
multi=slide,
margin=1.5cm,
tikz,
12pt
]{standalone}\usepackage{verseslides}
\begin{document}
\sbox0{multa quoque et bello passus, dum conderet urbem,} % measure width
\verseslide{
Arma virumque cano, Troiae qui primus ab oris\\
Italiam, fato profugus, Laviniaque venit\\
litora, multum ille et terris iactatus et alto\\
vi superum saevae memorem Iunonis ob iram;\\
multa quoque et bello passus, dum conderet urbem,\\
inferretque deos Latio, genus unde Latinum,\\
Albanique patres, atque altae moenia Romae.\\!
}
\end{document}
```Simply add a new `\verseslide{ ... }` for each image you want to produce.
The resulting image will look something like this:
![]()