Search found 2 matches

by error792
Fri Aug 15, 2008 5:40 am
Forum: General
Topic: Image in Counter Declaration
Replies: 3
Views: 2724

Re: Image in Counter Declaration

Wow, thanks! That fixed the errors. However, now I have a new problem: sometimes the icon used depends on the value of the counter. There is no problem with this dependency at the \label point, but when when I \ref the \label, it uses the current value of the counter instead of the value at the ...
by error792
Fri Aug 15, 2008 3:09 am
Forum: General
Topic: Image in Counter Declaration
Replies: 3
Views: 2724

Image in Counter Declaration

I'm trying to do something a bit odd. I want to put a small icon in a counter, such as

\renewcommand{\thecounter}{\includegraphics[height=11pt]{image.png}}

The code that calls this looks like

\newcommand{\showcounter}[0]{
\refstepcounter{counter}
{\thecounter}
}

The image displays fine when ...