| 1 |
%% |
| 2 |
%% Package: spectralsequences v1.3.3 2023-01-28 |
| 3 |
%% Author: Hood Chatham |
| 4 |
%% Email: [email protected] |
| 5 |
%% Date: 2023-01-28 |
| 6 |
%% License: Latex Project Public License |
| 7 |
%% |
| 8 |
%% File: example_hatcher.tex |
| 9 |
%% |
| 10 |
%% This comes from Hatcher's spectral sequences book. I think it's a good demonstration of the flexibility of sseqpages. |
| 11 |
%% Thanks to Antonio Ruiz for suggesting it. |
| 12 |
%% |
| 13 |
|
| 14 |
\documentclass{spectralsequence-example} |
| 15 |
\usepackage{amssymb} |
| 16 |
\def\Z{\mathbb{Z}} |
| 17 |
|
| 18 |
\begin{document} |
| 19 |
\sseqset{ |
| 20 |
0/.sseq style={"0",draw=none}, |
| 21 |
homological Serre grading, |
| 22 |
classes={draw=none,inner sep=0.2em}, |
| 23 |
%tick gap=0.7em, |
| 24 |
} |
| 25 |
\begin{sseqdata}[ |
| 26 |
name=hatcherex1, |
| 27 |
permanent cycles={draw,minimum width={width("$Z_2$")+0.85em}}, |
| 28 |
yscale=0.6, |
| 29 |
axes gap=0.5cm, |
| 30 |
tick gap=1em, |
| 31 |
] |
| 32 |
\begin{scope}[background,opacity=0.1] |
| 33 |
\foreach \n in {1,3,...,9}{ |
| 34 |
\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; |
| 35 |
} |
| 36 |
\end{scope} |
| 37 |
|
| 38 |
\class["\Z"](0,0) |
| 39 |
\foreach\x in {1,3,...,9}{ |
| 40 |
\class["\Z_2"](\x,0) |
| 41 |
} |
| 42 |
\foreach \x in {2,4,...,8}{ |
| 43 |
\class[0](\x,0) |
| 44 |
} |
| 45 |
\foreach\y in {1,3,...,9}{ |
| 46 |
\pgfmathparse{9-\y} |
| 47 |
\let\xmax\pgfmathresult |
| 48 |
\foreach\x in {0,...,\xmax}{ |
| 49 |
\class["\Z_2"](\x,\y) |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
\foreach \y in {2,4,...,8}{ |
| 54 |
\pgfmathparse{9-\y} |
| 55 |
\let\xmax\pgfmathresult |
| 56 |
\foreach\x in {0,...,\xmax}{ |
| 57 |
\class[0](\x,\y) |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
\foreach \x in {3,5,...,9}{ |
| 62 |
\d2(\x,0) |
| 63 |
} |
| 64 |
|
| 65 |
\d3(4,1) |
| 66 |
\d3(6,1) |
| 67 |
\d3(8,1) |
| 68 |
\d3(4,3) |
| 69 |
\d3(6,3) |
| 70 |
\d3(4,5) |
| 71 |
\end{sseqdata} |
| 72 |
\printpage[name=hatcherex1,page=0] |
| 73 |
|
| 74 |
\vskip30pt |
| 75 |
|
| 76 |
\begin{sseqdata}[ |
| 77 |
name=hatcherex2, |
| 78 |
yscale=0.6, |
| 79 |
x axis gap=0.3cm, |
| 80 |
] |
| 81 |
|
| 82 |
\begin{scope}[background,opacity=0.1] |
| 83 |
\foreach \n in {1,3,...,9}{ |
| 84 |
\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; |
| 85 |
} |
| 86 |
\end{scope} |
| 87 |
|
| 88 |
|
| 89 |
\foreach\x in {0,2,...,8}{ |
| 90 |
\class["\Z"](\x,0) |
| 91 |
} |
| 92 |
\foreach \x in {1,3,...,9}{ |
| 93 |
\class[0](\x,0) |
| 94 |
} |
| 95 |
\foreach\y in {1,3,...,9}{ |
| 96 |
\pgfmathparse{9-\y} |
| 97 |
\let\xmax\pgfmathresult |
| 98 |
\foreach\x in {0,...,\xmax}{ |
| 99 |
\pgfmathparse{int(mod(\x,2))} |
| 100 |
\ifnum\pgfmathresult=0\relax |
| 101 |
\class["\Z_2"](\x,\y) |
| 102 |
\else |
| 103 |
\class[0](\x,\y) |
| 104 |
\fi |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
\d2(2,0) |
| 109 |
\foreach \x in {4,6,...,8}{ |
| 110 |
\foreach\r in {2,4,...,\x}{ |
| 111 |
\d\r(\x,0) |
| 112 |
\replaceclass["\Z"](\x,0) |
| 113 |
} |
| 114 |
} |
| 115 |
|
| 116 |
\foreach \y in {2,4,...,8}{ |
| 117 |
\pgfmathparse{9-\y} |
| 118 |
\let\xmax\pgfmathresult |
| 119 |
\foreach\x in {0,...,\xmax}{ |
| 120 |
\class[0](\x,\y) |
| 121 |
} |
| 122 |
} |
| 123 |
|
| 124 |
\end{sseqdata} |
| 125 |
\printpage[name=hatcherex2,page=0] |
| 126 |
\end{document} |