summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-370642.tex
blob: 99b300c4a01f9f80c65d08b646bbabaf2fb23e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% https://tex.stackexchange.com/q/370642/
\documentclass[a4paper,12pt]{article}
\usepackage{xsim}

\DeclareExerciseEnvironmentTemplate{simple}
  {\par\noindent\textbf{\GetExerciseProperty{counter}}. }
  {\par}
\xsimsetup{exercise/template=simple}

\begin{document}

\begin{exercise}\label{eq1}
  Let $X$ be such that\dots
\end{exercise}

\begin{exercise}
  In this exercise consider $Y=2$ \dots
\end{exercise}

\begin{exercise}
  Consider $X$ as in exercise~\ref{eq1} (I would like to see the issue
  number~1)
\end{exercise}

\end{document}