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.

Filename, size & hash SHA256 hash help File type Python version Upload date
rstex-0.12.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page