Graphics, Figures & TablesTable row alignment problem

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Table row alignment problem

Post by pallav »

I have used

Code: Select all

\usepackage{booktabs,multirow,array,tabu,subfig}
. The row alignment due referring a Fig into table is not well. The Fig column is just down than the other. Please help me to solve the issue. I am attaching here the output table and the code that I have used.

Code: Select all

\begin{table}[H]
  \caption{Nature of the....}
  \centering
  \label{tab:6}
  \scriptsize\addtolength{\tabcolsep}{-2pt}
  \colorbox{lightgray}{%
    \begin{tabu} to .95\linewidth{X[1.2l]X[2.5l]X[1l]X[1l]X[2.5l]X[1.4l]X[1l]X[2.2l]}
     \toprule[.5pt]
     	{\bf Bifurcation parameter} & {\bf Parameter range} & {\bf $E_2$} & {\bf $E_3$} & {\bf $E^*$ (Existance and stability nature)} & {\bf Periodic solution of $E^*$} & {\bf Figure}& {\bf Remarks, if any}\\
			\midrule[1pt]
    {$m$} & {$m<0.354$} & {} & {} & {Does not exist} & {No} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\		[2pt]
& {$0.354<m< 0.387$} & {} & {} & {Exists and stable} & {No} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\ [2pt]
& {$0.387\leq m \leq 0.4078$} & {} & {} & {Exists and unstable} & {Yes} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\ [2pt]
& {$m\geq 0.4078$} & {} & {} & {Does not exist} & {No} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\ [2pt]
     \bottomrule[.5pt]
   \end{tabu}
	}
   \end{table}
Attachments
table.JPG
table.JPG (21.6 KiB) Viewed 2549 times

Recommended reading 2024:

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

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

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

Table row alignment problem

Post by localghost »

It seems to be equally difficult to get a proper minimal example from you like reactions to proposed solutions.


Thorsten
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Table row alignment problem

Post by pallav »

Here it is:

Code: Select all

\documentclass[cmbright]{mmaauth}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage{latexsym,moreverb,amsmath,amssymb,stmaryrd,subfig,float}
\usepackage[square, comma, numbers, sort&compress]{natbib}
\usepackage{booktabs,multirow,array,tabu}
\usepackage{hyperref}
\hypersetup{colorlinks = true,linkcolor = blue, anchorcolor = blue, citecolor = blue, filecolor = red,urlcolor = red}
\definecolor{lightgray}{gray}{0.9}
\newcommand\BibTeX{{\rmfamily B\kern-.05em \textsc{i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\text{E}\kern-.125emX}}
\def\volumeyear{2011}

\begin{document}
\begin{table}[H]
  \caption{Nature of the....}
  \centering
  \label{tab:6}
  \scriptsize\addtolength{\tabcolsep}{-2pt}
  \colorbox{lightgray}{%
    \begin{tabu} to .95\linewidth{X[1.2l]X[2.5l]X[1l]X[1l]X[2.5l]X[1.4l]X[1l]X[2.2l]}
     \toprule[.5pt]
        {\bf Bifurcation parameter} & {\bf Parameter range} & {\bf $E_2$} & {\bf $E_3$} & {\bf $E^*$ } & {\bf Periodic solution} & {\bf Figure}& {\bf Remarks, if any}\\
                        \midrule[1pt]
    {$m$} & {$m<0.354$} & {} & {} & {Does not exist} & {No} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\ [2pt]
& {$0.354<m< 0.387$} & {} & {} & {Exists and stable} & {No} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\ [2pt]
& {$0.387\leq m \leq 0.4078$} & {} & {} & {Exists and unstable} & {Yes} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\ [2pt]
& {$m\geq 0.4078$} & {} & {} & {Does not exist} & {No} & {\ref{Fig:Bif_Diag_disease}\subref{fig:subfig1_DP}} &{--}  \\ [2pt]
     \bottomrule[.5pt]
   \end{tabu}
        }
   \end{table}
	\begin{figure}[htbp]
\centering
\subfloat[]{
    \includegraphics[height=6cm,width=8cm]{Bif_Diag_m.eps}
    \label{fig:subfig1_DP}
}
\subfloat[]{
    \includegraphics[height=6cm,width=8cm]{Bif_Diag_alpha.eps}
    \label{fig:subfig2_DP}
}
\caption{(Color online) (a) ..........} \label{Fig:Bif_Diag_disease}
\end{figure}
\end{document}
In addition to my above problem, I want to make my math symbols in 1st row bold. What to do?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table row alignment problem

Post by localghost »

Your example is in several regards not as requested.
  • It uses a non-standard document class which is not listed on CTAN. Furthermore you do not attach it to your question or give a link where to find it. Hence the example is not compilable out of the box and specific help is not possible.
  • It uses graphics files which are not present to others and did you not give the demo option to the graphicx package.
  • It is far from being minimal because it loads packages which are not necessary to reproduce the problem. Furthermore there are command definitions which are not necessary to reproduce the problem.
Post Reply