Skip to main content

latex code manipulation

Project description

Install

pip install latexman

Quick Start

In LaTeX (as opposed to classic TeX) You should use \(123\) and \[ 123\] environments instead of $123$ and $$123$$ respectively.

See https://tex.stackexchange.com/questions/510/are-and-preferable-to-dollar-signs-for-math-mode

The function convert_dollar_sign_to_latex_counterpart() helps converting $123$ in math mode to \(123\) and $$123$$ to \[123\]

from latexman import convert_dollar_sign_to_latex_counterpart as conv

filepath = 'main.tex'
conv(filepath)

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

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

Source Distribution

latexman-0.5.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

latexman-0.5-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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