Code: Select all
\begin{array}{ccc}0 & \fbox{1} & 1 \\1 & 0 & 0\end{array}
Thanks, Henning
Code: Select all
\begin{array}{ccc}0 & \fbox{1} & 1 \\1 & 0 & 0\end{array}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\documentclass{article}\usepackage{hhline}\begin{document}\[\begin{array}{ccc}\hhline{~--}0 & \multicolumn{1}{|c}{1} & \multicolumn{1}{c|}{1} \\\hhline{~--}1 & 0 & 0\end{array}\]\end{document}
Code: Select all
\documentclass{article}\begin{document}\[\begin{array}{ccc}\cline{2-3}0 & \multicolumn{1}{|c}{1} & \multicolumn{1}{c|}{1} \\\cline{2-3}1 & 0 & 0\end{array}\]\end{document}
Code: Select all
\documentclass{article}\usepackage{hhline}\begin{document}\newcommand{\lone}{\multicolumn{1}{|c}{1}}\newcommand{\rone}{\multicolumn{1}{c|}{1}}\newcommand{\lrone}{\multicolumn{1}{|c|}{1}}\[\left(\begin{array}{cccccc}\hhline{~~-~--}0 & 0 & \lrone & 0 & \lone & \rone\\\hhline{-~----}\lrone & 0 & 0 & \lrone & 0 & \lrone\\\hhline{-~----}0 & 0 & \lrone & 0 & \lrone & 0\\\hhline{~--~--}0 & \lrone & 0 & 0 & 0 & \lrone\\\hhline{~-~~~-}\end{array}\right)\]\[\left(\begin{array}{cccccc}\hhline{~~~~--}0 & 0 & \fbox{1} & 0 & \lone & \rone\\\hhline{~~~~--}\fbox{1} & 0 & 0 & \fbox{1} & 0 & \fbox{1}\\0 & 0 & \fbox{1} & 0 & \fbox{1} & 0\\0 & \fbox{1} & 0 & 0 & 0 & \fbox{1}\\\end{array}\right)\]\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p