Sphinx extension to generate images from xournal files.
Project description
Sphinx extension to render images of Xournal files.
Usage
You will need to start by installing the extension.
pip install sphinx-xournal
Your sphinx conf.py file will need a few changes. To enable this extension it needs to be added to the extensions list.
extensions = [
"sphinx_xournal",
]
If xournalpp is not installed in the default location you need to specify one:
xournal_binary_path = "/a/different/place/xournalpp"
You are now ready to include your .xopp files in your marvelous documentation.
We provide you with 3 options:
Option 1:
You can generate a restructured image from any Xournal files. This block inherits all the restructured image tags, like :align:.
.. xournal-image:: ./example.xopp
:format: svg
:align: center
Sketch of an example.
Option 2:
Same applies for the figure block.
.. xournal-figure:: ./example.xopp
:format: svg
:align: center
Sketch of an example.
Option 3 (Experimental):
The last option allows you to embed the raw svg.
.. xournal-raw:: ./example.xopp
:format: svg
:align: center
Sketch of an example.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx_xournal-0.1.2.tar.gz
.
File metadata
- Download URL: sphinx_xournal-0.1.2.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f42e38acf9cdb91c054eef5bef84d736f1268b2213378837fbe68954211c5da |
|
MD5 | ba5e6b13b09ecb00c8712460a863621c |
|
BLAKE2b-256 | 9bc971929bee608d734968bad47ba921e817b96b67f9b16a9d2a7b29a86a9b20 |
File details
Details for the file sphinx_xournal-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sphinx_xournal-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a36d8efdbb8a45917fc56a735fbfec02aec5930b215837532ee8a8978769d0b |
|
MD5 | d3e86ab5b7e8233967e07c12084c3334 |
|
BLAKE2b-256 | dba44cf7a4b2f4404601d814b0f0db8c7ffe4f855c8238db2b6f2678fecb4f21 |