Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. pgfkeys{/IMMstyle/.style={
  2. inputnode/.style={shape=ellipse,draw,inner sep=2pt,minimum size=5.0mm},
  3. definecolor{dpred}{rgb}{0.50,0.35,0}
  4. }}
  5.  
  6. tikzset{
  7. define color/.code 2 args={
  8. definecolor{#1}{rgb}{#2}
  9. }
  10. }
  11.  
  12. documentclass{book}
  13. usepackage{tikz}
  14. usetikzlibrary{shapes}
  15.  
  16. begin{document}
  17.  
  18. tikzset{
  19. define color/.code 2 args={
  20. definecolor{#1}{rgb}{#2}
  21. },
  22. /IMMstyle/.style={
  23. inputnode/.style={
  24. shape=ellipse,
  25. draw,
  26. inner sep=2pt,
  27. minimum size=5mm
  28. },
  29. define color={dpred}{0.80,0.35,0}
  30. }
  31. }
  32.  
  33. begin{tikzpicture}
  34. node [/IMMstyle,inputnode,fill=dpred] {x};
  35. end{tikzpicture}
  36.  
  37. end{document}
  38.  
  39. begin{tikzpicture}
  40. definecolor{dkblue}{rgb} {0.00,0.33,0.68}
  41. tikzset{
  42. myStyle/.style = {draw=dkblue, very thick, rectangle}
  43. }
  44.  
  45. node [myStyle] {x};
  46. end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement