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.

Is there a way to redefine the name of a Tikz object in case of name conflict, like the \let command for a TeX macro?

As practical case, I have define a set of path decoration that can simply be used as:

\draw[pneumatic signal] (A) -- (B);

I have named one of these decoration signal for an undefined signal type. But this badly chosen name is conflicting with the signal shape of the shapes.symbols library.

So, do I need to rename my decoration or is there a mean to change a name as needed?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

It's not wise to redefine the existing styles as other constructions, styles etc. might depend on it. As is for the TeX macros with \let, you are at risk of breaking things. But technically the last definition wins over the prior definitions.

\begin{tikzpicture}[circle/.style={red}]
  \node[draw, circle, xshift=2cm](a){A};
  \node[draw, circle, minimum width=2cm, yshift=-2cm](b){B};
\end{tikzpicture}

enter image description here

share|improve this answer
add comment

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.