How do I draw this table on LaTeX?

  • Context: LaTeX 
  • Thread starter Thread starter Guest2
  • Start date Start date
  • Tags Tags
    Latex Table
Click For Summary

Discussion Overview

The discussion revolves around how to create a specific table using LaTeX. Participants share their experiences and solutions related to formatting tables in LaTeX, particularly addressing issues with unwanted lines and complexity in the original table structure.

Discussion Character

  • Technical explanation
  • Exploratory
  • Homework-related

Main Points Raised

  • One participant requests assistance in drawing a complex table in LaTeX, noting issues with lines appearing incorrectly.
  • Another participant provides a simplified example of a LaTeX table as a starting point.
  • A later reply expresses gratitude for the provided solution, indicating it worked well for their needs.
  • Another participant mentions a helpful site for creating quick tables with minimal customization.

Areas of Agreement / Disagreement

Participants generally agree on the challenges of creating tables in LaTeX, but there is no consensus on a single solution, as different approaches are suggested.

Contextual Notes

The original table's complexity and the specific formatting issues are not fully resolved, and the discussion reflects varying levels of familiarity with LaTeX among participants.

Guest2
Messages
192
Reaction score
0
How do I draw this table on $\LaTeX$?

\begin{aligned} \begin{array}{cc|c|c|c|}
* && e & r & r^2& r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f\\
\\
\hline
e && e & r & r^2& r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f \\
\hline
r && r & r^2 & r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f \\
\hline
r^2 && r^2 & r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf \\
\hline
r^3 && r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f \\
\hline
r^4 && r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f\\
\hline
r^5 && r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f \\
\hline
f && f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f \\
\hline
rf && rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e \\
\hline
r^2f && r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r\\
\hline
r^3f && r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r & rf \\
\hline
r^4f && r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r & rf & r^2f \\
\hline
r^{5}f && r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r & rf & r^2f & r^3f \\
\hline
&& & &
\hline
\end{array} \end{aligned}$$Code:

$$
Code:
\begin{aligned} \begin{array}{cc|c|c|c|} 
* && e & r & r^2& r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f\\ 
\\ 
\hline 
e && e & r & r^2& r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f \\ 
\hline 
r && r & r^2 & r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f \\ 
\hline 
r^2 && r^2 & r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf \\ 
\hline 
r^3 && r^3& r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f \\
\hline 
r^4 && r^4& r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f\\ 
\hline 
r^5 && r^5& f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f \\ 
\hline 
f && f& rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f \\ 
\hline 
rf && rf& r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e \\ 
\hline 
r^2f && r^2f& r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r\\ 
\hline 
r^3f && r^3f& r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r & rf \\ 
\hline 
r^4f && r^{4}f& r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r & rf & r^2f \\ 
\hline 
r^{5}f && r^{5}f & f & rf & r^2f & r^3f &r^4f & r^5f &e & r & rf & r^2f & r^3f \\ 
\hline 
 && & &  
\hline 
\end{array} \end{aligned}

If I enter just the way it's on $\LaTeX$ I get lines all over the place. Unfortunately my knowledge of $\LaTeX$ doesn't extend beyond using Mathjax.
 
Physics news on Phys.org
Try this for a start:

\begin{array}{c|c|c|}
* & e & r \\
\hline e & e & r \\
\hline r & r & r^2
\end{array}

-DanView attachment 5281
 

Attachments

  • CodeCogsEqn.gif
    CodeCogsEqn.gif
    639 bytes · Views: 124
topsquark said:
...

-Dan
This worked nicely, thank you! :)
 
Sometimes I find this site to be helpful as well when I want to draw a quick table without much customization.
 

Similar threads

Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 21 ·
Replies
21
Views
3K