Skip to main content

A pandoc filter for changing color in LaTeX

Project description

pandoc-latex-color

Python package Coveralls Scrutinizer PyPI version PyPI format License Python version Development Status

pandoc-latex-color is a pandoc filter for setting the color to Span, and Div that have speficied classes or latex-color attribute.

Documentation

See the wiki pages.

Usage

To apply the filter, use the following option with pandoc:

--filter pandoc-latex-color

Installation

pandoc-latex-color requires python, a programming language that comes pre-installed on linux and Mac OS X, and which is easily installed on Windows. Either python 2.7 or 3.x will do.

Install pandoc-latex-color as root using the bash command

pip install pandoc-latex-color

To upgrade to the most recent release, use

pip install --upgrade pandoc-latex-color

To upgrade to the current code, use

pip install --upgrade --force git+https://github.com/chdemko/pandoc-latex-color

pip is a script that downloads and installs modules from the Python Package Index, PyPI. It should come installed with your python distribution. If you are running linux, pip may be bundled separately. On a Debian-based system (including Ubuntu), you can install it as root using

apt-get update
apt-get install python-pip

It uses the xcolor LaTeX package to handle correctly colors in spans and divs and the soulutf8 package for highlighing the text.

Getting Help

If you have any difficulties with pandoc-latex-color, please feel welcome to file an issue on github so that we can help.

Project details


Download files

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

Source Distribution

pandoc-latex-color-0.2.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

pandoc_latex_color-0.2.1-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pandoc-latex-color-0.2.1.tar.gz.

File metadata

  • Download URL: pandoc-latex-color-0.2.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for pandoc-latex-color-0.2.1.tar.gz
Algorithm Hash digest
SHA256 be50662e0773145a530c82760740f52497d6e249933207fbb034b1c597ad0f60
MD5 0b2cb7f2b7125e8356bf2f056a8bd3bb
BLAKE2b-256 16a764c7b93820a8914b3d4308bfb004ace514006ca3cffb55e972cd04128dc3

See more details on using hashes here.

File details

Details for the file pandoc_latex_color-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pandoc_latex_color-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for pandoc_latex_color-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 44ee6a40783aeb0d8c5d39f739670cd7a1f5adc181edd2662a1a6f848379484f
MD5 9e7773c0f5463c685fbd8e431b0924d5
BLAKE2b-256 7dcc4f60bc197fd4200614c2ad30e96844e037000fac4403f5c160ee9054abb9

See more details on using hashes here.

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