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

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

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.1.tar.gz (32.8 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.1-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scitex_msword-0.1.1.tar.gz
Algorithm Hash digest
SHA256 abe9b6e4610e31bfcbd7f9ed44519d4db89fa5a9aab6b6bff38e682c342a2daa
MD5 ddaf42699e139e8cc061c40bbebb1034
BLAKE2b-256 88ddd41cb232bcad30622b23332e8f584cd93ee85479c8f87deb6a15f82e443e

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_msword-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-msword

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

File details

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

File metadata

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

File hashes

Hashes for scitex_msword-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f11aa39303ba421ea151ef553be5e1028e49d83f7e2b774827d2cd2f27ac31e2
MD5 3a03f1fdaccbe86711e4871bf1ede533
BLAKE2b-256 b3d97b99cd0d2285fcf93a180568d934ac786dad9a1b7f212436f961b391296d

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_msword-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-msword

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