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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page