Graphics, Figures & TablesArrows across Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

Arrows across Table

Post by casperyc »

As shown in the attached picture, is there a way to archive this?

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{rotating}

\begin{document}
  \begin{sidewaystable}
    \[
      \begin{array}{c|c|c|c|c|c|c|c|c|c|c}
        & K=3 & K=4 & K=5 & K=6 & K=7 & K=8 & K=9 & K=10 & K=11 & K=12 \\ \hline
        C=2 &4&7&10&12&14&16&18&20&&\\ \hline
        C=3 &4&7&11&16&21&24&27&30&&\\ \hline
        C=4 &4&7&11&16&22&29&36&40&&\\ \hline
        C=5 &4&7&11&16&22&29&37&46&&\\ \hline
        C=6 &4&7&11&16&22&29&37&46&&\\ \hline
        C=7 &4&7&11&16&22&29&37&46&&\\ \hline
        C=8 &4&7&11&16&22&29&37&46&&\\ \hline
        C=9 &4&7&11&16&22&29&37&46&&\\ \hline
        C=10&4&7&11&16&22&29&37&46&&
      \end{array}
    \]
  \end{sidewaystable}
\end{document}
Attachments
table-arrows.png
table-arrows.png (15.1 KiB) Viewed 3145 times
Last edited by localghost on Wed Aug 28, 2013 9:59 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.

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

Arrows across Table

Post by localghost »

Either the library tikzmark or creating the table with PGF/TikZ itself with its matrix library could help here.

Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to {TeX} SX. Please read what our administrator thinks about that. m(
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.
Addendum:

In the meantime the question on {TeX} SX has got an answer which has been accepted.


Thorsten
Post Reply