Skip to main content

LaTeX exporters for DELPH-IN data.

Project description

delphin-latex

LaTeX exporters for DELPH-IN data.

Currently only one exporter is available:

  • delphin.codecs.dmrstikz -- export DMRS for rendering with tikz-dependency

Contributions of other exporters are welcome!

Example

Here is an image of the PDF produced for the DMRS for "The chef whose soup spilled quit":

DMRS rendering for "The chef whose soup spilled quit."

Installation and Requirements

This package is a plugin for PyDelphin. Install it with pip:

$ pip install delphin-latex

It depends on the delphin.dmrs and delphin.predicate modules in PyDelphin version 1.0.0. For rendering, LaTeX and the tikz-dependency package are required.

Usage

The delphin.codecs.dmrstikz module implements the output functions of PyDelphin's Codec API:

  • dump() - serialize list and write to a file
  • dumps() - serialize list and return a string
  • encode() - serialize a single instance and return a string

The dump() and dumps() functions insert the LaTeX preamble and postamble so the result is a full document, while encode() only serializes the individual dependency environment.

Related

For visually presenting MRSs, DMRSs, and derivation trees, you may also be interested in delphin-viz which can save visualizations as PNG or SVG files.

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 delphin-latex, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size delphin_latex-1.0.1-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size delphin-latex-1.0.1.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

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