Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to produce a some kind of lattice diagram, such as a Hasse diagram. How can I do so? I tried using matrix with letters and slashes but it seems ugly. Do I need any additional packages?

EDIT: I mean graph like this one (for zessenhaous lemma):enter image description here

share|improve this question
what is a lattice, hasse graph? –  percusse Aug 22 '13 at 15:10
there are several packages that are intended to create such diagrams. someone will probably recommend tikz. xypic and pstricks also provide such capabilities. –  barbara beeton Aug 22 '13 at 16:56
In LyX, go to File > Open then go to examples, then click on "xypic.lyx". Similarly, you could try Help > Specific Manuals > XY-pic Manual (although this might have been added only in a recent version, I forget). Both documents are the same. –  scottkosty Aug 22 '13 at 22:53
Related: How to draw a poset Hasse Diagram using TikZ? –  Peter Grill Aug 23 '13 at 23:59
add comment

2 Answers

up vote 5 down vote accepted

According to @barbarabeeton, here comes a possible PSTricks solution for the example you gave:

\newpsstyle{DblDash}{linestyle=dashed, dash=1pt 1.5pt, doubleline}
[name=11] $A_1$ & & & & [name=12] $B_2$\\
& [name=21] $A(A_1\cap B_1)$ & & [name=22] $B(A_1\cap B_1)$ \\
& [name=31] $A(A_1\cap B)$ & [name=32] $A_1\cap B_1$ & [name=33] $B(A\cap B_1)$ \\
[name=41] $A$ & & [name=42] $D$ & & [name=43] $B$\\
& [name=51] $A\cap B_1$ & & [name=52] $A_1 \cap B$ \\
& & [name=61] $A\cap B$

This gives the output:

enter image description here

share|improve this answer
@PSTikZ With pstricks the bounding box is wrong, it's far to large. –  Christoph Sep 5 '13 at 6:41
add comment

Paul Taylor's diagrams package will also work. I'm not sure which is easiest.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.