1

I want to add dots at the end of a table like this without taking up space from the table, so just an open-ended table with dots at the end, with the dots taking up no space, what I have so far is this. Any help would be appreciated, thanks!

\begin{array}{|c|c|c|}
\hline
1&1&O \\
\hline
&\vdots&
\end{array}

enter image description here

This is the expected output closest to I can represent it. enter image description here

  • Maybe related: https://tex.stackexchange.com/questions/23845 and https://tex.stackexchange.com/questions/515964. – Dr. Manuel Kuehner Feb 22 '22 at 02:11
  • I recommend providing a complete example (that can be compiled) and a drawing/screenshot/rendering of the expected output. – Dr. Manuel Kuehner Feb 22 '22 at 02:15
  • I haven't been able to find an example of the expected output yet, I will keep searching and let you know if I find one. – cabbage dude Feb 22 '22 at 03:04
  • I drew one with microsoft paint, it's not very good but it get's the idea across :) – cabbage dude Feb 22 '22 at 03:15
  • 1
    @cabbagedude What you mean by taking no space is not completely clear to me. Please have a look at my proposal and criticize it, if this not what you had in mind. – Denis Feb 22 '22 at 07:59

4 Answers4

3

Would something like this suit you?

\documentclass[12pt]{article}
    \usepackage[a4paper]{geometry}
    \usepackage{mathtools}
\begin{document}
\begin{equation*}
\begin{array}{|c|c|c|}
\hline
1&1&0 \\
\hline
\multicolumn{3}{c}{\smash{\vdots}}\\
\end{array}
\end{equation*}
\end{document} 

Remove the \smashto increase space, if wished.

enter image description here

Denis
  • 5,267
2

Here is a solution using the excellent package tabularray. The X, Y, Z denotes the three last lines.

\documentclass{standalone}

\usepackage{tabularray}

\begin{document} \begin{tblr}{ colspec={|c|c|c|}, vlines={Z}{dashed}, hline{1-Y}, } 1&1&0 \ 0&1&1 \ && \end{tblr} \end{document}

enter image description here

A more compact version:

\documentclass{standalone}

\usepackage{tabularray}

\begin{document} \begin{tblr}{ colspec={ccc}, % spec of the lines 1 to Y rowsep=1pt, hline{1-Y}, vlines={1-Y}{solid}, % spec of the last (Z) line vlines={Z}{dashed}, row{Z}={abovesep=0pt,belowsep=0pt}, } 1&1&0 \ 0&1&1 \ && \end{tblr} \end{document}

enter image description here

Paul Gaborit
  • 70,770
  • 10
  • 176
  • 283
1

\omit TeX primitive omits the declared table mask in the given item in the table (i.e. in the \halign primitive). Your example can look like this:

\begin{array}{|c|c|c|}
\hline
1&1&O \\
\hline
\omit&\omit\hfil\vdots\hfil&\omit
\end{array}
wipet
  • 74,238
0

Here is a start based on Vertical equivalent of \mathclap?. I do not fully understand the question so I am pretty sure that you are not 100 % happy with this :).

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{equation} \begin{array}{|c|c|c|} \hline 1 & 1 & 0 \\hline &\smash[t]{\vdots}& \end{array}
\end{equation}

\end{document}

enter image description here