Skip to main content

An extension of docutils' rst2latex with inline math, equations, references, and raw latex

Project description

RsTeX provides additional functionality over rst2latex, which is a ReStructuedText to latex translator. It is based on ideas found in sphinx and provides a math role (:math:), reference role (:ref:), a math directive and a pure LaTeX “environment” with uspackage injection.

  • a math role :math: e.g. :math:`\frac{\log 23}{\pi}`

  • a ref role :ref: e.g. :ref:`my_label`

  • a cite role :cite: e.g. :cite:`lutz:2003

  • a math directive .. math:: e.g.:

    .. math::
      :label: my_label
    
      \pi \neq \sigma
  • a raw latex directive .. latex:: e.g.:

    .. latex::
      :usepackage: url
    
    
      \emph{a link} \url{http://muralab.org/rstex}
  • a bibliography directive .. bibliography:: .e.g:

    .. bibliography:: references
      :style: acm

    this requires a bibliography file called references.bib with a reference for lutz:2003

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

rstex-0.12.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file rstex-0.12.tar.gz.

File metadata

  • Download URL: rstex-0.12.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rstex-0.12.tar.gz
Algorithm Hash digest
SHA256 ef3b85d07bc8691f3f96e7731788f113e3e34c601e85e0fdcbd817726a64e754
MD5 7af2824d613f8c514335c0c002473f09
BLAKE2b-256 66faaab997066163ca2f6594c52c6dcd696f289b021e1bd9eaae7280e2405c7c

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