Skip to content

missinglinkelectronics/sphinxcontrib-scalebybuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sphinx Scale Image By Builder Extension

This extension allows setting the scaling factor of images and figures depending on the builder.

Installation

Just install via pip:

$ pip install sphinxcontrib-scalebybuilder

Then add the module sphinxcontrib.scalebybuilder to the extensions list in your conf.py.

Usage

Scale images or figures differently depending on the builder by suffixing the scale option with -<builder>:

.. image:: img.png
   :scale-html: 75%
   :scale-latex: 50%

.. figure:: fig.png
   :scale-html: 150%
   :scale-latex: 25%

   A figure scaled to 150 % in HTML and 25 % in LaTeX.

About

Sphinx scale image by builder extension

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages