0

I keep a database of the problems I like on Overleaf and use the exsheets package. I found myself writing something like this all the time:

\begin{question}[
    class=A,
    difficulty=M,
    source=Unknown,
    tags={irreducibility,polynomials,FundamentalTheoremOfAlgebra}]

I always use the same question properties, so I thought I could make this a little bit faster by defining

\newcommand{\QP}[4]{[
    class=#1,
    difficulty=#2,
    source=#3,
    tags={#4}]
}

and then to writie

\begin{question}\QP{A}{M}{Unknown}{irreducibility,polynomials,FundamentalTheoremOfAlgebra}

But then when I use

\SetupExSheets{use-classes={A}}

it filters the problem out. Can anybody help me figure out a way to expediate my typing that works?

  • 1
    Welcome to TeX.SX. Copy and paste would be the thing to do here. If you hide stuff in a command, things get worse. – Johannes_B Mar 25 at 5:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.