blob: e74b5b039c7dcfa9a059ada14cae6cff61c25b39 (
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
26
27
28
|
\documentclass[a4paper]{report}
\usepackage{polski}
\usepackage{tocloft}
\usepackage[utf8]{inputenc}
\newcommand{\listanswername}{Odpowiedzi do zadań}
\newlistof[chapter]{Answers}{ans}{\listanswername}
\newenvironment{Zadanie}[1]{%
\refstepcounter{Answers}%
\par\noindent\textbf{Zadanie \theAnswers. }\par
\addcontentsline{ans}{Answers}{\protect\numberline{\theAnswers}#1}\par}
\begin{document}
\chapter{Zadanie b. proste}
\begin{Zadanie}{4}
Ile jest $2 \times 2$?
\end{Zadanie}
\begin{Zadanie}{zero}
Ile jest $2 - 2$?
\end{Zadanie}
\listofAnswers
\end{document}
|