On 24.2.2012 13:47, Lars Madsen wrote:
> Zarko F. Cucej wrote, On 2012-02-24 13:43:
>> Hi!,
>> I like to put some symbols from picture draw with TikZ into caption,
>> i.e.:
>>
>> \documentclass{article}
>> \usepackage{tikz}
>> \usetikzlibrary{shapes.geometric}
>>
>> \begin{document}
>> \begin{figure}\centering
>> \tikz\node[draw,circle] {T};
>> \caption{some text \tikz\node[draw,circle] {T};: token.}
>> \end{figure}
>> \end{document}
>>
>>
>> Trying this, I receive error:
>> Use of \tikz@picture doesn't much its definition
>> ....
>>
>> anyone solution?
>>
>> regards, Zarko
>
> use protection
>
> \protect\tikz\protect\node
>
>
thank you very much! this work! I try with one \protect before tikz, but
this wasn't help ...
regards, Zarko