I'm making a questions/answers page where answer follows the question. The questions are enumerated while the answers are not. Questions are using one color while answers using another one.
In order to pause numeration, I've used the solution provided to this question. As a result, my code looks like this in general:
\documentclass[english]{article}
...
\newcounter{savedenum}
\newcommand*{\saveenum}{\setcounter{savedenum}{\theenumi}}
\newcommand*{\resume}{\setcounter{enumi}{\thesavedenum}}
...
\usepackage{parskip}
\usepackage{color}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{enumitem}
...
\begin{document}
...
\begin{enumerate}
\item \color{black}{Question text goes here.}
\saveenum
\end{enumerate}
\begin{itemize}
\item[] \color{NavyBlue}{Answer text goes here.}
\end{itemize}
\begin{enumerate}
\resume
\item \color{black}{Question text goes here.}
\saveenum
\end{enumerate}
\begin{itemize}
\item[] \color{NavyBlue}{Answer text goes here.}
\end{itemize}
...
\end{document}
Since there is a lot of code reuse, I'm seeking for a better solution (maybe a loop of some kind?), if possible, that will substitute the copy-and-paste of the \begin{...} ... \end{...}
blocks.
\item[\textbullet]
for introducing the answer, staying in the sameenumerate
environment.question
environment.