Document ClassesTextbook Package/Style Recommendations

Information and discussion about specific document classes and how to create your own document classes.
LaTexLearner
Posts: 139
Joined: Tue Mar 10, 2015 11:06 am

Textbook Package/Style Recommendations

Post by LaTexLearner »

And one more question: What are the alternatives to exsheets?

i.e. Does exsheets include a lot of features that only professional page-layout experts need to know while a much simpler version for making exercises and solutions for ~14-year-olds exists elsewhere?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Textbook Package/Style Recommendations

Post by cgnieder »

LaTexLearner wrote:Can anybody recommend a simple, non-jargon-rich introduction to exsheets?
I don't think there is anything except the exsheets manual.
LaTexLearner wrote:And one more question: What are the alternatives to exsheets?
See for example here http://www.ctan.org/topic/exercise

Regards
site moderator & package author
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Textbook Package/Style Recommendations

Post by cgnieder »

Johannes_B wrote:I am not very familiar with exsheets and i don't know all the bells and whistles.
The only thing I'd probably do different is this: I'd define

Code: Select all

\newcommand*\questionspace[1]{\PrintSolutionsF{\examspace{#1}}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and use this inside of questions. This way if the document is printed with

Code: Select all

\SetupExSheets{solution/print = true}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
the white space is not printed in addition to the solutions.
LaTexLearner wrote:All the solutions, though, appeared below the all the exercises as if it were a separate section...
This is of course because of the call of \printsolutions at the end of the example. If you comment this or remove it there will be no solutions printed.

Regards
site moderator & package author
LaTexLearner
Posts: 139
Joined: Tue Mar 10, 2015 11:06 am

Textbook Package/Style Recommendations

Post by LaTexLearner »

Johannes_B wrote:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\newlength{\ALT}
\setlength{\ALT}{0.5pt}
\newlength{\DLL}
\setlength{\DLL}{1.5cm}
\newcommand{\AS}[1][\DLL]{\rule{#1}{\ALT}}
\usepackage{exsheets}
\usepackage{tasks}
\usepackage{url}
\usepackage{grffile}
\usepackage{siunitx}
\begin{document}
\section{The Purpose and Definition of Fractions}
\begin{question}
What is the mathematical purpose of fractions? Illustrate your answer
by describing and drawing a situation of sharing cakes that can be
solved with whole numbers and a similar situation that requires
fractions to solve.
\examspace{3cm}
\end{question}
\begin{solution}%[print]
\includegraphics[width=.4\textwidth]{504px-Cake_quarters.svg.png}\par
\url{https://commons.wikimedia.org/wiki/File:Cake_quarters.svg}
\end{solution}
\begin{question}
Bill, Susan, and Michael purchase a 2\,m (\SI{2}{\meter}) candy rope. If they share it
equally, how much candy rope will they each get? Use a diagram to
support your answer.
\end{question}
\begin{solution}
Each one gets \SI{.666666667}{m}.\par
Each one gets \SI{2/3}{m}.
\end{solution}
\begin{question}
What is a \emph{denominator} and what does it tell you about a fraction?
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Dare I ask what all those other packages were for? i.e. tasks, url, grffile
siunitx
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Textbook Package/Style Recommendations

Post by Johannes_B »

Comment them out, see where it fails.

tasks, not needed but quite handy when dealing with exam sheets.
url, for printing the url.
grffile, for including the image which has two dots.
siunitx, for correct and consistent typesetting of values and units.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Textbook Package/Style Recommendations

Post by cgnieder »

LaTexLearner wrote:Dare I ask what all those other packages were for? i.e. tasks, url, grffile siunitx
tasks is for lists where the items can be arranged in columns but are numbered from left to right rather than from top to bottom. url mostly provides the macro \url for typesetting web adresses. siunitx is for consistent and typographically correct typesetting of numbers and units. grffile ex­tends the file name pro­cess­ing of the graphics package to sup­port a larger range of file names.

Details can be found in the manuals of the respective packages. You'll find them if you follow the links I provided or on your own computer by opening a command line and and texdoc followed by the package name and hit enter.

Regards
site moderator & package author
Post Reply