5

I'm trying to put a text in a ring section. I found here an example that perfectly fits my needs: How draw part of ring or broken ring in TikZ?

The problem with it is that when I change text size, e.g. by changing to {\large this is a text}, my pdflatex hangs, the last message on the screen is:

(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
  • Please post a complete example here. Especially if an answer which works for somebody else doesn't work for you. Which example there did you even use? We have no idea.... – cfr Jul 22 '15 at 23:34
11

Your

\large

should be inside a | bracket:

decoration={text along path, text={|\large|this is a text}, text align={align=center}}

For me this works.

Edit: Or you can try to change the default setting:

decoration={text along path, 
text format delimiters={<}{>},
text={<\large>this is a text}, text align={align=center}}

For me, that one works as well.

  • 1
    Interesting. Why? – daleif Jul 22 '15 at 11:59
  • Nope, for me it doesn't, sorry... – tnorgd Jul 22 '15 at 12:09
  • @tnorgd have you considered installing TeX Live 2015 instead. Might be because of a newer version. – daleif Jul 22 '15 at 12:18
  • How can you redefine the path over all tikz objects, so you don't have to manually enlarge? – user1603472 Oct 21 '16 at 9:30

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.