[Tugindia] Using a new counter
Harish Kumar Holla
harishkumarholla at pec.edu
Thu Jan 31 03:35:52 CET 2013
Perhaps like this?
\documentclass{article}
\newcounter{box}
\setcounter{box}{0}
\newcommand*{\mybox}{\fbox{\thebox}\refstepcounter{box}}
\begin{document}
\mybox{} \mybox{} \mybox{} \mybox{} \mybox{} \mybox{} \mybox{} \mybox{}
\mybox{} \mybox{}
\end{document}
On Thu, Jan 31, 2013 at 7:41 AM, V. Sasi Kumar <sasi.fsf at gmail.com> wrote:
> Friends,
>
> I am trying to do something IN have never done before. I am trying to
> insert numbered boxes in a long document. For this, I have defined a new
> counter called 'box' using the command \newcounter{box}. Now, I need to
> understand how I should use it when I create boxes. I create boxes using a
> combination of framebox and parbox. Perhaps, there is some package that
> will do all this for me.
>
> Please give me any information that will help me do this.
>
> Thanks and regards,
> Sasi
>
> _______________________________________________
> Home: http://www.tug.org.in/
> TeX FAQ: http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia
>
--
--with regards
Dr. Harish Kumar
Dept. of Physics
Pondicherry Engineering College
Puducherry 605 014
Ph: 0413 2655281-286 (Extn: 646)
Residence:
Dr. Harish Kumar
# 29 (New No.) I Main Cluny Road
Avvai Nagar, Lawspet
Puducherry 605 008
Ph: 0413 2253652, 9443052957
More information about the tugindia
mailing list