aboutsummaryrefslogtreecommitdiff
path: root/shapes.tex
diff options
context:
space:
mode:
authorAada2024-06-20 13:35:01 +0200
committerAada2024-06-20 13:35:01 +0200
commit21931e0b497d6d49eefeeeac2d8868bd604676ad (patch)
tree6b6563be97c6d44ca4fa261a5279c69fb32633db /shapes.tex
parentcb09d4185b6276ce45ba87c5fdd4818b99d45c09 (diff)
Add more anchors
Diffstat (limited to '')
-rw-r--r--shapes.tex47
1 files changed, 47 insertions, 0 deletions
diff --git a/shapes.tex b/shapes.tex
index 1471807..1f57d35 100644
--- a/shapes.tex
+++ b/shapes.tex
@@ -120,6 +120,45 @@
\pgf@y=-\pgf@y
}
+ \savedanchor{\outerthirdsixth}{
+ \setlength{\pgf@xa}{\pgfshapeminwidth}
+ \setlength{\pgf@ya}{\pgfshapeminheight}
+ \pgf@y=\pgf@ya
+ \pgf@x=-.5\pgf@xa % We are at (shape.north west) now
+ % \multiply\pgf@ya by 2
+ \advance\pgf@x by 2.5\pgf@ya % We are at (shape.north one half) now
+ }
+
+ \anchor{three sixth}{
+ \outerthirdsixth
+ \pgf@y=0pt
+ }
+
+ \anchor{four sixth}{
+ \outerthirdsixth
+ \pgf@x=-\pgf@x
+ \pgf@y=0pt
+ }
+
+ \anchor{north three sixth}{
+ \outerthirdsixth
+ }
+
+ \anchor{south three sixth}{
+ \outerthirdsixth
+ \pgf@y=-\pgf@y
+ }
+
+ \anchor{north four sixth}{
+ \outerthirdsixth
+ \pgf@x=-\pgf@x
+ }
+
+ \anchor{south four sixth}{
+ \outerthirdsixth
+ \pgf@x=-\pgf@x
+ \pgf@y=-\pgf@y
+ }
\savedanchor{\outertop}{
\setlength{\pgf@ya}{\pgfshapeminheight}
@@ -168,4 +207,12 @@
stop,
minimum width=8cm,
},
+ stop5/.style={
+ stop,
+ minimum width=10cm,
+ },
+ stop6/.style={
+ stop,
+ minimum width=12cm,
+ },
}