I have the following Latex
environment:
\newcounter{txtctr}[section] \setcounter{txtctr}{0}
\newenvironment{textex}{% This is the begin code
\refstepcounter{txtctr} \vspace{0.2cm} {\noindent
(T.\arabic{chapter}.\arabic{section}.\arabic{txtctr}):
}\footnotesize\vspace{-0.2cm}}{\normalsize}
but I would like to have the counter to the right and in the middle of the text within the environment. Something like:
Canis per flumen carnem dum ferret natans
aliamque praedam ab alio (T1.1.1)
Canis per flumen carnem dum ferret natans
I suppose this may have to be done with a minipage
? By the way, the environment must be friendly to the verbatim
environment.
Could some Latex wizard please help me?
Thank you.