Skip to main content

A pandoc filter for changing color in LaTeX

Project description

Build Status 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.1.0.tar.gz (7.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pandoc-latex-color-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.15rc1

File hashes

Hashes for pandoc-latex-color-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f9f8284e8503c05097c157ea8b5a1267ac7c09cd5b29398592ad8eeb636de62e
MD5 46e9d65c5437f9538fcd32e1aa154b46
BLAKE2b-256 ca7d5cede0eb79bbbd62e5b16a5f77de03f7536a993b792dcf4a6e33d383cc45

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