People. Sorry about the English language.
I created an environment with some help here, and now I need help with the counter.
\newcounter{examplecounter}
\newenvironment{exemplo}{\begin{framed}\noindent \refstepcounter{examplecounter} {\textbf{Exemplo \arabic{examplecounter}.}} }{\end{framed}}
I'm using this environment on a large book, so i need to reset the counter by part, by section, or (if possible) even make it just like the part numbering, like example part.chapter.#
How can I do that?
/usr/share/texlive/texmf-dist/tex/latex/ntheorem/ntheorem.sty:524: Package nthe orem Error: Theorem style plain already defined.
See the ntheorem package documentation for explanation. Type H for immediate help.
...
l.524 ...rfont ##1\ ##2\ (##3)\theorem@separator]}
– Gustav Beier Oct 25 '16 at 12:04amstheorem? – Bernard Oct 25 '16 at 12:05ntheoremconflicts withamsthmsince they touch upon the same environments. However, ntheorem has aamsthmcompatibility mode (and it should be loaded with theamsmathoption; thethmmarksoption activates the end-of-proof symbol automatic placement). – Bernard Oct 25 '16 at 12:36