Tabular data in reply to a post

  • Thread starter Thread starter gmax137
  • Start date Start date
AI Thread Summary
Including a table of values in a forum reply is possible, but direct copying from Word often results in lost formatting. Users can convert tables to PDF and upload them as attachments, or create tables using LaTeX formatting. The forum supports various LaTeX environments like array, bmatrix, and pmatrix without needing additional tags. Additionally, converting tables to images is a viable option for maintaining visual integrity. Proper formatting techniques can enhance the presentation of tabular data in replies.
gmax137
Science Advisor
Education Advisor
Messages
3,131
Reaction score
3,591
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
 
Physics news on Phys.org
Maybe try converting to PDF and uploading as an attachment?
 
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[/color]] tags:
Code:
here           spaces are conserved
which allows   tables, sort oft

Or convert the table to an image and include that.
 
Thanks !
 
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.
 
  • Like
Likes Greg Bernhardt
LCKurtz said:
Right click on the figure to see the LaTeX.
Or click "Reply" to see the LaTeX. :smile:
 
What is weird is that I think I forgot to put either the ## or $$ tags in that post and it printed the latex anyway.
 
LCKurtz said:
What is weird is that I think I forgot to put either the ## or $$ tags in that post and it printed the latex anyway.
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 or tags, or the easier to use (IMO) $$ or ## tags. <br /> Bracketed matrix (bmatrix)<br /> \begin{bmatrix} 1 & 0 \\ 0 & 1\end{bmatrix}<br /> Parenthesized matrix (pmatrix)<br /> \begin{pmatrix} 1 & 0 \\ 0 & 1\end{pmatrix}<br /> Vertical bars matrix (vmatrix)<br /> \begin{vmatrix} 1 & 0 \\ 0 & 1\end{vmatrix}
 

Similar threads

Replies
2
Views
1K
Replies
24
Views
2K
Replies
1
Views
2K
Replies
2
Views
841
Replies
8
Views
2K
Replies
7
Views
2K
Replies
10
Views
1K
Replies
3
Views
2K
Back
Top