iksnae / actual-intelligence

A practical, non-technical guide to using AI tools like ChatGPT in everyday life
MIT License
0 stars 0 forks source link

Enhance book build process with professional formatting for PDF/EPUB #23

Closed iksnae closed 3 months ago

iksnae commented 3 months ago

This PR enhances our book build process based on techniques from the iksnae/rise-and-code project to produce better PDF and EPUB output, with a focus on proper page breaks and formatting for a professional-looking book.

Latest Updates (Mar 17)

Changes Made

LaTeX Template for PDF Generation

Enhanced Build Process

GitHub Workflow Improvements

Benefits

Implementation Notes

This approach is inspired by the successful book formatting techniques used in the rise-and-code project. The LaTeX template provides fine-grained control over the appearance of the PDF, ensuring that each part of the book is properly formatted according to publishing standards.

The build process now generates three distinct output formats:

  1. PDF - Professional-quality document with proper page breaks and formatting
  2. EPUB - Optimized for e-readers with reflowable content
  3. HTML - For online reading via GitHub Pages

The new content formatting script (tools/format-content.js) can be run to improve the formatting of existing content files, adding appropriate whitespace and page breaks.

These changes don't modify any of the content itself, but they significantly improve the reading experience of the generated book across all formats.