skip to navigation
skip to content

sphinxcontrib-plantuml 0.4

Sphinx "plantuml" extension

Latest Version: 0.6


Once you enable this extension,

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinxcontrib.plantuml']

you may need to specify plantuml command in your

plantuml = 'java -jar /path/to/plantuml.jar'

Instead, you can install a wrapper script in your PATH:

% cat <<EOT > /usr/local/bin/plantuml
#!/bin/sh -e
java -jar /path/to/plantuml.jar "$@"
% chmod +x /usr/local/bin/plantuml

Then, write PlantUML text under .. uml:: directive:

.. uml::

   Alice -> Bob: Hi!
   Alice <- Bob: How are you?

You can specify height, width or scale, but currently these options are only supported by LaTeX builder:

.. uml::
   :width: 50mm

   Foo <|-- Bar

For details, please see PlantUML documentation.


Path to plantuml executable. (default: ‘plantuml’)

Type of output image for HTML renderer. (default: ‘png’)

png:generate only .png
svg:generate .svg and .png as a fallback

Type of output image for LaTeX renderer. (default: ‘png’)

eps:generate .eps (not supported by pdflatex)
pdf:generate .eps and convert it to .pdf (requires epstopdf)
png:generate .png

Because embedded png looks pretty bad, it is recommended to choose pdf for pdflatex or eps for platex.

Path to epstopdf executable. (default: ‘epstopdf’)
File Type Py Version Uploaded on Size
sphinxcontrib-plantuml-0.4.tar.gz (md5) Source 2014-04-23 4KB
  • Downloads (All Versions):
  • 358 downloads in the last day
  • 2304 downloads in the last week
  • 8782 downloads in the last month