Skip to content

Fix PDF and LaTeX export layout for Chinese notes - #2

Merged
Cat-blizzard merged 1 commit into
Cat-blizzard:mainfrom
hongzuoj-pixel:fix/pdf-tex-export
May 20, 2026
Merged

Fix PDF and LaTeX export layout for Chinese notes#2
Cat-blizzard merged 1 commit into
Cat-blizzard:mainfrom
hongzuoj-pixel:fix/pdf-tex-export

Conversation

@hongzuoj-pixel

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the PDF and LaTeX export workflow for Chinese/CJK notes.

Changes

  • Changed PDF export to prefer DOCX → LibreOffice → PDF instead of Markdown → LaTeX → PDF.
  • Kept LaTeX export as a technical source export.
  • Improved LaTeX export settings for Chinese notes using ctexart.
  • Updated GUI export hints for Pandoc / LibreOffice requirements.
  • Updated README, GUI README, and ROADMAP.
  • Added/updated export tests.

Why

The previous Pandoc + LaTeX PDF route caused Chinese text loss and unstable figure layout. The new DOCX-based PDF route is more stable for Chinese notes and screenshots.

Tests

  • python -m py_compile gui/app.py gui/studio_core.py slidenote/exporting.py
  • python -m pytest -q

@Cat-blizzard
Cat-blizzard merged commit 4bd36ec into Cat-blizzard:main May 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants