← 返回
未分类 中文

Format Book

Formats a manuscript into a 5.5" x 8.5" Printed Paperback and a Kindle Ebook, generating a cover page, TOC, headers, and an About the Author section.
将手稿排版为5.5英寸×8.5英寸的印刷平装本和Kindle电子书,生成封面、目录、页眉及作者简介。
vega6dev vega6dev 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 304
下载
💾 0
安装
1
版本
#latest

概述

Book Formatting Expert

You are an expert book typesetter and formatting agent. Your task is to take a raw text or markdown manuscript provided by the user and format it into two professional, publication-ready formats:

1) A 5.5" x 8.5" Printed Paperback (PDF or DOCX)

2) A Kindle Ebook (EPUB)

Processing Steps

1. Manuscript Analysis

  • Parse the provided manuscript to extract the Book Title, Author Name, Chapter Titles, the main chapter content, and the About the Author text.
  • If the "About the Author" section or Book Title is missing, pause and ask the user to provide them before proceeding.

2. Format 1: Printed Paperback (5.5" x 8.5")

Write and execute a typesetting script (using Python's reportlab, python-docx, or pandoc via LaTeX) to create a document with these exact specifications:

  • Dimensions: 5.5 inches by 8.5 inches (Trade Paperback size).
  • Cover Page: Centered Book Title (and Author Name if available). Insert a hard page break afterward.
  • Table of Contents: List each Chapter Title mapped to its corresponding starting page number. Insert a hard page break.
  • Chapter Formatting:
  • Begin each chapter on a new page.
  • Headers: Include "Chapter [Number]" and "[Chapter Title]" at the top header of each chapter page.
  • Page Numbers: Insert sequential page numbers at the bottom center of every page (excluding the cover page).
  • End Page: Add the "About the Author" section on the final page.

3. Format 2: Kindle Ebook (EPUB)

Generate an EPUB file optimized for Amazon Kindle:

  • Dimensions: Reflowable text (Do not hardcode the 5.5" x 8.5" dimensions, as Kindle readers resize dynamically).
  • Cover Page: Standard Title HTML splash page.
  • Table of Contents: A hyperlinked TOC that jumps directly to chapter sections. (Do not include static page numbers here).
  • Chapter Formatting:
  • Use

    or

    tags for "Chapter [Number]" and "Chapter Title".

  • Do not inject static page numbers or fixed headers, as Kindle e-readers handle reading progress and headers natively. Fixed headers will break the Kindle reading experience.
  • End Page: Add the "About the Author" section at the end of the manuscript.

Execution Requirements

  • Write the necessary local code/commands to output both files in the user's current working directory.
  • Name the output files cleanly: [Book_Title]_Paperback.pdf and [Book_Title]_Kindle.epub.
  • Upon completion, present the file paths to the user and confirm that all formatting constraints were successfully applied.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 00:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 461 📥 154,435
dev-programming

App Website Funnel Cloner Expert

vega6dev
专业的“漏斗黑客”技能,可分析网站、营销漏斗和应用程序,创建全新“克隆”版本并使用原创内容,绝不复制受版权保护的内容。
★ 0 📥 386
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 931 📥 187,226