简体   繁体   中英

Prevent Jupyter Notebook from merging markdown cells

Whenever I export my Jupyter notebook to a PDF via LaTeX, it seems to merge the markdown cells adjacent to one another into the same line.

Example

In Jupyter notebook: 在此处输入图像描述 在此处输入图像描述

In exported PDF: 在此处输入图像描述

How do I prevent the merging of these markdown cells?

I managed to fix this issue by inserting cells between adjacent markdown cells and filling them up with <br> tags.

Like so:

*****************************
*      Markdown cell 1      *
*****************************

*****************************
*   <br> (1 or more times)  *
*****************************

*****************************
*      Markdown cell 2      *
*****************************

Note: This won't work if you insert the <br> tags at the end of the first markdown cell or at the beginning of the second one. The <br> tags need to be in their own separate cell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM