I need to create a Hasse diagram (i.e., lattice diagram) in LaTeX. Right now, I have the following code in tikz-cd.
\documentclass{standalone}
\usepackage{amsmath,tikz, tikz-cd}
\begin{document}
\begin{tikzpicture}[baseline= (a).base]
\node[scale=.85] (a) at (0,0){
\begin{tikzcd}[every arrow/.append style={dash}]
& & K_1
\arrow[ddll]
\arrow[d]\\
& & k_1
\arrow[ddll,sloped,pos=0.7,"\text{degree $p$}"]\\
K_0 \arrow[d,swap,"\text{degree 2} \, \,"] & & \\
k_0 & &
\end{tikzcd}
};
\end{tikzpicture}
\end{document}
I would like to add labeled vertical brackets to the diagram off to the side, preferably curly braces. For instance, I would like a vertical brace to the left of the diagram, labeled with 'H' and spanning from K_0 on the bottom to K_1 on the top. (Note: this is not the entire diagram -- the brace should extend down to K_0, not all the way down to k_0 at the bottom of the diagram.)
What is the simplest way to add these braces? Can I do it in tikz-cd? If not, what is the simplest alternative?




pst-node, and especially § 7, Mathematical diagrams and graphs, pp. 21–23. – Bernard Jun 19 '17 at 21:49