Need help with Table bbcode? Learn how to use it like a pro!

  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
AI Thread Summary
The Table bbcode functions similarly to HTML tags, using table, th, tr, and td elements, with brackets replaced accordingly. It's important to keep all table tags on one line to prevent formatting issues, as line breaks can disrupt the table's appearance in posts. Line breaks can be added at the end of cells without affecting the display, improving code readability. The discussion also touches on quirks with row spacing and the limitations of rowspan support in the current editor. Overall, understanding these nuances is essential for effectively using Table bbcode.
Messages
19,791
Reaction score
10,748
The Table bbcode works exactly like the html tags. You have table, th, tr, td. Just replace the html brackets <> without bbcode brackets [] and remember to close each element out.

There is an icon next to the superscript to start you out. See this link for more information: https://www.physicsforums.com/help/bb-codes

Cell 1Cell 2
Cell 3Cell 4
Cell 5Cell 6

One of the quirks with the editor is that you need to end up putting all the table tags in one line instead of nicely laid out with line breaks. The line breaks will show in the post and the table will end up being pushed far down the post.
 
Last edited:
Physics news on Phys.org
Concerning line breaks, it is possible to include them at the end of the cells, directly between content and [/td]. This way they don't influence how the post is shown, but they allow to make the source code a bit more readable.
Cell 1
Cell 2
Cell 3
Cell 4
Cell 5Cell 6

more text
 
  • Like
Likes Greg Bernhardt
Sometimes the row spacing gets a little bit wacky:

Name
Sample
LaTeX code
Blackboard bold
\mathbb{ABCDE}
\mathbb{ABCDE}
Calligraphic
\mathcal{ABCDE}
\mathcal{ABCDE}
Fraktur
\mathfrak{ABCDE}
\mathfrak{ABCDE}
Sans serif
\mathsf{ABCDE}
\mathsf ABCDE}
Roman (upright)
\mathrm{ABCDE}
\mathrm{ABCDE}
Bold
\mathbf{ABCDE}
\mathbf{ABCDE}
Typewriter
\mathtt{ABCDE}
\mathtt{ABCDE}
[td] [/td]
[td][/td]
 
  • Like
Likes Greg Bernhardt
Does this support rowspan? Let's see...

NameSample
LaTeX code
Infinity
\infty
\infty
[td] [tr][td]Planck's constant
[/td][td]\hbar
[/td][td]\hbar
[/td][/tr][tr][td rowspan=2]Plus or minus
[/tr][/td][tr][td]\pm
[/td][td]\pm
[/td][/tr][td]\mp
[/td][td]\mp
[/td][/tr][tr][td]Parallel
[/td][td]\parallel
[/td][td]\parallel
[/td][/tr][tr][td]Perpendicular
[/td][td]\perp
[/td][td]\perp
[/td][/tr][tr][td]For all
[/td][td]\forall
[/td][td]\forall
[/td][/tr][tr][td]There exists
[/td][td]\exists
[/td][td]\exists
[/td][/tr][tr][td]Ellipsis
[/td][td]\dots,\cdots,\vdots,\ddots
[/td][td]\dots,\cdots,\vdots,\ddots
[/td][/tr]


I guess not. :(
 
Those tags are a simple replacement of [td] to <td> and so on. For vBulletin, there is a nice and more powerful table addon, I have no idea if something similar exists for XF.[/td]
 
Homework Statement: Not applicable. I'm asking about a technical problem with the PhysicsForums software Relevant Equations: \left(-2+2 \,\mathrm{I}\right)^{\frac{1}{3}} \left(-2+2 \,\mathrm{I}\right)^{\frac{1}{3}} I posted the LaTeX code for an expression in the "relevant equations" and "attempt at a solution" boxes. When I'm in the "attempt at a solution" box and I click "Preview," I do not see a preview of the expression properly displayed, only the code. After I post this message...

Similar threads

Replies
3
Views
2K
Replies
10
Views
3K
Replies
1
Views
2K
Replies
0
Views
5K
Replies
4
Views
4K
Back
Top