Graphics, Figures & TablesArrow with Text in Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
upani1982
Posts: 43
Joined: Wed May 12, 2010 11:42 am

Arrow with Text in Table

Post by upani1982 »

Hi All,

I want to put inside a left arrow with text in one of my headings in a table. I have tried methods given in amsmath package. But unable to format it. Can you please help me how to format the table.

Code: Select all

\documentclass{article}
\usepackage{amsmath,booktabs,caption,multirow,siunitx,threeparttable}
\begin{document}
\begin{table}[htbp!]
%\setlength{\tabcolsep}{3pt}
 \footnotesize
  \begin{threeparttable}
    \caption{Granger Causality Test}
    \label{tab:causality}
    \sisetup{table-number-alignment=right,table-figures-integer=2,table-figures-decimal = 2,table-space-text-post =
    \textsuperscript{\textbf{*}}}
  {
 \renewcommand{\arraystretch}{1.2}
    \begin{tabular}{llSSSS}
    \addlinespace
      \toprule
      &       & \multicolumn{3}{c}{\textbf{\Delta S_{r,t}}}\xrightarrow[T]{does granger cause}{\textbf{\Delta F_{r,t}}} & \multicolumn{3}{c}{\textbf{First Difference ( Log )}}\\
    \cmidrule(r){3-5} \cmidrule(r){6-8}
       \textbf{Group} & \textbf{Commodity} & \multicolumn{1}{l}{\textbf{Constraint}} &\multicolumn{1}{r}{\textbf{Spot}} & \multicolumn{1}{r}{ \textbf{Future}} & \multicolumn{1}{l}{\textbf{Constraint}} & \multicolumn{1}{r} {\textbf{Spot}} &\multicolumn{1}{r}{ \textbf{Future}} & \multicolumn{1}{c}{\textbf{Integration}} \\
      \midrule
     \multirow{2}[0]{*}{Bullion}& Gold & I and T & -3.01 & -2.90 & I     & -10.48 & -10.42 & I(1)  \\
     & Silver      & I and T & -1.72 & -2.12 & I     & -10.67 & -10.22 & I(1) \\
     \hdashline
    \multirow{5}[0]{*}{Metal} & Aluminium & I and T & -1.85 & -1.81 & I  & -10.37 & -10.77 & I(1)  \\
     & Copper      & I and T    & -1.90 & -2.15 & None  & -11.54 & -8.49 & I(1) \\
     & Lead        & I     & -1.67 & -1.79 & None  & -9.74 & -9.71 & I(1)   \\
     & Nickel      &  I     & -1.89 & -1.73 & I and T & -11.26 & -10.84 & I(1)\\
     & Zinc        &  I  & -1.22 & -1.16 & None  & -10.69 & -10.50 & I(1) \\
     \hdashline
    \multirow{2}[0]{*}{Energy} & Crude Oil & I and T & -1.76 & -1.80 & None  & -12.37 & -10.92 & I(1)  \\
     & Natural Gas & I  & -2.20 & -2.05 & None  & -10.12 & -10.27 & I(1)  \\
    \bottomrule
    \end{tabular}
    }
\end{threeparttable}
  \end{table}
\end{document}
I have tried with the above command in the heading row. Please suggest me some methods to implement it.

With sincere regards,
Upananda
Last edited by upani1982 on Tue Oct 25, 2011 4:01 pm, 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

Arrow with Text in Table

Post by localghost »

Before we continue, make your example run capable by fixing the errors. Now and then you should listen to the compiler and take a look at what it tells you in the log file. Just some tips:
  • You should specify the right number of columns for the tabular environment.
  • You should load all necessary packages.
  • If you write text inside a »S« column type, you have to enclose it by curly braces. The siunitx manual has the details.
And please specify what you want to format regarding the arrow.


Thorsten
upani1982
Posts: 43
Joined: Wed May 12, 2010 11:42 am

Re: Arrow with Text in Table

Post by upani1982 »

Hi Localghost,

Thanks a lot for your information. I have solved the problem with using rightnarrow.
Because of lack of understanding , stime i skip some of the points like putting {S} with l. Now onwards i will do the crosscheck with your methods.

Thanks again for guidance.

With sincere regards,
Upananda
Post Reply