Skip to main content

texmark

texmark

pypi python tests docs

Write scientific articles in Markdown and convert them to journal-ready LaTeX and PDF.

  • Preview while writing. Markdown renders in most editors (VS Code, JetBrains, vim) and on GitHub — equations included — so you can read a draft without running a LaTeX build.
  • Lightweight, portable text. Markdown uses much less markup than LaTeX, so the source stays readable and works with ordinary tools: edit it on GitHub, version it with Git (branches, diffs, pull requests), or paste it into a Google Doc to draft interactively with collaborators who prefer that, then bring it back.
  • One source, several journal templates. The same Markdown compiles to any of the supported LaTeX templates; changing the target journal means editing one field in the YAML header rather than reformatting the text.
  • LaTeX output is kept. The generated .tex sits next to the PDF, so you can stop using texmark at any point and continue in LaTeX directly — usually necessary for the final journal-specific adjustments anyway.

📖 Documentation

Full documentation lives at https://perrette.github.io/texmark/:

Installation

pip install texmark

texmark also needs pandoc and a LaTeX distribution (pdflatex, bibtex, latexmk). See the installation page for the per-platform details.

Quickstart

See example.md for a sample markdown file with yaml metadata in the header.

texmark example.md          # markdown → tex
texmark example.md --pdf    # markdown → pdf

For another journal, change the journal -> template field in the yaml metadata, or pass -j for a quick test:

texmark example.md --pdf -j science -o build/example-science.pdf --tex build/example-science.tex

texmark schema prints the JSON Schema of the yaml metadata, for editor completion (see the YAML reference).

See the quickstart and journal templates pages for more.

From the same author

A few other open-source tools I maintain.

Scientific writing & data

Speech to Text (dictate) and Text to Speech (read-aloud) tools

  • scribe — speech-to-text dictation.
  • bard — text-to-speech reader.

Acknowledgements

Parts of this project — notably extending the set of supported journals — were developed with AI assistance.

Metadata

Release files for texmark 0.18.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for texmark 0.18.2
File Size Uploaded Provenance Actions
texmark-0.18.2.tar.gz 633.5 kB With provenance Details for texmark-0.18.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for texmark 0.18.2
File Interpreter ABI Platform Actions
texmark-0.18.2-py3-none-any.whl Python 3 none any Details for texmark-0.18.2-py3-none-any.whl

Total release size: 1.2 MB

Release files / texmark-0.18.2.tar.gz

Download URL texmark-0.18.2.tar.gz
Size 633.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1a45f938ce3b7f189d8f64a8b548f486aed7f9055f1f95c12083569ba54df919
BLAKE2b-256 checksum
How to use checksums
6f095b706762e7eac27b8edd4518aafb4975b0e6069f9622f027c6f1d58246b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / texmark-0.18.2-py3-none-any.whl

Download URL texmark-0.18.2-py3-none-any.whl
Size 519.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf0b8cb674280fc5414690f321ef324c0e0abc9f1bc806550a5099a9e47ed1c3
BLAKE2b-256 checksum
How to use checksums
671d684aa0c68cf58af513422c2a14571143d25e4e82e6588794228a3b9e6370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for texmark 0.18.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for texmark-0.18.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.18.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page