You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
plot_directive.py is not including possible ..image:: directive options (i.e. scale or align) when outputting to latex.
My Local Fix:
A partial fix is detailed below but it has one issue in that it will only parse one option through opts dictionary.
Details of Change:
{{ only_latex }}
{% for img in images %}
.. image:: {{ build_dir }}/{{ img.basename }}.pdf
{% endfor %}
was updated to:
{{ only_latex }}
{% for img in images %}
.. image:: {{ build_dir }}/{{ img.basename }}.pdf
{%- for option in options %}
{{ option }}
{% endfor %}
{% endfor %}
Know Issue:
[1] Currently cannot specify more than one option as the parser introduces new lines in between each option when constructing the .. image:: directive environment. I don't see how opts works?