Nature Format Studio is a lightweight Flask app that turns a DOCX manuscript and a PPTX figure deck into a Nature-inspired web layout and PDF.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app/app.pyThen visit http://localhost:5000, upload your manuscript and figure deck, and download the formatted PDF.
- The manuscript parser uses the first paragraph as the title and the second paragraph as the abstract.
- Figures are pulled from images embedded in the PowerPoint slides.
- The PDF export uses ReportLab and does not require system GTK dependencies.
- Customize the layout by editing
app/static/styles.cssandapp/templates/preview.html.
If you previously installed WeasyPrint and see errors about missing gobject-2.0-0 or GTK, you are still running an old virtual environment. Delete it and recreate a clean one before running the app.
PowerShell
deactivate
Remove-Item -Recurse -Force .venv
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txtCommand Prompt (cmd.exe)
deactivate
rmdir /s /q .venv
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt