All Projects → jonocarroll → Mathpix

jonocarroll / Mathpix

Query the mathpix API to convert math images to LaTeX

Programming Languages

r
7636 projects

Labels

Projects that are alternatives of or similar to Mathpix

Jabref
Graphical Java application for managing BibTeX and biblatex (.bib) databases
Stars: ✭ 2,385 (+1046.63%)
Mutual labels:  latex
Hustpapertemp
华中科技大学本科毕业论文LaTeX模板 2017
Stars: ✭ 189 (-9.13%)
Mutual labels:  latex
Vscode Ltex
LTeX – Grammar/spell checker for VS Code with LanguageTool and LaTeX/Markdown support
Stars: ✭ 199 (-4.33%)
Mutual labels:  latex
Plotneuralnet
Latex code for making neural networks diagrams
Stars: ✭ 14,316 (+6782.69%)
Mutual labels:  latex
Resume
Software developer resume in Latex
Stars: ✭ 2,664 (+1180.77%)
Mutual labels:  latex
Highlight
Source code to formatted text converter
Stars: ✭ 191 (-8.17%)
Mutual labels:  latex
Arxiv Latex Cleaner
arXiv LaTeX Cleaner: Easily clean the LaTeX code of your paper to submit to arXiv
Stars: ✭ 2,689 (+1192.79%)
Mutual labels:  latex
Csharpmath
LaTeX. in C#. (ported from the wonderful iosMath project).
Stars: ✭ 205 (-1.44%)
Mutual labels:  latex
Gitdags
A package for drawing educational Git history graphs
Stars: ✭ 188 (-9.62%)
Mutual labels:  latex
Bookdownplus
The easiest way to use R package bookdown for writing varied types of books and documents
Stars: ✭ 198 (-4.81%)
Mutual labels:  latex
Awesome Cv
📄 Awesome CV is LaTeX template for your outstanding job application
Stars: ✭ 14,957 (+7090.87%)
Mutual labels:  latex
Ipypublish
A workflow for creating and editing publication ready scientific reports and presentations, from one or more Jupyter Notebooks, without leaving the browser!
Stars: ✭ 188 (-9.62%)
Mutual labels:  latex
Latex G7 32
Стиль LaTeX для оформления отчетов о НИР, расчётно-пояснительной записки к курсовым и дипломным работам (ГОСТ 7.32-2001 и ГОСТ РВ 15.110-2003).
Stars: ✭ 193 (-7.21%)
Mutual labels:  latex
Novathesis
LaTeX template for MSc and PhD thesis (for NOVA University Lisbon an other institutions)
Stars: ✭ 185 (-11.06%)
Mutual labels:  latex
Inkscape Shortcut Manager
Inkscape shorcut manager
Stars: ✭ 200 (-3.85%)
Mutual labels:  latex
Arxiv Collector
A little Python script to collect LaTeX sources for upload to the arXiv.
Stars: ✭ 179 (-13.94%)
Mutual labels:  latex
Nudtpaper
A LaTeX template for Master/PhD Thesis of NUDT
Stars: ✭ 189 (-9.13%)
Mutual labels:  latex
Katex
Fast math typesetting for the web.
Stars: ✭ 14,623 (+6930.29%)
Mutual labels:  latex
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (-5.77%)
Mutual labels:  latex
Sane tikz
Reconquer the canvas: beautiful Tikz figures without clunky Tikz code
Stars: ✭ 196 (-5.77%)
Mutual labels:  latex

mathpix

Project Status: Active - The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge packageversion Last-changedate

Linux/Mac Travis Build Status AppVeyor Build Status codecov

Downloads GitHub forks GitHub stars Twitter

Installation:

mathpix is now on CRAN, so you can install using

install.packages("mathpix")

If you’re after newer development features (if there are any); you can install from GitHub using

devtools::install_github("jonocarroll/mathpix")

Authentication

The free API key has been removed due to overuse. Please sign up at https://dashboard.mathpix.com/ then save your ID and key in your .Renviron file as

MATHPIX_APP_ID='yourid'
MATHPIX_APP_KEY='yourkey'

Note that this requires you to accept Mathpix’s terms and conditions and sign up for any relevant pricing scheme.

You can check that your credentials are loaded correctly with credentials().

Usage

If you have an image you would rather properly encode in LaTeX, for example

then simply calling

mathpix("./integral.jpg")

(with the appropriate path to the file) will insert a LaTeX block into your document which will render what the image represents

$$
 \int \frac { 4 x } { \sqrt { x ^ { 2 } + 1 } } d x  
$$

which renders to

Even complicated, hand-drawn figures work

mathpix("matrix_3x3.jpg")
$$
 A = \left( \begin{array} { l l l } { 2 } & { 7 } & { 3 } \\ { 3 } & { 5 } & { 2 } \\ { 9 } & { 4 } & { 1 } \\ \end{array} \right)  
$$

If your image only result in warnings and no LaTeX, use retry = TRUE to attempt some pre-processing of the image into a more amenable form. Unfortunately, there are still images which fail.

To not insert the resulting equation directly into your document, but rather store it in a variable, use insert = FALSE.

If you also wish to generate the images (although rmarkdown will gladly do this for you) this can be achieved using

render_latex(latex, fileDir)

where latex is the LaTeX generated by mathpix() (or any other escaped LaTeX) and fileDir is the (optional) directory where you wish to save the image (by default, a temp file). This requires that you have pdflatex set up correctly and available on your machine.

API Documentation

Refer to http://docs.mathpix.com/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].