# Tabular data in reply to a post

1. Nov 12, 2015

### gmax137

I wanted to include a table of values in a reply. Is this possible? I had a table in Word; when I cut & pasted into the PF reply the formatting was lost completely.
Thanks

2. Nov 12, 2015

### Staff: Mentor

Maybe try converting to PDF and uploading as an attachment?

3. Nov 12, 2015

### Staff: Mentor

You can make a LaTeX table.

$$\begin{pmatrix} 1 & 2 & 3 & 4\\ a & b & c & d\\ x & y & z & w \end{pmatrix}$$

You can format it within [code] tags:
Code (Text):
here           spaces are conserved
which allows   tables, sort oft
Or convert the table to an image and include that.

4. Nov 12, 2015

### gmax137

Thanks !

5. Nov 13, 2015

### LCKurtz

You can build tables in Latex:
\begin{array}{|c|c|c|c|c|}
\hline \text{Column 1} & \text{Column 2}&\text{Column 3} &\text{Column 4} &\text{Column 5} \\
\hline 0&0&1&0&1\\
\hline 1 & 1 & 0 & 1 & 0\\
\hline
\end{array}
Right click on the figure to see the LaTeX.

6. Nov 13, 2015

### Staff: Mentor

Or click "Reply" to see the LaTeX.

7. Nov 13, 2015

What is weird is that I think I forgot to put either the $or  tags in that post and it printed the latex anyway. 8. Nov 13, 2015 ### Mark44 ### Staff: Mentor The system we have in place here at PF automatically recognizes certain environments, such as array (that you used) and bmatrix, pmatrix, and vmatrix, and maybe some others as well. You don't need to surround these known enviromments with [tex] or [itex] tags, or the easier to use (IMO)  or$ tags.
Bracketed matrix (bmatrix)
\begin{bmatrix} 1 & 0 \\ 0 & 1\end{bmatrix}
Parenthesized matrix (pmatrix)
\begin{pmatrix} 1 & 0 \\ 0 & 1\end{pmatrix}
Vertical bars matrix (vmatrix)
\begin{vmatrix} 1 & 0 \\ 0 & 1\end{vmatrix}

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook