Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Tabular data in reply to a post

  1. Nov 12, 2015 #1
    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. jcsd
  3. Nov 12, 2015 #2

    berkeman

    User Avatar

    Staff: Mentor

    Maybe try converting to PDF and uploading as an attachment?
     
  4. Nov 12, 2015 #3

    mfb

    User Avatar
    2016 Award

    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.
     
  5. Nov 12, 2015 #4
    Thanks !
     
  6. Nov 13, 2015 #5

    LCKurtz

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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.
     
  7. Nov 13, 2015 #6

    berkeman

    User Avatar

    Staff: Mentor

    Or click "Reply" to see the LaTeX. :smile:
     
  8. Nov 13, 2015 #7

    LCKurtz

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    What is weird is that I think I forgot to put either the ## or $$ tags in that post and it printed the latex anyway.
     
  9. Nov 13, 2015 #8

    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}
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Tabular data in reply to a post
  1. Quote vs post reply (Replies: 13)

Loading...