Skip to content
Script + how-to latex with ipython inline.
TeX Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
cell.png
convertpdf.sh
defs.tex
full-ipy.png
install.sh
latexdefs.tex
result.png
template.tplx
typical.png

README.md

ipython-latex

How to install

  1. Add this repo to your path (or run install.sh which does just that).

How to use with latex content in Jupyter

  1. Put desired packages, definitions, etc. into the template.tplx file in this repo.
  2. Run convertpdf.sh title src.ipynb to convert your Jupyter notebook into a PDF with the code (and outputs) inlined, make sure to call it in the directory of the notebook. The title will be title, duh.
  3. The resulting PDF with src.pdf in the cwd, along with other random latex junk.

This isn't any additional functionality over jupyter, just a convenient wrapper.

How to add latex content to Jupyter

Take a typical ipython notebook:

typical ipython

With a cell highlighted, click on the cell menu > cell type > raw.

menu sel

Then an ipython notebook like this:

ipy after

Will look like this PDF after running convertpdf.sh "Homework 2" solutions2.ipynb:

ipy result

Yes, I hardcoded my name. Change template.tplx accordingly.

You can’t perform that action at this time.