2

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}
  • 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
3
\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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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