您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

35 行
1.2KB

  1. %&tex
  2. \documentclass{standalone}
  3. \usepackage{tikz}
  4. \usepackage{siltex}
  5. \usetikzlibrary {arrows.meta,positioning,calc,math}
  6. \tikzset{nodes={text height=.7em, text width=2.5cm, align=center,
  7. draw=black!50, thick, font=\footnotesize, fill=white},
  8. >={Stealth[round,sep]}, rounded corners, semithick}
  9. \pgfdeclarelayer{bg}
  10. \pgfsetlayers{bg,main}
  11. % Compliant PDF
  12. \usepackage[a-3u]{pdfx}
  13. \begin{document}
  14. \begin{tikzpicture}[on grid,y=2.2cm,x=5.7cm]
  15. \node (re) {Requirement};
  16. \node (fu)[right=1 of re] {Function};
  17. \node (co)[above=1 of fu] {Component};
  18. \begin{scope}[nodes={draw=none, fill=none, text width={},text height={}}]
  19. \node(c)[left=0.5 of co.north] {};
  20. \node(d)[above=2mm of c, anchor=south] {Elements of a Feature};
  21. \end{scope}
  22. \begin{scope}[nodes={draw=none, auto, fill=none, midway,text width={},text height={}}]
  23. \path[->] (re) edge node[below] {Specifies} (fu)
  24. (co) edge node {Performs} (fu)
  25. (re) edge node {Specifies} (co);
  26. \end{scope}
  27. \begin{pgfonlayer}{bg}
  28. \coordinate(a) at ($(re.south west) + (-2mm,-2mm)$);
  29. \coordinate(b) at ($(co.north east) + (2mm,2mm)$);
  30. \draw[fill=lightgray] (a) rectangle (b);
  31. \end{pgfonlayer}
  32. \end{tikzpicture}
  33. \end{document}