Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Let's say that I'm writing a decoration where I use the \pgfnode command in it. It works well but if I change the pgfkey TikZ/font to any dimension, it is not passed to the nodes in the decoration. How can I avoid it?

share|improve this question

1 Answer 1

Searching on tikz.code.tex I found the following line:

\tikzoption{font}{\def\tikz@textfont{#1}}

so the tikz/font value is stored into \tikz@textfont. To use it into my node in decoration, I write:

{
\pgftransformshift{\pgfpoint{<x value>}{<y value>}}
\tikz@textfont
\pgfnode{rectangle}{south}{<text>}{<node name>}{\pgfusepath{<use path option>}}
}

That's all

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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