-
Hi,
Not a lot of time to look at this in detail, but the following adapts your approach so that the colors can be specified in a roughly similar manner to other shadings, with the addtion that an RGB hex specificaion can be given:
\documentclass{article}
\pagestyle{empty}
\usepackage{pgf}
\begin{document}
\makeatletter
\def\pgfdeclaresampledshading#1#2#3#4#5#6{%...
2009-10-24 18:33:20 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hi,
In the latest CVS version (not sure when exactly it came in) there is a 'path picture' key which allows TikZ code and images to be placed within an arbitrary path.
Regards
Mark.
2009-10-21 12:05:35 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hi,
you can try (some variation) of this:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\catcode`\@=11
\def\pgfifshapenamed#1{%
\pgfutil@ifundefined{pgf@sh@ns@#1}{\pgfutil@secondoftwo}{\pgfutil@firstoftwo}%
}
\catcode`\@=12
\begin{tikzpicture}[every node/.style=draw]
\node (A) {A};
\pgfifshapenamed{A}{\node (B) at (0,1) {B};}{\node (C) at (0,1) {C};}...
2009-06-20 09:49:50 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hi,
TikZ does all sorts of fooling around with coordinates and anything that is passed to the math engine is expanded with \edef which will cause all sorts of problems with \ifthenelse.
The CVS version of math engine contains a new function ifthenelse and new operators ? and : which can be used as follows:
\documentclass{article}
\usepackage{tikz}
\begin{document}...
2009-06-20 09:42:57 UTC in PGF and TikZ -- Graphic systems for TeX
-
vibrovski committed patchset 860 of module pgf to the PGF and TikZ -- Graphic systems for TeX CVS repository, changing 2 files.
2009-05-29 16:52:32 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hi,
The following does it (I think) by converting the quadratic bezier to a cubic (this was the easiest way I could think of doing it). You use 'control' (not 'controls') in the curve spec. and TikZ automatically does the rest.
I have absolutely no time to test this thoroughy, so if there is some problem, just post here and I will (eventually) try and improve it.
Regards
Mark...
2009-04-08 11:52:59 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hi again,
A much shorter solution is to fill all the colours in at once, this means there is no fooling around with the even odd rule:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\def\fillvenn#1#2#3#4#5#6#7{%
\fill[#1]\truth;
\fill[#2]\thA;
\fill[#3]\thB;
\begin{scope}
\clip \truth;
\fill[#4]\thA;
\end{scope}
\begin{scope}
\clip \truth;...
2009-03-06 12:46:55 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hi,
It's a bit crude, but the following gives a rought idea of one way to approach the problem:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\def\AnBnT#1[#2]{
\begin{scope}
\clip \thA;
\clip \thB;
\fill [#2] \truth;
\end{scope}
}
\def\AnB#1[#2]{
\begin{scope}
\clip \thA;
\fill [#2] \thB;
\end{scope}
}
\def\AnT#1[#2]{
\begin{scope}
\clip \thA;...
2009-03-06 11:05:05 UTC in PGF and TikZ -- Graphic systems for TeX
-
vibrovski committed patchset 821 of module pgf to the PGF and TikZ -- Graphic systems for TeX CVS repository, changing 5 files.
2009-02-06 20:41:18 UTC in PGF and TikZ -- Graphic systems for TeX
-
vibrovski committed patchset 816 of module pgf to the PGF and TikZ -- Graphic systems for TeX CVS repository, changing 1 files.
2009-02-01 15:06:19 UTC in PGF and TikZ -- Graphic systems for TeX