summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-03 21:07:30 +0000
committerKarl Berry <karl@freefriends.org>2017-08-03 21:07:30 +0000
commitff587f620cc7c6d0068c33b27a8e554bce2b08fe (patch)
tree0857cebe6e2e1325bb94305516fbf9b6e27326c0 /Master/texmf-dist/doc
parent29d69088963132c0a036286f984331c74ac99f1a (diff)
spectralsequences (3aug17)
git-svn-id: svn://tug.org/texlive/trunk@44942 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/README8
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/README.md49
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.pdfbin0 -> 164943 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.tex175
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_3.pdf (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_anss3.pdf)bin48235 -> 56449 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_3.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_anss3.tex)38
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.pdfbin0 -> 379366 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.tex399
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.pdfbin0 -> 134242 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.tex158
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-tmf_2.pdf (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfass.pdf)bin476705 -> 473348 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-tmf_2.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfass.tex)20
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-EO2_3.pdfbin0 -> 136982 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-EO2_3.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_EO2_3.tex)29
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-KO.pdfbin0 -> 40694 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-KO.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_KUHFPSS.tex)34
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/J_RPinfty.pdfbin0 -> 152919 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/J_RPinfty.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_endofVFoS.tex)9
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-bo-A1.pdf (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_A1_May_SS.pdf)bin94186 -> 93639 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-bo-A1.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_A1_May_SS.tex)18
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-tmf-A2.pdfbin0 -> 248925 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-tmf-A2.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfmayss.tex)26
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KF3n.pdf (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_KF3n.pdf)bin99030 -> 98548 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KF3n.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_KF3n.tex)15
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KZ3.pdf (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_KZ3.pdf)bin75306 -> 74022 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KZ3.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_KZ3.tex)12
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_EO2_3.pdfbin119695 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_KRHFPSS.pdfbin41807 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_KUHFPSS.pdfbin41820 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.pdfbin436693 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.tex359
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.pdfbin30637 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.tex79
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_endofVFoS.pdfbin165263 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.pdfbin70950 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.tex129
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfmayss.pdfbin265526 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/hatcher.pdf (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_hatcher.pdf)bin26910 -> 27584 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/hatcher.tex (renamed from Master/texmf-dist/doc/latex/spectralsequences/examples/example_hatcher.tex)22
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.pdfbin0 -> 21992 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.tex78
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.pdfbin0 -> 238471 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.tex121
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual-layoutcharts.tex204
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.pdfbin820908 -> 1152565 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.tex785
-rw-r--r--Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex66
47 files changed, 1846 insertions, 987 deletions
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/README b/Master/texmf-dist/doc/latex/spectralsequences/README
deleted file mode 100644
index f581a8129a1..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/README
+++ /dev/null
@@ -1,8 +0,0 @@
-Package: spectralsequences version 1.0
-Author: Hood Chatham
-Email: hood@mit.edu
-Date: 2017-06-18
-License: All files have the Latex Project Public License.
-Description: Print spectral sequence diagrams using pgf/tikz.
-
-See the file manual/spectralsequencesmanual.pdf for a manual. Email me at hood@mit.edu to submit bug reports, request new features, etc. The current development copy is hosted at https://github.com/hoodmane/spectralsequences. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/README.md b/Master/texmf-dist/doc/latex/spectralsequences/README.md
new file mode 100644
index 00000000000..5047519cce5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/README.md
@@ -0,0 +1,49 @@
+
+spectralsequences v1.1.0
+========================
+Author: Hood Chatham
+Email: hood@mit.edu
+Date: 2017-08-02
+License: All files have the Latex Project Public License.
+Description: Print spectral sequence diagrams using pgf/tikz.
+
+
+See the file manual/spectralsequencesmanual.pdf for a manual. See the examples directory for a large number of example files.
+Email me at hood@mit.edu to submit bug reports, request new features, etc. The current development copy is hosted at https://github.com/hoodmane/spectralsequences.
+
+Changelog:
+==========
+
+## [Unreleased]
+
+### Added:
+- \sseqparseint
+- \parsecoordinate and \parsedifferential
+- \IfInBoundsTF, \IfOutOfBoundsTF
+- New loop constructs \Do, \DoUntilOutOfBounds, \DoUntilOutOfBoundsThenNMore
+- \kill which kills a class without having to put a differential
+- \lastclass as default arguments for \replaceclass, \classoptions, \d/\doptions, \structline/\structlineoptions
+- Pin key for labels
+- Families
+- Insert key for new classes allows control over relative class placement without reordering commands
+- Draw differentials from a range of pages.
+- Frame axis type, tick marks.
+
+### Changed:
+- Ticks are now placed at values congruent to tick offset mod tick step, tick offset defaults to 0
+- What was called "x axis style" is now called "x axis type".
+
+### Fixed:
+- The \tagclass command works now.
+- Scopes now nest properly.
+- Fixed a big performance issue with nested scopes and shifts.
+- Adobe reader grid color is now correct (or more correct)
+- Fixed the grid drawing so that grids are handled correctly when the range includes negative numbers
+- The package now works with xparse after 2017/02/08 when changes were made that broke my original code
+- Fixed a bug where if you used a structline in two sseqpage environments with the same name, it would give an error.
+- Now if you say \structline(0,0)(0,1) \structlineoptions(0,1)(0,0) it will work correctly.
+- Big ranges like 0 - 600 now work, provided that you provide an appropriate scale
+- Big range like 600 - 700 no longer will cause an overflow
+- Labels now are rectangle nodes so they don't shift down if they are very wide
+- Fixed a bug with ranges and the sseqpage environment where classes lying outside the printed range would enlarge the range even if an explicit range was specified.
+- The chess grid works correctly now
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.pdf
new file mode 100644
index 00000000000..46bede4dcbf
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.tex
new file mode 100644
index 00000000000..1bd2cf23287
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_2.tex
@@ -0,0 +1,175 @@
+%%
+%% Description: Adams Novikov Spectral Sequence for $S_2$
+
+\documentclass{spectralsequence-example}
+
+% figure out how to get width("\noexpand\small 16") working
+\sseqset{ppower/.sseq style={
+ rectangle,"#1" {inside, font=\tiny},
+ minimum height=width("16"),
+ minimum width=width("16")
+}}
+
+\sseqnewfamily{imJ}
+\begin{document}
+
+\NewSseqCommand\etaclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx+1,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand\divetaclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx-1,\lasty-1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand\nuclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx+3,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand\nustruct{d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \structline(\lastx-3,\lasty-1,-1)(\lastclass)
+}
+
+\begin{sseqdata}[
+ name=ANSS-S_2, Adams grading,
+ class labels={below},
+ %label distance=-1pt,
+ below label distance=0pt,
+ classes={tooltip={(\xcoord,\ycoord)}},
+ class pattern = linear,
+ class placement transform={rotate=90,scale=2},
+ differentials=blue,
+ x range={0}{40},
+ y range={0}{10},
+ xscale=0.7,
+ yscale=1.7,
+ grid=go,
+ right clip padding=2em
+]
+\begin{scope}[imJ]
+\class[rectangle,fill,inner sep=3pt](0,0)
+\DoUntilOutOfBoundsThenNMore{3}{\etaclass}
+\classoptions["\alpha_1" above left](1,1)
+
+\class["\alpha_{2/2}",circlen=2](3,1)
+\nustruct
+\structline[dashed](3,1)(3,3)
+
+
+\class["\alpha_3"](5,1)
+\d3(\lastclass)
+\DoUntilOutOfBounds{\etaclass\d3(\lastclass)}
+
+\class["\alpha_{4/4}",ppower=16](7,1)
+\DoUntilOutOfBoundsThenNMore{3}{\etaclass}
+
+\class["\alpha_{5}"](9,1)
+\DoUntilOutOfBoundsThenNMore{3}{\etaclass}
+
+\class["\alpha_{6/3}", circlen=3](11,1)
+\d3(\lastclass)
+\DoUntilOutOfBounds{\etaclass\d3(\lastclass)}
+\replaceclass["\alpha_{6/2}", circlen=2](11,1)
+\structline[dashed](11,1)(11,3)
+
+\class["\alpha_7"](13,1)
+\d3(\lastclass)
+\DoUntilOutOfBounds{\etaclass\d3(\lastclass)}
+
+
+\class["\alpha_{8/5}",ppower=32](15,1)
+\DoUntilOutOfBoundsThenNMore{3}{\etaclass}
+
+\class["\alpha_9"](17,1)
+\DoUntilOutOfBoundsThenNMore{3}{\etaclass}
+
+\class["\alpha_{10/3}",circlen=3](19,1)
+\d3(\lastclass)
+\DoUntilOutOfBounds{\etaclass\d3(\lastclass)}
+\replaceclass["\alpha_{10/2}",circlen=2](19,1)
+\structline[dashed](19,1)(19,3)
+
+\class["\alpha_{11}"](21,1)
+\d3(\lastclass)
+\DoUntilOutOfBounds{\etaclass\d3(\lastclass)}
+\end{scope}
+
+\class["\beta_{2/2}"](6,2)
+\nustruct
+\class["\beta_{2}" below](8,2)
+\etaclass\structline(\lastclass)(6,2,2) % This is a *nu
+
+\class["\beta_3" left,insert = 1](14,2)
+\etaclass[insert=1](14,2,-1)
+\divetaclass["\beta_{4/4}" left, insert = 2]
+\nuclass(14,2,2)\nuclass[circlen=2]\nuclass[circlen=3]\nuclass["P\beta_{2/2}" above left]
+\nuclass\divetaclass["P\beta_2"]
+
+
+\class["\beta_{4/3}",insert=1](16,2)
+\etaclass[insert=1]\etaclass[insert=1]
+\class["\beta_{4/2,2}",circlen=2](18,2)
+\structline[dashed,](18,2,-1)(18,4,-1)
+
+\class["\eta_2"](19,3)
+\etaclass
+
+\class["\beta_{4}"below](20,2)
+\structline[dashed,bend left=20](20,2,-1)(20,4,2)
+%\structlineoptions[](20,2,-1)(20,4,2)%page=0--3
+\etaclass\etaclass\structline(\lastclass)(\lastx+1,\lasty+1,-1)
+
+\nuclass["\alpha_{4/4}^3" {above left=-1pt}](18,2,-1)
+
+
+
+\class["\eta_{3/2}"](23,3)
+\etaclass\etaclass
+
+\class["\beta_5" below](26,2)
+\d3(\lastclass,-1)
+
+\class["\beta_{8/8}" ](30,2)
+\etaclass
+\class["\beta_{6/2}" left](30,2)
+\d5(\lastclass)
+
+\class["\gamma_3" left](31,3)
+\nuclass
+\class["\eta_{5/3}"](33,4)
+
+\class["\beta_{8/7}"](32,2)
+\etaclass\etaclass\etaclass\etaclass\etaclass\etaclass
+\class["\beta_{6}"left](32,2)\etaclass
+
+\class["x_{32}"](32,4)\etaclass\etaclass["P\beta_{4/4}" right]
+\class["x_{36}"](36,4)
+\nuclass(32,4,-1)\nuclass
+
+\class["P\beta_3" above left](34,6)\etaclass\nuclass(34,6,-1)
+
+\class["\beta_{8/6,2}",circlen=2](34,2)
+\etaclass\nuclass(\lastclass1)
+
+\class["\gamma_{4/2,2}" right](37,3)
+\class["\beta_{8/4,2}",circlen=2](38,2)
+\class["\beta_{7}" right](38,2)
+\class["d_{4/4}\beta_{8/7}" right](39,3)
+\class["x''_{39}" right](39,3)
+\class["\gamma_{4,2}" right](39,3)
+\class["x_{39}'"](39,5)
+\class["P\eta_2"](39,7)
+\end{sseqdata}
+
+\printpage[name=ANSS-S_2]
+
+\printpage[name=ANSS-S_2,page=5]
+
+\printpage[name=ANSS-S_2, no imJ]
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_anss3.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_3.pdf
index 00050e20386..2821d2ab8bf 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_anss3.pdf
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_3.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_anss3.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_3.tex
index b3d801acf6b..0dc8e67a959 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_anss3.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ANSS-S_3.tex
@@ -1,20 +1,15 @@
%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
+%% Description: Adams Novikov Spectral Sequence for $S_3$
%%
%% File: example_anss3.tex
%%
%% Draws the Adams Novikov spectral sequence at the prime 3 through the 45 stem.
%% In this range, all we see is the Toda differential d_{2p-1}(\beta_{p/p}) = \alpha\beta^p
-%% Thanks to Eric Peterson for contributing this diagram.
+%% Thanks to Eric Peterson for contributing this diagram. Presumably he copied it from page 13 of the green book.
+%% Compare this to page 5 of example_ass3
%%
-\documentclass{article}
-\usepackage{spectralsequences}
-\usepackage[landscape]{geometry}
+\documentclass{spectralsequence-example}
\begin{document}
% tower definitions
\NewSseqCommand\alphaclass{d()}{
@@ -29,16 +24,19 @@
\structline(\lastclass)(\lastclass1)
}
+\centering
\begin{sseqpage}[
Adams grading,
- classes = { tooltip = {(\xcoord,\ycoord)} },
- class labels = above left,
+ classes = { tooltip = {(\xcoord,\ycoord)}, inner sep=1.2pt },
+ class labels = below,
label distance=3pt,
differentials={-{>[width=4]}, target anchor=-60},
- y range={0}{10},
+ y range={0}{11},
x range={0}{45},
x tick step=5,
- xscale=0.375
+ xscale=0.7,
+ yscale=1.2,
+ y axis gap=2em
]
\class[rectangle,fill,inner sep=3pt](0,0)
@@ -55,10 +53,10 @@
\class["\alpha_{11}"](43,1)
\class["\beta_1"](10,2) \structline(3,1)(10,2)
-\class["\beta_2"](26,2)
-\class["\beta_{3/3}" {xshift = -2pt, yshift=-2pt}](34,2)
-\class["\beta_{3/2}"](38,2)
-\class["\beta_3"](42,2)
+\class["\beta_2" left](26,2)
+\class["\beta_{3/3}" left](34,2)
+\class["\beta_{3/2}" {left}](38,2)
+\class["\beta_3" left](42,2)
% tower off of beta_1
\alphaclass(10,2)\betaclass
@@ -83,6 +81,12 @@
% d5s
\d5(34,2)
\d5(44,4)
+
+%% Doug's contributions
+\classoptions["{\left<\alpha_1,\alpha_1,\beta_1^3\right>}" {below right=0em}](37,3)
+\structline[dashed](37,3)(40,8)
+
+
\end{sseqpage}
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.pdf
new file mode 100644
index 00000000000..79621a0e2e6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.tex
new file mode 100644
index 00000000000..67be3dd6b57
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_2.tex
@@ -0,0 +1,399 @@
+%%
+%% Description: Adams Novikov Spectral Sequence for $S_2$
+%%
+%%
+%% Draws the Adams Spectral Sequence at the prime 2 through the 45 stem.
+%% See pages 146 - 147 of Green book
+%% https://mathoverflow.net/questions/102316/differentials-in-the-adams-spectral-sequence-for-spheres-at-the-prime-p-2
+%% https://en.wikipedia.org/wiki/Homotopy_groups_of_spheres#Table_of_stable_homotopy_groups
+%%
+
+
+\documentclass{spectralsequence-example}
+
+
+\begin{document}
+\sseqset{imJ/.sseq style={purple}}
+
+
+\NewSseqCommand\twoclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand\divtwoclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx,\lasty-1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+
+\NewSseqCommand\etaclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx+1,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+\NewSseqCommand\divetaclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx-1,\lasty-1)
+ \structline(\lastclass1)(\lastclass)
+}
+\NewSseqCommand\etastruct{d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \structline(\lastx-1,\lasty-1,-1)(\lastclass)
+}
+
+
+\NewSseqCommand\nuclass{O{}d()}{
+ \IfNoValueF{#2}{\pushstack(#2)}
+ \class[#1](\lastx+3,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand\nustruct{d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \structline(\lastx-3,\lasty-1,-1)(\lastclass)
+}
+
+\NewSseqCommand\hznudiamond{d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \savestack
+ \class(\lastx,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+ \nustruct
+ \restorestack
+}
+
+\NewSseqCommand\etanudiamond{d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \savestack
+ \class(\lastx+1,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+ \nustruct
+ \restorestack
+}
+
+\NewSseqCommand \czero {O{} r() }{
+ \savestack
+ \class[#1](#2)
+ \etaclass
+ \restorestack
+}
+
+\NewSseqCommand\tower {O{}d()mO{}} {
+ \begin{scope}[#4]
+ \IfNoValueF{#2}{\class[#1](#2)}
+ \savestack
+ \Do{#3-1}{
+ \class(\lastx, \lasty+1)
+ \structline(\lastclass)(\lastclass1)
+ }
+ \restorestack
+ \end{scope}
+}
+
+
+\NewSseqCommand \towergroup {o r() m O{}} {
+ \tower(#2){#3}[#4]
+ \IfNoValueF{#1}{\classoptions[#1](#2)}
+ \etaclass\etaclass\etaclass
+ \nustruct\divtwoclass\nustruct\divtwoclass
+ \nustruct\nuclass
+}
+
+
+\protected\def\Psqvphant{\vphantom{P^2}}
+\NewSseqGroup \Phone { mm } {
+ \class["#1h_1#2"](0,0)
+ \etaclass\etaclass
+ \divtwoclass\divtwoclass["\Psqvphant#1h_2#2" {below=-4pt}]
+}
+
+\NewSseqGroup \Phonegroup {G{}}{
+ \sseqset{class label handler = { \sseqnormalizemonomial{##1} }}
+ \czero["#1c_0" above](-1,-2)
+ \Phone[imJ]{P#1}{}
+ \nuclass[imJ]\divtwoclass[imJ]\divtwoclass["#1d_0" left,name=d0]
+ \etaclass\etaclass\etaclass
+ \nustruct\divtwoclass\nustruct\divtwoclass\nustruct\divtwoclass["#1e_0" left,name=e0]
+ \nuclass\hznudiamond
+ \divtwoclass
+ \classoptions["#1g" {below=0.3em},page=0-3](\lastclass)
+ %\etanudiamond
+
+ % Have to go back and draw path e0 to g
+ \savestack
+ \d2(e0,-1)
+ \etaclass(e0)\d2(\lastclass,-1)
+ \divtwoclass[name=f0]\d2(\lastclass,-1)
+ \nuclass[name=nuf0]
+ \etastruct % Now we're back at g
+ \restorestack
+ \nuclass[name=nug]\hznudiamond\nuclass[name=nu2g]
+}
+
+
+\NewSseqGroup \Phonegroupb {G{}}{
+ \Phonegroup{P#1}
+
+ \divtwoclass["\Psqvphant#1j" {below left=-1pt,yshift=2pt}](f0) \d2(\lastclass,-1)
+ \divtwoclass(nuf0) \d2(\lastclass,-1)
+ \nustruct\divtwoclass["\Psqvphant#1k" {below=-1pt}] \d2(\lastclass,-1)
+ \nuclass\d2(\lastclass,-1)
+ \hznudiamond
+ \divtwoclass["\Psqvphant#1l" {below left=-1pt,yshift=2pt}]\d2(\lastclass,-1)
+ \nuclass\d2(\lastclass,-1)\hznudiamond
+ \divtwoclass["\Psqvphant#1m" {below left=-3pt},name=m]
+
+ \divtwoclass(nug)\structline(\lastclass)(\lastx+1,\lasty+1)
+ \divtwoclass(nu2g)\nustruct
+ \divtwoclass\structline(\lastclass)(\lastx+1,\lasty+1)
+ \d2(m,-1)
+}
+
+
+
+\begin{sseqdata}[
+ name = ASS-S_2,
+ Adams grading,
+ classes=fill,
+ class labels={above left=0.2em,black},
+ x range={0}{46},
+ y range={0}{23},
+ % xscale=0.7,
+ % yscale=0.8,
+ differentials = blue,
+ classes = { tooltip = { (\xcoord,\ycoord) } },
+ grid = go,
+ run off = -
+]
+\towergroup(0,0){\ymax-\ymin+2}
+\classoptions["h_2" below](3,1)
+\nuclass
+\divetaclass\divetaclass["h_3" below]
+\tower{4}
+
+
+\Phonegroup(9,5)
+\classoptions["f_0"](f0)
+
+\Phonegroupb(17,9)
+\pushstack(d0)
+\tower["i" {below left,yshift=2pt}](23,7){6}[imJ]
+\structline(\lastclass)(\lastx+3,\lasty+1,-1)
+\structline(\lastx,\lasty+1)(\lastx+3,\lasty+2,-1)
+\d2(23,7)
+\d2(23,8)
+
+\Phonegroupb(25,13){P}
+\Phonegroupb(33,17){P^2}
+\tower["P^2i" {below left,yshift=2pt}](39,15){6}[imJ]
+\structline(\lastclass)(\lastx+3,\lasty+1,-1)
+\structline(\lastx,\lasty+1)(\lastx+3,\lasty+2,-1)
+\d2(39,15)
+\d2(39,16)
+\d4(39,12)
+\d4(40,13,,1)
+
+\Phonegroup(41,21){P^4}
+\tower["P^2i" {below left,yshift=2pt}](47,19){6}[imJ]
+\d2(47,19)
+\d2(47,20)
+
+\towergroup["h_4" below](15,1){8}[imJ]
+\classoptions["h_3^3" below](\lastclass)
+
+\tower["h_3^2" left](14,2){2}
+\d2(15,1) % d2(h_4) = h_0h_3^2
+\d3(15,2)\d3(15,3) % d2(h_0h_4) = h_0d_0
+
+\class["c_1"](19,3)\nuclass
+\czero["h_4c_0"](23,4)
+
+
+
+\towergroup["h_5" below](31,1){16}[imJ]
+\nuclass
+\divetaclass\divetaclass["h_3h_5" {below=-2pt}]
+\tower{4}
+
+\class["n"{above=-0.5pt}](31,5)
+\nuclass\nuclass
+\divetaclass["t"]
+\nuclass["c_1g"]
+
+\class["q" {below right=-0.7pt}](32,6)
+\etaclass
+
+\class["p"](33,4)
+\twoclass\divetaclass["d_1"]
+\nuclass\nuclass
+\divetaclass["x" below]\tower{6}
+
+\d[bend left=15]4(38,3,,2)
+\d[bend left=30]4(38,2)
+
+
+\tower["h_4^2" below](30,2){4}
+\etaclass
+\tower["r" left](30,6){6}
+\d3(\lastclass)
+
+\d2(31,1)\d2(31,2)\d2(31,3)
+\d3(31,4)\d3(31,5)\d3(31,6)\d3(31,7)\d3(31,8,-1)
+\d4(31,8,1)\d4(32,9,,1)
+\d4(31,9,-1,-1)\d4(31,10,-1,-1)
+
+\d3(34,2)
+
+
+\class(38,6)\d2(\lastclass,-1)
+\twoclass\d2(\lastclass,-1)
+\twoclass\nustruct\d2(\lastclass,-1)
+\twoclass\nustruct\d4(\lastclass,-1)
+\divetaclass["e_0g"]\d4(\lastclass,-1)
+
+\czero[pin distance=3em,pin=below right:h_5c_0"](39,4)
+
+\class["e_1" {below=-1pt}](38,4)
+\d3(\lastclass,1)
+\etaclass\etaclass\divtwoclass\divtwoclass["f_1" below]
+\etaclass
+\divtwoclass\d2(\lastclass)
+\divtwoclass\d2(\lastclass,-1)
+
+
+\Phone(40,6){P}{h_5}
+
+\class["u"](39,9)\etaclass\etaclass\divtwoclass
+
+\class["g^2"](40,8)
+\class["v"](42,9)
+\d2(\lastclass)
+
+\tower["P^2r" {below=-4pt}](46,14){6}
+\d3(\lastclass)
+
+\class["Pe_0g" right](45,12)
+\d4(\lastclass)
+
+\class["w"](45,9)
+
+\class["d_0r" right](44,10)
+\d3(\lastclass)
+
+
+\class["h_4^3" below](45,3)\twoclass
+
+\tower["h_5d_0" {below right=-2pt}](45,5){3}
+\etaclass\etaclass
+\nuclass(45,5)\hznudiamond
+\nustruct(45,7)
+
+\tower["g_2" below](44,4){3}
+\etaclass
+
+\class["N"](46,8)
+\class["gj"](46,11)
+
+\tower(47,13){12}
+\foreach \y in {13,...,18} { \d2(47,\y)}
+\end{sseqdata}
+\centering
+
+\begin{sseqpage}[
+ page=7,
+ name=ASS-S_2, Adams grading,
+ class labels={below},
+ %label distance=-1pt,
+ below label distance=0pt,
+ differentials=blue,
+ x range={0}{40},
+ y range={0}{10},
+ xscale=0.7,
+ yscale=1.7,
+ grid=go,
+ right clip padding=2em
+]
+\structline[dashed,bend right=20](15,4)(16,7,1)
+\structline[dashed,bend right=20](23,9,2)(24,11)
+\structline[dashed,bend right=20](31,11)(32,15)
+\structline[dashed,bend right=20](39,17,2)(40,19)
+
+\structline[dashed](14,2)(15,5,1)
+\structline[dashed](21,5)(22,8)
+\structline[dashed,bend right=20](20,6)(23,9,1)
+\structline[dashed](23,6)(23,9,1)
+\structline[dashed,bend right=20](30,2)(33,4)
+\structline[dashed,bend left=20](32,6)(35,9)
+
+\structline[dashed](38,4)(39,7)
+
+\structline[dashed](40,8)(40,10)
+\structline[dashed](40,8)(41,10)
+\structline[dashed,bend left=40](39,9)(42,12)
+\structline[dashed](41,10)(42,12)
+
+\classoptions["h_0^2i" right=1pt](23,9)
+\classoptions["h_0^{10}h_5" left](31,11)
+\classoptions["h_1h_5" below](32,2)
+\classoptions["h_0h_2h_5" below](34,3)
+\classoptions["h_2^2h_5" below](37,3)
+\classoptions["h_0^2h_3h_5" {left=-0.1em}](38,4,1)
+\classoptions["h_1h_3h_5" {below=-.4em}](39,3,1)
+
+\classoptions["Ph_3" left](15,5,1)
+\classoptions["P^2h_3" left](23,9,1)
+%\classoptions["P^3h_3" left](31,13,1)
+%\classoptions["P^4h_3" left](39,17,1)
+\end{sseqpage}
+%\end{document}
+
+\newgeometry{margin = 0.1cm}
+\printpage[name=ASS-S_2,page=2,xscale=0.7,yscale=0.8,keep changes]
+
+%\printpage[name=ASS-S_2,page=2]
+
+\printpage[name=ASS-S_2,page=3]
+
+\printpage[name=ASS-S_2,page=4]
+
+\begin{sseqpage}[name=ASS-S_2,page=5]
+\structline[dashed,bend right=20](15,4)(16,7,1)
+\structline[dashed,bend right=20](23,9,2)(24,11)
+\structline[dashed,bend right=20](31,11)(32,15)
+\structline[dashed,bend right=20](39,17,2)(40,19)
+
+\structline[dashed](14,2)(15,5,1)
+\structline[dashed](21,5)(22,8)
+\structline[dashed,bend right=20](20,6)(23,9,1)
+\structline[dashed](23,6)(23,9,1)
+\structline[dashed,bend right=20](30,2)(33,4)
+\structline[dashed,bend left=20](32,6)(35,9)
+
+\structline[dashed](38,4)(39,7)
+
+\structline[dashed](40,8)(40,10)
+\structline[dashed](40,8)(41,10)
+\structline[dashed,bend left=40](39,9)(42,12)
+\structline[dashed](41,10)(42,12)
+
+\classoptions["g" {below=0.3em}](20,4)
+\classoptions["{d_0^2=Pg=c_0g}" {xshift=5pt, below=-2.15em}](28,8)
+
+
+\classoptions["h_0^2i" right=1pt](23,9)
+\classoptions["h_0^{10}h_5" left](31,11)
+\classoptions["h_1h_5" below](32,2)
+\classoptions["h_0h_2h_5" below](34,3)
+\classoptions["h_2^2h_5" below](37,3)
+\classoptions["h_0^2h_3h_5" {left=-0.1em}](38,4,1)
+\classoptions["h_1h_3h_5" {below=-.4em}](39,3,1)
+
+\classoptions["Ph_3" left](15,5,1)
+\classoptions["P^2h_3" left](23,9,1)
+%\classoptions["P^3h_3" left](31,13,1)
+%\classoptions["P^4h_3" left](39,17,1)
+\end{sseqpage}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.pdf
new file mode 100644
index 00000000000..01bdc0c0121
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.tex
new file mode 100644
index 00000000000..aeab68e5212
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-S_3.tex
@@ -0,0 +1,158 @@
+%%
+%% Description: The Adams Novikov Spectral Sequence for $S_3$, styled to superimpose on ANSS-S_3
+%%
+%% The Adams spectral sequence at the prime 3 through the 45 stem.
+%% Compare page 5 to example_ass3
+%% Copied from page 11 of the green book.
+%%
+
+\documentclass{spectralsequence-example}
+
+\begin{document}
+
+\NewSseqCommand\tower {d()m} {
+ \IfNoValueF{#1}{\class(#1)}
+ \savestack
+ \Do { #2 } {
+ \class(\lastx, \lasty+1)
+ \structline(\lastclass1)(\lastclass)
+ }
+ \restorestack
+}
+
+\NewSseqCommand\hclass {d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \class(\lastx+3,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand\bclass {d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \class(\lastx+7,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand\hbachair {d()}{
+ \IfNoValueF{#1}{\pushstack(#1)}
+ \nameclass{tempclass}(\lastclass)
+ \bclass(\lastx,\lasty+1)
+ \hclass
+ \hclass(tempclass)
+ \bclass
+ \structline(\lastclass3)(\lastclass)
+}
+
+\NewSseqCommand\bahclaw { r() } {
+ \class(#1)
+ \bclass
+ \class(\lastx,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+ \class(\lastx-3,\lasty-1)
+ \structline(\lastclass1)(\lastclass)
+ \pushstack(\lastclass2)
+}
+\begin{sseqdata}[
+ name=ass3,
+ Adams grading,
+ classes={fill, inner sep=1.2pt, tooltip={(\xcoord,\ycoord)}},
+ class labels={below,black},
+ differentials=blue,
+ grid = go,
+ x tick step = 5,
+ x range={0}{45},
+ y range={0}{11},
+ xscale=0.7,
+ yscale=1.2,
+ y axis gap=2em
+]
+\tower(0,0){\ymax+1}
+\classoptions["a_0" {left=0pt}](0,1)
+\hbachair
+\classoptions["h_0"](3,1)
+\classoptions["b_0"](\lastclass)
+\classoptions[purple,page=3](7,2)
+\DoUntilOutOfBounds{\hbachair}
+
+\begin{scope}[sseq=purple]
+\class["h_1"](11,1)
+\tower{2}
+\d2(\lastclass)
+\DoUntilOutOfBounds{
+ \bclass\d2(\lastclass)
+ \hclass\d2(\lastclass)
+}
+\end{scope}
+
+\begin{scope}[orange]
+\class["k_0"](26,2)
+\DoUntilOutOfBounds{
+ \hclass\bclass
+}
+\end{scope}
+
+
+\begin{scope}[sseq=purple]
+\bahclaw(15,4)
+\DoUntilOutOfBounds{\hbachair}
+\bahclaw(27,7)
+\DoUntilOutOfBounds{\hbachair}
+\bahclaw(39,10)
+\DoUntilOutOfBounds{\hbachair}
+\bahclaw(38,7)
+\d2(\lastclass1)\d2(\lastclass2)\d2(\lastclass3)\d2(\lastclass4)
+\DoUntilOutOfBounds{
+ \hbachair
+ \d2(\lastclass)\d2(\lastclass1)
+ \d2(\lastclass3)\d2(\lastclass4)
+}
+\end{scope}
+
+
+
+
+\begin{scope}[sseq=purple]
+\class[](23,3) % label me
+\tower{3}
+\d2(\lastclass)\d2(\lastx,\lasty+1)
+\DoUntilOutOfBounds{
+ \hbachair
+ \d2(\lastclass)\d2(\lastclass1)
+ \d2(\lastclass3)\d2(\lastclass4)
+}
+\end{scope}
+
+
+\class["h_2"](35,1)
+\tower{8}
+\DoUntilOutOfBounds{\hbachair}
+
+\begin{scope}[sseq=orange]
+\class["b_{11}"](34,2)
+\tower{4}
+\DoUntilOutOfBounds{
+ \hclass\bclass
+}
+\d5(34,2)
+\d5(44,4)
+\end{scope}
+\foreach \y in {1,...,4}{
+ \d2(35,\y)
+}
+\d3(35,5)\d3(35,6)
+\foreach \y in {7,...,9}{
+ \classoptions[purple,page=4](35,\y,-1)
+}
+
+
+
+
+\end{sseqdata}
+\centering
+\printpage[name=ass3,page=1]
+\newpage
+\printpage[name=ass3,page=2]
+\newpage
+\printpage[name=ass3,page=3]
+\newpage
+\printpage[name=ass3,page=5]
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfass.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-tmf_2.pdf
index 0939e810f49..35291705371 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfass.pdf
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-tmf_2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfass.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-tmf_2.tex
index a16a581d681..d9719ac38ca 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfass.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/ASS-tmf_2.tex
@@ -1,9 +1,5 @@
%%
-%% Package: sseqpages.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
+%% Description: The Adams spectral sequence for $\tmf_2$
%%
%% File: example_tmfass.tex
%%
@@ -29,17 +25,15 @@
%
% deleting off page edge handling cuts off 1.4s (1s?) so I haven't found any of the big time holes yet. WHY IS THIS SO SLOW??
-\documentclass{article}
-\usepackage[landscape,margin=0cm,top=2cm]{geometry}
-\usepackage{spectralsequences}
+\documentclass{spectralsequence-example}
\begin{document}
\NewSseqGroup\tower {} {% 25
\class(0,0)
- \foreach \y in {1,...,22}{
- \class(0,\y)
- \structline(0,\y-1,-1) (0,\y,-1)
+ \DoUntilOutOfBoundsThenNMore{2}{
+ \class(\lastx,\lasty+1)
+ \structline(\lastclass1) (\lastclass)
}
}
@@ -164,6 +158,7 @@
x tick step=2,
Adams grading,
classes={fill,inner sep=0.3ex,tooltip={(\xcoord,\ycoord)}},
+ class placement transform={scale=1.5},
differentials={->,blue},
struct lines=red, %no struct lines, no differentials,
yscale=0.6, xscale=0.5,
@@ -245,8 +240,6 @@
\printpage[name=tmfass,page=0]
-%\end{document}
-
\printpage[name=tmfass,page=2]
@@ -289,4 +282,3 @@
\end{sseqpage}
\end{document}
-
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-EO2_3.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-EO2_3.pdf
new file mode 100644
index 00000000000..ce90f2c83f1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-EO2_3.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_EO2_3.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-EO2_3.tex
index c4a5f3650e2..b90f129512f 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_EO2_3.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-EO2_3.tex
@@ -1,11 +1,5 @@
%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
-%%
-%% File: example_EO2_3.tex
+%% Description: The homotopy fixed point spectral sequence for a maximal finite subgroup of $\mathbb{G}_{p-1}$ acting on $E_{p-1}$ with $p=3$
%%
%% This is the homotopy fixed point spectral sequence for EO_2 at the prime 3. The maximal finite subgroup of the Morava stabilizer for E_{p-1} is
%% of size 2p(p-1)^2 = 24, and so there is a norm element v in degree 24. There's also a bunch of trace classes on the zero line, but the trace map
@@ -18,15 +12,14 @@
%% HFPSS for KO = KU^{hC_2} (see example_KUHFPSS).
%%
-\documentclass{article}
-\usepackage{spectralsequences}
-\usepackage[landscape,margin=0cm,top=2cm]{geometry}
+\documentclass{spectralsequence-example}
\begin{document}
\begin{sseqdata}[name=EO(2),Adams grading,
y range={0}{14},x range={0}{160},
xscale=0.15, x tick step=5,
- classes={fill, tooltip={(\xcoord,\ycoord)}}
+ classes={fill, tooltip={(\xcoord,\ycoord)}},
+ title=Page \page
]
\foreach \v in {0,...,8}{
\foreach \b in {0,...,11}{
@@ -55,20 +48,28 @@
}
}
\end{sseqdata}
-\printpage[name=EO(2),page=0]
+\printpage[name=EO(2),page=0,title={\phantom{Page 5}}]
\newpage
\printpage[name=EO(2),page=5]
\newpage
\printpage[name=EO(2),page=9]
\newpage
-\begin{sseqpage}[name=EO(2),page=10]
+\begin{sseqpage}[name=EO(2),page=10,title={Page $\infty$}]
\classoptions["a" left](3,1)
\classoptions["b" right](10,2)
\classoptions["ab" left](13,3)
\classoptions["b^2" right](20,4)
\classoptions["b^3" right](30,6)
\classoptions["b^4" right](40,8)
-
\classoptions["v^3" right](72,0)
+
+% Doug's additions:
+\classoptions["{\left<a,a,b^2\right>}" below](27,1)
+\structline[dashed](27,1)(30,6)
+\structline[dashed](37,3)(40,8)
+
+\structline[dashed](99,1)(102,6)
+\structline[dashed](109,3)(112,8)
+
\end{sseqpage}
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-KO.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-KO.pdf
new file mode 100644
index 00000000000..6980ccb0067
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-KO.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KUHFPSS.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-KO.tex
index 7207b38a986..7409a2a77de 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KUHFPSS.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/HFPSS-KO.tex
@@ -1,9 +1,5 @@
%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
+%% Description: The homotopy fixed point spectral sequence for $C_2$ acting on $KU$ by complex conjugation, compare the odd-primary case HFPSS-EO2_3
%%
%% File: example_KUHFPSS.tex
%%
@@ -14,13 +10,11 @@
%% shows that \alpha v = \alpha_3, so dividing the differential by \alpha gives d3(v) = \alpha_1^3. Now there's no Kudo differential
%% because the prime is 2, and the spectral sequence immediately collapses.
%%
-%% Second, a demonstration of the falsehood of ku^{hC_2} = ko -- ku^{hC_2} has an extra generator as a ring, which is in degree -4.
+%% Second, a demonstration of the falsehood of ku^{hC_2} = ko -- ku^{hC_2} has an extra generator as a ring, which is in degree -4.
%% In particular, it's not even connective.
%%
-\documentclass{article}
-\usepackage[landscape,margin=2cm]{geometry}
-\usepackage{spectralsequences}
+\documentclass{spectralsequence-example}
\begin{document}
\sseqset{
Z2class/.sseq style={circle,inner sep=0.3ex,fill=black},
@@ -31,26 +25,28 @@
name=KRHFPSS,
x range={-12}{14},
y range={0}{10},
- y axis style=center,
+ y axis type=center,
y axis gap=0.425cm,
tick step=4,
classes=Z2class,
differentials=->,
degree={-1}{#1-1},
- scale=0.85,
+ scale=1.45,
right clip padding=0.1cm,
top clip padding=0.05cm,
x axis extend start=0cm,
x axis extend end=0.33cm,
y axis extend end=0.3cm,
+ grid=go
]
-\draw[background,xshift=-0.5cm,yshift=-0.51cm,step=1cm,gray,very thin] (\xmin+0.01,\ymin+0.01) grid (\xmax+0.9,\ymax+0.9);
+% This is just to make sure the bounding box doesn't move around
+\path[background] (\xmin-1,\ymin-1) rectangle (\xmax+1,\ymax+1);
-\pgfmathsetmacro\xitstart{int(int(\xmin/8)*8-16)}
-\pgfmathsetmacro\xitgap{int(\xitstart+4)}
-\pgfmathsetmacro\xitend{int(\xmax+2)}
-\pgfmathsetmacro\xmaxpp{int(\xmax+2)}
+\sseqparseint\xitstart{\xmin/8*8-16} % division is integer division (I think with rounding towards 0...) so /8*8 rounds up to the nearest multiple of 8?
+\sseqparseint\xitgap{\xitstart+4}
+\sseqparseint\xitend{\xmax+2}
+\sseqparseint\xmaxpp{\xmax+2}
\foreach \x in {\xitstart,\xitgap,...,\xitend} {
\class[Zclass](\x,0)
@@ -60,8 +56,8 @@
}
}
-\pgfmathsetmacro\xitstart{int(\xitgap)}
-\pgfmathsetmacro\xitgap{int(\xitstart+8)}
+\sseqparseint\xitstart{\xitgap}
+\sseqparseint\xitgap{\xitstart+8}
\foreach \x in {\xitstart,\xitgap,...,\xitend} {
\foreach\z in {0,...,\xmax}{
@@ -78,7 +74,7 @@
\newpage
\begin{sseqpage}[name=KRHFPSS,page=0,keep changes]
\pgfmathsetmacro\antidiag{min(-\xmin,\ymax+0.8)}
-\clip[background,xshift=0.28cm,yshift=-0.4cm](-\antidiag,\antidiag)--(-1,1)--(-0.4,0)--(\xmax+2,0)--(\xmax+2,\antidiag)--cycle;
+\clip[background,xshift=0.2cm,yshift=-0.33cm](-\antidiag,\antidiag)--(-1,1)--(-0.4,0)--(\xmax + 0.28,0)--(\xmax+0.28,\antidiag)--cycle;
\foreach \z in {2,6}{
\doptions[draw=none]4(-\z-1,\z-1)
\structlineoptions[draw=none](-\z-1,\z-1)(-\z,\z)
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/J_RPinfty.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/J_RPinfty.pdf
new file mode 100644
index 00000000000..aaf1e1ed7b4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/J_RPinfty.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_endofVFoS.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/J_RPinfty.tex
index a2a5245f43d..eee6ffea63f 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_endofVFoS.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/J_RPinfty.tex
@@ -1,8 +1,8 @@
%%
-%% Package: spectralsequences.sty version 1.0
+%% Package: spectralsequences v1.1.0
%% Author: Hood Chatham
%% Email: hood@mit.edu
-%% Date: 2017-06-18
+%% Date: 2017-08-02
%% License: Latex Project Public License
%%
%% File: example_endofVFoS.tex
@@ -12,10 +12,8 @@
%% Looking back, I seem to have inferred a bunch of stuff that wasn't actually written down on the page, but I'm not sure how so there's a chance some of it is wrong.
%%
-\documentclass{article}
-\usepackage[landscape,margin=0cm,top=2cm]{geometry}
+\documentclass{spectralsequence-example}
\usepackage{amssymb}
-\usepackage{spectralsequences}
\NewSseqCommand\row { m } {\foreach \x in {1,...,35}{\class(\x,#1)}}
\NewSseqCommand\twoptrow { m } {\foreach \x in {1,...,35}{\class(\x,#1)\class(\x,#1)}}
@@ -123,7 +121,6 @@
\printpage[name=mysseq, page=2]
\newpage
\printpage[name=mysseq, page=3]
-
\newpage
\printpage[name=mysseq, page=4]
\newpage
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_A1_May_SS.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-bo-A1.pdf
index 9367b1ce253..fa0a98f5b0f 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_A1_May_SS.pdf
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-bo-A1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_A1_May_SS.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-bo-A1.tex
index 7d1ab32c7f2..f8e97bac890 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_A1_May_SS.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-bo-A1.tex
@@ -1,21 +1,15 @@
%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
+%% Description: The May spectral sequence for $Ext(\HF_{2*}bo)$
%%
-%% File: example_bo_May_SS.tex
-%%
-%% Draws the May spectral sequence computing Ext_{A(1)} ( F_2, F_2 ), which by a change of rings and a simple argument that the ASS has to collapse,
+%% This is the May spectral sequence computing Ext_{A(1)} ( F_2, F_2 ), which by a change of rings and a simple argument that the ASS has to collapse,
%% is telling us pi_* bo. See the Green Book for reference.
%% The main purpose of this example from my perspective is to illustrate the utility of class "tags".
%%
-\documentclass{article}
-\usepackage{spectralsequences}
-\NewSseqGroup\tower {} {
+\documentclass{spectralsequence-example}
+
+\NewSseqCommand\tower {} {
\class(0,0)
\foreach\i in {1,...,11}{
\class(0,\i)
@@ -23,7 +17,7 @@
}
}
\NewSseqGroup\hvee {} {
- \tower(0,0)
+ \tower
\foreach\i in {1,...,11}{
\class(\i,\i)
\structline(\i-1,\i-1,-1)(\i,\i,-1)
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-tmf-A2.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-tmf-A2.pdf
new file mode 100644
index 00000000000..c1643f7bc19
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-tmf-A2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfmayss.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-tmf-A2.tex
index c4041a6eb5e..ab8b3e5a910 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfmayss.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/MaySS-tmf-A2.tex
@@ -1,20 +1,11 @@
%%
-%% Package: sseqpages.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
-%%
-%% File: example_tmfmayss.tex
+%% Description: The May spectral sequence for $Ext(\HF_{2*}\tmf)$
%%
%% I got this from Mike Hill's note: https://pdfs.semanticscholar.org/ddbb/8d584e4e81a71400088117b16cd241238c6c.pdf
%%
-
-\documentclass{article}
-\usepackage[landscape,left=1cm]{geometry}
-\usepackage{spectralsequences}
+\documentclass{spectralsequence-example}
\begin{document}
\sseqset{htwostructstyle/.sseq style = {gray,very thin, run off=-}}
%\pgfkeys{/sseqpages/struct line/htwostructstyle/.show code}
@@ -50,9 +41,8 @@
\pushstack(#2)
}
\savestack
- \edef\towermax{\the\numexpr9-\lasty0}
\begin{scope}[#1]
- \foreach\i in {1,...,\towermax}{
+ \DoUntilOutOfBounds{
\class(\lastx,\lasty+1)
\structline(\lastclass1)(\lastclass)
}
@@ -63,8 +53,7 @@
\NewSseqCommand\honetower {O{}} {
\savestack
\begin{scope}[#1]
- \edef\towermax{\the\numexpr9-\lasty0}
- \foreach\i in {1,...,\towermax}{
+ \DoUntilOutOfBounds{
\class(\lastx+1,\lasty+1)
\structline(\lastclass1)(\lastclass)
}
@@ -84,13 +73,12 @@
\IfNoValueF{#2}{
\pushstack(#2)
}
- \edef\towermax{\the\numexpr-\lasty+8}
\begin{scope}[#1]
\gettag\thetag(\lastclass)
\class(\lastx+3,\lasty+1)
\structline[htwostructstyle](\lastclass)(\lastclass1)
\savestack
- \foreach\i in {1,...,\towermax}{
+ \DoUntilOutOfBounds{
\class(\lastx,\lasty+1)
\structline(\lastclass1)(\lastclass)
\structline[htwostructstyle](\lastx-3,\lasty-1,\thetag)(\lastclass)
@@ -106,7 +94,9 @@
}
}
-\begin{sseqdata}[name=tmfmayss,y range={0}{8}, x range={0}{25}, classes=fill, class labels={below=3pt},degree={-1}{1},differentials=blue,
+\begin{sseqdata}[name=tmfmayss,y range={0}{8}, x range={0}{25}, degree={-1}{1},
+ classes=fill,
+ class labels={below=3pt},differentials=blue,
class pattern=linear, classes={ tooltip = {(\xcoord,\ycoord)} }, xscale=0.8,
title = {Page \page},
run off differentials = ->
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KF3n.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KF3n.pdf
index 7535a796aa9..e7f5f515d87 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KF3n.pdf
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KF3n.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KF3n.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KF3n.tex
index dad6f608b58..e75319226c4 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KF3n.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KF3n.tex
@@ -1,11 +1,5 @@
%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
-%%
-%% File: example_KF3n.tex
+%% Description: The Serre spectral sequence for $\HF_3$ cohomology of $K(\F_3,n-1)\to pt \to K(\F_3,n)$ for $n=2,3,4$, with Bockstein SS's for going up to $\Zbb_3$ coefficients.
%%
%% This is a computation of the Z_3 cohomology of K(F_3,n). This was part of a way-too-hard problem on Haynes Algebraic Topology II problem set which asked to compute
%% the smallest k>0 such that H_{n+k}(K(--,n);Z_p) : Ab --> Ab is not the zero functor and to compute what functor it is. One of the main ideas is to use the Bockstein
@@ -21,7 +15,7 @@
\sseqset{
cohomological Serre grading,
title={Page \page},
- class placement transform={scale=3, rotate=90},
+ class placement transform={scale=1.3, rotate=90},
class pattern=linear,
classes={draw=none},
class label handler = {\sseqnormalizemonomial{#1}},
@@ -31,7 +25,6 @@
yscale=1.5, x axis extend end=40pt, y axis extend end = 40pt, x axis gap =50pt,
class label handler = {},
}
- %class labels=above,
}
\begin{sseqdata}[name=K(Z/3;2),
@@ -42,7 +35,7 @@
]
\foreach \x/\xlabel in
{ 0/1, 2/\iota_2, 3/\beta\iota_2, 4/\iota_2^2, 5/\iota_2\beta\iota_2, 6/\iota_2^3,
- 7/\iota_2^2\beta\iota_2, 7/P^1\beta\iota_2, 8/\iota_2^4, 8/\beta P^1\beta\iota_2 }
+ 7/\iota_2^2\beta\iota_2, 7/P^1\beta\iota_2, 8/\iota_2^4, 8/\beta P^1\beta\iota_2 }
\foreach \y/\ylabel in
{ 0/1, 1/\alpha, 2/x, 3/\alpha x, 4/x^2, 5/\alpha x^2, 6/x^3} {
\class["\ylabel\xlabel"](\x,\y)
@@ -166,7 +159,7 @@
\draw[->] (8,0,1) to[bend right=30, "\beta^1"' {pos = 0.46}] (9,0);
\class["\Z\{1\}"](0,-1)
-\class["\Z/3\{\beta\iota_3\}"](2,-1)
+\class["\Z/3\{\beta\iota_2\}"](3,-1)
\class["\Z/3\{\beta\iota_2^2\}"](5,-1)
\class["\Z/9\{\beta\iota_2^3\}"](7,-1)
\class["\Z/3\{\beta P^1\iota_2\}"](8,-1)
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KZ3.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KZ3.pdf
index d0da6d62c7e..762ffa938ad 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KZ3.pdf
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KZ3.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KZ3.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KZ3.tex
index 94cf1fb643d..25c71433787 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KZ3.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/SSS-KZ3.tex
@@ -1,9 +1,5 @@
%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
+%% Description: The Serre spectral sequence for $\HZ$ cohomology of $\CP^\infty \to pt \to K(\Z,3)$
%%
%% File: example_KZ3.tex
%%
@@ -12,7 +8,7 @@
\documentclass{article}
\usepackage[landscape,margin=0.5cm,top=2cm]{geometry}
-\usepackage[]{sseqpages}
+\usepackage{spectralsequences}
\usepackage{amssymb}
\def\Z{\mathbb{Z}}
% Last time test: 1.1 sec
@@ -25,7 +21,6 @@
y range={0}{10},
cohomological Serre grading,
differentials={->},
- labels=below,
xscale=1.8,
y axis gap=0.7cm,
math nodes,
@@ -35,9 +30,8 @@
x label = {$H^*(K(\Z,3))$},
y label = {$H^*(K(\Z,2))$}
]
-%\tracingall
+
\column0["\Z\{\ifnum\y>0\relax x\ifnum\y>1\relax ^{\y}\fi\else1\fi\}"]
-%\error
\column3["\Z\{a\ifnum\y>0x\ifnum\y>1 ^{\y}\fi\fi\}"]
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_EO2_3.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_EO2_3.pdf
deleted file mode 100644
index 8b5dc4f6293..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_EO2_3.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KRHFPSS.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KRHFPSS.pdf
deleted file mode 100644
index 3aff1b1fe8b..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KRHFPSS.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KUHFPSS.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KUHFPSS.pdf
deleted file mode 100644
index c1d593951c7..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_KUHFPSS.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.pdf
deleted file mode 100644
index d5ab3fb620a..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.tex
deleted file mode 100644
index fcfca3ae84c..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_ass.tex
+++ /dev/null
@@ -1,359 +0,0 @@
-%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
-%%
-%% File: example_ass.tex
-%%
-%% Draws the Adams Spectral Sequence at the prime 2 through the 45 stem.
-%% See pages 146 - 147 of Green book
-%% https://mathoverflow.net/questions/102316/differentials-in-the-adams-spectral-sequence-for-spheres-at-the-prime-p-2
-%% https://en.wikipedia.org/wiki/Homotopy_groups_of_spheres#Table_of_stable_homotopy_groups
-%%
-
-
-\documentclass{article}
-\usepackage[landscape,paperheight=14in,margin=0.1in]{geometry}
-\usepackage{spectralsequences}
-
-
-\begin{document}
-\NewSseqGroup\tower {m} {
- \class(0,0)
- \foreach \y in {2,...,#1} {
- \class(0, \y-1)
- \structline(0, \y-2, -1)(0, \y-1, -1)
- }
-}
-
-\def\etaclass(#1,#2){
- \class(#1+1,#2+1)
- \structline(#1,#2, -1)(#1+1,#2+1, -1)
-}
-\def\etasqclass(#1,#2){
- \class(#1+1,#2+1)
- \class(#1+2,#2+2)
- \structline(#1,#2, -1)(#1+1,#2+1, -1)
- \structline(#1+1,#2+1, -1)(#1+2,#2+2, -1)
-}
-\def\etacubclass(#1,#2){
- \class(#1+1,#2+1)
- \class(#1+2,#2+2)
- \class(#1+3,#2+3)
- \structline(#1,#2, -1)(#1+1,#2+1, -1)
- \structline(#1+1,#2+1, -1)(#1+2,#2+2, -1)
- \structline(#1+2,#2+2, -1)(#1+3,#2+3, -1)
-}
-\def\divtwoclass[#1](#2,#3){
- \class[#1](#2,#3-1)
- \structline(#2,#3-1,-1)(#2,#3 ,-1)
-}
-\def\divfourclass[#1](#2,#3){
- \class(#2,#3-1)
- \structline(#2,#3-1,-1)(#2,#3 ,-1)
- \class[#1](#2,#3-2)
- \structline(#2,#3-2,-1)(#2,#3-1,-1)
-}
-\def\diveightclass[#1](#2,#3){
- \class(#2,#3-1)
- \structline(#2,#3-1,-1)(#2,#3 ,-1)
- \class(#2,#3-2)
- \structline(#2,#3-2,-1)(#2,#3-1,-1)
- \class[#1](#2,#3-3)
- \structline(#2,#3-3,-1)(#2,#3-2,-1)
-
-}
-\def\nuclass(#1,#2){
- \class(#1+3,#2+1)
- \structline(#1,#2,-1)(#1+3,#2+1,-1)
-}
-\def\nustruct(#1,#2){
- \structline(#1,#2,-1)(#1+3,#2+1,-1)
-}
-
-\begin{sseqdata}[
- name = S0ASS,
- Adams grading,
- classes=fill,
- class labels={above left=0.2em},
- x range={0}{45},
- y range={0}{23},
- xscale=0.7,
- yscale=0.8,
- differentials = red,
- right clip padding = 3em,
- classes = { tooltip = { (\xcoord,\ycoord) } },
- grid = go
-]
-\tower(0,0){25}
-
-% multiples of eta
-\etacubclass(0,0)
-\classoptions["h_1"](1,1)
-
-% divisibilities of nu
-\divfourclass["h_2" below](3,3)
-
-\nustruct(0,0)
-
-\nuclass(3,1)
-
-
-
-\tower(7,1){4}
-%\classoptions["h_3" left](7,1)
-\etasqclass(7,1)
-\structline(6,2)(9,3)
-
-\class["c_0" above](8,3)
-\etaclass(8,3)
-
-
-
-\class["Ph_1"](9,5)
-\etasqclass(9,5)
-\divfourclass["Ph_2" below](11,7)
-
-\tower(14,2){2}
-\classoptions["h_3^2" left](14,2)
-\tower(14,4){3}
-\classoptions["d_0" left](14,4)
-
-\tower(15,1){8}
-\classoptions["h_4" left](15,1)
-\d2(15,1) % d2(h_4) = h_0h_3^2
-\d3(15,2)\d3(15,3) % d2(h_0h_4) = h_0d_0
-
-\etacubclass(15,1)
-\divfourclass[](18,4)
-\nustruct(15,1)\nustruct(15,2)\nustruct(15,3)
-
-
-\nuclass(18,2)
-
-\etacubclass(14,4)
-\diveightclass["e_0" left](17,7)
-\nustruct(14,6)\nustruct(14,5)\nustruct(14,4)
-
-\nuclass(17,5)
-\divfourclass["g" {below = 0.3em}](20,6)
-\etaclass(17,4)
-\divtwoclass["f_0" {below right=0em}](18,5)
-\etaclass(20,4)
-\nustruct(18,4)
-
-\classoptions["h_3^3" below](21,3)
-
-\d2(17,4)\d2(18,5)\d2(18,4,-1) % d2(e_0) = h1^2 d0, d2(f_0) = h0^2 e0
-\nustruct(17,4)\nuclass(20,5)
-\divtwoclass[](23,6)\nustruct(20,4)
-\nuclass(23,5)
-
-\tower(23,7){6}
-\classoptions["i" left](23,7)
-
-\class["Pc_0" {xshift=3pt}](16,7)\etaclass(16,7)
-\class["P^2c_0" {xshift=5pt,yshift=2pt}](24,11)\etaclass(24,11)
-
-\class["c_1" {above=0em}](19,3)
-\nuclass(19,3)
-
-\class["h_4c_0" below](23,4)
-\etaclass(23,4)
-
-
-\class["P^2h_1"](17,9)\etasqclass(17,9)
-\divfourclass["P^2h_2" {below=0em}](19,11)
-\nuclass(19,9)
-\divfourclass["Pd_0" left](22,10)
-\etacubclass(22,8)
-\diveightclass["Pe_0" below](25,11)
-\etaclass(25,8)\divfourclass["j" below](26,9)
-\d2(23,7)\d2(23,8) % d2(i)=h_0Pd_0
-\d2(25,8) % d2(Pe_0) = h_1^2 Pd
-\d2(26,9)\d2(26,8)\d2(26,7) % d2(j) = h_0 Pe_0
-
-\nustruct(22,10)\nustruct(22,9)\nustruct(22,8)
-
-
-\class["P^3h_1"](25,13)\etasqclass(25,13)
-\divfourclass["P^3h_2" {below=0em}](27,15)
-\nuclass(27,13)
-\divfourclass["P^2d_0" {left=0.2em}](30,14)
-\etacubclass(30,12)
-\diveightclass["P^2e_0" {below=0em}](33,15)
-\d2(33,12) % d2(P^2e_0) = h_1^2 P^2d_0
-\nustruct(30,14)\nustruct(30,13)\nustruct(30,12)
-\etaclass(33,12)
-\divfourclass["Pj" {right}](34,13)
-\d2(34,11)\d2(34,12)\d2(34,13) % d2(Pj) = h0 P^2e_0
-
-
-
-\class(28,10)\divfourclass["{Pg=d_0^2}" {below left=-0.5em}](28,10)
-\etaclass(28,8)\divfourclass["k" below](29,9)
-\d2(29,7)\d2(29,8) % d2(k) = h_0 Pg = h_0 d_0^2
-\class["r" below](30,6) \d3(30,6) % d3(r) = h0^2 k
-\tower(30,7){5}
-\classoptions["s" below](30,7)
-
-\tower(30,2){4}
-\classoptions["h_4^2" below](30,2)
-\etaclass(30,2)
-
-\tower(31,1){16}\classoptions["h_5" below](31,1)
-\d2(31,1)\d2(31,2)\d2(31,3,-1) % d2(h_5) = h_0 h_4^2
-\d3(31,4)\d3(31,5)\d3(31,6)\d3(31,7) \d3(31,8,1) % \d3(h_0^3 h_5) = s
-\replaceclass[offset={(0,0)}](31,8) % d_0e_0 + h_0^7h_5
-\structline(31,8)(31,9)
-\d4(31,8)\d4(31,9)\d4(31,10) % d4(d_0e_0 + h_0^7h_5) = P^2d_0, d4(h_0^8 h_5) = h_0 P^2d_0
-\etacubclass(31,1)
-\divfourclass[](34,4)
-\nustruct(31,3)\nustruct(31,2)\nustruct(31,1)
-\nuclass(34,2)
-
-\class["n" above](31,5)\nuclass(31,5)
-
-\class(31,10)
-\divfourclass["d_0e_0" {below right=0em,xshift=-5pt}](31,10)
-\etaclass(31,8)
-\divfourclass["l" {right=0em}](32,9)
-\d3(31,8,-1) % d3(d_0e_0) = h_0^4 s = d3(h_0^7 h_5), see replaceclass above
-
-\d2(32,7,,-1)\d2(32,8,,-1) % d2(l) = h_0 d_0 e_0
-\d4(32,9,-1) % d4(h_0^2 l) = h_1 P^2d_0
-
-\class["q"](32,6)\etaclass(32,6)
-
-\class["d_1"](32,4)\etaclass(32,4)
-\nuclass(32,4)\nuclass(35,5)
-\divtwoclass["p" above right](33,5)
-
-\class["P^3c_0"{xshift=4pt,yshift=2pt}](32,15)\etaclass(32,15)
-
-\class["P^4h_1"](33,17)\etasqclass(33,17)
-\divfourclass["P^4h_2" right](35,19)
-
-\class(34,10)
-\divfourclass["d_0g" left](34,10)
-\etaclass(34,8)
-\divfourclass["m" right](35,9)
-\d2(35,7)\d2(35,8) % d2(m) = h_0 d_0 g
-
-
-\class["t"](36,6)\etaclass(36,6)
-\nustruct(34,6)
-
-\class(36,14)
-\divfourclass["P^2g" left](36,14)
-\etaclass(36,12)
-\divfourclass["Pk" {right=0em}](37,13)
-\d2(37,11)\d2(37,12) % d_2(P^1k) = h_0 P^2g
-
-
-\tower(37,5){6}\classoptions["x"](37,5)
-
-\class["e_0g"](37,8)\etaclass(37,8)
-\diveightclass["y" right](38,9)
-\d4(37,8,-1) \d4(38,9)% d4(e_0g) = P^2g
-\d2(38,6,-1)\d2(38,7,-1)\d2(38,8,-1) % d2(y) = h_0^3x
-
-\class(38,5)
-\diveightclass["h_3h_5" below](38,5)
-\etasqclass(38,2)
-
-\class["e_1" {below=0em,xshift=2pt}](38,4)\etasqclass(38,4)
-\divfourclass["f_1" right](40,6)
-\d3(38,4) % d_3(e_1) = h_2^2 n = h_1 t, see Bruner "A New Differential in the ASS"
-
-\tower(39,15){6}\classoptions["P^2i" {right=0em}](39,15)
-
-\class(38,18)\divfourclass["P^3d_0" {below left=0em}](38,18)
-\etacubclass(38,16)\diveightclass["P^3e_0" {below=0em}](41,19)
-\nustruct(38,18)\nustruct(38,17)\nustruct(38,16)
-\etaclass(41,16)\divfourclass["P^2j" {below=0em}](42,17)
-\d2(39,15)\d2(39,16) % d2(P^2i) = h_0 P^3d_0
-\d2(41,16,,1)\d2(42,17,,1) % d2(P^3e_0) = h_1^2 P^3d_0
-\d2(42,15)\d2(42,16) % d2(P^2j) = h_0 P^3e_0
-
-
-
-\class["c_0 h_5" {below=-0.3em}](39,4)\etaclass(39,4)
-
-\d4(38,2,1,-1) \d4(38,3,1,-1) % d4(h_3h_5) = h_0x
-
-
-\class(39,14)
-\divfourclass["Pd_0e_0" {below=-0.2em}](39,14)
-\etaclass(39,12)
-\divfourclass["Pl" {below=0em}](40,13)
-\d2(40,11)\d2(40,12) % d2(Pl) = h_0 P^2g
-\d4(39,12)\d4(40,13,,-1) % d4(Pd_0e_0) = P^3d_0
-
-
-
-\class["c_1g"](39,7)
-\class["g^2"](40,8)
-\class["u"](39,9)\etasqclass(39,9)
-\divtwoclass["z"](41,11)
-\class(41,5)\divfourclass["c_2"](41,5)
-\class["v"](42,9)
-\d2(42,9) % d2(v) = h_1^2 u
-
-\class["d_0^3"](42,12)
-
-\class["Ph_1h_5" {right=0em}](40,6)\etasqclass(40,6)
-\divfourclass["Ph_2h_5" {right=0em}](42,8)
-
-
-\class["P^4c_0"](40,18)\etaclass(40,18)
-
-
-\class["P^5h_1"](41,20)\etasqclass(41,20)
-\divfourclass["P^5h_2" right](43,22)
-
-\class(44,5)\divfourclass["g_2" below](44,5)
-\etaclass(44,3)
-
-\class(44,18)\divfourclass["P^3g" left](44,18)
-\etaclass(44,16)\divfourclass["P^2k" below](45,17)
-\class["P^2r"](46,14)
-\d2(45,15)\d2(45,16) % d2(P^2k) = h_0 P^3g
-\d3(46,14)% d3(P^2r) = h0^2 P^2k
-\class(45,4)\divtwoclass["h_4^3" below](45,4)
-
-\class(45,6)\divfourclass["h_5d_0" right](45,6)
-\etaclass(45,4)
-
-\class["w"](45,9)
-
-\class["Pc_0g" left](45,12)
-\d4(45,12) % d4(Pc_0g) = P^3g
-\end{sseqdata}
-
-\printpage[name=S0ASS,page=0]
-
-\printpage[name=S0ASS,page=2]
-
-\printpage[name=S0ASS,page=3]
-
-\printpage[name=S0ASS,page=4]
-
-\begin{sseqpage}[name=S0ASS,page=5]
-\structline[dashed,bend right=20](15,4)(16,7)
-\structline[dashed](21,5)(22,8)
-\structline[dashed,bend right=20](20,6)(23,9,-1)
-\structline[dashed,bend right=20](23,6)(23,9,-1)
-%\structline[dashed,bend right=20](32,6)(33,9)
-%\structline[dashed,bend right=20](32,6)(33,9)
-\classoptions["h_0^2i" left](23,9)
-\classoptions["h_0^{10}h_5" left](31,11)
-\classoptions["h_1h_5" below](32,2)
-\classoptions["h_2h_5" below](34,2)
-%\classoptions["h_0^2h_3h_5" {left=-0.1em}](38,4,1)
-\classoptions["h_1h_3h_5" {below=-.4em}](39,3,1)
-\classoptions["P^4h_3" {below=0em}](39,17)
-\end{sseqpage}
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.pdf
deleted file mode 100644
index a2189c047b4..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.tex
deleted file mode 100644
index 001bdff30ad..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_duggarKRAHSS.tex
+++ /dev/null
@@ -1,79 +0,0 @@
-%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
-%%
-%% File: example_duggarKRAHSS.tex
-%%
-%% Draws the Atiyah Hirzebruch spectral sequence for KR.
-%% To be honest, I can't really remember what this is, but based on the title, I copied it out of Duggar's paper computing KR.
-%%
-
-
-
-\documentclass{article}
-\usepackage[landscape]{geometry}
-\usepackage{spectralsequences}
-\begin{document}
-\sseqset{Zclass/.sseq style={fill=none,draw,inner sep=0.6ex},2Zclass/.style={fill=none,rectangle,draw,inner sep=0.6ex}}
-\begin{sseqdata}[
- name=KRAHSS,
- Adams grading,
- x range={-18}{17},
- y range={-10}{10},
- classes=fill,
- no orphan edges,
- run off differentials = {->},
- scale=0.5,
- axes style=center,
- tick step=4,
- x tick gap=0.2cm,
- y tick gap=0.4cm,
- x axis gap=0.25cm,
- y axis gap=0.25cm,
- x axis extend start=0cm,
- y axis extend start=0cm,
- x axis extend end=0.25cm,
- y axis extend end=0.25cm
-]
-
-\draw[background,xshift=-0.5cm,yshift=-0.5cm,step=1cm,gray,very thin] (\xmin+0.1,\ymin+0.1) grid (\xmax+0.7,\ymax+0.7);
-\pgfmathparse{\xmax+2}
-\foreach \x in {0,4,...,\pgfmathresult} {
- \class[Zclass](\x,0)
- \foreach \z in {0,...,\pgfmathresult} {
- \class(\x+\z+1,\z+1)
- \structline(\x+\z,\z)(\x+\z+1,\z+1)
- }
-}
-
-\foreach \x in {4,12}{
- \foreach\z in {0,...,\xmax}{
- \d3(\x+\z,\z)
- }
- \replaceclass[2Zclass](\x,0)
-}
-
-\foreach\x in {-4,-8,...,-\pgfmathresult}{
- \class[Zclass](\x,0)
- \class(\x-2,0)
- \foreach \z in {-1,...,-\pgfmathresult}{
- \class(\x+\z-2,\z)
- \structline(\x+\z-1,\z+1)(\x+\z-2,\z)
- }
-}
-
-\foreach \x in {-6,-14}{
- \foreach\z in {-3,...,-\xmax}{
- \d3(\x+\z,\z)
- }
-}
-
-\end{sseqdata}
-\printpage[name=KRAHSS,page=0]
-\newpage
-\printpage[name=KRAHSS,page=5]
-
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_endofVFoS.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_endofVFoS.pdf
deleted file mode 100644
index f0fcae52c21..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_endofVFoS.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.pdf
deleted file mode 100644
index d8e47ee1d18..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.tex
deleted file mode 100644
index fd48445ca0c..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_mayss.tex
+++ /dev/null
@@ -1,129 +0,0 @@
-%%
-%% Package: spectralsequences.sty version 1.0
-%% Author: Hood Chatham
-%% Email: hood@mit.edu
-%% Date: 2017-06-18
-%% License: Latex Project Public License
-%%
-%% File: example_mayss.tex
-%%
-%% I think this is the May SS for the sphere. May spectral sequences are annoying to draw neatly it turns out -- there's too much stuff in them.
-%% It helps a lot if you start at E_2 though, since E_1 is polynomial. They also have the problem with their crappy grading that makes all
-%% differentials the same length. I seem to have graded this weirdly, probably because the normal grading looked too bad.
-%%
-
-\documentclass{article}
-\usepackage{fullpage}
-\usepackage{spectralsequences}
-
-\begin{document}
-\NewSseqGroup\tower {m} {
- \class["#1"](0,0)
- \foreach\i in {1,...,14}{
- \class(0,\i)
- \structline(0,\i-1,-1)(0,\i,-1)
- }
-}
-
-\NewSseqGroup\hone {m} {
- \foreach\i in {1,...,#1}{
- \class(\i,\i)
- \structline(\i-1,\i-1,-1)(\i,\i,-1)
- }
-}
-
-\NewSseqCommand\dtower {u(u)} {
- \foreach\i in {0,...,10}{
- \d[yshift=\i]#1(#2)
- }
-}
-
-
-\def\single(#1)#2{\class["#2"](#1)}
-
-\NewSseqGroup\htwo {m} {
- \foreach \n in {0,...,5}{
- \tower(3*\n,\n){\sseqifempty{#1}{}{#1}\sseqpowerempty{h_2}{\n}}
- \ifnum\n>0\relax
- \structline(3*\n-3,\n-1,-1)(3*\n,\n,-1)
- \fi
- }
-}
-
-\NewSseqGroup\htwosinglejoin {mm} {
- \foreach \n in {0,...,5}{
- \single(3*\n,\n){\sseqifempty{#1}{}{#1}\sseqpowerempty{h_2}{\n}}
- \ifnum\n>0\relax
- \structline(3*\n-3,\n-1,-1)(3*\n,\n,-1)
- \fi
- }
- \foreach \n in {0,...,#2}{
- \structline(3*\n,\n,-1)(3*\n,\n+1,-1)
- }
-}
-
-
-
-\begin{sseqdata}[name=may, degree={-1}{1-#1},x range={0}{13}, y range={0}{13},class labels=below right,differentials=blue,x axis extend end=23pt,draw]
-\tower(7,1){h_3}
-\htwo(0,0){}
-\classoptions[label position=above left](9,3)
-\hone(0,0){3}
-\htwo[label position={xshift=3pt,yshift=2pt}](4,4){b_{2,0}}
-\dtower2(4,4,-1,-1) % d2(b_{2,0}h_0^n) = h_2h_0^{n+2}
-\d2(4,4,-1,1) % d2(b_{2,0})= h_2h0^2 + h1^3
-
-%\hone(4,4){3}
-\htwo(8,8){b_{2,0}^2}
-\hone(8,8){3}
-\dtower4(8,8,,1) % d4(b_{2,0}^2) = h3 h0^4
-%\hone(8,8){3}
-\hone(7,1){2}
-
-
-\htwosinglejoin(7,4){x_7}{4}
-\dtower2(7,4,2,-1)
-\hone(7,4){2}
-\htwosinglejoin(11,8){x_7b_{2,0}}{4}
-\htwosinglejoin(10,4){b_{2,1}}{3}
-%\hone(10,4){1}
-\d2(10,4,-1,2) % d2(b21)=h2^3+h3h1^2
-\dtower2(10,4,1,1) % d2(b21 h0^n) = h2^3 h0^n
-
-
-\tower(11,5){h_3b_{2,0}}
-\tower(12,6){b_{3,0}}
-\dtower2(12,6,-1,-1)
-
-\htwo(12,12){b_{2,0}^3}
-\dtower2(12,12,-1,1) % d2(b20^3 h_0^n) = h0^n b20^2 d2(b20) = h0^{n+2} h2 b20^2
-\d2(12,12,-1,2) % d2(b_{2,0}^3)= b20^2 d2(b20) = h_2 h0^2 b20^2 + h1^3 b20^2
-\hone(12,12){3}
-\replaceclass(11,11)
-
-\structline(11,10)(11,11)
-\structline(10,10,2)(11,11)
-
-\replaceclass(3,3)
-
-\structline(2,2)(3,3)
-\structline(3,2)(3,3)
-
-
-
-
-
-\replaceclass(9,3)
-\structline(6,2)(9,3)
-\structline(8,2)(9,3)
-
-
-
-%\dtower2(12,6,2,-1)
-\end{sseqdata}
-\printpage[name=may]
-\newpage
-\printpage[name=may, page=4]
-\newpage
-\printpage[name=may, page=5]
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfmayss.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfmayss.pdf
deleted file mode 100644
index db413adf758..00000000000
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_tmfmayss.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_hatcher.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/hatcher.pdf
index ddf0032ed0d..893474ce3b1 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_hatcher.pdf
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/hatcher.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_hatcher.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/hatcher.tex
index a200354d1f1..ff079110c4b 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/examples/example_hatcher.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/hatcher.tex
@@ -1,19 +1,17 @@
%%
-%% Package: spectralsequences.sty version 1.0
+%% Package: spectralsequences v1.1.0
%% Author: Hood Chatham
%% Email: hood@mit.edu
-%% Date: 2017-06-18
+%% Date: 2017-08-02
%% License: Latex Project Public License
%%
%% File: example_hatcher.tex
%%
-%% This comes from Hatcher's spectral sequences book. I think it's a good demonstration of the flexibility of sseqpages.
+%% This comes from Hatcher's spectral sequences book. I think it's a good demonstration of the flexibility of sseqpages.
%% Thanks to Antonio Ruiz for suggesting it.
%%
-\documentclass{article}
-\usepackage[landscape,margin=1cm,top=2cm]{geometry}
-\usepackage{spectralsequences}
+\documentclass{spectralsequence-example}
\usepackage{amssymb}
\def\Z{\mathbb{Z}}
@@ -22,18 +20,18 @@
0/.sseq style={"0",draw=none},
homological Serre grading,
classes={draw=none,inner sep=0.2em},
- tick gap=0.7em,
+ %tick gap=0.7em,
}
\begin{sseqdata}[
name=hatcherex1,
permanent cycles={draw,minimum width={width("$Z_2$")+0.85em}},
yscale=0.6,
- axes gap=1.2em,
- axes clip padding=0em
+ axes gap=0.5cm,
+ tick gap=1em,
]
\begin{scope}[background,opacity=0.1]
\foreach \n in {1,3,...,9}{
- \fill(-1.1,\n-0.5)--(-1.1,\n+0.5)--(0,\n+0.5)--(\n+0.5,0)--(\n+0.5,-1.6)--(\n-0.5,-1.6)--(\n-0.5,0)--(0,\n-0.5)--cycle;
+ \fill(-1.3,\n-0.5)--(-1.3,\n+0.5)--(0,\n+0.5)--(\n+0.5,0)--(\n+0.5,-2)--(\n-0.5,-2)--(\n-0.5,0)--(0,\n-0.5)--cycle;
}
\end{scope}
@@ -73,6 +71,8 @@
\end{sseqdata}
\printpage[name=hatcherex1,page=0]
+\vskip30pt
+
\begin{sseqdata}[
name=hatcherex2,
yscale=0.6,
@@ -81,7 +81,7 @@
\begin{scope}[background,opacity=0.1]
\foreach \n in {1,3,...,9}{
- \fill(-1.1,\n-0.5)--(-1.1,\n+0.7)--(0,\n+0.7)--(\n+0.5,0)--(\n+0.5,-1.6)--(\n-0.5,-1.6)--(\n-0.5,0)--(0,\n-0.5)--cycle;
+ \fill(-1.3,\n-0.5)--(-1.3,\n+0.7)--(0,\n+0.7)--(\n+0.5,0)--(\n+0.5,-2)--(\n-0.5,-2)--(\n-0.5,0)--(0,\n-0.5)--cycle;
}
\end{scope}
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.pdf b/Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.pdf
new file mode 100644
index 00000000000..2e6c622eb02
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.tex b/Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.tex
new file mode 100644
index 00000000000..159549a9c2e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/examples/unstable_ASS_SO.tex
@@ -0,0 +1,78 @@
+%%
+%% Package: spectralsequences v1.1.0
+%% Author: Hood Chatham
+%% Email: hood@mit.edu
+%% Date: 2017-08-02
+%% License: Latex Project Public License
+%%
+%% File: example_unstable_ASS_SO.tex
+%%
+%% From Kathryn Lesh: A conjecture on the unstable Adams spectral sequences for SO and U top of page 21.
+%% http://hopf.math.purdue.edu//Lesh/uass-so-model.pdf
+%%
+
+\documentclass{spectralsequence-example}
+
+\begin{document}
+\sseqset{
+ M3M2/.sseq style = { fill },
+ M4M3/.sseq style = { circlen = 2, fill }
+}
+%\pgfkeys{/sseqpages/class/M4M3/.show code}
+
+\NewSseqCommand \tower { O{} d() } {
+ \IfNoValueF{#2}{\class(#2)}
+ \savestack
+ \begin{scope}[#1]
+ \DoUntilOutOfBounds{
+ \class(\lastx,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+ }
+ \end{scope}
+ \restorestack
+}
+
+\NewSseqCommand \etaclass {} {
+ \class(\lastx+1,\lasty+1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\NewSseqCommand \divtwoclass {} {
+ \class(\lastx,\lasty-1)
+ \structline(\lastclass1)(\lastclass)
+}
+
+\begin{sseqdata}[ name = SO_UASS, tick step = 5, x range = {0}{20}, Adams grading, y range={0}{10} ]
+\class(1,0)
+\tower(3,0)
+
+\begin{scope}[M3M2]
+\tower(7,0)
+\etaclass\etaclass
+
+\tower(11,3)
+
+\class(14,4)
+\divtwoclass\divtwoclass
+\etaclass\etaclass\etaclass
+\divtwoclass\divtwoclass
+
+\class(16,5)\etaclass
+\end{scope}
+
+\begin{scope}[M4M3]
+\tower(15,0)
+\etaclass\etaclass\etaclass
+\divtwoclass\divtwoclass
+\end{scope}
+
+\d2(15,0)\d2(15,1)\d2(15,2)
+\d2(16,1)\d2(17,2)\d2(18,3)
+\d2(18,2)\d2(18,1)
+\end{sseqdata}
+
+
+\printpage[ name = SO_UASS, page = 2 ]
+\newpage
+\printpage[ name = SO_UASS, page = 3 ]
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.pdf b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.pdf
new file mode 100644
index 00000000000..054c2d23478
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.tex b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.tex
new file mode 100644
index 00000000000..a4911b459c6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequences-howitworks.tex
@@ -0,0 +1,121 @@
+\input spectralsequencesmanualpreamble
+
+\def\eatclnifpresent#1{#1}
+\def\pgfkeysname{pgfkeys}
+\def\file#1{\path{#1.code.tex}}
+\begin{document}
+\title{A brief overview of the \\ \sseqpages\ code}
+\author{Hood Chatham\\\mailtoHC}
+\maketitle
+\section{Introduction}
+The basic idea is comparable to a more elaborate version of \tikzcdpkg.
+We plan to draw multiple copies of a spectral sequence, so the commands are not issued inside of a picture environment.
+Instead, all information must be stored to draw later. The |\sseq@savedpaths| is responsible for storing the collection of objects of the spectral sequence.
+
+The user defines ``classes'' (which correspond roughly to generators of the spectral sequence $E_2$ / $E_1$ page).
+From the point of view of the programmer, a class is an object with a death page (either infinite or finite) signalling on which page it is the source or target of a differential
+and some pile of information on how to draw it. When the user calls the |\class| command, it makes a new class object with an appropriate name and stores the
+information to tell \spectralsequences\ how to draw the class later, and sets the page to be infinite. A macro informing spectralsequences about the class
+is added to |\sseq@savedpaths| so that it can be drawn later if appropriate.
+
+The |\d| command is similar -- we set the page of the source and target to be the current page and also the pages of any relevant structlines, store the page of the differential and the data needed to draw it, and add the differential to |\sseq@savedpaths|.
+
+The |\structline| command saves code to draw a line, and also figures out what page it should die on based on the smaller of the two death pages of the source and target. If the source and target haven't been killed yet, it hooks into them so that |\d| knows to set the page of this structline too.
+
+Now to draw a page of the spectral sequence, we start up a \tikzpictureenv\ environment, draw some axes,
+walk across |\sseq@savedpaths|, and for each class, we check whether the death page of the class is greater than or equal to the current page and if so we draw a corresponding
+pgf/tikz node. Similarly, we draw the differentials that lie on exactly the current page, and the subset of the structure lines with death page later than the current one.
+
+This is the core idea of the package. In addition to these core features are many important reusability features. For instance, we need a way to define reusable user macros that draw collections of classes and we need looping constructs.
+
+So, having heard this simple description, a reasonable question to ask is: why does it take in excess of 8000 lines of TeX code to accomplish these simple tasks? There are a few reasons. Firstly, the package handles a lot of use cases and has a quite a few different features and there is a large amount of intrinsic complexity to getting these things right. Another huge reason is that \TeX\ is a completely unreasonable coding environment. This is responsible for a good deal of the complexity in \file{sseqparsers}, for example.
+
+Perhaps the biggest single contributor to code complexity is performance. \tikzname\ is very robust, but it is not fast. \spectralsequences\ draws roughly cubically many classes in large diagrams, and my larger test examples have as many as 5,000 classes. If each class takes an extra millisecond a second to draw, that comes out to an extra five seconds of compilation time. Because of this, unless the performance critical drawing code is super optimized, the package will be way too slow on large diagrams. Most of the added complexity due to performance considerations is contained in \file{sseqdrawing}, but the hard parts of the key value code are all related to performance too.
+
+The last major source of complexity is the robust error handling code. Most \LaTeX\ packages have crappy error handling and result in inscrutable errors even in relatively reasonable use conditions. There are a two main reasons for this as far as I can tell: \LaTeX\ doesn't have good error handling tools and most people who write \LaTeX\ packages are not primarily programmers and have other priorities than ensuring that their packages have clean failure modes. The files \file{sseqmessages} and \file{sseqforeach} are entirely devoted to error handling, and almost all of the complexity of \file{sseqmacromakers} is tied up in error handling too.
+
+
+
+\section{Load Store}
+The file \file{sseqloadstore} defines two storage systems. The point of these systems is to ensure that unrelated spectral sequences do not interfere with each other. One system is faster and relatively storage intensive, and it is for macros that contain global information about the spectral sequence. These macros have default values which can be changed using |\sseqset|. The other system is for storing the data about the spectral sequence objects (classes, differentials, structlines, etc). This file is short and simple, but the seemingly innocuous features provided here lead to huge simplifications in much of the rest of the code.
+
+The first system works by making a list |\sseq@storelist| of the commands that need to be stored. It defines commands |\sseq@storecmds| and |\sseq@getcmds| which iterate over |\sseq@storelist| and copy each command between |\sseq@whatevercommand| and |\sseq@whatevercommand@@@\metatt{sseqname}|. Each command also has a default value stored in |\sseq@whatevercommand@@default|. This default can be changed by the user using |\sseqset| outside of a spectral sequence. There is also a command |\sseq@storelist@setdefaults| which loads the default values of all of the commands in |\sseq@storelist|. At the beginning of a \sseqdataenv\ or \sseqpageenv\ environment, if the spectral sequence is new then |\sseq@storelist@setdefaults| is run, and otherwise |\sseq@getcmds| is run. At the end of the \sseqdataenv\ environment, |\sseq@storecmds| is run.
+
+The second system basically is just semantic sugar for indexing into a command that has the name of the current spectral sequence inserted into it: the command |\sseq@obj{some name}| just expands to |\csname sseq.\sseq@thename.some name\endcsname|. This allows different spectral sequences to have different name spaces. A large number of commands to manipulate this are provided. All changes to objects are made global, so at the end of a \sseqpageenv\ environment, any changes that have been made must be reverted. The command |\sseq@cleanup@obj| checks if we are in a context where changes will have to be reverted, checks if an old value of the current object has been stored yet, and if neither of these are true, it adds reverting the current object to a ``cleanup'' command to be run at the end of the current environment.
+
+\section{Messages}
+The file \file{sseqmessages} defines the error handling code. It uses the delightful l3msg infrastructure which separates message content from the position the errors are triggered in and makes much more attractive error messages. One deficiency for my purposes in l3msg though is that it doesn't have very many hooks. My package knows a lot about the circumstances under which most errors trigger and wants to tell the user about this. The basic idea for this approach came from \tikzcdpkg. At the beginning of the \tikzcdenv\ environment, the |\errmessage| command is patched to add an annotation explaining what cell in the matrix the error occurred in. This is because \tikzcdenv\ has a two-pass algorithm, and so errors can occur far away from the code that triggered them.
+
+Anyways, I have a fairly complicated pile of extra information to add into the picture. Firstly, I reconstruct what the user said as closely as possible. This is done inside of \file{sseqmacromakers} and \file{sseqmain}. I also assemble a stack trace that indicates all loops and user macros and all loop variable values. I assemble all this context information and a little more, and then make an annotation message accordingly. All of the many cases here are handled using a pile of horrible spaghetti code.
+
+The annotation setup code is not expandable, so it cannot happen as the error is written to stderr. We need a setup hook before the error is triggered, we need a hook inside the body of the message, and we need a cleanup hook after the error is done to remove any local changes the setup code made. I make a copy of |\__msg_error_code:nnnnnn| and add these two hooks to the beginning and end. The annotation itself is prepended to |\__sseq_hooked_msg_see_documentation_text:n| which is conveniently located inside of the message text.
+
+The other interesting thing in this file is my code for handling |\end| mismatches. Because of the need for nested environment definitions, \LaTeX\ only checks that the environment being |\end|ed matches the current environment after running the |\end| code. However, the code for |\end{sseqpage}| tries to draw a picture, and drawing this picture depends on a large amount of state. If the current environment isn't \sseqpageenv, none of this state is actually present and so hundreds of incomprehensible low level errors happen before the check end code is run and \LaTeX\ gives the environment mismatch error. The fix for my package is to run my own checkend code, which is pretty simple. See my \href{https://tex.stackexchange.com/questions/378174/why-does-checkend-occur-after-running-endenvironment}{tex stack exchange question} for more details.
+
+\section{Loops}
+The file \file{sseqforeach} is responsible for defining looping constructs. It's mostly pretty simple. The first half defines |\DoUntilOutOfBounds|, which repeats some block of stack based code until the top of the stack is out of bounds. The most complicated part of this is the descent check -- it periodically checks that the top of the stack has moved towards the boundary of the page to prevent infinite loops.
+
+The other part of this file patches the |\foreach| command from \tikzname\ in order to make it inform \sseqpages\ what the user said for the foreach loop (as best as I can approximate) and what the loop variables are. This is for error messages -- the ``what the user said'' part will go into the stack trace, and the loop variables will be listed.
+
+
+\section{Macro Makers}
+The file \file{sseqmacromakers} defines commands to define commands. It is built on top of \xparsepkg\ but adds a large number of features specific to my package. Unfortunately, it depends on \xparsepkg\ internals and \xparsepkg\ is not yet stable. None of these dependencies are mission critical, but they significantly increase usability. I have attempted to make fallback code that will work even if incompatible \xparsepkg\ changes are made, but this is incomplete.
+
+Like \tikzname, \spectralsequences\ defines a bunch of commands that only make sense to use inside of certain environments. Thus, we define the command |\class| as |\sseq@class| and at the beginning of the \sseqdataenv\ or \sseqpageenv\ environments, we run a command |\sseq@installmacros| that does a bunch of things like |\let\class\sseq@class|. I want to use \xparsepkg\ to define |\sseq@class|, but the problem I run into is that \xparsepkg\ stores the name of the command being defined and uses that name in certain error messages. These error messages would refer incorrectly to |\sseq@class| instead of |\class|. The fix for this is pretty boring -- it just involves redefining macros back and forward. Anyways, I make a command |\sseq@DeclareDocumentCommandAs| that defines a command using \xparsepkg\ that gives errors as if it were named a specific other command. I use this for defining most of the user-facing macros.
+
+The rest of the file is responsible for defining |\NewSseqCommand| and |\NewSseqGroup|. These commands are relatively simple in principle -- the point of |\NewSseqCommand| is almost already accomplished by \xparsepkg\ already. Most of the complexity is introduced in order to improve the error messages that \spectralsequences\ produces. In particular, I want to reconstruct as closely as possible what the user said when they ran the command. This way, if an error occurs nested several commands deep, or inside of a loop, the user can still get a decent idea about where the error is coming from.
+
+
+\section{Keys}
+There are different options that make sense for the |\class| command versus for the |\d| command, and some options that do make sense for both need distinct handling. However, there are also overlaps. Thus, the key value system is naturally a tree structure. \pgfkeysname\ has support for ``directories'' which proves extremely valuable. Each directory has an unknown option handler, which by default throws an error. I have a command |\sseq@passoptionto| that hands the keys to the parent directory.
+% The directory structure is as follows:
+%\begin{tikzpicture}
+%\node {sseq@keys@unknown} child {
+% node { /sseqpages } child {
+% node {/sseqpages/class}
+% node {/sseqpages/differential}
+% }
+%\end{tikzpicture}
+
+\sseqpages\ is a two-pass algorithm. On the first pass, it creates the data structures necessary to encode the spectral sequence, and on the second pass, the spectral sequence is actually drawn. The second basic design feature of the \sseqpages\ key value system is that keys need to be able to do different things on the first and second pass. This is accomplished very simply -- I use two wrapper macros |\sseq@options@firstpass| and |\sseq@options@secondpass| for code that should only happen respectively on the first and second pass. To use them, I basically just define |\sseq@options@firstpass| as a no-op and |\sseq@options@secondpass| to add its argument to a macro to be stored for later use at draw time. However, in some circumstances I need to redefine these two hooks, either to delete their argument or to evaluate there arguments.
+
+Once we have this basic design, we can implement many of the basic features of \sseqpages. There is a problem, which is that I want to mix \tikzname\ keys with keys that my package defines gracefully. However, \tikzname\ keys execute code that assumes that we are in the middle of drawing something. One early design approach I used was to define my package's unknown option handler to do validation only on \tikzname\ keys on the first pass, and then store the keys and run |\pgfkeys| again to evaluate them at draw time.
+
+The third major design goal is to allow ``styles'' that change the display of logical collections of classes. That is, the user should be able to say something ``permanent cycles = red'' and change all permanent cycles (as identified by \spectralsequences) to red. Originally I implemented this by storing the keys that the user provided and using |\pgfkeys| at draw time to evaluate them each time I made a class. Here I ran into a problem: |\pgfkeys| is very slow. When I used this design and compiled a 5,000 class spectral sequence, saying \codeverb|classes = {red, red, red}| took over a second longer than not saying it. This was obviously an unsatisfactory state of affairs. The solution to this problem sped up the package tremendously, but at the cost of a large increase in design complexity of the key value system.
+
+The solution of course is to only run |\pgfkeys| on any given key once and store the result, rather than repeatedly using |\pgfkeys| on the same input. In order to do this, I needed to hook into |\pgfkeys| and change it so that every time that it would normally evaluate code, it should just store it into |\sseq@savedoptioncode|. Conveniently enough, there are only two places where |\pgfkeys| emits code, so this basic idea is easy enough. The problem is that many keys execute recursive calls to |\pgfkeys| that are state-dependent. Normally, the key code is executed instantly, so it can reasonably expect the state it needs to be preserved. However, if I defer the body of a key that makes such a recursive call, pieces of the necessary state are lost before the code is executed and it breaks. Thankfully, all such state-dependent recursive calls are made using the command |\pgfkeysalso|. So the fix is to first walk across the key code and find any instances of |\pgfkeysalso| that occur in it, and run these |\pgfkeysalso|s. Once this recursive expansion has taken place, the resulting code is independent of the state of the key value system's state and is safe to store for later use.
+
+\section{Main}
+The \file{sseqmain} defines the main environments and user commands. The logic is pretty much as described in the overview section, and nothing super notable happens beyond that. There are a lot of details to get right, in particular a lot of the mess in this file is due to the complicated interfacing with \file{sseqkeys}.
+
+
+
+\section{Parsers}
+The file \file{sseqparsers} is a bit of a grab bag. The code is grouped by structure more than by content, hence the name. Most importantly, it has all of the coordinate parsers that define the coordinate syntax. This file uses some amount of \LaTeX3 programming, though it is a bit of a chimera. There are three main reasons I did not use \LaTeX3 programming more broadly or consistently. The first is inexperience: I simply haven't used \LaTeX3 much. The second is that \LaTeX3 and \tikzname\ do not get along all that well. This is fixable but a pain. The third is that \LaTeX3 has a lot of fancy convenient robust macros, but I generally need sloppy fast macros. If I can write a faster macro that adds a large number of weird preconditions, for the purposes of \spectralsequences\ that is probably better.
+
+One very good reason to use |\ExplSyntax| in this file is that it gets rid of a lot of space hazards. In this file, I really just make use of the variants of |\exp_args| and |\exp_last_unbraced|. These macros are tremendous innovations that greatly improve expandable macro writing.
+
+One major annoyance is the need for |\sseq@ifintexpr|. This is a sanitizer for |\numexpr|. I don't understand why the \eTeX\ source doesn't contain an input sanitizer! \TeX\ does not support catch blocks or exceptions, so because we can't ask forgiveness we have to ask for permission. Anyways |\sseq@ifintexpr| was difficult to write and is slow. Together, |\sseq@ifintexpr| and |\numexpr| are still much faster than |\pgfmathparse| though, and the input sanitization only has to occur at the user input stage, so all of the internal uses of |\numexpr| don't pay this cost. Contrast the case for |\sseq@ifpgfmathexpr| which is my sanitizer for |\pgfmathparse|. All it does is redefine |\pgfmath@error| to throw away the error, set a flag, and quit out of |\pgfmathparse|. It was orders of magnitude easier to write.
+
+There is a parser that does some manipulation on \tikzname\ commands to process the options and the coordinates. The options processing is primarily for speed purposes, and the coordinate parsing I do because I want to make several changes to the way that tikz processes coordinates for the sake of better interoperability with the rest of the \spectralsequences\ feature set (these changes are unfortunately quite involved...). A third thing gained by this is that \sseqpages\ can know that the path looks reasonably close to being syntactically correct at compile time (though I don't run much of the tikz parser, so there's only so much it can tell).
+
+There are a few tricks in here that I think are relatively interesting. The one that I find the most interesting is as follows: suppose you have an expandable macro that needs error handling. The problem with errors in expandable macros is that the errors themselves are not expandable. My solution is to write the macro so that it either a) satisfies whatever the postcondition of the macro was supposed to be or b) is of the form |\protecterror{\someerror}|. Before the |\edef| occurs, the |\protecterror| is defined to expand to |\noexpand\protecterror\unexpanded{#1}|, so that it hangs around after being |\edef|'d. Suppose we are writing |\edef\theoutput{\somemacro{some input}}|. Then when you want to check for the error, redefine |\protecterror| to globally set some error flag, then say |\setbox0=\hbox{\theoutput}| in a local scope. Because |\hbox| evaluates its argument, this throws an error if |\theoutput| contains an error, and also |\protecterror| sets the error flag. However, |\theoutput| can have other random junk in it, which won't leak into the output. This solution doesn't depend on the error being in the top level of |\theoutput|, it can be in as deeply nested braces as necessary and doesn't require |\scantokens| hacking. It doesn't rely on any particular structure features other than the presence or absence of the error.
+Anyways, this is how I manage to have robust error messages with expandable macros. Obviously this isn't applicable to many circumstances, but in my code, my need for expandable macros is always in situations where I have a macro whose evaluation depends on temporary state, but whose result needs to be stored inside of a command (not an |\hbox|) for later handling.
+
+
+\section{Drawing}
+The most notable aspect of the \file{sseqdrawing} is that significant chunks of it need to be highly optimized. The command that is used the most times in a normal spectral sequence is the one that prints a class. It is important to be aware of differences between the efficiency of different low level pdf commands. It is worth pointing out that I have fallen into the trap in some places of optimizing code that didn't need optimization.
+
+In order to maintain all the features of \tikzname\ while being as fast as possible, all drawing code is done in two ways -- one way that is fast and uses low level \pgfpkg, and a second way that is slow and uses \tikzname\. Certain options the user asks for cause the fallback slow code to be run instead of the fast code. It is actually surprising to me how easy it has actually been to maintain this two-method code. It's unusual for the class drawing code to have to resort to the fallback, but if an edge is bent or has a label on it, \sseqpages\ uses \tikzname\ to draw it. Both of these are reasonably standard use cases, but hopefully they will only ever apply to a small percentage of edges in any diagram.
+
+In order to build the relevant chunks of the fast code, I copied the \tikzname\ main loop and deleted stuff until I got to the minimal subset of code that works for my purposes.
+One of the main enemies of speed in this section (other than the \tikzname\ parser and main loop which I avoid by using \pgfpkg) is the |\pgfmathparse| command, which comes up a lot even in \pgfpkg\ code and is quite slow. As much as possible, I try to get away with using the \eTeX\ |\numexpr| and |\dimexpr| commands, both of which are implemented in the \eTeX\ binary and so are very fast. These two commands both have annoying limitations, and it can be difficult to accomplish certain tasks with them. However, it is worth it in interest of speed. In fact, |\numexpr| is actually preferable to |\pgfmathparse| for most of the code outside of the drawing file, because \sseqpages\ deals primarily with integers and basic arithmetic |+-*/()| that |\numexpr| handles, and because |\pgfmathparse| has the unfortunate property of turning all integers into floats.
+
+The other difficulty that arises here is that \spectralsequences\ needs to be able to handle very large diagrams. In a normal |\tikzpicture|, the distance from |(0,0)| to |(1,0)| is 1cm. If you use |scale=0.5| for instance, and use a coordinate |(3,0)|, then the order that multiplications are performed in is $(3\times 1\textup{cm})\times 0.5$. The issue is that 600cm is an overflow, and this overflow occurs even if you have a very small scaling factor that would make that coordinate fit onto the page (which is probably a bit less than 600cm long). The solution is instead of applying a scaling transformation, I adjust the position of the coordinate (1,0), say to be 0.01cm. Then $600*0.01\textup{cm}= 6\textup{cm}$ leads to no overflow. This leads to various complications in the drawing code.
+
+There's a second more problematic issue though. Suppose that I want to zoom in on the range from 600 to 700 on a very large spectral sequence. The scale I want to use to fit this to the page will cause an overflow. To fix this I subtract an offset between the minimum and maximum value of x from every single coordinate. This adjusts the range so that it actually goes from say 0 to 100, and then no overflow occurs.
+
+The issue then is how to make this offset also apply to \tikzname\ primitives. In order to do this I patch into the \tikzname\ coordinate parser and every time it parses a coordinate add in the offsets in the appropriate place. There are a few spots where this goes awry and offsets are added to coordinates that are calculated relative to a another coordinate with the offset already calculated in (the |to| keyword is the main offender here), so there are second order fixes to prevent this.
+
+
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual-layoutcharts.tex b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual-layoutcharts.tex
new file mode 100644
index 00000000000..ba0a774df29
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual-layoutcharts.tex
@@ -0,0 +1,204 @@
+\sseqset{
+ distance label/.sseq style = {orange,{<[width = 4pt]}-},
+ description/.sseq style = {black, align = center},
+ title style={yshift=25pt,font=\Large}
+}
+\catcode`\| = 12 % | is active to be verbatim, but we need to use it here for our arrowhead specification.
+%
+\begin{sseqpage}[ grid = chess,
+ x range = {0}{5}, y range = {0}{5}, math nodes = false,
+ x axis clip padding = 0.15cm, y axis clip padding = 0.15cm,
+ right clip padding = 0.2cm, top clip padding = 0.2cm, axes gap = 25pt,
+ title = {Axis type border layout},
+]
+\begin{scope}[background]
+\sseq@savedpaths@add{\color{red}\pgfsetpath\sseq@theclippath\pgfusepath{draw}}
+\path (\sseq@xmin-3,\sseq@ymin-3) -- (\sseq@xmax+3,\sseq@ymax+3);
+\end{scope}
+
+\begin{scope}[background,|-|,blue]
+% axis clip padding
+\draw[shift = {(1,-\sseq@xaxisgap)}] (0,0)--(0,\sseq@xclip@axisgap-0);
+\draw[distance label,shift = {(1,-\sseq@xaxisgap+\sseq@xclip@axisgap/2)}] (0,0) .. controls (0.5,0) .. (0.5,-1.5)
+ node[description, below] {x axis\\ clip padding};
+%
+\draw[shift = {(-\sseq@yaxisgap,1)}] (0,0)--(\sseq@yclip@axisgap,0);
+\draw[distance label,shift = {(-\sseq@yaxisgap+\sseq@yclip@axisgap/2,1)}] (0,0) .. controls (0,0.3) .. (-0.7,0.3)
+node[description, left] {y axis\\ clip padding};
+
+
+% border clip padding
+\draw[shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend-0.02cm,\sseq@ymax - 1)}] (-0.02cm,0)--(\sseq@clip@padding@right,0);
+\draw[distance label, shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend+\sseq@clip@padding@right/2,\sseq@ymax-1)}] (0,0) .. controls (0,-0.7) ..(0.7,-0.7)
+ node[description, right] {right clip\\ padding};
+%
+\draw[shift = {(\sseq@xmax - 1,\sseq@ymax cm+\sseq@yaxis@end@extend)}] (0,0)--(0,\sseq@clip@padding@top);
+\draw[distance label, shift = {(\sseq@xmax -1,\sseq@ymax cm+\sseq@yaxis@end@extend+\sseq@clip@padding@top/2)}] (0,0) .. controls (0.2,0) .. (0.2,0.3)
+ node[description, above] {top clip\\ padding};
+
+% axis tail
+\draw[shift = {(\sseq@xmin-\sseq@yaxisgap-0.02cm,\sseq@ymin-\sseq@xaxisgap+0.1cm)}] (0,0) -- (-\sseq@xaxis@tail, 0);
+\draw[distance label,shift = {(\sseq@xmin-\sseq@yaxisgap-0.02cm-\sseq@xaxis@tail/2,\sseq@ymin-\sseq@xaxisgap+0.1cm)}] (0,0) .. controls (0,0.5) .. (-1,0.5)
+ node[description, left]{x axis\\ tail};
+%
+\draw[shift = {(\sseq@xmin-\sseq@yaxisgap+0.1cm,\sseq@ymin-\sseq@xaxisgap-0.02cm)}] (0,0) -- (0, -\sseq@yaxis@tail);
+\draw[distance label,shift = {(\sseq@xmin-\sseq@yaxisgap+0.1cm,\sseq@ymin-\sseq@xaxisgap-0.02cm-\sseq@yaxis@tail/2)}] (0,0) .. controls (0.5,0) .. (0.5,-1)
+ node[description, below]{y axis\\ tail};
+
+% extend end axis
+\draw[shift = {(\sseq@xmax,\sseq@ymin-\sseq@xaxisgap-0.1cm)}] (0,0)--(\sseq@xaxis@end@extend,0);
+\draw[distance label,shift = {(\sseq@xmax cm+\sseq@xaxis@end@extend/2,\sseq@ymin-\sseq@xaxisgap-0.1cm)}] (0,0) -- (0,-0.8)
+ node[description, below] {x axis\\ extend end};
+%
+\draw[shift = {(\sseq@xmin cm-\sseq@yaxisgap-0.1cm,\sseq@ymax)}] (0,0)--(0,\sseq@yaxis@end@extend);
+\draw[distance label,shift = {(\sseq@xmin cm- \sseq@yaxisgap-0.1cm,\sseq@ymax cm+\sseq@yaxis@end@extend/2)}] (0,0) -- (-0.6,0)
+ node[description, left] {y axis\\ extend end};
+
+
+% tick gap
+\draw[shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-0.5-\sseq@xaxisgap)}] (0,0)--(0,-\sseq@xlabelgap);
+\draw[distance label,shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-\sseq@xlabelgap/2-\sseq@xaxisgap)}] (0,0) .. controls (0.5 ,0) .. (0.5,-0.8)
+ node[below,black]{x tick gap};
+%
+\draw[shift = {(-0.5-\sseq@yaxisgap,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0)--(-\sseq@ylabelgap,0);
+\draw[distance label,shift = {(-\sseq@yaxisgap -\sseq@ylabelgap/2,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0) .. controls (0, -0.3) .. (-0.5,-0.3)
+node[left,black]{y tick gap};
+
+% axis gap
+\draw[shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap+0.02cm)}] (0,0) -- (0, \sseq@xaxisgap);
+\draw[distance label,shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap/2+0.02cm)}](0,0) .. controls (2,0) .. (2,0.5)
+node[above,description]{x axis gap};
+%
+\draw[shift = {(\sseq@xmin cm-\sseq@yaxisgap+0.02cm,\sseq@ymax cm+0.17cm)}] (0,0) -- (\sseq@yaxisgap,0);
+\draw[distance label,shift = {(\sseq@xmin cm-\sseq@yaxisgap/2+0.02cm,\sseq@ymax cm+0.17cm)}](0,0)--(0,1) %.. controls (0,1) .. (0.5,1);
+node[above,description]{y axis gap};
+\end{scope}
+
+\class(0,0)
+\class(5,0)
+\class(0,5)
+\end{sseqpage}
+
+
+\begin{sseqpage}[ grid = chess, axes type=frame,
+ title = {Axes type frame layout},
+ x range = {0}{5}, y range = {0}{5}, math nodes = false,
+ x axis clip padding = 0.15cm, y axis clip padding = 0.15cm,
+ right clip padding = 0.2cm, top clip padding = 1cm, axes gap = 25pt
+]
+\begin{scope}[background]
+\sseq@savedpaths@add{\color{red}\pgfsetpath\sseq@theclippath\pgfusepath{draw}}
+\path (\sseq@xmin-3,\sseq@ymin-3) -- (\sseq@xmax+3,\sseq@ymax+3);
+\end{scope}
+
+\begin{scope}[background,|-|,blue]
+% axis clip padding
+\draw[shift = {(\sseq@xmax+0.5,-\sseq@xaxisgap)}] (0,0)--(0,\sseq@xclip@axisgap);
+\draw[shift = {(-\sseq@yaxisgap,\sseq@ymax+0.5)}] (0,0)--(\sseq@yclip@axisgap,0);
+\draw[distance label,shift = {(\sseq@xmax+0.5,-\sseq@xaxisgap+\sseq@xclip@axisgap/2)}] (0,0) .. controls (1,0) .. (1,-0.3)
+node[description, below] {x axis\\ clip padding};
+\draw[distance label,shift = {(-\sseq@yaxisgap+\sseq@yclip@axisgap/2,\sseq@ymax+0.5)}] (0,0) .. controls (0,0.5) .. (-0.5,0.5)
+node[description, left] {y axis\\ clip padding};
+
+\draw[shift = {(\sseq@xmax+0.5,\sseq@ymax cm+\sseq@xaxisgap)}] (0,0)--(0,-\sseq@xclip@axisgap);
+\draw[distance label,shift = {(\sseq@xmax+0.5,\sseq@ymax cm+\sseq@xaxisgap-\sseq@xclip@axisgap/2)}] (0,0) .. controls (-0.5,0) .. (-0.5,0.2)
+node[description, above] {x axis\\ clip padding};
+
+
+\draw[shift = {(\sseq@xmax cm +\sseq@yaxisgap,\sseq@ymax +0.5)}] (-\sseq@yclip@axisgap,0)--(0,0);
+\draw[distance label,shift = {(\sseq@xmax cm +\sseq@yaxisgap-\sseq@yclip@axisgap/2,\sseq@ymax +0.5)}] (0,0) .. controls (0,-0.5) .. (0.2,-0.5)
+node[description, right] {y axis\\ clip padding};
+
+
+% tick gap
+\draw[shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-0.5-\sseq@xaxisgap)}] (0,0)--(0,-\sseq@xlabelgap);
+\draw[shift = {(-0.5-\sseq@yaxisgap,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0)--(-\sseq@ylabelgap,0);
+\draw[distance label,shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-\sseq@xlabelgap/2-\sseq@xaxisgap)}] (0,0) .. controls (0.5 ,0) .. (0.5,-0.8)
+ node[below,black]{x tick gap};
+\draw[distance label,shift = {(-\sseq@yaxisgap -\sseq@ylabelgap/2,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0) .. controls (0, -0.3) .. (-0.5,-0.7)
+node[left,black]{y tick gap};
+
+% axis gap
+\draw[shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap+0.02cm)}] (0,0) -- (0, \sseq@xaxisgap);
+\draw[shift = {(\sseq@xmin cm-\sseq@yaxisgap+0.02cm,\sseq@ymax cm+0.17cm)}] (0,0) -- (\sseq@yaxisgap,0);
+\draw[distance label,shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap/2+0.02cm)}](0,0) .. controls (2,0) .. (2,0.5)
+node[above,description]{x axis gap};
+\draw[distance label,shift = {(\sseq@xmin cm-\sseq@yaxisgap/2+0.02cm,\sseq@ymax cm+0.17cm)}](0,0)--(0,1) %.. controls (0,1) .. (0.5,1);
+node[above,description]{y axis gap};
+
+\draw[shift = {(\sseq@xmax cm-0.02cm,\sseq@ymin cm+0.17cm)}] (0,0) -- (\sseq@yaxisgap,0);
+\draw[distance label,shift = {(\sseq@xmax cm-0.02cm+\sseq@yaxisgap/2,\sseq@ymin cm+0.17cm)}](0,0) .. controls (0,1) .. (0.8,1)
+ node[right,description]{y axis gap};
+\draw[shift = {(\sseq@xmin cm+0.17cm,\sseq@ymax cm-0.02cm)}] (0,0) -- (0,\sseq@xaxisgap);
+\draw[distance label,shift = {(\sseq@xmin cm+0.17cm,\sseq@ymax cm-0.02cm+\sseq@xaxisgap/2)}](0,0) .. controls (1.3,0) .. (1.3,0.75)
+ node[above,description]{x axis gap};
+\end{scope}
+
+\class(0,0)
+\class(5,0)
+\class(0,5)
+\end{sseqpage}
+
+
+\begin{sseqpage}[ grid = chess, axes type=center,
+ title = {Axes type center layout},
+ x range = {-3}{3}, y range = {-3}{3}, math nodes = false,
+ x axis clip padding = 0.15cm, y axis clip padding = 0.15cm,
+ right clip padding = 0.2cm, top clip padding = 0.2cm,
+ left clip padding = 0.2cm, bottom clip padding = 0.2cm %axes gap = 25pt
+]
+\begin{scope}[background]
+\sseq@savedpaths@add{\color{red}\pgfsetpath\sseq@theclippath\pgfusepath{draw}}
+\path (\sseq@xmin-3,\sseq@ymin-3) -- (\sseq@xmax+3,\sseq@ymax+3);
+\end{scope}
+
+\begin{scope}[background,|-|,blue]
+
+% tick gap
+\draw[shift = {(\sseq@xmin-0.4,-\sseq@xaxisgap-0.02cm)}] (0,0)--(0,-\sseq@xlabelgap);
+\draw[distance label,shift = {(\sseq@xmin-0.4,-\sseq@xaxisgap-0.02cm-\sseq@xlabelgap/2)}] (0,0) -- (-0.5,0)
+ node[left,black]{x tick gap};
+
+\draw[shift = {(-0.02cm-\sseq@yaxisgap,\sseq@ymin-0.4)}] (0,0)--(-\sseq@ylabelgap,0);
+\draw[distance label,shift = {(-0.02cm-\sseq@yaxisgap -\sseq@ylabelgap/2,\sseq@ymin-0.4)}] (0,0) -- (0,-0.6)
+ node[below,black]{y tick gap};
+
+% border clip padding
+\draw[shift = {(\sseq@xmin cm - \sseq@xaxis@start@extend+0.02cm,\sseq@ymin +1)}] (0,0)--(-\sseq@clip@padding@left,0);
+\draw[distance label, shift = {(\sseq@xmin cm - \sseq@xaxis@start@extend-\sseq@clip@padding@left/2,\sseq@ymin +1)}] (0,0) .. controls (0,-0.5) ..(-0.5,-0.5)
+ node[description, left] {left clip\\ padding};
+%
+\draw[shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend-0.02cm,\sseq@ymin +1)}] (0,0)--(\sseq@clip@padding@right,0);
+\draw[distance label, shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend+\sseq@clip@padding@right/2,\sseq@ymin +1)}] (0,0) .. controls (0,-0.5) ..(0.5,-0.5)
+ node[description, right] {right clip\\ padding};
+%
+\draw[shift = {(\sseq@xmin+1 ,\sseq@ymax cm+\sseq@yaxis@end@extend-0.02cm)}] (0,0)--(0,\sseq@clip@padding@top);
+\draw[distance label, shift = {(\sseq@xmin+1,\sseq@ymax cm -0.02cm+\sseq@yaxis@end@extend+\sseq@clip@padding@top/2)}] (0,0) .. controls (-0.9,0)..(-0.9,0.3)
+ node[description, above] {top clip\\ padding};
+%
+\draw[shift = {(\sseq@xmin +1 ,\sseq@ymin cm-\sseq@yaxis@start@extend+0.02cm)}] (0,0)--(0,-\sseq@clip@padding@bottom);
+\draw[distance label, shift = {(\sseq@xmin +1 ,\sseq@ymin cm +0.02cm - \sseq@yaxis@start@extend-\sseq@clip@padding@bottom/2)}] (0,0) .. controls (-0.9,0)..(-0.9,-0.4)
+ node[description, below] {bottom clip\\ padding};
+
+% extend axis
+\draw[shift = {(\sseq@xmax,-\sseq@xaxisgap+0.1cm)}] (0,0)--(\sseq@xaxis@end@extend,0);
+\draw[distance label,shift = {(\sseq@xmax cm+\sseq@xaxis@end@extend/2,-\sseq@xaxisgap+0.1cm)}] (0,0) .. controls (0,0.5) .. (0.9,0.5)
+ node[description, right] {x axis\\ extend end};
+%
+\draw[shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymax)}] (0,0)--(0,\sseq@yaxis@end@extend);
+\draw[distance label,shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymax cm+\sseq@yaxis@end@extend/2)}] (0,0) .. controls (0.4,0)..(0.4,0.7)
+ node[description, above] {y axis\\ extend end};
+%
+\draw[shift = {(\sseq@xmin,-\sseq@xaxisgap+0.1cm)}] (0,0)--(-\sseq@xaxis@start@extend,0);
+\draw[distance label,shift = {(\sseq@xmin cm-\sseq@xaxis@start@extend/2,-\sseq@xaxisgap+0.1cm)}] (0,0) .. controls (0,0.5) .. (-0.7,0.5)
+ node[description, left] {x axis\\ extend start};
+%
+\draw[shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymin)}] (0,0)--(0,-\sseq@yaxis@start@extend);
+\draw[distance label,shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymin cm-\sseq@yaxis@start@extend/2)}] (0,0) .. controls (2,0)..(2,-0.7)
+ node[description, below] {y axis\\ extend start};
+\end{scope}
+
+\class(0,0)
+\class(5,0)
+\class(0,5)
+\end{sseqpage} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.pdf b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.pdf
index 268315a27a4..f39887f0710 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.pdf
+++ b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.tex b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.tex
index 7b5a499f3e4..292836249c2 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanual.tex
@@ -1,8 +1,8 @@
%%
-%% Package: spectralsequences.sty version 1.0
+%% Package: spectralsequences v1.1.0
%% Author: Hood Chatham
%% Email: hood@mit.edu
-%% Date: 2017-06-18
+%% Date: 2017-08-02
%% License: Latex Project Public License
%%
%% File: spectralsequencesmanual.tex
@@ -12,6 +12,11 @@
%
% TODO:
+% families
+%
+% consistency issues?
+% perhaps think about ordering, particularly of "Misc commands" section
+% tutorial
% explain / cross reference examples folder?
%
@@ -30,9 +35,9 @@
\begin{abstract}
\noindent
-The \sseqpages\space package is a specialized tool built on top of \pgfpkg/\tikzpkg\space for drawing spectral sequences. It provides a powerful, concise syntax for specifying the data of a spectral sequence, and then allows the user to print various pages of spectral sequence, automatically choosing which subset of the classes, differentials, and structure lines to display on each page. It also handles most of the details of the layout. At the same time, \sseqpages\space is extremely flexible. It is closely integrated with \tikzpkg\space to ensure that users can take advantage of as much as possible of its expressive power. It is possible to turn off most of the automated layout features and draw replacements using \tikzpkg\space commands. \sseqpages\space also has a carefully designed error reporting system intended to ensure that it is as clear as possible what is going wrong.
+The \sseqpages\ package is a specialized tool built on top of \pgfpkg/\tikzpkg\ for drawing spectral sequence charts. It provides a powerful, concise syntax for specifying the data of a spectral sequence, and then allows the user to print various pages of a spectral sequence, automatically choosing which subset of the classes, differentials, and structure lines to display on each page. It also handles most of the details of the layout. At the same time, \sseqpages\ is extremely flexible. It is closely integrated with \tikzpkg\ to ensure that users can take advantage of as much as possible of its expressive power. It is possible to turn off most of the automated layout features and draw replacements using \tikzpkg\ commands. \sseqpages\ also has a carefully designed error reporting system intended to ensure that it is as clear as possible what is going wrong.
-Many thanks to the authors of \tikzpkg\space for producing such a wonderful package with such thorough documentation. I would have needed to spend a lot more time reading the \tikzpkg\space code if the documentation weren't so excellent. I took ideas or code or both from \tikzcdpkg\ (part of the code for turning quotes into class or edge labels), \pgfplotspkg\ (axes labels), and \sseqpkg\ (the grid styles, the stack). I lifted a fair amount of code from tex stack exchange. Thanks to Eric Peterson for being a very early adopter and reporting many bugs, to Eva Belmont for many productive conversations and for the idea of adding the stack traces for errors and to Vishal Arul and Catherine Ray for helpful suggestions. Also thanks to all my friends, family, and acquaintances listened to me talk about \LaTeX\ programming even though they probably found it dreadfully boring.
+Many thanks to the authors of \tikzpkg\ for producing such a wonderful package with such thorough documentation. I would have needed to spend a lot more time reading the \tikzpkg\ code if the documentation weren't so excellent. I took ideas or code or both from \tikzcdpkg\ (part of the code for turning quotes into class or edge labels), \pgfplotspkg\ (axes labels), and \sseqpkg\ (the grid types, the stack). I lifted a fair amount of code from \TeX stack exchange. Thanks to Eva Belmont for tons of helpful suggestions, bug reports, and productive conversations. Talking to her has helped to clarify many design concepts for the package. Thanks to Eric Peterson for being a very early adopter and reporting many bugs. Also thanks to all my friends, family, and acquaintances listened to me talk about \LaTeX\ programming even though they probably found it dreadfully boring.
\end{abstract}
\end{titlepage}
@@ -43,7 +48,7 @@ Many thanks to the authors of \tikzpkg\space for producing such a wonderful pack
\tableofcontents
\newpage
\section{Introduction}
-The \sseqpages\space package consists of two main environments -- the \sseqdataenv\space environment, which specifies the data for a named spectral sequence diagram, and the \sseqpageenv\space environment, which prints a single page of a spectral sequence diagram. The |\printpage| command is also available as a synonym for a \sseqpageenv\space environment with an empty body.
+The \sseqpages\ package consists of two main environments -- the \sseqdataenv\ environment, which specifies the data for a named spectral sequence, and the \sseqpageenv\ environment, which prints a single page of a spectral sequence. The |\printpage| command is also available as a synonym for a \sseqpageenv\ environment with an empty body.
Here is a basic example:
\begin{codeexample}[width = 9cm]
@@ -58,30 +63,44 @@ Here is a basic example:
\printpage[ name = ex1, page = 3 ] \quad
\printpage[ name = ex1, page = 4 ]
\end{codeexample}
-%TODO:
-|\begin{sseqdata}[|| name = ex1, cohomological Serre grading]| starts the declaration of the data of a spectral sequence named |ex1| whose page $\mathtt{r}$ differentials go $\mathtt{r}$ to the right and down $\mathtt{r-1}$ -- that is, it has cohomological Serre grading. Then we specify four classes and one page 3 differential, and we ask \sseqpages\space to print the third and fourth pages of the spectral sequence. Note that on the fourth page, the source and target of the differential have disappeared.
+|\begin{sseqdata}[|| name = ex1, cohomological Serre grading]| starts the declaration of the data of a spectral sequence named |ex1| whose page $\mathtt{r}$ differentials go $\mathtt{r}$ to the right and down $\mathtt{r-1}$ -- that is, it has cohomological Serre grading. Then we specify four classes and one page 3 differential, and we ask \sseqpages\ to print the third and fourth pages of the spectral sequence. Note that on the fourth page, the source and target of the differential have disappeared.
+
+\subsection{Installation}
+In both \miktex\ and \texlive\ installation should be automatic -- your \TeX\ distribution should automatically install the package the first time you include |\usepackage{spectralsequences}| in a document and compile it. However, in 2016, \texlive\ made an incompatible change to their database, so no new packages will run on versions of \texlive\ from before 2016. This includes \sseqpages. If you have an old version of \texlive, you can either perform a manual install,
+or, better, you should install an up to date version of \texlive. If you want to do a manual install, see \href{https://tex.stackexchange.com/a/73017}{this \TeX stack exchange post} for instructions.
+
+\subsection{Memory Constraints}
+In a default \TeX\ install, \pdfLaTeX\ has small static memory caps that prevent it from using more than about 60 megabytes of total ram. However, \spectralsequences\ and \pgfpkg/\tikzpkg\ use a large amount of memory. For this reason, using \pdfLaTeX\ with a default install, you cannot draw more than about 2500 classes across all of your diagrams (fewer if you include differentials, structure lines, and other features). There are a few solutions to this.
+
+The easiest solution is to run \LuaLaTeX. \LuaLaTeX\ dynamically allocates memory and so is unlikely to run out of it. Using \LuaLaTeX\ on my computer, I can compile a document that draws two copies of a diagram with 20,000 classes in it (so a total of 40,000 classes). This takes about 50 seconds and 250 megabytes of ram. I expect any real-world use case will compile fine on a modern computer using \LuaLaTeX. This option has the advantage that any modern \TeX\ install comes with a copy of \LuaLaTeX, and that \LuaLaTeX\ is the designated successor to \pdfLaTeX. It has the disadvantage that there are some incompatibilities between \LuaLaTeX\ and \pdfLaTeX\ so if your document depends on \pdfLaTeX-specific features, it might be a pain to switch to \LuaLaTeX.
-\subsection{A warning about fragile macros}%TODO: does this go here? somewhere else
-All the data in a \sseqpages\space environment is stored and used later. As a result, most of the \sseqpages\space commands currently cannot tolerate fragile macros. Unfortunately, it is impossible for \sseqpages\space to warn you about this situation -- if you use a fragile command in a place that it doesn't belong, the result will be an incomprehensible error message. If you are getting nonsense error messages, this is probably why. The solution is to convert fragile macros into robust ones. \href{http://www.tex.ac.uk/FAQ-protect.html}{See here for more information.}
+Another option is to increase the static memory caps for \pdfLaTeX. See \href{https://tex.stackexchange.com/a/26213}{this \TeX stack exchange post} for instructions on how to do this.
+
+\subsection{A warning about fragile macros}
+All the data in a \sseqpages\ environment is stored and used later. As a result, most of the \sseqpages\ commands currently cannot tolerate fragile macros. Unfortunately, it is impossible for \sseqpages\ to warn you about this situation -- if you use a fragile command in a place that it doesn't belong, the result will be an incomprehensible error message. If you are getting nonsense error messages, this is probably why. The solution is to convert fragile macros into robust ones. \href{http://www.tex.ac.uk/FAQ-protect.html}{See here for more information.}
+
+
+\section{Package Options and Environments}
+\begin{manualentry}{Draft Mode}
+The drawings that \sseqpages\ produces can be quite slow, especially if they are large. Draft mode skips drawing the content of the spectral sequence, but still takes up exactly the same amount of space in the document, so that you can deal with formatting issues. To active draft mode, load the package by saying |\usepackage[draft]{spectralsequences}|.
+\end{manualentry}
-\section{The Environments}
\begin{environment}{{sseqdata}\moptions}
-The \sseqdataenv\space environment is for storing a spectral sequence to be printed later. This environment is intended for circumstances where you want to print multiple pages of the same spectral sequence. When using the \sseqdataenv\space environment, you must use the |name| option to tell \sseqpages\space where to store the spectral sequence so that you can access it later.
+The \sseqdataenv\ environment is for storing a spectral sequence to be printed later. This environment is intended for circumstances where you want to print multiple pages of the same spectral sequence. When using the \sseqdataenv\ environment, you must use the |name| option to tell \sseqpages\ where to store the spectral sequence so that you can access it later.
\end{environment}
\begin{environment}{{sseqpage}\ooptions}
-This environment is used for printing a page of existing spectral sequence that was already specified using the \sseqdataenv\space environment. The body of the environment adds local changes -- classes, differentials, structure lines, and arbitrary \tikzpkg\space options that are by default only printed on this particular page. The \sseqpageenv\space environment can also be used to print a standalone page of a spectral sequence -- that is, if you only want to print a single page of the spectral sequence, you can skip using the \sseqdataenv\space environment.
+This environment is used for printing a page of existing spectral sequence that was already specified using the \sseqdataenv\ environment. The body of the environment adds local changes -- classes, differentials, structure lines, and arbitrary \tikzpkg\ options that are by default only printed on this particular page. The \sseqpageenv\ environment can also be used to print a stand-alone page of a spectral sequence -- that is, if you only want to print a single page of the spectral sequence, you can skip using the \sseqdataenv\ environment.
\end{environment}
-\needspace{5\baselineskip}
\begin{command}{\printpage\moptions}
-This command prints a single page of an existing spectral sequence as-is. This is equivalent to a \sseqpageenv\space environment with an empty body.
+This command prints a single page of an existing spectral sequence as-is. This is equivalent to a \sseqpageenv\ environment with an empty body.
\end{command}
-\section{The main commands}
+\section{The Main Commands}
\begin{command}{\class\ooptions\parargtwo{x}{y}}
-This places a class at |(x,y)| where |x| and |y| are integers. If multiple classes occur at the same position, \sseqpages\space will automatically arrange them in a pre-specified pattern. This pattern may be altered using the |class pattern| option.
+This places a class at |(x,y)| where |x| and |y| are integers. If multiple classes occur at the same position, \sseqpages\ will automatically arrange them in a pre-specified pattern. This pattern may be altered using the |class pattern| option.
\begin{codeexample}[]
\begin{sseqpage}[ no axes, ymirror, yscale = 0.8 ]
\class(0,0)
@@ -125,19 +144,17 @@ After a class is the source or target of a differential, it disappears on the ne
\d[->>]3(1,0)
\replaceclass["2\mathbb{Z}"](1,0)
\end{sseqdata}
-\printpage[ name = replace class example, page = 2 ]
-\hskip1cm
-\printpage[ name = replace class example, page = 3 ]
-\hskip1cm
+\printpage[ name = replace class example, page = 2 ] \qquad
+\printpage[ name = replace class example, page = 3 ] \qquad
\printpage[ name = replace class example, page = 4 ]
\end{codeexample}
-Note that this will not restore any structlines coming into or off of the class, if you want the structlines to persist, you must call |\structline| again (or use the structline |structline:page| option)
+Note that this will not restore any structure lines coming into or off of the class, if you want the structure lines to persist, you must call |\structline| again (or use the |structline:page| option).
\end{commandlist}
-\begin{commandlist}{{\classoptions\moptions\parargthreeopt{x}{y}{n}},\classoptions\moptions\pararg{classname}}
-This adds options to a class that already exists. This can be used in a \sseqpageenv\space environment to modify the appearance of a class for just one drawing of the spectral sequence, for instance to highlight it for discussion purposes.
+\begin{commandlist}{{\classoptions\moptions\parargthreeopt{x}{y}{n}},\classoptions\moptions\pararg{classname}, \classoptions\moptions}
+This adds options to an existing class. This can be used in a \sseqpageenv\ environment to modify the appearance of a class for just one drawing of the spectral sequence, for instance to highlight it for discussion purposes.
-If there are multiple classes at the coordinate |(x,y)| you may specify which using an integer or a |tag| $n$. By default, this command will affect the first class placed in that position. You can also provide the |class:name| of a class.
+If there are multiple classes at the coordinate |(x,y)| you may specify which using an integer or a |tag| $n$. By default, this command will affect the first class placed in that position. You can also provide the |class:name| of a class. If no coordinate is indicated at all, then |\lastclass| is used.
\begin{codeexample}[width = 6cm]
\begin{sseqdata}[ name = class options example,
classes = fill ]
@@ -177,13 +194,14 @@ See the \pgfmanualpdfref{class options}{class options} section for a list of the
\end{commandlist}
\begin{commandlist}{
+ {\d\ooptions\meta{page}},
{\d\ooptions\meta{page}\pars{\meta{x},\meta{y}\opt{,\sourcen,\targetn}}},
{\d\ooptions\meta{page}\pars{\sourcename\opt{,\targetn}}},
{\d\ooptions\meta{page}\pars{\sourcecoord}\pars{\targetcoord}}%
}
-Calling |\d\meta{page}|\parargtwo{x}{y} creates a differential starting at \parargtwo{x}{y} of length determined by the specified page. In order to use the |\d| command like this, you must first specify the |degree| of the differentials as an option to the \sseqdataenv\space or \sseqpageenv\space environment. The degree indicates how far to the right and how far up a page $\mathtt{r}$ differential will go as a function of $\mathtt{r}$. If there is a page $\mathtt{r}$ differential, on page $\mathtt{r+1}$, the source, target, and any |\structline|s connected to the source and target of the differential disappear.
+Calling |\d\meta{page}|\parargtwo{x}{y} creates a differential starting at \parargtwo{x}{y} of length determined by the specified page. In order to use the |\d| command like this, you must first specify the |degree| of the differentials as an option to the \sseqdataenv\ or \sseqpageenv\ environment. The degree indicates how far to the right and how far up a page $\mathtt{r}$ differential will go as a function of $\mathtt{r}$. If there is a page $\mathtt{r}$ differential, on page $\mathtt{r+1}$, the source, target, and any structure lines connected to the source and target of the differential disappear. If no class is specified, the default is to use |\lastclass|.
-If there are multiple nodes in the source or target, you may specify which one the differential should go to using an index or tag for \sourcen\space or \targetn. It is also possible to provide the name of the source coordinate and an optional target, or to separately provide the source and target coordinate, either as names or as \parargthree{x}{y}{n}. Using |\d| with explicit source and target coordinates works even if you did not provide a |degree| to the spectral sequence. If you did provide a |degree|, then \sseqpages\space will check whether the difference between the source and target is appropriate for a differential of a given page, and if not it will throw an error. If this is undesirable, you can use the |lax degree| option.
+If there are multiple nodes in the source or target, you may specify which one the differential should go to using an index or tag for \sourcen\ or \targetn. It is also possible to provide the name of the source coordinate and an optional target, or to separately provide the source and target coordinate, either as names or as \parargthree{x}{y}{n}. Using |\d| with explicit source and target coordinates works even if you did not provide a |degree| to the spectral sequence. If you did provide a |degree|, then \sseqpages\ will check whether the difference between the source and target is appropriate for a differential of a given page, and if not it will throw an error. If this is undesirable, you can use the |lax degree| option.
\begin{codeexample}[width = 7.5cm]
\begin{sseqdata}[ name = d example, degree = {-1}{#1},
struct lines = blue, yscale = 1.3 ]
@@ -196,8 +214,7 @@ If there are multiple nodes in the source or target, you may specify which one t
\structline(1,1)(1,0)
\d2(1,0)
\end{sseqdata}
-\printpage[ name = d example, page = 2 ]
-\hskip0.3cm
+\printpage[ name = d example, page = 2 ] \quad
\printpage[ name = d example, page = 3 ]
\end{codeexample}
If there are multiple nodes in the source or target coordinate, then there is a funny syntax for indicating which one should be the source and target:
@@ -215,7 +232,7 @@ If there are multiple nodes in the source or target coordinate, then there is a
\d2(3,0,,2)
\end{sseqpage}
\end{codeexample}
-Negative indices will count from the most recent class in the coordinate (so |-1| is the most recent, |-2| is the second most recent, etc). You can also use a |tag|, which works better if the situation is complicated.
+Negative indices will count from the most recent class in the coordinate (so the most recent is |-1|, the second most recent is |-2|, etc). You can also use a |tag|, which works better if the situation is complicated.
\begin{codeexample}[width = 7.5cm]
\begin{sseqpage}[ Adams grading, yscale = 0.65 ]
\class(1,0)
@@ -238,22 +255,26 @@ Negative indices will count from the most recent class in the coordinate (so |-1
This command adds options to an existing differential, just like |\classoptions| except for differentials. Its syntax is identical to that of |\d|.
\end{commandlist}
-\begin{command}{\structline\ooptions\pars{\sourcecoord}\pars{\targetcoord}}
-This command creates a structure line from \sourcecoord\space to \targetcoord. The source and target coordinates are either of the form \pars{\meta{x},\meta{y}\opt{,\meta{n}}} or \pararg{class name}. If there are multiple classes at $\mathtt{(x,y)}$, then \meta{n} specifies which of the classes at $\mathtt{(x,y)}$ the structline starts and ends at -- if n is positive, then it counts from the first class in that position, if n is negative, it counts backwards from the most recent. You can also use a |tag| for n.
+\begin{command}{\kill\meta{page}\oarg{coord}}
+This command sets the indicated coordinate to die on the indicated page, but does not establish a target for the differential. This is useful if you want to draw your own differential using tikz (see |\getdtarget|) or if you are not drawing the class on the other side of the differential for clutter reasons. As usual, if no coordinate is provided, the default argument is |\lastclass|.
+\end{command}
+
+\begin{command}{\structline\ooptions\opt{\pars{\sourcecoord}\pars{\targetcoord}}}
+This command creates a structure line from \sourcecoord\ to \targetcoord. The source and target coordinates are either of the form \pars{\meta{x},\meta{y}\opt{,\meta{n}}} or \pararg{class name}. If there are multiple classes at $\mathtt{(x,y)}$, then \meta{n} specifies which of the classes at $\mathtt{(x,y)}$ the structure line starts and ends at -- if n is positive, then it counts from the first class in that position, if n is negative, it counts backwards from the most recent. You can also use a |tag| for n. If the \targetcoord\ is omitted, then |\lastclass| is used, so that |\structline(\sourcecoord)| connects the most recent class to the specified coordinate. If both coordinates are omitted, then |\lastclass| and |\lastclass1| are used, and so |\structline| with no arguments at all will connect the two most recent classes.
If the source or target of a structure line is hit by a differential, then on subsequent pages, the structure line disappears.
If the source or target has had multiple generations (i.e., they got hit and you used |\replaceclass|), then the |\structline| will only appear starting on the first page where the current generation of both the source and target are present. If this is undesirable, you can use the |structline:page| option to change it.
-\begin{codeexample}[width = 9cm]
+\begin{codeexample}[width = 7cm]
\DeclareSseqGroup\tower {} {
\class(0,0)
\foreach \y in {1,...,5} {
\class(0,\y)
- \structline(\lastclass1)(\lastclass)
+ \structline
}
\class(0,2)
- \structline(0,1,-1)(\lastclass)
- \structline(\lastclass)(0,3,-1)
+ \structline(0,1,-1)
+ \structline(0,3,-1)
}
\begin{sseqdata}[ name = structline example,
classes = { circle, fill },
@@ -266,13 +287,12 @@ If the source or target has had multiple generations (i.e., they got hit and you
\tower[struct lines = red](2,0)
\d2(1,1,2)
\end{sseqdata}
-\printpage[name = structline example, page = 2]
-\hskip1cm
-\printpage[name = structline example, page = 3]
+\printpage[ name = structline example, page = 2 ] \quad
+\printpage[ name = structline example, page = 3 ]
\end{codeexample}
\end{command}
-\begin{command}{\structlineoptions\moptions\pars{\sourcecoord}\pars{\targetcoord}}
+\begin{command}{\structlineoptions\moptions\opt{\pars{\sourcecoord}\pars{\targetcoord}}}
This command adds options to an existing structure line, just like |\classoptions| except for structure lines. Its syntax is identical to |\structline|.
\end{command}
@@ -281,7 +301,7 @@ This command is a lot like |\structline| except that it puts a circle around the
\end{command}
\begin{commandlist}{\draw,\path,\node,\clip}
-Any code that would work in a \tikzpictureenv\space environment will also work unchanged in a \sseqdataenv\space or \sseqpageenv\space environment, with a few minor differences. This is a very flexible way to add arbitrary background or foreground features to the spectral sequence:
+Any code that would work in a \tikzpictureenv\ environment will also work unchanged in a \sseqdataenv\ or \sseqpageenv\ environment, with a few minor differences. This is a very flexible way to add arbitrary background or foreground features to the spectral sequence:
\begin{codeexample}[]
\begin{sseqdata}[ name = tikz example, Adams grading, math nodes = false,
tikz primitives = { blue, font = \tiny, <- }, circle classes = tikz primitive style,
@@ -316,7 +336,7 @@ Any code that would work in a \tikzpictureenv\space environment will also work u
\subsection{Universal options}
The following options work with all of the drawing commands in this package, including |\class|, |\d|, and |\structline|, their friends |\replaceclass|, |\classoptions|, |\doptions|, and |\structlines|, as well as with \tikzpkg\ primitives.
\begin{keylist}{xshift = \meta{integer},yshift = \meta{integer}}
-Shifts by integer values are the only coordinate changes that are allowed to be applied to |\class|, |\d|, |\structline|, their relatives, or to a \scopeenv\space environment that contains any of these commands. These shift commands help with reusing code. For instance:
+Shifts by integer values are the only coordinate changes that are allowed to be applied to |\class|, |\d|, |\structline|, their relatives, or to a \scopeenv\ environment that contains any of these commands. These shift commands help with reusing code. For instance:
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ cohomological Serre grading, yscale = 0.45 ]
\foreach \x in {0,1} \foreach \y in {0,1} {
@@ -328,7 +348,7 @@ Shifts by integer values are the only coordinate changes that are allowed to be
}
\end{sseqpage}
\end{codeexample}
-This code segment is very useful so \sseqpages\space has the command |\NewSseqGroup| which to make code like this more convenient. The following code produces the same output as above:
+This code segment is very useful so \sseqpages\ has the command |\NewSseqGroup| which to make code like this more convenient. The following code produces the same output as above:
\begin{codeexample}[code only,width = 6cm]
\NewSseqGroup\examplegroup {} {
\class(2,0)
@@ -344,11 +364,11 @@ This code segment is very useful so \sseqpages\space has the command |\NewSseqGr
\end{codeexample}
-A word of warning: the behavior of |xshift| in \sseqpages\space is incompatible with the normal behavior of |xshift| in \tikzpkg. For some reason, saying |xshift = 1| in \tikzpkg\ does not shift the coordinate |(0,0)| to the coordinate |(1,0)| -- instead it shifts by 1pt. In \sseqpages\space, saying |xshift = 1| moves the coordinate |(0,0)| to the coordinate |(1,0)|. This includes \tikzpkg\ primitives: saying \codeverb|\draw[ xshift = 1 ] (0,0) -- (1,0);| inside a \sseqdataenv\space or \sseqpageenv\space environment is the same as saying \codeverb|\draw(1,0) -- (2,0);| despite the fact that this is not the case in the \tikzpictureenv\ environment.
+A word of warning: the behavior of |xshift| in \sseqpages\ is incompatible with the normal behavior of |xshift| in \tikzpkg. For some reason, saying |xshift = 1| in \tikzpkg\ does not shift the coordinate |(0,0)| to the coordinate |(1,0)| -- instead it shifts by 1pt. In \sseqpages\ , saying |xshift = 1| moves the coordinate |(0,0)| to the coordinate |(1,0)|. This includes \tikzpkg\ primitives: saying \codeverb|\draw[ xshift = 1 ] (0,0) -- (1,0);| inside a \sseqdataenv\ or \sseqpageenv\ environment is the same as saying \codeverb|\draw(1,0) -- (2,0);| despite the fact that this is not the case in the \tikzpictureenv\ environment.
\end{keylist}
\begin{manualentry}{Colors}
-These come from the \LaTeX\space \colorpkg\space package via \tikzpkg, so see the \href{\colormanualurl}{\colorpkg\space package documentation} for more information.
+These come from the \LaTeX\ \colorpkg\ package via \tikzpkg, so see the \href{\colormanualurl}{\colorpkg\ package documentation} for more information.
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ classes = {fill,inner sep = 0.4em},
no axes, scale = 1.3 ]
@@ -359,14 +379,14 @@ These come from the \LaTeX\space \colorpkg\space package via \tikzpkg, so see th
\class[magenta](1,1)
\class[yellow](2,1)
\class[blue!50!red](0,2) % a 50-50 blend of blue and red
-\class[green!30!yellow](1,2) % 70% green, 30% yellow
+\class[green!30!yellow](1,2) % 30% green, 70% yellow
\class[blue!50!black](2,2)
\end{sseqpage}
\end{codeexample}
\end{manualentry}
\begin{manualentry}{\pgfmanualpdflabel{""quotes}{}|"|\meta{text}|"|\opt{\meta{options}}}
-Specify a label for a class, a differential, or a structure line. This uses the \tikzpkg\ quotes syntax. The options include anything you might pass as an option to a \tikzpkg\ node, including arbitrary coordinate transforms, colors, opacity options, shapes, fill, draw, etc. The behavior is a little different depending on whether you use it on a class or on a differential or struct line.
+Specify a label for a class, a differential, or a structure line. This uses the \tikzpkg\ quotes syntax. If the label text includes an equal sign or comma, you need to enclose the entire label in braces, e.g., |\class["{x = y}"](0,0)|. The options include anything you might pass as an option to a \tikzpkg\ node, including arbitrary coordinate transforms, colors, opacity options, shapes, fill, draw, etc. The behavior is a little different depending on whether you use it on a class or on a differential or structure line.
For a class, the \meta{text} is placed in the position |inside| the node by default -- in effect, the \meta{text} becomes the label text of the node (so saying |\class["label text"](0,0)| causes a similar effect to saying |\node at (0,0) {label text};|). There are other position options such as |left|, |above left|, etc which cause the label text to be placed in a separate node positioned appropriately. If the placement is above, left, etc, then any option that you may pass to a \tikzpkg\ node will also work for the label, including general coordinate transformations. If the placement is ``inside'', then the only relevant \opt{\meta{options}} are those that alter the appearance of text, such as opacity and color.
\begin{codeexample}[width = 4cm]
@@ -389,7 +409,21 @@ Note that it is also possible to give a label to a |\node| this way, although th
\end{sseqpage}
\end{codeexample}
-For either a |\structline| or a |\class| the label normally goes on the right side of the edge. The special |'| option makes it go in the opposite position from the default. I imitated the label handling in the \tikzcdpkg\ package, so if you use \tikzcdpkg, this should be familiar.
+\begin{key}{pin = \meta{style}}
+The |pin| key makes \sseqpages\ draw a line connecting the label to the relevant class, which can provide necessary clarification in dense diagrams. The pin key itself can take options which adjust the way that the line is drawn:
+\begin{codeexample}[width = 6cm]
+\begin{sseqpage}
+\class(0,0)
+\class["xy" {above, xshift=-4pt, pin = red}](0,0)
+\class(0,0)
+\class(0,1)
+\structline
+\end{sseqpage}
+\end{codeexample}
+\end{key}
+
+
+For either a |\structline| or a |\class| the label normally goes on the right side of the edge. The special option |'| makes it go in the opposite position from the default. I imitated the label handling in the \tikzcdpkg\ package, so if you use \tikzcdpkg, this should be familiar.
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ Adams grading, yscale = 0.63 ]
\class(0,0)
@@ -411,7 +445,10 @@ You can also use quotes to label edges drawn with \tikzpkg\ primitives:
\draw (1,0) to["hi"'{ pos = 0.7, yshift = -0.5em }] (0,1);
\end{sseqpage}
\end{codeexample}
-The special option ``description,'' stolen from \tikzcdpkg, places the label on top of the edge. In order to make this option work correctly, if the background coolor is not the default white, you must inform sseqpages about this using the key |background color = |\meta{color}. In this document, the background color is called \textit{graphicbackground}.
+
+\needspace{3\baselineskip}
+\begin{key}{description}
+The |description| key, stolen from \tikzcdpkg, places the label on top of the edge. In order to make this option work correctly, if the background coolor is not the default white, you must inform \sseqpages\ about this using the key |background color = |\meta{color}. In this document, the background color is called \textit{graphicbackground}.
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ no axes, background color = graphicbackground ]
\foreach \x in {0,1,2} \foreach \y in {0,1} {
@@ -422,6 +459,7 @@ The special option ``description,'' stolen from \tikzcdpkg, places the label on
\structline["c" description](2,0)(2,1)
\end{sseqpage}
\end{codeexample}
+\end{key}
\end{manualentry}
@@ -449,7 +487,7 @@ This shape is used for |\circleclasses|. It's a variant on the |ellipse| shape t
There are many more \tikzpkg\ shapes in the shapes library, which you can load using the command |\usetikzlibrary{shapes}|. The following are some examples:
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ no axes, classes = { inner sep = 0.4em },
- class placement transform = { scale = 2 },
+ class placement transform = { scale = 1.8 },
yscale = 1.63 ]
\class(0,0)
\class[isosceles triangle](2,0)
@@ -462,7 +500,7 @@ There are many more \tikzpkg\ shapes in the shapes library, which you can load u
\class[regular polygon, regular polygon sides = 8](2,2)
\end{sseqpage}
\end{codeexample}
-See the \href{\pgfmanualurl#section.49}{\tikzpkg\space manual} for more information.
+See the \href{\pgfmanualurl#section.49}{\tikzpkg\ manual} for more information.
\end{manualentry}
\begin{keylist}{minimum width = \meta{dimension}, minimum height = \meta{dimension}, minimum size = \meta{dimension}, inner sep = \meta{dimension}, outer sep = \meta{dimension}}
@@ -523,6 +561,47 @@ This key adds a tag to the current class. Tags are used for identifying which of
We want each differential to go from the |h21| vee to the |id| vee, independent of which classes are in the same position of the two vees. The easy way to accomplish this is by giving tags to each of the two vees.
\end{key}
+\begin{key}{insert = \meta{integer}}
+If there are multiple classes in the same position, this option allows you to insert classes later into earlier positions. This is intended to help you put logically related classes next to each other. If the integer is positive, it inserts the class in the specified position, and if the integer is negative, it counts backwards from the end. Providing |0| is the same as omitting the option entirely. Values larger in absolute value than the total number of classes are truncated.
+ Consider:
+\begin{codeexample}[]
+\DeclareSseqGroup \tower {} {
+ \class(0,0)
+ \DoUntilOutOfBounds {
+ \class(\lastx,\lasty+1)
+ \structline
+ }
+}
+
+\begin{sseqdata}[name=test, y range={0}{4}, class pattern = linear]
+\tower(0,2)
+\tower(0,3)
+\tower(0,1)
+\end{sseqdata}
+\qquad
+\begin{sseqpage}[name=test]
+\tower[red,classes={insert=1}](0,0)
+\end{sseqpage}
+\qquad
+\begin{sseqpage}[name=test]
+\tower[red,classes={insert=2}](0,0)
+\end{sseqpage}
+\qquad
+\begin{sseqpage}[name=test]
+\tower[red,classes={insert=3}](0,0)
+\end{sseqpage}
+\qquad
+\begin{sseqpage}[name=test]
+\tower[red,classes={insert=-2}](0,0)
+\end{sseqpage}
+\qquad
+\begin{sseqpage}[name=test]
+\tower[red,classes={insert=-3}](0,0)
+\end{sseqpage}
+\end{codeexample}
+
+\end{key}
+
\begin{key}{offset = \{\pars{\meta{x offset},\meta{y offset}}\}}
By default, a class uses the offset specified by |class pattern|. Occasionally this is undesirable. In this case, you can specify the offset for a particular class by hand. For example if the sum of two classes is hit by a differential, it looks better for the class replacing them to be centered:
\begin{codeexample}[width = 9cm]
@@ -547,9 +626,9 @@ By default, a class uses the offset specified by |class pattern|. Occasionally t
\end{key}
\begin{key}{tooltip = \meta{text}}
-This key generates a ``tooltip'' over the given class. That is, if you hover your mouse over it, a little window will popup with the tooltip text. This is particularly useful to give the coordinates or names of classes in large diagrams where it may be hard to tell from looking at the picture what position the class is in, or there may not be room to supply names to classes.
+This key generates a ``tooltip'' over the given class. That is, if you hover your mouse over it, a little window will popup with the tooltip text. This is particularly useful to give the coordinates or names of classes in large charts where it may be hard to tell from looking at the picture what position the class is in, or there may not be room to supply names to classes.
-The tooltip is made using the |\pdftooltip| command from the |pdfcomment| package. This cannot handle math, but it will print math expressions into tex input form. Not all pdf viewers will display the tooltip correctly. If this concerns you, the command |\sseqtooltip| is used to produce the tooltip, and you can redefine it as any other command that takes |\sseqtooltip|\marg{text}\marg{tooltip text} and produces a tooltip. For instance, on \href{https://tex.stackexchange.com/a/164186/23866}{this stack exchange post}, there is code that supposedly produces tooltips that work with Evince. I have not tested whether it works by itself or whether it works with my package, but you could. You could potentially figure out how to get math to work in tooltips too -- if you find a satisfactory method, please let me know.
+The tooltip is made using the |\pdftooltip| command from the |pdfcomment| package. This cannot handle math, but it will print math expressions into \TeX input form. Not all pdf viewers will display the tooltip correctly. If this concerns you, the command |\sseqtooltip| is used to produce the tooltip, and you can redefine it as any other command that takes |\sseqtooltip|\marg{text}\marg{tooltip text} and produces a tooltip. For instance, on \href{https://tex.stackexchange.com/a/164186/23866}{this stack exchange post}, there is code that supposedly produces tooltips that work with Evince. I have not tested whether it works by itself or whether it works with my package, but you could. You could potentially figure out how to get math to work in tooltips too -- if you find a satisfactory method, please let me know.
Anyways, here's an example:
\begin{codeexample}[]
@@ -578,7 +657,7 @@ These options only work in |\classoptions|. The |page| option gives a range of p
\printpage[ name = page_example, page = 4 ]
\end{codeexample}
A ``generation'' of a class is the interval from one call of |\class| or |\replaceclass| to the page on which it next supports or is hit by a differential.
-By default the |\classoptions| command adds options only to the most recent generation of the class in a \sseqdataenv\space environment, or on the generation appropriate to the current page in a \sseqpageenv\space environment. Using the |generation| option allows you to provide a single generation or range of generations of the class that the options should apply to. The first generation is generation 0, and the most recent generation is generation -1. Larger negative values count backwards.
+By default the |\classoptions| command adds options only to the most recent generation of the class in a \sseqdataenv\ environment, or on the generation appropriate to the current page in a \sseqpageenv\ environment. Using the |generation| option allows you to provide a single generation or range of generations of the class that the options should apply to. The first generation is generation 0, and the most recent generation is generation -1. Larger negative values count backwards.
\begin{codeexample}[]
\begin{sseqdata}[ name = page_example2, Adams grading, xscale = 0.6, yscale = 0.5 ]
\class(0,2)\class(1,0)
@@ -637,7 +716,7 @@ These commands represent the $\mathtt{x}$ and $\mathtt{y}$ coordinate of the cur
Because the main job of the |\d| and |\structline| commands is to print an edge on the appropriate pages of the spectral sequence, most \tikzpkg\ options that you could apply to a \tikzpkg\ ``to'' operator (as in |\draw (x1,y1) to (x2,y2);|) can be applied to both |\d| and |\structline|. Some such options are as follows:
\begin{keylist}{source anchor = \meta{anchor}, target anchor = \meta{anchor}}
-Because you can't use the normal \tikzpkg\ mechanism for specifying the source and target anchors, \sseqpages\space has these two keys for |\d| and |\structline|:
+Because you can't use the normal \tikzpkg\ mechanism for specifying the source and target anchors, \sseqpages\ has these two keys for |\d| and |\structline|:
\begin{codeexample}[width = 4cm]
\begin{sseqpage}[ no axes, yscale = 1.24 ]
\foreach \x in {0,1} \foreach \y in {0,1} {
@@ -651,11 +730,11 @@ Because you can't use the normal \tikzpkg\ mechanism for specifying the source a
\begin{keylist}{shorten > = \meta{distance}, shorten < = \meta{distance}}
-These behave exactly like the corresponding options from \tikzpkg\space, shortening the end and beginning of the edge respectively. Note that you can lengthen the edge by shortening by a negative amount.
+These behave exactly like the corresponding options from \tikzpkg\ , shortening the end and beginning of the edge respectively. Note that you can lengthen the edge by shortening by a negative amount.
\end{keylist}
\begin{manualentry}{Dash patterns:}
-See the \href{\pgfmanualurl#subsubsection.15.3.2}{\tikzpkg\space manual} for a complete explanation of the dash pattern related options. Some examples:
+See the \href{\pgfmanualurl#subsubsection.15.3.2}{\tikzpkg\ manual} for a complete explanation of the dash pattern related options. Some examples:
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ no axes, yscale = 1.6 ]
\foreach \x in {0,1,2} \foreach \y in {0,1} {
@@ -682,12 +761,12 @@ See the \href{\pgfmanualurl#subsubsection.15.3.2}{\tikzpkg\space manual} for a c
\end{codeexample}
\end{keylist}
-\begin{key}{invisible}
-This key is only for |\d|. It prevents a differential from being drawn at all. The typical reason you might want this is so that you can draw your own differential using \tikzpkg\space commands. See |\getdtarget| for an example of this.
-\end{key}
+%\begin{key}{invisible}
+%This key is only for |\d|. It prevents a differential from being drawn at all. The typical reason you might want this is so that you can draw your own differential using \tikzpkg\ commands. See |\getdtarget| for an example of this.
+%\end{key}
\begin{key}{structline:page = \meta{page}\opt{-{}-\meta{page max}}}
-This key is only for |\structline| and |\structlineoptions|. By default, the |\structline| command only adds a structline starting on the page where the most recent generation of the source or target is born:
+This key is only for |\structline| and |\structlineoptions|. By default, the |\structline| command only adds a structure line starting on the page where the most recent generation of the source or target is born:
\begin{codeexample}[width = 7.6cm]
\begin{sseqdata}[ name = structpage example,
@@ -735,7 +814,7 @@ Similarly, for |\structlineoptions| you can specify a minimum page on which to a
\subsection{Options for \sectionstring\circleclass}
\begin{key}{fit = \meta{coordinates or nodes}}
-The |\circleclasses| command uses the \href{\pgfmanualurl#section.52}{\tikzpkg\space fitting library}. Sometimes it's desirable to make the resulting node fit extra things, for example a label. It doesn't necessarily end up looking great though.
+The |\circleclasses| command uses the \href{\pgfmanualurl#section.52}{\tikzpkg\ fitting library}. Sometimes it's desirable to make the resulting node fit extra things, for example a label. It doesn't necessarily end up looking great though.
\begin{codeexample}[]
\begin{sseqpage}[Adams grading,axes gap = 0.7cm]
\class(0,2)
@@ -756,27 +835,27 @@ By default, the shape drawn by |\circleclasses| is a ``newelipse'' which is a cu
\end{key}
\begin{keylist}{cc:class style,cc:permanent cycle style,cc:transient cycle style,cc:this page class style,cc:differential style,cc:struct line style}
-See the \pgfmanualpdfref{class style}{corresponding entry} in the \tikzpkg\space primitives section.
+See the \pgfmanualpdfref{class style}{corresponding entry} in the \tikzpkg\ primitives section.
\end{keylist}
\begin{key}{cc:page = \meta{page}\opt{-{}-\meta{page max}}}
-By default, the ellipse will be drawn on the same set of pages that a structline between the two classes would be drawn on. This specifies a range of pages for the ellipse to be drawn. Note that unlike with structlines, you can instruct \circleclasses\ to draw the shape even on pages where one or both of the classes that it is fitting are dead.
+By default, the ellipse will be drawn on the same set of pages that a structure line between the two classes would be drawn on. This specifies a range of pages for the ellipse to be drawn. Note that unlike with structure lines, you can instruct |\circleclasses| to draw the shape even on pages where one or both of the classes that it is fitting are dead.
\end{key}
-\subsection{Options for \tikzpkg\space primitives}
+\subsection{Options for \tikzpkg\ primitives}
\begin{key}{background}
-This key instructs \sseqpages\space to put the current \tikzpkg\space primitive in the background. The way that the spectral sequence is printed is as follows:
+This key instructs \sseqpages\ to put the current \tikzpkg\ primitive in the background. The way that the spectral sequence is printed is as follows:
\begin{itemize}
\item The title, axes, axes ticks, and axes labels are printed (the appropriate steps are skipped when the |no title|, |no axes|, |no ticks|, or |no labels| keys are used or if no title or axes labels are provided).
-\item The \tikzpkg\space background paths are printed.
+\item The \tikzpkg\ background paths are printed.
\item The clipping is inserted (unless the |no clip| key is used).
-\item All foreground elements (classes, differentials, structlines, and normal \tikzpkg\space paths) are printed.
+\item All foreground elements (classes, differentials, structure lines, and normal \tikzpkg\ paths) are printed.
\end{itemize}
-In particular, this means that foreground \tikzpkg\space paths can be clipped by the standard clipping, but background paths that are outside of the clipping expand the size of the \tikzpkg\space picture.
+In particular, this means that foreground \tikzpkg\ paths can be clipped by the standard clipping, but background paths that are outside of the clipping expand the size of the \tikzpkg\ picture.
\begin{codeexample}[]
\begin{sseqpage}[no ticks,yscale = 0.9,math nodes = false]
\class(0,0)
@@ -807,11 +886,10 @@ Here is an example where \tikzpkg\ labels with the |background| key are used to
\printpage[name = tikz background example, page = 3]
\end{codeexample}
-For this particular use case, it's and probably better to use |title|, |x label|, and |y label|:
+For this particular use case, it's probably better to use |title|, |x label|, and |y label|:
\begin{codeexample}[]
\begin{sseqdata}[ name = tikz background example2, cohomological Serre grading, classes = fill,
- grid = go, title = { Page \page }, x label = { $H^*(B)$ }, y label = { $H^*(F)$ },
- x label style = { yshift = 10pt}, y label style = { xshift = 10pt } ]
+ grid = go, title = { Page \page }, x label = { $H^*(B)$ }, y label = { $H^*(F)$ } ]
\class(0,0)
\class(3,0)
\class(0,2)
@@ -823,16 +901,31 @@ For this particular use case, it's and probably better to use |title|, |x label|
\end{codeexample}
But if you need more flexible labeling, you'll likely want to use tikz primitives with |background|. See \example{KF3} for an instance where this key is useful.
+
+One useful tip is that you can ensure consistent bounding boxes between different diagrams using |\path[background] (smallest x, smallest y) -- (largest x, largest y);|:
+\begin{codeexample}[]
+\begin{sseqdata}[ name = boundingboxex, x range = {0}{2}, y range = {0}{2}, scale = 0.5 ]
+\end{sseqdata}
+\printpage[ name = boundingboxex, title = not aligned ]
+\quad
+\printpage[ name = boundingboxex, x label = Hi ]
+\qquad
+\begin{sseqpage}[ name = boundingboxex, keep changes, title = aligned ]
+\path[background] (\xmin,\ymin-4) -- (\xmax,\ymax+2);
+\end{sseqpage}
+\quad
+\printpage[ name = boundingboxex, x label = Hi, title = {} ]
+\end{codeexample}
\end{key}
\begin{keylist}{page constraint = \meta{predicate}, page constraint or = \meta{predicate}}
-This places a constraint on the pages in which the \tikzpkg\space primitive is printed. This predicate should look something like
-\texttt{(\string\page< = 4)} |&&| \texttt{(\string\page> = 3)}. The predicate is anded together with any previous predicates, so that you can use this as an option for a \scopeenv\space and again for the individual \tikzpkg\ primitive.
+This places a constraint on the pages in which the \tikzpkg\ primitive is printed. This predicate should look something like
+\texttt{(\string\page< = 4)} |&&| \texttt{(\string\page> = 3)}. The predicate is anded together with any previous predicates, so that you can use this as an option for a \scopeenv\ and again for the individual \tikzpkg\ primitive.
\begin{commandlist}{\isalive\pararg{coordinate},\isalive\{\pararg{coordinate 1}$\cdots$\pararg{coordinate n}\}}
This command can only be used with |page constraint|. Saying
$$|page constraint = ||{|\pars{\meta{x},\meta{y}\opt{,\meta{index}}}|}}|$$
-will print the \tikzpkg\space primitive only on pages where the specified class is alive. Saying
+will print the \tikzpkg\ primitive only on pages where the specified class is alive. Saying
$$|page constraint = ||{\isalive|\pars{\meta{coordinate 1}}\,\cdots\,\pars{\meta{coordinate n}}|}|$$
is equivalent to
$$|page constraint = ||{\isalive|\pararg{coordinate 1}| &&|\,\cdots\,|&& \isalive|\pararg{coordinate n}|}|$$
@@ -843,7 +936,7 @@ is the same as |\structline(1,0)(2,2)|, except that you can't later use |\struct
\end{keylist}
\begin{keylist}{class style,permanent cycle style,transient cycle style,this page class style,differential style,struct line style}
-These classes apply the styling of the corresponding element to your \tikzpkg\space commands.
+These classes apply the styling of the corresponding element to your \tikzpkg\ commands.
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ differentials = blue, yscale = 0.65, no axes ]
\class(0,2)
@@ -857,7 +950,8 @@ See |\getdtarget| for a more natural example.
-\section{Miscellaneous commands}
+\section{Miscellaneous Commands}
+\subsection{Settings}
\begin{command}{\sseqset\marg{keys}}
The |\sseqset| command is for adjusting the global options for all spectral sequences in the current scope, or for applying options to the rest of the current spectral sequence. For instance, if most of the spectral sequences in the current document are going to be Adams graded, you can say |\sseqset{Adams grading}| and all future spectral sequences in the current scope will have Adams grading (unless you specify a different grading explicitly). As another example, |\sseqset{no axes}| will suppress axes from spectral sequences in the current scope. Note that defaults only apply to new \sseqdataenv\ environments or to unnamed \sseqpageenv\ environments; they won't apply to existing spectral sequences.
@@ -868,10 +962,10 @@ You can also use |\sseqset| to create styles to be used in spectral sequences.
.sseq style = \meta{keys},
.sseq append style = \meta{keys}
}
-These handlers create reusable styles to be used in spectral sequences. If this style is a set of global options, then use the |.global sseq style| handler, whereas if it is supposed to be applied to individual features (classes, differentials, struct lines, circle classes, and tikz primitives) then use the |.sseq style| handler.
+These handlers create reusable styles to be used in spectral sequences. If this style is a set of global options, then use the |.global sseq style| handler, whereas if it is supposed to be applied to individual features (classes, differentials, structure lines, circle classes, and tikz primitives) then use the |.sseq style| handler.
\begin{codeexample}[width=6cm]
\sseqset{
- mysseq/.style = {
+ mysseq/.global sseq style = {
Adams grading, title = Page \page,
x range = {0}{4}, y range = {0}{2},
xscale = 0.5, yscale = 1.35
@@ -881,7 +975,8 @@ These handlers create reusable styles to be used in spectral sequences. If this
\begin{sseqpage}[ mysseq ]
\class(0,0) \class(0,1) \class(0,2) \class(0,3)
\class(3,1) \class(3,2) \class(3,3)
-\structline(0,0)(0,1) \structline(0,1)(0,2) \structline(0,2)(0,3)
+\structline(0,0)(0,1) \structline(0,1)(0,2)
+\structline(0,2)(0,3)
\structline(3,1)(3,2) \structline(3,2)(3,3)
\structline[htwostruct](0,0)(3,1)
\structline[htwostruct](0,1)(3,2)
@@ -891,26 +986,94 @@ These handlers create reusable styles to be used in spectral sequences. If this
\end{keylist}
\end{command}
-\begin{command}{\foreach}
-This command is from \tikzpkg\space and works in pretty much the same way in \sseqpages, though with slightly better variants. The |\foreach| command is very flexible and has a lot of variants. See the \href{\pgfmanualurl#section.64}{\tikzpkg\space manual} for more details.
-\end{command}
-
\begin{command}{\sseqerrortowarning\meta{error-name}}
-Turns the error with the given name into a warning. An error message will start by saying |sseqpages error: "error-name"|. This is the name you need to put into this command.
+Turns the error with the given name into a warning. An error message will start by saying \let\eatclnifpresent\empty|spectralsequences error: "error-name"|. This is the name you need to put into this command.
\end{command}
-\begin{command}{\sseqnormalizemonomial}
-This command simplifies a monomial by combining like variables and removing bases that are raised to the 0th power, removing exponents of 1, removing 1's, and replacing the empty monomial with 1. It outputs its result into |\processedlabel|. This command is specifically meant to be used as a value for |class label handler|, so see the example there for the actual purpose. The exponents must be integers or else it will misbehave.
-\begin{codeexample}[]
-\sseqnormalizemonomial{x^0y^0} $\processedlabel$, \quad
-\sseqnormalizemonomial{x^3yx^{-1}z^0} $\processedlabel$, \quad
-\sseqnormalizemonomial{1x_2^2x^2_2} $\processedlabel$
+\subsection{Code reuse commands}
+\begin{command}{\foreach }
+This command is from \tikzpkg\ and works in pretty much the same way in \sseqpages, though with slightly better variants. The |\foreach| command is very flexible and has a lot of variants. The basic usage is |\foreach \x in {\meta{xmin},...,\meta{xmax}} \marg{loop body}| which will execute |\meta{loop body}| with |\x| set to each value between \meta{xmin} and \meta{xmax} inclusive. If you want a step greater than 1, try |\foreach \x in {\meta{xmin},\meta{xmin}+\meta{xstep},...,\meta{xmax}} \marg{loop body}|.
+
+If you need to do multiple loops with a common body, you can just stack the |\foreach| commands:
+\begin{codeexample}[width=6cm]
+\begin{sseqpage}[ xscale = 0.5, x tick step = 2 ]
+\foreach \x in {0,2,...,6}
+\foreach \y in {0,...,3}{
+ \class(\x,\y)
+}
+\end{sseqpage}
\end{codeexample}
+
+You can also loop through tuples, for instance:
+\begin{codeexample}[width=6cm]
+\begin{sseqpage}[ xscale = 0.5 ]
+\foreach \x/\y/\label in {0/1/a,1/1/b,0/0/c,1/0/d}{
+ \class["\label" above](\x,\y)
+}
+\end{sseqpage}
+\end{codeexample}
+See the last example for |normalize monomial| for a better example of this usage.
+
+There are tons of other things you can do with |\foreach|, though I haven't yet found need for them in combination with \sseqpages. See the \href{\pgfmanualurl#section.64}{\tikzpkg\ manual} for more details.
\end{command}
-\begin{commandlist}{\NewSseqCommand \texttt{\textbackslash}\meta{command}\marg{argspec}\marg{body},
- \DeclareSseqCommand\texttt{\textbackslash}\meta{command}\marg{argspec}\marg{body}}
-The \xparsepkg\ package provides these very powerful commands for defining macros. They are used internally to the \sseqpages\space package to define |\class|, |\d|, etc. To help you create variants of these commands, I will record here the argument specifications for each of them. See the \href{\xparseurl}{\xparsepkg\ manual} for a better explanation and more information.
+\begin{commandlist}{
+ \Do\marg{iterations}\meta{loop body},
+ \DoUntilOutOfBounds\meta{loop body},
+ \DoUntilOutOfBoundsThenNMore\marg{extra iterations}\meta{loop body},
+ \iteration
+}
+The one use case that |\foreach| doesn't cover all that well is if you want the loop to always repeat until the features you are drawing go off the page. This is what |\DoUntilOutOfBounds| and |\DoUntilOutOfBoundsThenNMore| are for. These help ensure that if you change the range of your chart, infinite families will automatically be drawn correctly without the need to adjust a bunch of loop bounds. The purpose of |\DoUntilOutOfBoundsThenNMore| is for towers that are receiving a differential. If your spectral sequence is Adams graded, and a tower is receiving a $d_r$ differential from another tower, you should use |\DoUntilOutOfBoundsThenNMore{r}|:
+\begin{codeexample}[width=7cm]
+\begin{sseqpage}[
+ Adams grading, classes = fill,
+ x range = {0}{10}, y range = {0}{6},
+ x tick step = 2,
+ xscale = 0.3,yscale = 0.7,
+ run off differentials = {->}
+]
+\class(0,0)
+\DoUntilOutOfBoundsThenNMore{3}{
+ \class(\lastx+1,\lasty+1)
+ \structline
+}
+\class(4,0)
+\DoUntilOutOfBounds{
+ \class(\lastx+1,\lasty+1)
+ \structline
+ \d3
+}
+\end{sseqpage}
+\end{codeexample}
+You can also nest |\DoUntilOutOfBounds| reasonably:
+\begin{codeexample}[width=7cm]
+\begin{sseqpage}[
+ x range = {0}{6}, y range = {0}{6},
+ tick step = 2,
+ scale = 0.6
+]
+\class(0,0)
+\DoUntilOutOfBounds{
+ \class(\lastx+1,\lasty+1)
+ \structline
+ \DoUntilOutOfBounds{
+ \class(\lastx,\lasty+1)
+ \structline
+ }
+}
+\end{sseqpage}
+\end{codeexample}
+One important difference between |\foreach| and the |\Do| family of commands is that |\Do| has no effect on the stack. This is in order to ensure that they nest properly.
+
+Note that if you are using these commands and you are planning to draw several pictures of the chart with restricted range, you need to specify a range for the \sseqdataenv\ that contains all of the ranges of pages that you want to draw. If you then want to set a smaller default range, specify the smaller range the first time you use \sseqpageenv\ or |\printpage| to draw the spectral sequence, and include the |keep changes| key.
+
+The |\Do| command is less general than |\foreach|; the purpose is to provide a syntax for stack-based looping that is similar to |\DoUntilOutOfBounds| but with a fixed range. So |\Do{n}\marg{loop body}| repeats \meta{loop body} |n| times. The assumption is that the loop body draws something relative to the position of the |\lastclass|.
+
+If you need to know how many iterations one of these three commands has gone through, this is stored in the variable |\iteration|.
+\end{commandlist}
+\begin{commandlist}{\NewSseqCommand \cmdarg{command}\marg{argspec}\marg{body},
+ \DeclareSseqCommand\cmdarg{command}\marg{argspec}\marg{body}}
+The \xparsepkg\ package provides these very powerful commands for defining macros. They are used internally to the \sseqpages\ package to define |\class|, |\d|, etc. To help you create variants of these commands, I will record here the argument specifications for each of them. See the \href{\xparseurl}{\xparsepkg\ manual} for a better explanation and more information.
To make a command like |\class|, you can use the argument specification |O{}r()|. The argument type \texttt{O\marg{default}} stands for a bracket delimited optional argument with default value \meta{default}. In this case, we've specified the default to be empty. |r()| stands for a ``required'' argument delimited by |(| and |)|. In the command definition, access the optional argument with |#1| and the coordinate with |#2|.
\begin{codeexample}[width = 6.5cm,vbox]
@@ -956,7 +1119,7 @@ An example where this is actually useful:
\DeclareSseqCommand\etaclass{ O{} d() }{
\IfNoValueF{#2}{ \pushstack(#2) }
\class[#1] (\lastx+1, \lasty+1)
- \structline (\lastclass) (\lastclass1)
+ \structline
}
\begin{sseqpage}[ classes = fill, yscale = 0.55 ]
\class(0,0)
@@ -968,6 +1131,11 @@ An example where this is actually useful:
The |\d| command has argument specification |O{} U( r()|. The argument type |U| is special to \sseqpages, and is a variant of until that reinserts the delimiting token. This allows the |(| token to also delimit the beginning of the |r()| argument. Note that the argument type |U| is specially added by \sseqpages\ and might be removed in the future if the \LaTeX3 team yells at me or something.
+ \ExplSyntaxOn
+ \cs_set_eq:NN \__xparse_add_type_U:w \sseq__xparse_add_type_U:w
+ \cs_set_eq:NN \__xparse_normalize_type_U:w \sseq__xparse_normalize_type_U:w
+ \sseq@install@xparse@Uarggrabber
+ \ExplSyntaxOff
\begin{codeexample}[width = 7cm,vbox]
\DeclareDocumentCommand {\demo} { O{} U( r() }
{ \#1 = \textcolor{purple}{\{#1\}};
@@ -990,10 +1158,10 @@ The |\structline| and |\changeclasses| commands have argument specification |O{}
\end{codeexample}
\end{commandlist}
-\begin{commandlist}{\NewSseqGroup\texttt{\textbackslash}\meta{command}\oarg{argspec}\marg{body},
- \DeclareSseqGroup\texttt{\textbackslash}\meta{command}\oarg{argspec}\marg{body}}
-% TODO: explain me
-So that calling |\mygroup(x,y)| prints the whole group shifted to start at $\mathtt{(x,y)}$ instead of $\mathtt{(0,0)}$. For instance:
+\begin{commandlist}{\NewSseqGroup\cmdarg{command}\marg{argspec}\marg{body},
+ \DeclareSseqGroup\cmdarg{command}\marg{argspec}\marg{body}}
+These are similar to |\NewSseqCommand| and |\DeclareSseqCommand| except that the commands defined take an optional square bracket delimited options list, followed by an optional parenthesis delimited |(x,y)| pair and wraps the body of the code in |\begin{scope}[xshift = \meta{xcoord}, yshift = \meta{ycoord}, options]|.
+For instance:
\begin{codeexample}[width = 8cm]
\DeclareSseqGroup\tower {m} {
\class(0,0)
@@ -1003,28 +1171,115 @@ So that calling |\mygroup(x,y)| prints the whole group shifted to start at $\mat
}
}
\begin{sseqpage}
-\tower[orange](0,0){4}
-\tower[red](1,1){2}
+\tower[orange]{4}
+\tower(1,1){2}
\end{sseqpage}
\end{codeexample}
+Here we define a command which takes an options list, a coordinate, and a single mandatory argument. The options are applied to all the classes and structlines, the coordinate shifts the origin, and the mandatory argument is the length of the tower.
\end{commandlist}
-\begin{command}{\getdtarget\marg{macro}\marg{page}\pars{\sourcecoord}}
-Sets \meta{macro} equal to the coordinates of the target position of a length \meta{page} differential starting at \sourcecoord. This helps to make commands that draw fancy differentials. For instance, consider the following example, suggested by Catherine Ray:
+\subsection{Families}
+\spectralsequences\ has a concept of ``class families'' that can be drawn or suppressed as a group, and that can have styling options applied to them as a group.
+\begin{command}{\sseqnewfamily\marg{family name}}
+This makes a new family with name \meta{family name}. The effect of this is to define global options |\meta{family name} style| which apply options to all classes in the family, |draw \meta{family name}| which causes the family to be drawn, and |no \meta{family name}| which suppresses the family (drawing is the default behavior of course). It also defines an option |\meta{family name}| which puts a feature into the family -- so it can be used as an option to any of the normal commands like |\class|, |\d|, |\structline|, etc and to a scope.
+
+\begin{codeexample}[vbox]
+\sseqnewfamily{imJ}
+\begin{sseqdata}[
+ name=ANSS-S_2, Adams grading,
+ class labels={below}, label distance=-1pt,
+ class placement transform={rotate=90,scale=2},
+ differentials=blue,
+ x range={0}{9}, y range={0}{4},
+ xscale=0.7, grid=go
+]
+% Image of J classes
+\begin{scope}[imJ]
+\class[rectangle,fill,inner sep=3pt](0,0)
+\DoUntilOutOfBoundsThenNMore{3}{\etaclass}
+\classoptions["\alpha_1" above left](1,1)
+\class["\alpha_{2/2}",circlen=2](3,1)
+\structline(0,0) \structline[dashed](3,3)
+\class["\alpha_3"](5,1) \d3\relax
+\DoUntilOutOfBounds{ \etaclass \d3 }
+\class["\alpha_{4/4}", rectangle, "16" {font=\tiny,inside}, inner sep=1pt](7,1)
+\DoUntilOutOfBoundsThenNMore{3}{\etaclass}
+\end{scope}
+
+% Other classes
+\class["\beta_{2/2}" {below right=-4pt}, insert = 1](6,2)
+\structline(3,1)
+\class["\beta_{2}" left](8,2)
+\etaclass\structline(6,2,2) % This is a *nu
+\end{sseqdata}
+
+\printpage[name=ANSS-S_2, title = with image of J, imJ style=purple]
+
+\printpage[name=ANSS-S_2, no imJ, x range={2}{9}, title = without image of J]
+\end{codeexample}
+\end{command}
+
+
+\subsection{Utilities}
+\begin{command}{\sseqparseint\cmdarg{macro}\marg{integer expression}}
+Stores the result of evaluating an integer expression into \cmdarg{macro}. An integer expression consists of |+|, |-|, |*|, |/|, parentheses, and macros that expand to more of the same. The exact rules regarding what is a valid expression are pretty much what you would expect. Note that juxtaposition is a syntax error, not multiplication, so |2(1+1)| is invalid, you must say |2*(1+1)|.
+\end{command}
+
+\begin{command}{\sseqifempty\marg{expression}\marg{true code}\marg{false code}}
+This tests if an expression is the empty expression. This is mainly useful for giving systematic labels to things. Probably it won't ever matter to you.
+\end{command}
+
+\begin{commandlist}{
+ \IfOutOfBoundsTF\pararg{coordinate}\marg{true code}\marg{false code},
+ \IfOutOfBoundsT\pararg{coordinate}\marg{true code},
+ \IfOutOfBoundsF\pararg{coordinate}\marg{false code},
+ \IfInBoundsTF\pararg{coordinate}\marg{true code}\marg{false code},
+ \IfInBoundsT\pararg{coordinate}\marg{true code},
+ \IfInBoundsF\pararg{coordinate}\marg{false code}
+}
+Test whether an existing class is in bounds or out of bounds. I don't have an obvious use for these. I had to make commands to do this as part of the drawing code and in order to make |\DoUntilOutOfBounds| and it was no extra effort to expose them. Maybe they will be helpful at some point.
+\end{commandlist}
+
+
+\begin{command}{\sseqnormalizemonomial}
+This command simplifies a monomial by combining like variables and removing bases that are raised to the 0th power, removing exponents of 1, removing 1's, and replacing the empty monomial with 1. It outputs its result into |\processedlabel|. This command is specifically meant to be used as a value for |class label handler|, so see the example there for the actual purpose. The exponents must be integers or else it will misbehave.
\begin{codeexample}[]
-% O{}u(u) is the arg-spec for \d, O{}u(u)mm looks like \d with two extra mandatory arguments
-\NewSseqCommand{\twods}{ O{} U( r() m m }{
- \getdtarget\target#2{#3} % Store the target position in \target
- \nameclass{source}(#3) % naming the classes gives us a speed boost
- \nameclass{target1}(\target,#4) % by preventing sseqpages from reparsing the coordinate
- \nameclass{target2}(\target,#5) % it also makes the code easier to read
+\sseqnormalizemonomial{x^0y^0} $\processedlabel$, \quad
+\sseqnormalizemonomial{x^3yx^{-1}z^0} $\processedlabel$, \quad
+\sseqnormalizemonomial{1x_2^2x^2_2} $\processedlabel$
+\end{codeexample}
+\end{command}
+
+
+\subsection{Coordinate parsers and related}
+% \parsecoordinate and \parsedifferential
+\begin{command}{\parsecoordinate\cmdarg{macro}(\meta{coordinate})}
+This command parses the coordinate and puts the triple |(x,y,n)| into \cmdarg{macro}. It also puts the components of the coordinate into macros, for instance if \cmdarg{macro} is |\coord|, then |\xcoord| will contain the x coordinate, |\ycoord| will contain the y coordinate, and |\ncoord| will contain the index. The coordinate can be anything that would be valid to use in a differential or structure line; this is the macro that is used internally to handle coordinates.
+\end{command}
+
+\begin{command}{\getdtarget\cmdarg{macro}\marg{page}\pars{\sourcecoord}}
+Sets \cmdarg{macro} equal to the coordinates of the target position of a length \meta{page} differential starting at \sourcecoord. This helps to make commands that draw fancy differentials.
+\end{command}
+
+\begin{command}{\parsedifferential\meta{page}(\meta{differential coordinate})\opt{\pararg{differential target}}}
+This has the same weird syntax of |\d|, except that you are required to put braces around the page (if it has multiple digits) and you are required to provide at least one coordinate (you have to say |\parsedifferential{2}(\lastclass)| for instance). This command is similar in effect to saying both |\parsecoordinate\source\meta{source coordinate}| and |\parsecoordinate\target\meta{target coordinate}|, but it handles determination of the target coordinate for you.
+
+
+For instance, consider the following example, suggested by Catherine Ray:
+\begin{codeexample}[]
+% O{} U( r() is the arg-spec for \d, O{} U( r() mm looks like \d with one extra mandatory arguments
+\NewSseqCommand{\twods}{ O{} U( r() d() m }{
+ \parsedifferential{#2}(#3)(#4) % Store the target position in \target
+ \nameclass{source}(\sourcecoord,\nsource) % give names to the three classes
+ \nameclass{target1}(\targetcoord,\ntarget)
+ \nameclass{target2}(\targetcoord,#5)
%
- \circleclasses[ cc:differential style, #1,
- name path = circ, page = #2--#2 ]
- (target1)(target2) % Circle the classes, use differential style
+ \circleclasses[ cc:differential style, name path = circ,
+ #1, page = #2--#2 ]
+ (target1)(target2) % Circle the classes, use differential style
%
- \d[invisible]#2(source)(target1) % don't draw anything, but record source and targets as hit.
- \d[invisible]#2(source)(target2)
+ % record source and targets as hit.
+ \kill#2(source) \kill#2(target1) \kill#2(target2)
%
\path(target1)--(target2)
coordinate[midway](midpt);% put a coordinate in the center of the two classes
@@ -1040,7 +1295,7 @@ Sets \meta{macro} equal to the coordinates of the target position of a length \m
\class(0,2)
\class(1,0)\class(1,0)
-\twods2(1,0,-1){1}{2}
+\twods2(1,0,-1,1){2}
\end{sseqdata}
\printpage[ name = cathex, page = 1 ]
\qquad
@@ -1051,21 +1306,21 @@ Sets \meta{macro} equal to the coordinates of the target position of a length \m
\end{command}
\begin{command}{\nameclass\marg{name}\pararg{coordinate}}
-The |\nameclass| command gives a name to a class. It's similar to saying |\doptions[name = |\meta{name}|]|, but faster. It's also similar to saying |\pushstack|\pararg{coordinate}. Giving temporary names to coordinates that you are going to use repeatedly makes the code easier to read and is faster (though this only matters in very large diagrams). See |\getdtarget| for an example.
+The |\nameclass| command gives a name to a class. It's similar to saying |\doptions[name = |\meta{name}|]|, but faster. It's also similar to saying |\pushstack|\pararg{coordinate}. Giving temporary names to coordinates that you are going to use repeatedly makes the code easier to read and is faster (though this only matters in very large charts). See |\getdtarget| for an example.
\end{command}
\begin{command}{\tagclass\marg{tag}\pararg{coordinate}}
The |\tagclass| command gives a tag to a class. It's similar to saying |\doptions[tag = |\meta{name}|]|, but faster. See \example{tmfmayss} for a use case for this.
\end{command}
-\begin{command}{\gettag\texttt{\textbackslash}\meta{somecontrolsequence}\pararg{coordinate}}
+\begin{command}{\gettag\cmdarg{somecontrolsequence}\pararg{coordinate}}
The |\gettag| command finds the most recent tag applied to the coordinate and stores it into the command. This is useful for connecting groups of nodes. For example, consider the following code, inspired by \example{tmfmayss}.
\begin{codeexample}[width=6cm]
\DeclareSseqCommand \tower { O{} } {
\begin{scope}[#1]
\foreach\i in {1,...,7}{
\class(\lastx,\lasty+1)
- \structline(\lastclass1)(\lastclass)
+ \structline
}
\end{scope}
\restorestack
@@ -1077,12 +1332,12 @@ The |\gettag| command finds the most recent tag applied to the coordinate and st
\begin{scope}[#1]
\gettag\thetag(\lastclass)
\class(\lastx+3,\lasty+1)
- \structline[gray](\lastclass)(\lastclass1)
+ \structline[gray]
\savestack
\foreach\i in {1,...,7}{
\class(\lastx,\lasty+1)
- \structline(\lastclass1)(\lastclass)
- \structline[gray](\lastx-3,\lasty-1,\thetag)(\lastclass)
+ \structline
+ \structline[gray](\lastx-3,\lasty-1,\thetag)
}
\restorestack
\end{scope}
@@ -1101,16 +1356,55 @@ The |\gettag| command finds the most recent tag applied to the coordinate and st
\end{command}
-\subsection{The Class Stack}
+\subsection{The class stack}
\label{sec:class stack}
-The class stack is a linked list of the classes in the order that they are produced that \sseqpages\space maintains. I've only recently implemented this feature, so it is more liable to change in the future than other things. Whenever you use the |\class| function, the class you added is pushed onto the stack. Here's an example that demonstrates basic usage:
+The class stack is a linked list of the classes in the order that they are produced that \sseqpages\ maintains. I've only recently implemented this feature, so it is more liable to change in the future than other things. Whenever you use the |\class| function, the class you added is pushed onto the stack. Here's an example that demonstrates basic usage:
The following commands are used to access the stack:
\begin{commandlist}{\lastx\opt{\meta{n}},\lasty\opt{\meta{n}},\lastclass\opt{\meta{n}}}
The commands |\lastx| and |\lasty| evaluate to the |x| and |y| position, respectively, of the $n$th class on the stack. If $n = 0$ you can leave it off.
-The command |\lastclass| evaluates to the coordinate of
+The command |\lastclass| evaluates to the coordinate of the most recent class on the stack. This is useful for writing turtle-style code:
+\begin{codeexample}[width=6cm]
+\DeclareSseqCommand \etaclass {}{
+ \class(\lastx+1,\lasty+1)
+ \structline
+}
+\DeclareSseqCommand \divtwoclass {}{
+ \class(\lastx,\lasty-1)
+ \structline
+}
+\begin{sseqpage}
+\class(0,0)
+\savestack
+\foreach \y in { 1,...,5 }{
+ \class(0,\y)
+ \structline
+}
+\restorestack
+\etaclass\etaclass\etaclass
+\divtwoclass\divtwoclass
+\end{sseqpage}
+\end{codeexample}
+
+You can use |\lastx| and |\lasty| in other contexts than in the body of a \sseqpages\ command, most notably inside |\sseqparseint| (they also go fine inside |\pgfmathparse| if you need it or one of its siblings). For instance, consider the following tower command:
+\begin{codeexample}[width=6cm]
+\DeclareSseqCommand \tower { } {
+ \savestack
+ \sseqparseint\numclasses{\ymax-\lasty0}
+ \foreach \n in {1,...,\numclasses}{
+ \class(\lastx,\lasty+1)
+ \structline
+ }
+ \restorestack
+}
+\begin{sseqpage}[y range = {0}{5}]
+\class(0,0)\tower
+\class(1,3)\tower
+\class(3,2)\tower
+\end{sseqpage}
+\end{codeexample}
\end{commandlist}
@@ -1124,7 +1418,7 @@ This saves and reverts the stack. Saves nest. Most frequently, you will want to
\section{Styles}
-The \sseqpages\space package has a large number of styles which control the appearance of specific components (e.g., classes, differentials, or structlines) of a spectral sequence. Each style has two corresponding keys: |classes| and |change classes|. Saying |classes = |\marg{keys} adds the keys to the list of options used to style every future class, whereas |change classes = |\marg{keys} only makes sense in a \sseqpageenv\space environment, and temporarily overwrites the list of options. Note that |change classes| only applies to classes that existed before the current page, and that even with the |keep changes| option, the |change classes| options are local to the current page. Compare:
+The \sseqpages\ package has a large number of styles which control the appearance of specific components (e.g., classes, differentials, or structure lines) of a spectral sequence. Each style has two corresponding keys: |classes| and |change classes|. Saying |classes = |\marg{keys} adds the keys to the list of options used to style every future class, whereas |change classes = |\marg{keys} only makes sense in a \sseqpageenv\ environment, and temporarily overwrites the list of options. Note that |change classes| only applies to classes that existed before the current page, and that even with the |keep changes| option, the |change classes| options are local to the current page. Compare:
\begin{codeexample}[width = 8cm]
\begin{sseqdata}[ name = stylesex ]
\class(0,0)\class(1,1)
@@ -1142,7 +1436,7 @@ The \sseqpages\space package has a large number of styles which control the appe
\end{sseqpage}
\end{codeexample}
-You can modify these styles outside of a spectral sequence or inside it using |\sseqset|, you can modify them as options to the \sseqdataenv\space and \sseqpageenv\space environments, or you can modify them as arguments to the \scopeenv\space environment.
+You can modify these styles outside of a spectral sequence or inside it using |\sseqset|, you can modify them as options to the \sseqdataenv\ and \sseqpageenv\ environments, or you can modify them as arguments to the \scopeenv\ environment.
In cases where the same drawing feature is affected by multiple of these styles, the more specific style takes precedence. For instance, for a class that is the source or target of a differential on the current page, the precedence order from lowest to highest goes: |sseq style|, |class style|, |transient cycle style|, |this page cycle style|, and then any options from scopes in the order they appear, and any local options (the options that come right with the class, e.g., |\class[local options](x,y)|). If you don't want the options to your scopes to override more specific styles, use |sseq|:
\begin{codeexample}[width = 7cm]
@@ -1157,7 +1451,7 @@ In cases where the same drawing feature is affected by multiple of these styles,
\begin{sseqpage}[ classes = { blue, fill },
title style = { align = center, text width = 2.4cm },
- title = { only structline is orange } ]
+ title = { only structure line is orange } ]
\begin{scope}[ sseq = orange ]
\class(0,0) \class(0,1)
\structline(0,0)(0,1)
@@ -1239,8 +1533,7 @@ These options change the appearance of all cycles which support or are hit by a
\class(1,3) \class(2,0)
\d2(1,0) \d3(2,0)
\end{sseqdata}
-\printpage[ name = this page cycles example, page = 2 ]
-\hskip1cm
+\printpage[ name = this page cycles example, page = 2 ] \qquad
\printpage[ name = this page cycles example, page = 3 ]
\end{codeexample}
\end{stylekeylist}
@@ -1254,19 +1547,20 @@ This style applies to structure lines whose source or target is hit on the curre
\end{stylekeylist}
\begin{stylekeylist}{tikz primitives,change tikz primitives}
-Applies to all \tikzpkg\space primitives.
+Applies to all \tikzpkg\ primitives.
\end{stylekeylist}
\begin{stylekeylist}{labels,change labels}
-This style applies to labels on classes, differentials, and structlines. All the more specific label styles take precedence over it.
+This style applies to labels on classes, differentials, and structure lines. All the more specific label styles take precedence over it.
\end{stylekeylist}
\begin{stylekeylist}{class labels,inner class labels,outer class labels,
change class labels,change inner class labels,change outer class labels}
Inner class labels specifically applies to class labels that are inside the node, outer class labels specifically applies to ones outside it:
\begin{codeexample}[]
-\begin{sseqpage}[ no axes, classes = { inner sep = 0.1cm },
+\begin{sseqpage}[ no axes, classes = { inner sep = 1pt },
+ label distance=2pt,
outer class labels = { red },
inner class labels = { blue } ]
\class["a", "b" above](0,0)
@@ -1301,9 +1595,9 @@ This sets the default distance from a class to an outer label. There are also va
\begin{keylist}{run off = \meta{start tip}--\meta{end tip},
run off struct lines = \meta{start tip}--\meta{end tip} (initially {...--...}),
run off differentials = \meta{start tip}--\meta{end tip} (initially {...--...})}
-Change the default behavior of run off edges for either all edges, just struct lines, or just differentials respectively. Local arrowhead options override this.
+Change the default behavior of run off edges for either all edges, just structure lines, or just differentials respectively. Local arrowhead options override this.
-If an edge runs off the edge of the clipping, sseqpages automatically add an arrowhead to indicate that the edge continues. This option controls which arrow head is added if the start or end of an edge runs off the page.
+If an edge runs off the edge of the clipping, \sseqpages\ automatically add an arrowhead to indicate that the edge continues. This option controls which arrow head is added if the start or end of an edge runs off the page.
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ x range = {0}{2}, y range = {0}{2},
draw orphan edges, run off = >-stealth ]
@@ -1325,13 +1619,13 @@ The main function \sseqpages\ provides for use here is |\sseqnormalizemonomial{#
Here is an example of a function that evaluates an arithmetic expression:
\begin{codeexample}[width=6cm]
\begin{sseqpage}[
- class label handler = { \edef\processedlabel{\the\numexpr#1} }
+ class label handler = { \sseqparseint\processedlabel{#1} }
]
\class["1+1"](0,0)
\class["1+2*(1+3*(4-1))"](1,1)
\end{sseqpage}
\end{codeexample}
-Here's an example using |\sseqnormalizepolynomial|:
+Here's an example using |\sseqnormalizemonomial|:
\begin{codeexample}[width = 6cm]
\NewSseqGroup \test {m} {
\class["1#1"](0,0)
@@ -1350,6 +1644,7 @@ Here's an example using |\sseqnormalizepolynomial|:
\end{codeexample}
Here is another example which demonstrates a useful idiom for drawing Serre spectral sequences. For a more complete example, see \example{KF3n}. Note the use of braces in |{Sq^1\iota_2}|. Without braces, |\sseqnormalizemonomial| will simplify |Sq^1xSq^2x| into $S^2q^3x^2$, which is obviously undesirable, so the correct way to input this is |{Sq^1x}{Sq^2x}|. Unfortunately, |\foreach| strips a pair of braces from its arguments, so you need to put two pairs of braces.
+%\pgfmanualpdflabel{normalizemonomialex-labels}
\begin{codeexample}[width=8cm]
\begin{sseqpage}[
xscale = 1.4,
@@ -1368,20 +1663,22 @@ Here is another example which demonstrates a useful idiom for drawing Serre spec
\end{key}
-\section{Global options}
-These options can only be set at the beginning of a \sseqdataenv\space or \sseqpageenv\space environment. When it makes sense, you can also set a default value using |\sseqset|. Generally, these options either modify the plot style or the logic for the spectral sequence.
+\section{Global Options}
+These options can only be set at the beginning of a \sseqdataenv\ or \sseqpageenv\ environment. When it makes sense, you can also set a default value using |\sseqset|. Generally, these options either modify the plot style or the logic for the spectral sequence.
\begin{key}{name = \meta{sseq name}}
-This option must be used with the \sseqdataenv\space environment where it indicates the name of the spectral sequence, which will be used with the \sseqpageenv\space environment or |\printpage| command to draw the spectral sequence. The name used in a \sseqdataenv\space environment must be new unless the environment is used with the |update existing| key in which case the \sseqdataenv\space environment will add to the existing spectral sequence. It is optional when used with \sseqpageenv\space, and if included the name given must be the name of an existing spectral sequence.
+This option must be used with the \sseqdataenv\ environment where it indicates the name of the spectral sequence, which will be used with the \sseqpageenv\ environment or |\printpage| command to draw the spectral sequence. The name used in a \sseqdataenv\ environment must be new unless the environment is used with the |update existing| key in which case the \sseqdataenv\ environment will add to the existing spectral sequence. It is optional when used with \sseqpageenv\ , and if included the name given must be the name of an existing spectral sequence.
\end{key}
-\begin{key}{page = \meta{page number} (initially 0)}
-This key is for \sseqpageenv\space and |\printpage|. It specifies which page of the spectral sequence is to be printed. On page r, all |\class|es that are not hit by differentials on pages less than r will be printed, as well as all |\structline|s whose source and target classes are both printed on page r, and all differentials of length exactly r. The special value |page = 0| prints all classes, differentials, and structure lines.
+\begin{key}{page = \meta{page number}\opt{--\meta{page max} (initially 0)}}
+This key is for \sseqpageenv\ and |\printpage|. It specifies which page of the spectral sequence is to be printed. On page r, all |\class|es that are not hit by differentials on pages less than r will be printed, as well as all |\structline|s whose source and target classes are both printed on page r, and all differentials of length exactly r. The special value |page = 0| prints all classes, differentials, and structure lines.
+
+If you use this key with a range, then all differentials in that range of lengths will be drawn. The larger number only changes which differentials are drawn. If you use 0 for the \meta{page max}, then all differentials longer than \meta{page number} will be drawn.
\end{key}
\begin{keylist}{degree = \marg{x degree}\marg{y degree},cohomological Serre grading, homological Serre grading, Adams grading}
Specifies the degree of differentials. The \meta{x degree} and \meta{y degree} should both be mathematical expressions in one variable |#1| that evaluate to integers on any input. They specify the $\mathtt{x}$ and $\mathtt{y}$ displacement of a page $\mathtt{\#1}$ differential. In practice, they will be linear expressions with |#1| coefficient 1, -1, or 0.
-The |degree| option must be given before placing any differentials. It can be specified at the beginning of the \sseqdataenv\space environment, at the beginning of the \sseqpageenv\space environment if it is being used as a standalone page, or as a default by saying |\sseqset{degree = \marg{x degree}\marg{y degree}}| or |\sseqset{Adams grading}| outside of the \sseqdataenv\space and \sseqpages\space environments.
+The |degree| option must be given before placing any differentials. It can be specified at the beginning of the \sseqdataenv\ environment, at the beginning of the \sseqpageenv\ environment if it is being used as a standalone page, or as a default by saying |\sseqset{degree = \marg{x degree}\marg{y degree}}| or |\sseqset{Adams grading}| outside of the \sseqdataenv\ and \sseqpages\ environments.
You can make a named grading convention by saying \codeverb|\sseqset{my grading/.sseq grading = \marg{x degree}\marg{y degree}}|. Then later passing |my grading| to a spectral sequence is equivalent to saying |degree = \marg{x degree}\marg{y degree}|. The following grading conventions exist by default:
\begin{codeexample}[width = 6cm]
@@ -1411,7 +1708,7 @@ You can make a named grading convention by saying \codeverb|\sseqset{my grading/
\end{keylist}
\begin{keylist}{strict degree, lax degree}
-If the degree is strict, then latex will throw an error if you try to specify a differential that doesn't have the proper grading. The degree is strict by default.
+If the degree is strict, then \LaTeX will throw an error if you try to specify a differential that doesn't have the proper grading. The degree is strict by default.
\begin{codeexample}[code only]
\begin{sseqdata}[ name = laxdegree, Adams grading ]
\class(0,2)
@@ -1432,13 +1729,13 @@ If the degree is strict, then latex will throw an error if you try to specify a
\end{keylist}
\begin{key}{update existing}
-This key is only for the \sseqdataenv\space environment. It specifies that the current \sseqdataenv\space environment is adding data to an existing spectral sequence. If you don't pass this key, then giving a \sseqdataenv\space environment the same |name| as a different \sseqdataenv\space environment will cause an error. This is intended to help you avoid accidentally reusing the same name.
+This key is only for the \sseqdataenv\ environment. It specifies that the current \sseqdataenv\ environment is adding data to an existing spectral sequence. If you don't pass this key, then giving a \sseqdataenv\ environment the same |name| as a different \sseqdataenv\ environment will cause an error. This is intended to help you avoid accidentally reusing the same name.
\end{key}
\begin{key}{keep changes =\meta{boolean} (default true)(initially false)}
-This option is only for the \sseqpageenv\space environment, and only works when a |name| is provided.
-This option specifies that all of the commands in the current \sseqpageenv\space environment should be carried forward to future pages of the same named spectral sequence. For example:
+This option is only for the \sseqpageenv\ environment, and only works when a |name| is provided.
+This option specifies that all of the commands in the current \sseqpageenv\ environment should be carried forward to future pages of the same named spectral sequence. For example:
\begin{codeexample}[]
\begin{sseqdata}[ name = keep changes example, Adams grading, y range = {0}{3} ]
\class(0,0)
@@ -1463,15 +1760,12 @@ This option specifies that all of the commands in the current \sseqpageenv\space
\printpage[ name = keep changes example, page = 3 ]
\end{codeexample}
-Note that the orange classes and differential do not persist because the |keep changes| option is not set in the first \sseqpageenv\space environment, but the blue classes and differential do, since the |keep changes| option is set in the second \sseqpageenv\space environment.
+Note that the orange classes and differential do not persist because the |keep changes| option is not set in the first \sseqpageenv\ environment, but the blue classes and differential do, since the |keep changes| option is set in the second \sseqpageenv\ environment.
\end{key}
\begin{keylist}{no differentials,draw differentials}
The option |no differentials| suppresses all of the differentials on the current page, whereas |draw differentials| causes the page appropriate differentials to be drawn. This is useful for explaining how the computation of a spectral sequence goes, or if you want to display one of the edges of the spectral sequence, like in \example{KF3n}.
-%\begin{codeexample}[]
-%TODO: build example
-%\end{codeexample}
\end{keylist}
\begin{keylist}{no struct lines,draw struct lines}
@@ -1528,16 +1822,16 @@ Creates a new class pattern. For example, the |linear| class pattern is created
(-0.5,0)(-0.3,0)(-0.1,0)(0.1,0)(0.3,0)(0.5,0);
}
\end{codeexample}
-For instance the third row indicates that if there are three classes at the position |(x,y)| they should be printed at |(x-0.2,y)|, |(x,y)|, and |(x+0.2,y)|. You can give as many rows as you like; \sseqpages\space will throw an error if there are more classes in any position than the maximum number that your class pattern can handle -- for instance, the |linear| class pattern can handle up to six classes based on this definition.
+For instance the third row indicates that if there are three classes at the position |(x,y)| they should be printed at |(x-0.2,y)|, |(x,y)|, and |(x+0.2,y)|. You can give as many rows as you like; \sseqpages\ will throw an error if there are more classes in any position than the maximum number that your class pattern can handle -- for instance, the |linear| class pattern can handle up to six classes based on this definition.
\end{command}
\end{key}
\begin{key}{class placement transform = \marg{transform keys}, add class placement transform = \marg{transform keys} }
\declareasstyle{class placement transform}\declareasstyle{add class placement transform}
-The option |class placement transform| allows the user to specify a \tikzpkg\space coordinate transform to adjust the relative position of multiple nodes in the same $\mathtt{(x,y)}$ position. The |class placement transform| key overrides the previous value of transformations, the |add class placement transform| just adds the new transformation to the end of the list. This coordinate transform can only involve rotation and scaling, no translation. Specifying a scaling factor helps if the nodes are too large and overlap. In some cases a rotation makes it easier to see which class is the target of a differential.
+The option |class placement transform| allows the user to specify a \tikzpkg\ coordinate transform to adjust the relative position of multiple nodes in the same $\mathtt{(x,y)}$ position. The |class placement transform| key overrides the previous value of transformations, the |add class placement transform| just adds the new transformation to the end of the list. This coordinate transform can only involve rotation and scaling, no translation. Specifying a scaling factor helps if the nodes are too large and overlap. In some cases a rotation makes it easier to see which class is the target of a differential.
\begin{codeexample}[width = 5cm]
-\begin{sseqpage}[ class placement transform = { xscale = 3 },
+\begin{sseqpage}[ class placement transform = { xscale = 1.5 },
class pattern = linear,
classes = { draw = none },
xscale = 2, x axis extend end = 0.7cm ]
@@ -1563,7 +1857,7 @@ With multiple large class names, the best option is to arrange the classes verti
\begin{codeexample}[width = 5.5cm]
\begin{sseqpage}[ classes = {draw = none }, xscale = 2, yscale=1.55,
class pattern = linear,
- class placement transform = { scale = 3, rotate = 90 },
+ class placement transform = { scale = 1.5, rotate = 90 },
right clip padding = 20pt, top clip padding = 20pt,
x axis gap = 30pt, y axis gap = 20pt ]
\class["\iota_3\beta\iota_3"](7,0)
@@ -1584,28 +1878,34 @@ With multiple large class names, the best option is to arrange the classes verti
\end{key}
\begin{key}{math nodes = \meta{boolean} (default true)(initially true)}
-This key instructs \sseqpages\space to put all labels in math mode automatically.
+This key instructs \sseqpages\ to put all labels in math mode automatically.
\end{key}
-\subsection{Global Coordinate Transformations}
-Of the normal \tikzpkg\ coordinate transformations, only the following can be applied to a sseq diagram:
+\subsection{Global coordinate transformations}
+Of the normal \tikzpkg\ coordinate transformations, only the following can be applied to a \sseqpages\ chart:
\begin{keylist}{scale = \meta{factor},xscale = \meta{factor}, yscale = \meta{factor}, xmirror, ymirror}
-Scale the diagram by \meta{factor}. Under normal circumstances, you can tell \tikzpkg\ to mirror a diagram by saying, for instance, |xscale = -1|, but \sseqpages\space needs to be aware that the diagram has been mirrored in order to draw the axes correctly. Thus, if you want to mirror a spectral sequence, use the |xmirror| and |ymirror| options as appropriate.
+Scale the chart by \meta{factor}. Under normal circumstances, you can tell \tikzpkg\ to mirror a chart by saying, for instance, |xscale = -1|, but \sseqpages\ needs to be aware that the chart has been mirrored in order to draw the axes correctly. Thus, if you want to mirror a spectral sequence, use the |xmirror| and |ymirror| options as appropriate.
\end{keylist}
\begin{key}{rotate = \meta{angle}}
It probably won't look great if you pick an angle that isn't a multiple of 90 degrees.
\end{key}
-\subsection{Plot Options and Axes Style}
+\subsection{Plot options and axes style}
\begin{keylist}{x range = \marg{x min}\marg{x max},y range = \marg{y min}\marg{y max}}
-These options force the x and y range to be a specific interval. By default, if no range is specified then the range is chosen to fit all the classes. If an x range is specified but no y range, then the y range is chosen to fit all the classes that lie inside the specified x range, and vice versa.
+These options set the x range (respectively y range) to be a specific interval. By default, if no range is specified then the range is chosen to fit all the classes. If an x range is specified but no y range, then the y range is chosen to fit all the classes that lie inside the specified x range, and vice versa. The values must be integers -- if you want to extend the x axis a noninteger amount, try using |x axis start extend| or |x axis end extend|.
\end{keylist}
-\begin{key}{grid = \marg{grid style}}
-Makes \sseqpages\space draw a grid. The grid styles and a significant part of the code that produces them were stolen from the \sseqpkg\ package.
+\begin{keylist}{
+ grid = \meta{grid type},
+ grid color = \meta{color},
+ grid step = \meta{positive integer},
+ x grid step = \meta{positive integer},
+ y grid step = \meta{positive integer}
+}
+Makes \sseqpages\ draw a grid. The grid types and a significant part of the code that produces them were stolen from the \sseqpkg\ package.
\begin{codeexample}[vbox]
\begin{sseqdata}[ name = grid example, scale = 0.8 ]
\class(0,0)
@@ -1616,27 +1916,31 @@ Makes \sseqpages\space draw a grid. The grid styles and a significant part of th
\class(3,3)
\end{sseqdata}
\hbox{
-\printpage[ name = grid example, grid = chess ]
+\printpage[ name = grid example, grid = chess, title=chess ]
\qquad
-\printpage[ name = grid example, grid = crossword ]
-\qquad
-\printpage[ name = grid example, grid = dots ]
+\printpage[ name = grid example, grid = crossword, title=crossword ]
}
\vskip20pt
\hbox{
-\printpage[ name = grid example, grid = go ]
+\printpage[ name = grid example, grid = go, title=go ]
\qquad
\printpage[ name = grid example, grid = none ]
}
\end{codeexample}
-It is possible to make your own grid style by defining the command |\sseq@grid@yourgridname| to draw a grid.
-\end{key}
+It is possible to make your own grid type by defining the command |\sseq@grid@yourgridname| to draw a grid.
+
+It is a known problem that acrobat reader displays grids very dark and thick. This is caused by the enhance thin lines ``feature'' of Acrobat reader. You can turn it off globally by going into the acrobat reader preferences window and unchecking the ``Enhance thin lines'' checkbox in the ``Rendering'' section. Unfortunately, there is no way to instruct Acrobat Reader to not apply this feature to a particular document. This has apparently been annoying graphic designers for over a decade.
+
+The grid color option changes the color of the grid; the default value is |gray|.
+The grid step keys change the grid step.
+\end{keylist}
\begin{keylist}{title = \meta{text}, title style = \meta{keys}, x label = \meta{text}, y label = \meta{text},x label style = \meta{keys}, y label style = \meta{keys}, label style = \meta{keys}}
\declareasstyle{title style}
\declareasstyle{x label style}
\declareasstyle{y label style}
\declareasstyle{label style}
+This make chart labels.
\begin{codeexample}[width = 6cm]
\begin{sseqpage}[ title = { An example }, yscale = 0.5,
x label = { x axis label },
@@ -1648,19 +1952,17 @@ It is possible to make your own grid style by defining the command |\sseq@grid@y
\class(2,2)
\end{sseqpage}
\end{codeexample}
+Note that if you make multiple versions of the same chart and some of the charts have labels and others don't, they might not align the way you want. An easy solution to this is to use |\path[background] (min x, min y) -- (max x, max y);| where the coordinates are below and to the left, respectively above and to the right, of everything else drawn in any picture. This makes the bounding boxes for all of the pictures the same size, so that they line up even if the exact collection of things drawn changes. See the example at the end of the |background| key for an illustration of this.
\end{keylist}
-
+\needspace{5\baselineskip}
\begin{keylist}{no title, draw title, no x label, no y label, no labels, draw x label, draw y label, draw labels}
Suppress or unsuppress the title, x label, y label, or both x and y labels, respectively.
\end{keylist}
-\begin{keylist}{no x axis, no y axis, no axes, draw x axis, draw y axis, draw axes}
-Suppress the axis. Also suppresses axes ticks. If there is a title or axes labels they will still be drawn. You can draw your own axes using \tikzpkg\space inside a \scopeenv\space environment with the |background| key.
-\end{keylist}
\begin{keylist}{no x ticks, no y ticks, no ticks, draw x ticks, draw y ticks, draw ticks}
-Suppress axes ticks (the numbers next to the axes). Only matters if axes are drawn. You can make your own ticks using \tikzpkg\space inside a \scopeenv\space environment with the |background| key. For instance, you might want to label the axes as 0, $n$, $2n$, \ldots You can achieve this as follows: (you can also use |x tick handler|).
+Suppress axes ticks (the numbers next to the axes). Only matters if axes are drawn. You can make your own ticks using \tikzpkg\ inside a \scopeenv\ environment with the |background| key. For instance, you might want to label the axes as 0, $n$, $2n$, \ldots You can achieve this as follows: (you can also use |x tick handler|).
\begin{codeexample}[width = 5.7cm]
\begin{sseqpage}[ no x ticks, x range = {0}{3} ]
\begin{scope}[ background ]
@@ -1677,10 +1979,38 @@ Suppress axes ticks (the numbers next to the axes). Only matters if axes are dra
\end{codeexample}
\end{keylist}
+
\begin{keylist}{x tick step = \meta{positive integer} (initially 1),y tick step = \meta{positive integer} (initially 1),tick step = \meta{positive integer} (initially 1)}
Sets the interval between labels.
\end{keylist}
+\begin{keylist}{x tick offset = \meta{integer} (initially 0),y tick offset = \meta{integer} (initially 0),tick offset = \meta{integer} (initially 0)}
+Sets the label offset -- by default the ticks will always be the set of numbers that are 0 mod \meta{tick step}. Change it so that the ticks are the set of numbers that are \meta{tick offset} mod \meta{tick step}.
+\end{keylist}
+
+\begin{keylist}{
+ x major tick step=\meta{nonnegative integer} (initially 0),
+ y major tick step=\meta{nonnegative integer} (initially 0),
+ major tick step=\meta{nonnegative integer},
+ x minor tick step=\meta{nonnegative integer} (initially 0),
+ y minor tick step=\meta{nonnegative integer} (initially 0),
+ minor tick step=\meta{nonnegative integer}%
+}
+If these are nonzero, they control the placement of tick marks on the axes. The value 0 prevents tick marks from being drawn. Uses |x tick offset| as an offset.
+\begin{codeexample}[width=7cm]
+\begin{sseqpage}[
+ tick step = 5,
+ major tick step = 5,
+ minor tick step = 1,
+ scale = 0.4,
+ axes type = frame
+]
+\class(0,0)
+\class(10,10)
+\end{sseqpage}
+\end{codeexample}
+\end{keylist}
+
\begin{stylekeylist}{x tick style,y tick style,tick style}
Change the tick style:
\begin{codeexample}[width = 7cm]
@@ -1716,11 +2046,17 @@ The value for |x tick handler| should be a function that takes in the current $\
\end{codeexample}
\end{keylist}
-\needspace{5\baselineskip}
+\newpage
\subsection{Layout}
-\begin{keylist}{x axis style = \meta{style} (initially border), y axis style = \meta{style} (initially border),axes style = \meta{style} (initially border)}
-The \meta{style} is either |border| or |center|. The |border| option puts the axes on the bottom and left of the picture; the center option by default places the axes at $\mathtt{x = y = 0}$. This option is only worth using for multi-quadrant spectral sequences. See \example{KRAHSS} and \example{KUHFPSS} for examples where this is used.
-%TODO: example?
+\begin{keylist}{x axis type = \meta{type} (initially border), y axis type = \meta{type} (initially border),axes type = \meta{type} (initially border), no x axis, no y axis, no axes}
+The \meta{type} is either |border|, |center|, |frame|, or |none|. |no axes| is a shorthand for |axes type=none|. The |border| type is the default and puts the axes on the bottom and left of the picture. The |center| type by default places the axes to pass through $(0,0)$; this can be modified using the |x axis origin| and |y axis origin| keys. See \example{KRAHSS} and \example{KUHFPSS} for examples where this is used. The |frame| type draws a frame around the entire chart:
+
+\begin{codeexample}[width=6cm]
+\begin{sseqpage}[axes type=frame]
+\class(0,0)
+\class(3,2)
+\end{sseqpage}
+\end{codeexample}
\end{keylist}
\parskip=0pt
@@ -1728,109 +2064,48 @@ The \meta{style} is either |border| or |center|. The |border| option puts the ax
If you use |axes style = center|, these keys change the position of the axes. Otherwise, they are ignored.
\end{keylist}
%
-%
\begin{keylist}{x axis gap = \meta{dimension} (initially 0.5cm),y axis gap = \meta{dimension} (initially 0.5cm), axes gap = \meta{dimension} (initially 0.5cm)}
%
\end{keylist}
%
-%
\begin{keylist}{x tick gap = \meta{dimension} (initially 0.5cm),y tick gap = \meta{dimension} (initially 0.5cm)}
%
\end{keylist}
%
-\begin{keylist}{x axis start extend = \meta{dimension} (initially 0.5cm), y axis start extend = \meta{dimension} (initially 0.5cm),
- x axis end extend = \meta{dimension} (initially 0.9cm), y axis end extend = \meta{dimension} (initially 0.9cm)}
+\begin{keylist}{
+ x axis start extend = \meta{dimension} (initially 0.5cm), y axis start extend = \meta{dimension} (initially 0.5cm),
+ x axis extend end = \meta{dimension} (initially 0.5cm), y axis extend end = \meta{dimension} (initially 0.5cm),
+ x axis tail = \meta{dimension} (initially 0.9cm), y axis tail = \meta{dimension} (initially 0.9cm)%
+}
\end{keylist}
%
\begin{keylist}{x axis clip padding = \meta{dimension} (initially 0.1cm), y axis clip padding = \meta{dimension} (initially 0.1cm)}
\end{keylist}
%
-\begin{keylist}{right clip padding = \meta{dimension} (initially 0.1cm), left clip padding = \meta{dimension} (initially 0.4cm),
- top clip padding = \meta{dimension} (initially 0.1cm), bottom clip padding = \meta{dimension} (initially 0.4cm)}
+\begin{keylist}{
+ right clip padding = \meta{dimension} (initially 0.1cm), left clip padding = \meta{dimension} (initially 0.1cm),
+ top clip padding = \meta{dimension} (initially 0.1cm), bottom clip padding = \meta{dimension} (initially 0.1cm)%
+}
\end{keylist}
+\afterpage{
\begin{center}
-\pgfkeys{/sseqpages/tikz primitives/distance label/.style = {orange,{<[width = 4pt]}-}, /sseqpages/tikz primitives/description/.style = {black,/tikz/align = center}}
-\begin{sseqpage}[ grid = chess,
- x range = {0}{5}, y range = {0}{5}, math nodes = false,
- x axis clip padding = 0.15cm, y axis clip padding = 0.15cm,
- right clip padding = 0.2cm, top clip padding = 0.2cm, axes gap = 25pt]
-\begin{scope}[background,red]
-\sseq@savedpaths@add{\pgfsetpath\sseq@theclippath\pgfusepath{draw}}
-\end{scope}
-\catcode`\| = 12
-\begin{scope}[background,|-|,blue]
-% clip gap
-\draw[shift = {(\sseq@xmax+0.8,-\sseq@xaxisgap)}] (0,0)--(0,\sseq@xclip@axisgap);
-\draw[shift = {(-\sseq@yaxisgap,\sseq@ymax+0.8)}] (0,0)--(\sseq@yclip@axisgap,0);
-\draw[distance label,shift = {(\sseq@xmax+0.8,-\sseq@xaxisgap+\sseq@xclip@axisgap/2)}] (0,0) -- (2,0)
-node[description, right] {x axis\\ clip gap};
-\draw[distance label,shift = {(-\sseq@yaxisgap+\sseq@yclip@axisgap/2,\sseq@ymax+0.8)}] (0,0) .. controls (0,0.5) .. (-0.5,0.5)
-node[description, left] {y axis\\ clip gap};
-
-
-% border clip padding
-\draw[shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend,\sseq@ymin cm-\sseq@xaxisgap-0.3cm)}] (0,0)--(\sseq@clip@padding@right,0);
-\draw[shift = {(\sseq@xmin cm -\sseq@yaxisgap-0.3cm,\sseq@ymax cm+\sseq@yaxis@end@extend)}] (0,0)--(0,\sseq@clip@padding@top);
-\draw[distance label, shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend+\sseq@clip@padding@right/2,\sseq@ymin cm-\sseq@xaxisgap-0.3cm)}] (0,0) .. controls (0,-0.7) ..(1.5,-0.7)
-node[description, right] {right clip\\ padding};
-\draw[distance label, shift = {(\sseq@xmin cm -\sseq@yaxisgap-0.3cm,\sseq@ymax cm+\sseq@yaxis@end@extend+\sseq@clip@padding@top/2)}] (0,0) -- (-2,0)
-node[description, left] {top clip\\ padding};
-
-% extend start axis
-\draw[shift = {(\sseq@xmin-\sseq@yaxisgap-0.02cm,\sseq@ymin-\sseq@xaxisgap+0.1cm)}] (0,0) -- (-\sseq@xaxis@start@extend, 0);
-\draw[shift = {(\sseq@xmin-\sseq@yaxisgap+0.1cm,\sseq@ymin-\sseq@xaxisgap-0.02cm)}] (0,0) -- (0, -\sseq@yaxis@start@extend);
-\draw[distance label,shift = {(\sseq@xmin-\sseq@yaxisgap-0.02cm-\sseq@xaxis@start@extend/2,\sseq@ymin-\sseq@xaxisgap+0.1cm)}] (0,0) .. controls (0,0.5) .. (-1,0.5)
-node[description, left]{x axis\\ extend start};
-\draw[distance label,shift = {(\sseq@xmin-\sseq@yaxisgap+0.1cm,\sseq@ymin-\sseq@xaxisgap-0.02cm-\sseq@yaxis@start@extend/2)}] (0,0) .. controls (0.5,0) .. (0.5,-1)
-node[description, below]{y axis\\ extend start};
-
-% extend end axis
-\draw[shift = {(\sseq@xmax,\sseq@ymin-\sseq@xaxisgap-0.1cm)}] (0,0)--(\sseq@xaxis@end@extend,0);
-\draw[shift = {(\sseq@xmin cm-\sseq@yaxisgap-0.1cm,\sseq@ymax)}] (0,0)--(0,\sseq@yaxis@end@extend);
-\draw[distance label,shift = {(\sseq@xmax cm+\sseq@xaxis@end@extend/2,\sseq@ymin-\sseq@xaxisgap-0.1cm)}] (0,0) -- (0,-1.5)
- node[description, below] {x axis\\ extend end};
-\draw[distance label,shift = {(\sseq@xmin cm- \sseq@yaxisgap-0.1cm,\sseq@ymax cm+\sseq@yaxis@end@extend/2)}] (0,0) .. controls (-2,0) .. (-2,-1)
-node[description, below] {y axis\\ extend end};
-
-
-
-% tick gap
-\draw[shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-0.5-\sseq@xaxisgap)}] (0,0)--(0,-\sseq@xlabelgap);
-\draw[shift = {(-0.5-\sseq@yaxisgap,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0)--(-\sseq@ylabelgap,0);
-\draw[distance label,shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-\sseq@xlabelgap/2-\sseq@xaxisgap)}] (0,0) .. controls (0.5 ,0) .. (0.5,-0.8)
- node[below,black]{x tick gap};
-\draw[distance label,shift = {(-\sseq@yaxisgap -\sseq@ylabelgap/2,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0) .. controls (0, -0.3) .. (-0.5,-0.7)
-node[left,black]{y tick gap};
-
-% axis gap
-\draw[shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap+0.02cm)}] (0,0) -- (0, \sseq@xaxisgap);
-\draw[shift = {(\sseq@xmin cm-\sseq@yaxisgap+0.02cm,\sseq@ymax cm+0.17cm)}] (0,0) -- (\sseq@yaxisgap,0);
-\draw[distance label,shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap/2+0.02cm)}](0,0) .. controls (2,0) .. (2,0.5)
-node[above,description]{x axis gap};
-\draw[distance label,shift = {(\sseq@xmin cm-\sseq@yaxisgap/2+0.02cm,\sseq@ymax cm+0.17cm)}](0,0)--(0,2) %.. controls (0,1) .. (0.5,1);
-node[above,description]{y axis gap};
-\end{scope}
-
-\class(0,0)
-\class(10,10)
-\draw (0,0) -- (11,11);
-\class(5,0)
-\class(0,5)
-\end{sseqpage}
+\input spectralsequencesmanual-layoutcharts
\end{center}
+}
+
\parskip=10pt
\begin{key}{custom clip = \meta{clip path}}
-Give a custom clipping. The clipping specified must be in the form of a valid \tikzpkg\space path, for instance |\clip (0,0) rectangle (10,10);|. This clipping is also applied to any grid and is used to draw ellipses on appropriate differentials or struct lines that go out of bounds and to determine whether a differential or struct line is an ``orphan''. It is not applied to any background elements, which is important because these are often used for axes labels and such that should lie outside of the clipping region. Weird things can happen with out of range edges if use this option with an oddly shaped path.
+Give a custom clipping. The clipping specified must be in the form of a valid \tikzpkg\ path, for instance |\clip (0,0) rectangle (10,10);|. This clipping is also applied to any grid and is used to draw ellipses on appropriate differentials or structure lines that go out of bounds and to determine whether a differential or structure line is an ``orphan''. It is not applied to any background elements, which is important because these are often used for axes labels and such that should lie outside of the clipping region. Weird things can happen with out of range edges if you provide an oddly shaped path.
\end{key}
\begin{key}{clip = \meta{boolean} (default true)(initially true)}
-If this is false the spectral sequence won't be clipped. I'm not really sure why you would want that, but there might be some use case. Setting this to be false is not fully supported, and it's possible that weird things will happen with some of the edges that go out of range.
+If this is false the spectral sequence chart won't be clipped. I'm not really sure why you would want that, but there might be some use case. Setting this to be false is not fully supported, and it's possible that weird things will happen with some of the edges that go out of range.
\end{key}
\begin{key}{rotate labels = \meta{boolean} (default true)(initially false)}
-If you use |rotate = 90| but also want the labels rotated (so that the whole diagram is sideways) use this key.
+If you use |rotate = 90| but also want the labels rotated (so that the whole chart is sideways) use this key.
\end{key}
-\end{document} \ No newline at end of file
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex
index f2897deb03a..4930d4e8766 100644
--- a/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex
+++ b/Master/texmf-dist/doc/latex/spectralsequences/manual/spectralsequencesmanualpreamble.tex
@@ -1,8 +1,8 @@
%%
-%% Package: spectralsequences.sty version 1.0
+%% Package: spectralsequences v1.1.0
%% Author: Hood Chatham
%% Email: hood@mit.edu
-%% Date: 2017-06-18
+%% Date: 2017-08-02
%% License: Latex Project Public License
%%
%% File: spectralsequencesmanualpreamble.tex
@@ -17,6 +17,7 @@
\usepackage{spectralsequences}
\usetikzlibrary{shapes.geometric}
\usepackage{amssymb}
+\usepackage{afterpage}
\usepackage[notmath]{sansmathfonts}
\usepackage{verbatim}
\usepackage{needspace}
@@ -239,6 +240,7 @@
\declarecustomhandler{page constraint}{\codehandler}
\declarecustomhandler{page constraint}{\codehandler}
+
\let\pgfmanualpdflabel@opt@old\pgfmanualpdflabel@opt
\def\pgfmanualpdflabel@opt[#1]#2#3{%
\pgfkeys@spdef\temp{#2}%
@@ -330,6 +332,8 @@
%
cs arguments/marg/.initial=1,
cs/marg/.code={\marg{\@gobble#1}},
+ cs arguments/metatt/.initial=1,
+ cs/metatt/.code={\meta{\texttt{\textup{\@gobble#1}}}},
%
cs arguments/pars/.initial=1,
cs/pars/.code={\@xp\pars\@xp{\@xp\pgfmanualprettyprintpgfkeys\@xp{\@gobble#1}}},
@@ -434,6 +438,23 @@
}
+
+\hypersetup{
+ pdftitle={The Sseqpages Package},
+ pdfauthor={Hood Chatham},
+ pdfsubject={A spectral sequence drawing package build on tikz},
+ pdfkeywords={spectral sequences,algebraic topology,homotopy theory,math,tikz,sseq},
+ pdflicenseurl={http://www.latex-project.org/lppl/}
+}
+
+\def\pars#1{|(|#1|)|}
+\def\pararg#1{\pars{\meta{#1}}}
+\def\parargtwo#1#2{|(\meta{#1},\meta{#2})|}
+\def\parargthree#1#2#3{|(\meta{#1},\meta{#2},\meta{#3})|}
+\def\parargthreeopt#1#2#3{|(\meta{#1},\meta{#2}|\opt{|,\meta{#3}|}|)|}
+\def\parargthreevar#1#2#3{|(\meta{#1},\meta{#2}#3)|}
+
+\def\cmdarg{\texttt{\textbackslash}\meta}
\def\ooptions{\oarg{options}}
\def\moptions{|[|\meta{options}|]|}
\def\sourcecoord{\meta{source coordinate}}
@@ -442,7 +463,7 @@
\def\targetn{\meta{target n}}
\def\sourcename{\meta{source name}}
-\def\version{version 1.0}
+\def\version{version 1.0.0}
\def\today{\the\year/\the\month/\the\day}
\def\pgfmanualurl{http://math.mit.edu/~hood/pgfmanual_v3.0.1a.pdf}
\def\xparseurl{http://mirror.ctan.org/macros/latex2e/contrib/l3packages/xparse.pdf}
@@ -450,6 +471,7 @@
\def\pkg#1{\textsf{\textmd{#1}}}
\def\sseqpages{\textsc{\pkg{spectralsequences}}}
+\let\spectralsequences\sseqpages
\def\sseqpkg{\pkg{sseq}}
\let\tikzpkg\tikzname
\def\pgfpkg{\pkg{\textmd{PGF}}}
@@ -457,29 +479,21 @@
\def\pgfplotspkg{\textsc{\pkg{pgfplots}}}
\def\xparsepkg{\pkg{xparse}}
\def\colorpkg{\pkg{color}}
-
-\bgroup\lccode`\(=`\{\lccode`\)=`\}\lowercase{\egroup
- \def\sseqpageenv{\pgfmanualpdfref{sseqpage}{\texttt{(sseqpage)}}}
- \def\sseqdataenv{\pgfmanualpdfref{sseqdata}{\texttt{(sseqdata)}}}
- \def\tikzpictureenv{\texttt{(tikzpicture)}}
- \def\scopeenv{\texttt{(scope)}}
-}
-
-
-\hypersetup{
- pdftitle={The Sseqpages Package},
- pdfauthor={Hood Chatham},
- pdfsubject={A spectral sequence drawing package build on tikz},
- pdfkeywords={spectral sequences,algebraic topology,homotopy theory,math,tikz,sseq},
- pdflicenseurl={http://www.latex-project.org/lppl/}
-}
-
-\def\pars#1{|(|#1|)|}
-\def\pararg#1{\pars{\meta{#1}}}
-\def\parargtwo#1#2{|(\meta{#1},\meta{#2})|}
-\def\parargthree#1#2#3{|(\meta{#1},\meta{#2},\meta{#3})|}
-\def\parargthreeopt#1#2#3{|(\meta{#1},\meta{#2}|\opt{|,\meta{#3}|}|)|}
-\def\parargthreevar#1#2#3{|(\meta{#1},\meta{#2}#3)|}
+\def\texlive{\TeX\ Live}
+\def\miktex{MiK\TeX}
+\def\pdflatex{\textsc{PDF}\LaTeX}
+\def\lualatex{Lua\LaTeX}
+\let\pdfLaTeX\pdflatex
+\let\LuaLaTeX\lualatex
+
+
+\def\env#1{\texttt{\{#1\}}}
+\def\sseqpageenv{\pgfmanualpdfref{sseqpage}{\env{sseqpage}}}
+\def\sseqdataenv{\pgfmanualpdfref{sseqdata}{\env{sseqdata}}}
+\def\tikzpictureenv{\env{tikzpicture}}
+\def\scopeenv{\env{scope}}
+\def\tikzcdenv{\env{tikzcd}}
+\def\eTeX{\leavevmode\hbox{$\varepsilon$}-\TeX}
\def\example#1{\path{example_#1.tex}}