w_formats and multi_image %} ( {%- for fmt in img.formats -%} {%- if not loop.first -%}, {% endif -%} :download:`{{ fmt }} <{{ build_dir }}/{{ img.basename }}.{{ fmt }}>` {%- endfor -%} ) {% endif %} {% endfor %} .. only:: not html {% for img in images %} .. figure-mpl:: {{ build_dir }}/{{ img.basename }}.* {% for option in options -%} {{ option }} {% endfor -%} {{ caption }} {# appropriate leading whitespace added beforehand #} {% endfor %} a'