Graphics, Figures & TablesKind of Table with labeled Axes

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
x86
Posts: 1
Joined: Sun Nov 24, 2013 12:21 am

Kind of Table with labeled Axes

Post by x86 »

Hello,

I have a little question concerning the layout of tables. Does LaTeX provide a way to create tables like shown in the attached picture?
table-label.png
table-label.png (40.58 KiB) Viewed 3094 times
I am referring to the two axes of the table that are labeled "N" and "n". Is there a way to have labeled axes in a table (with a little arrow at the end) instead of just having normal vertical and horizontal lines? Can I use the tabular environment or do I have to use something fancier?

Here is how my table would look without labeled axes:

Code: Select all

\documentclass{scrartcl}

\begin{document}
  \begin{tabular}{l|cccc}
              & 0 & 1 & 2 & 3 \\ \hline 
    $k_1 = 3$ & O & - & - & I \\
    $k_2 = 4$ & O & - & - & O \\
  \end{tabular}
\end{document}
Btw, does anybody know what those characters in the table in the screen caption above are? I approximated them with "I" and "O" but it doesn't look quite right.

I would be grateful for any help (and excuse my English, it's not my native tongue)!
Last edited by localghost on Sun Nov 24, 2013 10:37 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Kind of Table with labeled Axes

Post by localghost »

Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to {TeX} SX and got an answer. Please read what our administrator thinks about that.
Board Rules wrote:A crossposting is always contra-productive. But there is nothing really against it as long as it is mentioned. This means that a direct link has to be added. So other users who want to help are preserved from double efforts and waste of time.
Such kind of x-posting without notification represents a direct violation of our rules and has to be prevented absolutely in future questions.
Post Reply