# Exsheets counters for new question pairs

When defining a new question/solution pair, is it possible to specify that it should get its own counter?

\documentclass{article}
\usepackage{exsheets}
\NewQuSolPair{query}[name=Query]{exsol}
\SetupExSheets{counter-format=se.qu[1],counter-within=section}
\begin{document}

\section{Section 1}

\begin{question}
This is an exercise.
\end{question}

\begin{query}
This is a query, which I'd like to be numbered 1.1
\end{query}

\end{document}


• That's a good question. The answer is: that won't be easy... this would require some work but IMHO is worth a feature request. – clemens Jun 12 '15 at 7:13

Until the feature is implemented I use this workaround:

• create a new counter
• create a new environment

PS: You can easily change the style of the new environment.

\documentclass{article}
\usepackage{exsheets}
\NewQuSolPair{query}[name=Query]{exsol}
\SetupExSheets{counter-format=se.qu[1],counter-within=section}

% WORKAROUND
\newcounter{example}[section] % new counter resets every time the section counter is increased
\newenvironment{example}{%
\refstepcounter{example} % increases the counter by 1; makes it visible for referencing;
\textbf{Example~\thesection.\theexample}

}{%
}

\begin{document}

\section{Section 1}

\begin{question}
This is an exercise.
\end{question}

\begin{query}
This is a query, which I'd like to be numbered 1.1
\end{query}

\begin{example}
This is a query, which I'd like to be numbered 1.1
\end{example}

\end{document}


Output:

• Welcome to TeX.SX! – diabonas Mar 29 '16 at 11:48
• This accomplishes the goal only insofar as you're not concerned with solutions. The power of exsheets is that you can pair questions with solutions; your new environment is outside of exsheets' functionality. – user59959 May 19 '16 at 17:04
• I know. That's way I called it "workaround". – Sr. Schneider May 20 '16 at 10:54