I read the answer for this question (inside a environment) but I would like to know if there is something more specific. LaTeX keeps the current environment in the macro \@currenvir but how do the test with the plain TEX format or the ConTEXt format.
Asked
Active
Viewed 507 times
14
Alain Matthes
- 95,075
1 Answers
15
TikZ has a command \tikzifinpicture that does the test:
\tikzifinpicture{true branch}{false branch}
However, the comments in the definition of the command (tikz.code.tex) say
% TT: This is a wrong
% test! Who uses this?...
So there may be a better way.
Andrey Vihrov
- 22,325
\pgfutil@ifundefined{filldraw}– Alain Matthes Mar 03 '12 at 09:17TT: This is a wrong test! Who uses this?...me ! – Alain Matthes Mar 03 '12 at 09:22