Skip to main content

MS Word (.docx) reader/writer with journal-style profiles (MDPI, IEEE, Springer, Elsevier, RESNA, IOP) — standalone module from the SciTeX ecosystem

Project description

scitex-msword

MS Word (.docx) reader/writer with journal-style profiles, extracted from the SciTeX ecosystem as a standalone package.

Install

pip install scitex-msword

Usage

import scitex_msword as sxm

# Word -> intermediate JSON-like document
doc = sxm.load_docx("input.docx", profile="generic")

# JSON-like document -> Word (apply a journal style)
sxm.save_docx(doc, "output.docx", profile="mdpi-ijerph")

# DOCX -> LaTeX (requires the umbrella `scitex` package for the .tex export step)
sxm.convert_docx_to_tex(
    "manuscript.docx", "manuscript.tex",
    profile="resna-2025", image_dir="figures",
)

Built-in profiles

generic, mdpi-ijerph, resna-2025, iop-double-anonymous, ieee, springer, elsevier. Register your own with sxm.register_profile.

Helpers

link_captions_to_images, link_captions_to_images_by_proximity, normalize_section_headings, validate_document, create_post_import_hook.

Status

Standalone fork of scitex.msword. Only runtime dep is python-docx. The umbrella scitex.msword import path is preserved via a sys.modules-alias bridge. convert_docx_to_tex lazily imports scitex.tex, so it works only when the umbrella package is also installed.

License

AGPL-3.0-only (see LICENSE).

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

scitex_msword-0.1.0.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

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

scitex_msword-0.1.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file scitex_msword-0.1.0.tar.gz.

File metadata

  • Download URL: scitex_msword-0.1.0.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_msword-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e3878a2519a0459ced3130cdb7dacaf0dbc7c1f58e51f5c07946da82a51dc40
MD5 50506efd4ca4b220a4db183f199b98fd
BLAKE2b-256 a5db54e935edff0ecef304156d5c7b294edbeea10e54157a2c1d08e1e853eb71

See more details on using hashes here.

File details

Details for the file scitex_msword-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_msword-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_msword-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5174270eec22198ec99717fd38751a4ee2fd1d6cf3cb42568625e098dd315a25
MD5 0e085e1dc6ae05e791aea85dee1f20c2
BLAKE2b-256 8f95809ec118fa11288a4c00193493768e3df2d00d968367ce57f28893da44bd

See more details on using hashes here.

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