-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommands.tex
32 lines (24 loc) · 1.18 KB
/
commands.tex
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
29
30
31
32
\newcounter{prob}
\newcounter{challenge}
\newcounter{subprob}
\renewcommand{\thesubprob}{\alph{subprob}}
\newcommand{\problem}{\setcounter{subprob}{0} \stepcounter{prob} \par \medskip \noindent \textbf{Questão~\theprob \ }}
\newcommand{\desafio}{\setcounter{subprob}{0} \stepcounter{challenge} \par \medskip \noindent \textbf{Desafio~\thechallenge \ }}
\newcommand{\answer}{\par \medskip \noindent \textit{Resposta \ }}
\newcommand{\CC}{C\nolinebreak\hspace{-.05em}\raisebox{.4ex}{\tiny\bf +}\nolinebreak\hspace{-.10em}\raisebox{.4ex}{\tiny\bf +}}
\def\CC{{C\nolinebreak[4]\hspace{-.05em}\raisebox{.4ex}{\tiny\bf ++}}}
\newcommand{\finalanswer}[1]{
\begin{center}
{\renewcommand{\arraystretch}{1.5}
\renewcommand{\tabcolsep}{0.2cm}
\begin{tabular}{|c|}
\hline
$ \displaystyle #1 $ \\
\hline
\end{tabular}}
\end{center}}
\newcommand{\subproblem}{\stepcounter{subprob} \par \smallskip \noindent \quad \textit{(\thesubprob) \ }}
\newcommand{\subanswer}{\par \smallskip \noindent \quad \textit{Resposta \ }}
\newcommand{\option}{\item[$\square$]}
\newcommand{\thisone}{\item[$\blacksquare$]}
\newenvironment{subitemize}{\begin{itemize}}{\end{itemize}}