Tabular data in reply to a post

  • Thread starter Thread starter gmax137
  • Start date Start date
gmax137
Science Advisor
Education Advisor
Messages
3,182
Reaction score
3,786
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   Reactions: 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 [tex]or [itex]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}[/itex][/tex]
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
991
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 10 ·
Replies
10
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
Announcement RIP Vanadium 50
  • · Replies 50 ·
2
Replies
50
Views
9K