Code Monkey home page Code Monkey logo

tex2ipy's Introduction

Tex2IPython Notebook

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.

tex2ipy's People

Contributors

prabhuramachandran avatar

Watchers

James Cloos avatar NIKHIL DHANDRE avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.