Gihan Jayatilaka : Resources : CMSC472


How to stop the PDF export from cutting off lines

  1. Download the .ipynb file (say it is downloaded as notebook.ipynb)
  2. Run the following in a linux shell
    sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
  3. Run the following command to convert the notebook to a PDF
    jupyter nbconvert --to pdf /content/notebook.ipynb
  4. If you are doing this on Colab itself,
    1. File >> Download >> Download .ipynb
    2. Upload it to the Files
    3. Run the following in a code block
      %%shell
      sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
      jupyter nbconvert --to pdf /content/notebook.ipynb
    4. Download the newly generated notebook.pdf. CHECK if all the lines are fine.