alexraasch
16-09-2009, 05:10
Hallo,
ich habe jetzt schon mehrere Beispiele aus dem TikZ-Handbuch ausprobiert, aber bei keinem wird der Farbverlauf angezeigt. Hier ein Beispiel:
\documentclass[10pt]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{%
arrows,%
calc,%
fit,%
patterns,%
plotmarks,%
shapes.geometric,%
shapes.misc,%
shapes.symbols,%
shapes.arrows,%
shapes.callouts,%
shapes.multipart,%
shapes.gates.logic.US,%
shapes.gates.logic.IEC,%
er,%
automata,%
backgrounds,%
chains,%
topaths,%
trees,%
petri,%
mindmap,%
matrix,%
calendar,%
folding,%
fadings,%
through,%
positioning,%
scopes,%
decorations.fractals,%
decorations.shapes,%
decorations.text,%
decorations.pathmorphing,%
decorations.pathreplacing,%
decorations.footprints,%
decorations.markings,%
shadows}
\begin{document}
\begin{tikzpicture}[
nonterminal/.style={
% The shape:
rectangle,
% The size:
minimum size=6mm,
% The border:
very thick,
draw=red!50!black!50, % 50% red and 50% black,
% and that mixed with 50% white
% The filling:
top color=white, % a shading that is white at the top...
bottom color=red!50!black!20, % and something else at the bottom
% Font
font=\itshape
}]
\node [nonterminal] {unsigned integer};
\end{tikzpicture}
\end{document}
ich habe jetzt schon mehrere Beispiele aus dem TikZ-Handbuch ausprobiert, aber bei keinem wird der Farbverlauf angezeigt. Hier ein Beispiel:
\documentclass[10pt]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{%
arrows,%
calc,%
fit,%
patterns,%
plotmarks,%
shapes.geometric,%
shapes.misc,%
shapes.symbols,%
shapes.arrows,%
shapes.callouts,%
shapes.multipart,%
shapes.gates.logic.US,%
shapes.gates.logic.IEC,%
er,%
automata,%
backgrounds,%
chains,%
topaths,%
trees,%
petri,%
mindmap,%
matrix,%
calendar,%
folding,%
fadings,%
through,%
positioning,%
scopes,%
decorations.fractals,%
decorations.shapes,%
decorations.text,%
decorations.pathmorphing,%
decorations.pathreplacing,%
decorations.footprints,%
decorations.markings,%
shadows}
\begin{document}
\begin{tikzpicture}[
nonterminal/.style={
% The shape:
rectangle,
% The size:
minimum size=6mm,
% The border:
very thick,
draw=red!50!black!50, % 50% red and 50% black,
% and that mixed with 50% white
% The filling:
top color=white, % a shading that is white at the top...
bottom color=red!50!black!20, % and something else at the bottom
% Font
font=\itshape
}]
\node [nonterminal] {unsigned integer};
\end{tikzpicture}
\end{document}