wandyme / MathematicaCellsToTeX

Convert Mathematica cells to TeX, retaining formatting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cells to TeX

releases SemVer 2.0.0 license MIT ![Mathematica 8.0 - 11.0](http://img.shields.io/badge/Mathematica-8.0 -- 11.0-brightgreen.svg)

Convert Mathematica cells to TeX, retaining formatting.

Description

This package provides functions converting Mathematica cells to specific type of TeX code, compatible with mmacells package. Compilation of this TeX code results in output resembling FrontEnd appearance of converted cells.

You can find usage examples in answer to "How best to embed various cell groups into a latex project?" question on Mathematica Stack Exchange.

Installation

Automatic installation

To install CellsToTeX package evaluate:

Import["https://raw.githubusercontent.com/jkuczm/MathematicaCellsToTeX/master/BootstrapInstall.m"]

Note that this will also install dependency package SyntaxAnnotations and ProjectInstaller package, if you don't have it already installed.

To load CellsToTeX package evaluate: Needs["CellsToTeX`"].

Manual installation

  1. Download latest released CellsToTeX.zip file.

  2. Extract downloaded CellsToTeX.zip to any directory which is on Mathematica $Path, e.g. to one obtained by evaluating FileNameJoin[{$UserBaseDirectory,"Applications"}].

  3. Install dependency: SyntaxAnnotations.

  4. To load the package evaluate: Needs["CellsToTeX`"]

No installation

To use package directly from the Web, without installation, evaluate:

Import["https://raw.githubusercontent.com/jkuczm/MathematicaCellsToTeX/master/NoInstall.m"]

Compatibility

This package contains extensive automatic test suite. Package is tested with all Mathematica major and minor versions from 8.0 to 11.0 on Linux. Since it doesn't contain any OS specific code it should work with above versions on all operating systems.

There's also no obvious reason for package not to work on earlier (6.0+) versions of Mathematica.

Bugs and requests

If you find any bugs or have feature request please create an issue on GitHub.

Contributing

Feel free to fork and send pull requests.

If you want to use Ant scripts from this repository you will also need to install WWBCommon project.

All contributions are welcome!

License

This package is released under The MIT License.

Attribution

Parts of code of this project are a derivative of code written by Leonid Shifrin in Exception checking and trapping techniques with Throw and Catch thread on Mathematica Stack Exchange, used under Creative Commons Attribution-ShareAlike 3.0 Unported License.

Parts of code of this project are a derivative of code written by John Fultz in answer to "How can I get the unchanged Box form of an arbitrary expression?" question on Mathematica Stack Exchange, used under Creative Commons Attribution-ShareAlike 3.0 Unported License.

Versioning

Releases of this package will be numbered using Semantic Versioning guidelines.

About

Convert Mathematica cells to TeX, retaining formatting.

License:Other


Languages

Language:Mathematica 100.0%