Skip to main content

Convert beamer presentations to IPython notebooks

Project description

Build Status codecov

This package makes it easy to convert a LaTeX file (currently) typically using the beamer package into an IPython notebook with RISE.

To use the package, simply run:

$ tex2ipy talk.tex talk.ipynb

This does not attempt to completely cover all TeX macros. Bulk of the basics should work hopefully covering 90% of the basic macros.

There is a simple example presentation LaTeX file in the examples directory along with the converted IPython notebook.

Customization

If you wish to support more macros or your own, you can subclass Tex2Cells and add any handlers for your own macros. Let us say you add additional methods to your subclass and in a file called customize.py you can use this file as follows:

$ tex2ipy -c customize.py talk.tex talk.ipynb

This will use your customizations for the conversion.

Known issues

  • Does not yet handle tables/tabular environments.

  • tex2ipy uses the very convenient TexSoup package to parse LaTeX. This package has a few minor issues with parsing inline math expressions embedded inside itemize/enumerate lists. This can cause some issues when converting files.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tex2ipy-0.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

tex2ipy-0.3-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file tex2ipy-0.3.tar.gz.

File metadata

  • Download URL: tex2ipy-0.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tex2ipy-0.3.tar.gz
Algorithm Hash digest
SHA256 52f908a610920d20d5eee186a636c41fb264587b5e32a10abeaad472be274560
MD5 3f47d0b781707b0fe4c165c827d30a71
BLAKE2b-256 d4bebd099a5614458999829bacc895c5cb1cf693caa3401339f3dc6e58949864

See more details on using hashes here.

File details

Details for the file tex2ipy-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for tex2ipy-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d307bcee57690873117eefa29392a854d908d07bdda26b72ebf02934195657a
MD5 9cf1be3a0473be8520dcdab0cda3e1ff
BLAKE2b-256 f35c9780af47885d539252c1921011fa5fb14eb46dd7d98e0de46e7396de8c93

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page