[Tugindia] Use of \rule in \caption
E. Krishnan
ekmath at asianetindia.com
Wed Mar 15 12:43:39 CET 2006
On Tue, 14 Mar 2006, mkalidoss wrote:
> To denote the legend, I used
> \caption{\rule{2pt}{1cm}: From router to user}
> in the figure environment.
> But this results in error.
Can't understand what you're trying to achieve, but
\caption{\protect\rule{2pt}{1cm}: From router to user}
will overcome this problem. Be warned though, that this will result in the
"rule" being included in any list of figures or tables that you may want
TeX to generate.
--
Krishnan
More information about the tugindia
mailing list