Skip to content

victordb9997/paper-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nature Format Studio

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.

Quick start

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app/app.py

Then visit http://localhost:5000, upload your manuscript and figure deck, and download the formatted PDF.

Notes

  • 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.css and app/templates/preview.html.

Troubleshooting (Windows)

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.txt

Command Prompt (cmd.exe)

deactivate
rmdir /s /q .venv
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors