Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to draw something like drawing an arrow to a table cell. But in my case the arrow should be in the right side. Could you please change the following code:

\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{figure}[ht]
    \centering
    \begin{tabular}{l@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r}
      \toprule
      &      & a & b & c \\
      \midrule
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
        \noalign{\smash{\llap{\lower2pt\hbox{$\longleftarrow$}}}}
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      \bottomrule
    \end{tabular}
\end{figure}
\end{document}
share|improve this question
    
Welcome to TeX.sx! I removed the thanks. This is just the style here. Thanks is best expressed by upvoting answers that help you. –  qubyte Feb 8 '12 at 16:22
add comment

1 Answer 1

up vote 3 down vote accepted
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{figure}[ht]
    \centering
    \begin{tabular}{l@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r@{\hspace{5mm}}r}
      \toprule
      &      & a & b & c \\
      \midrule
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4\rlap{~\lower4pt\hbox{$\longleftarrow$}}\\
      0      & 1 & 2 & 3 & 4 \\
      0      & 1 & 2 & 3 & 4 \\
      \bottomrule
    \end{tabular}
\end{figure}
\end{document}

enter image description here

share|improve this answer
    
it works. thanks :) –  beegii Feb 8 '12 at 16:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.