claude-sonnet-4-20250514· Anthropic LMArena Human Preference 140K
I want to generate a detailed table of contents from the title and subtitle of the book.…
- User
I want to generate a detailed table of contents from the title and subtitle of the book. What prompt should i give to llm?
- Assistant
Here's an effective prompt you can use to generate a detailed table of contents:
Create a comprehensive table of contents for a book titled "[BOOK TITLE]" with the subtitle "[SUBTITLE]". Please structure it as follows: - Generate 8-12 main chapters with descriptive titles - Include 3-5 subsections under each chapter - Ensure logical flow and progression of topics - Make chapter and section titles engaging and specific - Include page number placeholders (e.g., Chapter 1... 15) - Consider including front matter (Preface, Introduction) and back matter (Conclusion, Appendices, Index) as appropriate The table of contents should reflect the book's scope as indicated by the title and subtitle, with each section building naturally toward the book's overall purpose and audience. Format the output as a traditional table of contents with proper indentation and numbering.To make this even more effective, you could add specific guidance like:
- "Target audience: [specify if known]"
- "Approximate book length: [X] pages"
- "Writing style: [academic/popular/practical/etc.]"
- "Include brief 1-2 sentence descriptions under each chapter title"
This approach gives the LLM clear structure while allowing creativity in developing relevant, logical content that flows from your title and subtitle.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.