Skip to main content

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.

Release files for tex2ipy 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tex2ipy 0.3
File Size Uploaded
tex2ipy-0.3.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tex2ipy 0.3
File Interpreter ABI Platform
tex2ipy-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 24.3 kB

Release files / tex2ipy-0.3.tar.gz

Download URL tex2ipy-0.3.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
52f908a610920d20d5eee186a636c41fb264587b5e32a10abeaad472be274560
BLAKE2b-256 checksum
How to use checksums
d4bebd099a5614458999829bacc895c5cb1cf693caa3401339f3dc6e58949864
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tex2ipy-0.3-py3-none-any.whl

Download URL tex2ipy-0.3-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d307bcee57690873117eefa29392a854d908d07bdda26b72ebf02934195657a
BLAKE2b-256 checksum
How to use checksums
f35c9780af47885d539252c1921011fa5fb14eb46dd7d98e0de46e7396de8c93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page