TransWikia.com

Skip or ignore label for a problem (probsoln package)

TeX - LaTeX Asked by dotero on February 1, 2021

I’m using probsoln package to create a long exercise list (about 200 problems). I already have the exercises written in Latex in code and I wrote an external file "topics1.tex" which has the code

    %%%%%%%% List of problems of topic 1 %%%%%%%%
        
    begin{defproblem}
    begin{onlyproblem} 
    This is problem 1
    end{onlyproblem}
    end{defproblem}

    begin{defproblem}
    begin{onlyproblem} 
    This is problem 2
    end{onlyproblem}
    end{defproblem}
...
    begin{defproblem}
    begin{onlyproblem} 
    This is problem 200
    end{onlyproblem}
    end{defproblem}

And the main file (that is on the same folder of "topics1.tex") that uses the probsoln package to write the exercises is

documentclass[12pt,a4paper]{article}
usepackage{probsoln}
loadallproblems[topics1]{topics1.tex}
begin{document}
section{Exercises of Topic 1}
    begin{enumerate}
        foreachproblem[topics1]{item thisproblem}
    end{enumerate}
end{document}

When compiling this I don’t have the expected result because the problems on the file "topics’.tex" don’t have labels.
My question: is there an easy to skip, avoid or ignore labeling the exercises? Since I have many exercises written, it will requires I litle bit of work to put a label in each exercise.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP