Skip to main content

Console app and Python API for automated preparation of your LaTeX paper for submission in PLOS journals

Project description

About

Console app and Python API for automated preparation of your LaTeX paper for submission in PLOS journals.

Please cite this project in your papers:

@misc{latex2plos,
  title={{latex2plos public code repository}},
  author={Mari{\'c}, Petar},
  year={2019},
  url={https://bitbucket.org/petar/latex2plos/},
}

Major features

Multiple LaTeX files workflow

If your paper is organized into multiple .tex files, latex2plos will combine them into a single, cohesive .tex file.

\verbatiminput

Transforms a \verbatiminput file inclusion into its equivalent \begin{verbatim}...\end{verbatim} call.

\bibliography

Transforms a \bibliography file inclusion into its equivalent \begin{thebibliography}...\end{thebibliography} call.

This is done as PLOS does not allow submission of BiBTeX databases, and instead requires the reference information to be embedded in the paper directly, as per PLOS LaTeX guidelines.

\lstinputlisting

Copies over the files referenced by \lstinputlisting into the papers export directory.

\includegraphics

Copies over the figures referenced by \includegraphics into the papers export directory. It will also transform all figures into the TIFF image format (LZW compression, at 300 dpi) and remove/comment-out them from the papers exported PDF, as per PLOS LaTeX guidelines and figures guidelines.

Examples

An example paper, based on the PLOS LaTeX template, has been provided in the template4plos repository to verify the latex2plos features listed above.

Installation

To install latex2plos run:

$ pip install latex2plos

Console app usage

Quick start:

$ latex2plos <filename>

Show help:

$ latex2plos --help

Python API usage

Quick start:

>>> import logging
>>> logging.basicConfig(level=logging.DEBUG, format="[%(levelname)s] %(message)s")

>>> from latex2plos.main import latex2plos
>>> latex2plos('paper.tex')

Contribute

If you find any bugs, or wish to propose new features please let us know.

If you’d like to contribute, simply fork the repository, commit your changes and send a pull request. Make sure you add yourself to AUTHORS.

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 latex2plos, version 1.0.1
Filename, size & hash File type Python version Upload date
latex2plos-1.0.1-py2-none-any.whl (9.1 kB) View hashes Wheel 2.7
latex2plos-1.0.1.tar.gz (7.3 kB) View hashes 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