3

I want to write some math text arround a circle, it works fine for math formulas but when I tried to write \varSigma and \varPi from amsmath package, it doesn't work. How can I fix this?

code

\documentclass{article}
\usepackage{tikz,amsmath}
\usetikzlibrary{decorations.text} 
\begin{document}
\begin{tikzpicture}[decoration={text along path, text={$\varSigma \varPi MAX$}}]
\path [decorate]
(0,0) .. controls (0,6) and (9,6) .. (9,0);
\end{tikzpicture}
\end{document}
  • you need to put each symbol into brackets, like: {$\varSigma$} {$\varPi$} {$MAX$} – Nico Boni Aug 13 '16 at 17:16
  • {$\varSigma$}{$\varPi$}{$MAX$}{} works fine. add your comment as an answer please and i'll give you the points because you solved the problem. Thanks – Luis Felipe Aug 13 '16 at 17:18
3

Each math symbol needs to be a in a separated couple of brackets:

\documentclass{article}
\usepackage{tikz,amsmath}
\usetikzlibrary{decorations.text} 
\begin{document}
\begin{tikzpicture}[decoration={text along path, text={{$\varSigma$} {$\varPi$} {$MAX$}}}]
\path [decorate]
(0,0) .. controls (0,6) and (9,6) .. (9,0);
\end{tikzpicture}
\end{document}

Alternatively, you need to put something (like a {})after the couple of brackets where the math env is: {$\varSigma \varPi MAX$}{}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.