Guest User

Untitled

a guest
Jan 23rd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{tikz}
  3. begin{document}
  4. begin{tikzpicture}
  5. % Here the outer node is simply drawn as a rectangle, the inner tikz is drawn as expected.
  6. node[draw] at (0,0) {This is a Node with a tikzdraw (0,0) rectangle (.5,.5); rectangle inside.};
  7.  
  8. % Here the outer node is correctly drawn with rounded corners.
  9. % I would expect the inner tikz to render the same as above, but it inherits the rounded corners as well
  10. node[draw, rounded corners=1ex] at (0,-2) {This is a Node with a tikzdraw (0,0) rectangle (.5,.5); rectangle inside.};
  11.  
  12. % I do not observe this behaviour with other style attributes.
  13. % Below the inner tikz is black with normal line width.
  14. node[draw=green, very thick] at (0,-4) {This is a Node with a tikzdraw (0,0) rectangle (.5,.5); rectangle inside.};
  15. end{tikzpicture}
  16. end{document}
Add Comment
Please, Sign In to add comment