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.

Files for rstex, version 0.12
Filename, size File type Python version Upload date Hashes
Filename, size rstex-0.12.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page