Skip to main content

Write scientific articles in Markdown and convert them to journal-ready LaTeX/PDF (Copernicus, Science, AMS, AGU, Nature, Elsevier, PNAS, arXiv, ...)

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

texmark-0.15.0.tar.gz (491.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

texmark-0.15.0-py3-none-any.whl (446.2 kB view details)

Uploaded Python 3

File details

Details for the file texmark-0.15.0.tar.gz.

File metadata

  • Download URL: texmark-0.15.0.tar.gz
  • Upload date:
  • Size: 491.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for texmark-0.15.0.tar.gz
Algorithm Hash digest
SHA256 2f7c9528b83fdba4b8136a6c3d5be8863a7f9736c6d1c5073135ea1c1f384d8c
MD5 e5063fdb2035557a2c7dfb2d5b4b2ba4
BLAKE2b-256 c9205f92709fe04910fb05b3aeba5df0a5c369947eeb1778c86757703cf80563

See more details on using hashes here.

Provenance

The following attestation bundles were made for texmark-0.15.0.tar.gz:

Publisher: tests.yml on perrette/texmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file texmark-0.15.0-py3-none-any.whl.

File metadata

  • Download URL: texmark-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 446.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for texmark-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d02509549fb10dce28542683d663a8b3d78a980eaeebade165b0f49ec09629f
MD5 e2f9d19fe0c526416b694ada1591f7c5
BLAKE2b-256 496c0c45cff04ceb9a7ff64935e6398436bd1eaf02312f9343dd36c1a3beb90b

See more details on using hashes here.

Provenance

The following attestation bundles were made for texmark-0.15.0-py3-none-any.whl:

Publisher: tests.yml on perrette/texmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page