Seite 1 von 1

tikzpicture within figure caption

Verfasst: Di 21. Mai 2013, 11:07
von thomgraf
Has anyone an idea how to use tikzpicture WITHIN a figure caption? What I want is, plot a blue circle withing a figure caption, like:
\begin{figure}[ht]
%...
\caption{CaptionText \begin{tikzpicture} \draw[thick, color=blue, fill=blue] plot[mark=*, mark options={scale=1.3}] (0,0); \end{tikzpicture} CaptionText.}
\end{figure}

Within regular text, this works fine with
RegularText \begin{tikzpicture} \draw[thick, color=blue, fill=blue] plot[mark=*, mark options={scale=1.3}] (0,0); \end{tikzpicture} RegularText

Thank you!

Verfasst: Di 21. Mai 2013, 11:30
von thomgraf
solution is
{\protect\tikz \protect\draw[thick, color=blue, fill=blue] plot[mark=*, mark options={scale=1.3}] (0,0);}


Crossposting!

Verfasst: Di 21. Mai 2013, 15:13
von Stamm-
Wenn Du deine unproduktiven Crosspostings schon in Foren mit unterschiedlichen Sprachen tätigst, dann behalte bitte die Sprache des jeweiligen Forums bei. Auch das Durchlesen der Forenregeln und ein Minimalbeispiel scheint dir ebenfalls fremd zu sein. Weder dein Beispiel noch deine "Lösung" taugen etwas für Leute mit einem ähnlichen Problem, die durch eine Suchmaschine hierher geführt werden.


http://latex-community.org/forum/viewto ... 45&t=23280