lecture-python.myst icon indicating copy to clipboard operation
lecture-python.myst copied to clipboard

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

Open shlff opened this issue 4 years ago • 2 comments

Hi @AakashGfude and @mmcky , in lecture lqcontrol,

  • there is an inserted figure located in a different place from its contexts.

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

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

shlff avatar Feb 10 '21 19:02 shlff

@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.

mmcky avatar Feb 15 '21 03:02 mmcky

This issue still exists. Please find the newest build:

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

shlff avatar Jun 08 '23 02:06 shlff