Generalprobsoln | Display all Problems automatically

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
alexisgm
Posts: 1
Joined: Wed Aug 17, 2011 12:38 am

probsoln | Display all Problems automatically

Post by alexisgm »

Hi everyone,

I'm trying to make a database of physics questions that I can quickly use to generate assignments. I looked around and came across the probsoln package (http://www.ctan.org/pkg/probsoln) that does pretty much everything that I need.

I would like a way to automatically display all problems (not just a selection). The package suggests this:

Code: Select all

\begin{enumerate}
\foreachproblem{\item\thisproblem}
\end{enumerate}
The only problem is that I have questions with an argument, so the only way to do the above suggestion is to run LaTeX in interactive mode, which is not convenient for hundreds of questions.

Does anyone know of a way to get around this problem? What I would like to do is have a way to specify a default value for the argument. For example,

Code: Select all

\begin{enumerate}
\foreachproblem{\item\thisproblem[<the default value>]}
\end{enumerate}
Thank you for any suggestions.

Recommended reading 2024:

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

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

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Re: probsoln | Display all Problems automatically

Post by nlct »

The new version (3.01) now has the facility to specify default arguments for problems.

Regards
Nicola Talbot
Post Reply