TransWikia.com

How to make add a square box inside another?

TeX - LaTeX Asked by max lab on June 26, 2021

Is it possible to create the picture shown below in LaTex? I am fairly new to this software and any help would be greatly appreciated. I know how the code to start off the square but I’m not sure how to add the squares and dots inside them.

Thanks!

enter image description here

One Answer

Minimalist solution. Needs no extra packages.

documentclass{article}

begin{document}

fbox{%
    begin{tabular}{ccc}
        fbox{$bullet$} & fbox{$bullet$} & fbox{$circ$} 
        fbox{$circ$} & fbox{$bullet$} & fbox{$circ$} 
        fbox{$circ$} & fbox{$circ$} & fbox{$bullet$} 
    end{tabular}%
}

end{document}

enter image description here

Correct answer by Henri Menke on June 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