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
As an example this notebook renders correctly in nbviewer and in the live notebook but when it is converted to Latex the cell output is forced to one line (pdf output). I've traced the problem to the addition of adjustbox to equation output. According to the documentation at ftp://ftp.dante.de/tex-archive/macros/latex/contrib/adjustbox/adjustbox.pdf (section 4.10, page 20) minipage must be used with adjustbox to allow for the use of linebreaks - "This allows for line breaks and footnotes in the adjustbox ."
Adjustbox was implemented in PR ipython/ipython#5694 to limit equations to page width but instead of using "max width" it should be minipage (line 164 of IPython/nbconvert/templates/latex/base.tplx). However there needs to be an additional addition of '' for ever newline in an equation's output and I don't know where that needs to be added. This also changes the behaviour of the rendering of the equation from centered to left justified even when '$$' was used. I don't know how to fix this.
The text was updated successfully, but these errors were encountered:
Thanks for the detailed explanation. Hopefully we can find a fix. It might be that we should back off adjustbox if the new bug is worse than the prior one.
@damontallen opened ipython/ipython#8026
As an example this notebook renders correctly in nbviewer and in the live notebook but when it is converted to Latex the cell output is forced to one line (pdf output). I've traced the problem to the addition of adjustbox to equation output. According to the documentation at ftp://ftp.dante.de/tex-archive/macros/latex/contrib/adjustbox/adjustbox.pdf (section 4.10, page 20) minipage must be used with adjustbox to allow for the use of linebreaks - "This allows for line breaks and footnotes in the adjustbox ."
Adjustbox was implemented in PR ipython/ipython#5694 to limit equations to page width but instead of using "max width" it should be minipage (line 164 of IPython/nbconvert/templates/latex/base.tplx). However there needs to be an additional addition of '' for ever newline in an equation's output and I don't know where that needs to be added. This also changes the behaviour of the rendering of the equation from centered to left justified even when '$$' was used. I don't know how to fix this.
The text was updated successfully, but these errors were encountered: