Textbook with exercises (scrbook)
A textbook on KOMA-Script's scrbook with numbered definitions, worked examples and end-of-chapter exercises with solutions at the back.
Create an account to use this
- Category
- Book
- Document class
scrbook(scrbook.cls) — ships with TeX Live- Workflow
- Book — submissions and revision rounds
- Author
- Markus Kohm
- Source
- CTAN
- Licence
- scrbook.cls (KOMA-Script): The LaTeX Project Public License 1.3c. Sample text: Manulyx, CC0 1.0 (free to use, no conditions).
What you get
main.tex— the file that is compiled · 1 KBchapters/one.tex· 1 KBsolutions.tex· 274 Breferences.bib· 342 B
These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.
Link to this template. Send it to a student or co-author: it starts a new paper in this template, through sign-up if they need an account.
https://manulyx.com/start/ctan-book-scrbook-exercises
Source
main.tex — the file that is compiled · 1 KB
\documentclass[fontsize=11pt,paper=a4,twoside=true,open=right,
headings=small,bibliography=totoc,DIV=12]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes} % biblatex asks for it beside babel, for quotation marks in the language
\usepackage{lmodern}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage[style=numeric,backend=biber]{biblatex}
\addbibresource{references.bib}
% Numbered per chapter, so "Exercise 2.3" can be found from the solutions.
\theoremstyle{definition}
\newtheorem{definition}{Definition}[chapter]
\newtheorem{example}[definition]{Example}
\newtheorem{exercise}{Exercise}[chapter]
% Each exercise collects its solution for the back of the book.
\newenvironment{solution}[1]{\par\noindent\textbf{Solution to Exercise~\ref{#1}.}\enskip}{\par\medskip}
\title{Your paper}
\subtitle{A course text with exercises}
\author{Author Name}
\date{\today}
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\addchap{How to use this book}
Each chapter ends with exercises. Solutions to all of them are in the last chapter;
try an exercise before turning to its solution.
\mainmatter
\input{chapters/one}
\backmatter
\addchap{Solutions to the exercises}
\input{solutions}
\printbibliography
\end{document}
chapters/one.tex · 1 KB
Loading…
solutions.tex · 274 B
Loading…
references.bib · 342 B
Loading…
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗