QuantEcon / lecture-python.myst

Quantitative Economics with Python
https://python.quantecon.org
83 stars 44 forks source link

[jupyterbook-latex] [lqcontrol] wrong location for an inserted figure #91

Open shlff opened 3 years ago

shlff commented 3 years ago

Hi @AakashGfude and @mmcky , in lecture lqcontrol,

Please see the screenshot (left: PDFs generated by rst, right: PDFs generated by myst):

Screen Shot 2021-02-11 at 4 58 01 am

mmcky commented 3 years ago

@shlff maybe in this case we should update our latex figure placement rules

https://www.sphinx-doc.org/en/master/latex.html

'figure_align'
Latex figure float alignment. Whenever an image doesn’t fit into the current page, it will be ‘floated’ into the next page but may be preceded by any other text. If you don’t like this behavior, use ‘H’ which will disable floating and position figures strictly in the order they appear in the source.

Default: 'htbp' (here, top, bottom, page)

maybe we should switch on H in this case (in _config.yml) so they are always in place.

shlff commented 1 year ago

This issue still exists. Please find the newest build:

https://python.quantecon.org/_pdf/quantecon-python.pdf