3

I am making a book of problems and solutions. Each chapter has several problems and I would like to include a separate chapter for the solution of each problem in each chapter. More or less, the draft of my book looks like the following. Chapter 1

Chapter 2

Chapter 3

I only know how to make basic articles in latex but I never had experience in writing a book. So I need help how to make this? Any help is much appreciated. Thanks

1
  • My willowtreebook class (on CTAN) has support for writing books of mathematics, including having problems appear in the text, with solutions in the back: ctan.org/pkg/willowtreebook Jun 10, 2021 at 16:59

2 Answers 2

1

In the book document class, you have five 'levels' of heading: parts, chapters, sections, subsections and subsubsections. You could have the different problems as sections under their relevant chapters, and then in the solutions chapter, have each previous chapter as a subsection and the individual problems as subsubsections. I would recommend cross-referencing the answers to the problems using the \ref command as well.

4
  • I believe there are parts an paragraphs in the heading’s levels of book class May 11, 2021 at 19:05
  • @LuisTurcio I didn't know about parts, but I didn't include paragraphs because they do not show up in the contents page.
    – DJScythe21
    May 12, 2021 at 7:26
  • 1
    @DJScythe21 - The reason paragraph- and subparagraph-level headers don't feature in the ToC by default is purely because the book class sets \setcounter{tocdepth}{2} along with \setcounter{secnumdepth}{2}. If one wants paragraph-level headers to be numbered in the document and show up in the ToC, all one has to do is run \setcounter{tocdepth}{4} and \setcounter{secnumdepth}{4} in the preamble.
    – Mico
    Jun 10, 2021 at 16:08
  • You seem to be skipping sections in the solutions chapter. This seems more logical: chapter = solutions; section = original chapter; subsection = original problem. However, part was added as an edit, so maybe split the book into two parts: problems and solutions. Then the chapter/problem structure could remain parallel. Jun 10, 2021 at 17:01
1

My willowtreebook class (on CTAN, a derivative of the sophisticated memoir class) has support for writing books of mathematics, including having problems appear in the text, with solutions in the back:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .