TransWikia.com

How can I write a tower of unions?

TeX - LaTeX Asked by Smart20 on February 26, 2021

Here is the figure I want to write on latex:

enter image description here

Could anyone tell me what is the correct name of this figure and how to form it in latex please?

3 Answers

You can place the entries in a matrix using the amsmath package: enter image description here

documentclass{article}

usepackage{amsmath}

begin{document}

[
begin{matrix}
vdots & & vdots & & vdots
cup & & cup & & cup
L_3(I_1) & subset & L_3(I_2) & subset & L_3(I_3) & subset & cdots
cup & & cup & & cup
L_2(I_1) & subset & L_2(I_2) & subset & L_2(I_3) & subset & cdots
cup & & cup & & cup
L_1(I_1) & subset & L_1(I_2) & subset & L_1(I_3) & subset & cdots
end{matrix}
]

end{document}

If you want to reduce the spacing between columns, you can add setlengtharraycolsep{1.5pt} (or whatever spacing seems right to you) before begin{matrix}. enter image description here

It's best to enclose the adjustment in begingroup..endgroup to ensure you don't affect spacing in the rest of your document:

[
begingroup
setlengtharraycolsep{1.5pt}
begin{matrix}
vdots & & vdots & & vdots
cup & & cup & & cup
L_3(I_1) & subset & L_3(I_2) & subset & L_3(I_3) & subset & cdots
cup & & cup & & cup
L_2(I_1) & subset & L_2(I_2) & subset & L_2(I_3) & subset & cdots
cup & & cup & & cup
L_1(I_1) & subset & L_1(I_2) & subset & L_1(I_3) & subset & cdots
end{matrix}
endgroup
]

Correct answer by Sandy G on February 26, 2021

You can see that cup is not a rotated subset symbol.

In order to get the standard spacing around relation symbols, it's better to set arraycolsep to zero and rely on TeX's own method, by adding {} fore and aft.

documentclass{article}
usepackage{amsmath,array,graphicx}

newcommand{rotsubset}{rotatebox[origin=c]{90}{$subset$}}

begin{document}

begin{equation*}
setlength{arraycolsep}{0pt}
begin{array}{ *{7}{ >{{}}c<{{}} } }
vdots     &         & vdots     &         & vdots 
rotsubset &         & rotsubset &         & rotsubset 
L_3(I_1)   & subset & L_3(I_2)   & subset & L_3(I_3) & subset & cdots 
rotsubset &         & rotsubset &         & rotsubset 
L_2(I_1)   & subset & L_2(I_2)   & subset & L_2(I_3) & subset & cdots 
rotsubset &         & rotsubset &         & rotsubset 
L_1(I_1)   & subset & L_1(I_2)   & subset & L_1(I_3) & subset & cdots
end{array}
end{equation*}

end{document}

enter image description here

Answered by egreg on February 26, 2021

Your image is a commutative diagram of inclusions, so you may want to use the package tikz-cd.

documentclass{scrartcl}

usepackage{tikz-cd}

begin{document}
[
  begin{tikzcd}
    vdots
    &
    vdots
    &
    vdots
    &
    {}
    
    L_3(I_1)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    L_3(I_2)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    L_3(I_3)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    cdots
    
    L_2(I_1)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    L_2(I_2)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    L_2(I_3)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    cdots
    
    L_1(I_1)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    L_1(I_2)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    L_1(I_3)
    arrow[phantom]{u}[rotate=90]{subset}
    arrow[phantom]{r}{subset}
    &
    cdots
  end{tikzcd}
]
end{document}

enter image description here

Answered by Jendrik Stelzner on February 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP