how to solve this problem?
I tried to change the font size and text width and none helped
[Tex/LaTex] lyx: table goes out the page margin
lyxmarginstables
Related Solutions
The ;
and and
are really part of the sentence structure, not the mathematics,so TeX can do a better job if you code this as a sentence with multiple inline fragments. Also it still is hard so I have used \sloppy
to tell LaTeX to allow white space to stretch more than usual. It still looks pretty hard to read and I would definitely consider setting this as a display using an AMS alignment, but to get it inline:
\documentclass{article}
\renewcommand\vec[1]{\mathop{\mathrm{vec}}(#1)}
\begin{document}
\large
where $
\vec{\mathbf{Y}} =
\vec{[\mathbf{y}^{1} \ldots \mathbf{y}^{j} \ldots \mathbf{y}^{t}]}
\cong
\mathbf{y}^*;
\mathbf{I}\otimes\mathbf{X}\cong\mathbf{X}^*;
\vec{\mathbf{B}} =
\vec{[\beta^{1} \ldots \beta^{j} \ldots \beta^{t}]}
\cong
\beta^*;
\mathbf{I}\otimes\mathbf{Z}\cong\mathbf{Z}^*;
\vec{\mathbf{U}} =
\vec{[\mathbf{u}^{1} \ldots \mathbf{u}^{j} \ldots \mathbf{u}^{t}]}
\cong
\mathbf{u}^*;
\mbox{ and }
\vec{\mathbf{E}} =
\vec{[\mathbf{e}^{1} \ldots \mathbf{e}^{j} \ldots \mathbf{e}^{t}]}
\cong
\mathbf{e}^*;$
Thus the invariate linear mixed model involving all variables
can be obtained from multivariate linear mixed
\bigskip
{\sloppy where
$\vec{\mathbf{Y}} =
\vec{[\mathbf{y}^{1} \ldots \mathbf{y}^{j} \ldots \mathbf{y}^{t}]}
\cong
\mathbf{y}^*$;
$\mathbf{I}\otimes\mathbf{X}\cong\mathbf{X}^*;
\vec{\mathbf{B}} =
\vec{[\beta^{1} \ldots \beta^{j} \ldots \beta^{t}]}
\cong
\beta^*$;
$\mathbf{I}\otimes\mathbf{Z}\cong\mathbf{Z}^*$;
$\vec{\mathbf{U}} =
\vec{[\mathbf{u}^{1} \ldots \mathbf{u}^{j} \ldots \mathbf{u}^{t}]}
\cong
\mathbf{u}^*$;
and
$\vec{\mathbf{E}} =
\vec{[\mathbf{e}^{1} \ldots \mathbf{e}^{j} \ldots \mathbf{e}^{t}]}
\cong
\mathbf{e}^*;$
Thus the invariate linear mixed model involving all variables
can be obtained from multivariate linear mixed\par}
\end{document}
You have a tabular environment with only 3 columns
\begin{tabular}{{...}p{...}p{...}p{...}}
So you can't put in the second row three cells taking 5 columns:
Sample &
--> 1\multicolumn{2}{...}{...} &
--> 1 + 2 = 3\multicolumn{2}{...}{...}\tabularnewline
--> 3+2 =5
Nor five cells in the following rows:
BMMC &
0 &
02 &
1 &
78 \tabularnewline
The solution is a tabular environment with five columns. Some like:
\begin{tabular}{p{...}p{...}p{...}p{...}p{...}}
BTW, please avoid the vertical lines as well as the double lines. I suggest the use of tho horizontal rules of the booktabs
package instead of \hline
and some other changes. Please check the difference in this minimal working example:
\documentclass{article}
\usepackage{array,booktabs}
\begin{document}
\begin{table}
\caption{CD271 Antibody Assessment}
\centering{}%
\begin{tabular}{|>{\centering}p{0.12\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|}
\hline
Sample & \multicolumn{2}{p{0.24\textwidth}|}{Percentage Identified\linebreak as MSCs by Panel} & \multicolumn{2}{p{0.24\textwidth}|}{Percentage CD271\linebreak Postive}\tabularnewline
\hline
\hline
BMMC & 0&02 & 1&78\tabularnewline
\hline
\hline
Cultured Bone Marrow & 39&08 & 5&70\tabularnewline
\hline
\hline
Commerical MSCs & 99&51 & 45&44\tabularnewline
\hline
\end{tabular}
\end{table}
\begin{table}
\caption{CD271 Antibody Assessment}
\centering{}%
\begin{tabular}{lcccccc}
\toprule
Sample & & \multicolumn{2}{>{\raggedright}m{0.25\textwidth}}{Percentage Identified as MSCs by Panel} & & \multicolumn{2}{>{\raggedright}m{0.25\textwidth}}{Percentage CD271 Postive}\tabularnewline
\cmidrule{1-1}\cmidrule{3-4}\cmidrule{6-7}
BMMC & & 0 & 02 & & 1 & 78\tabularnewline
Cultured Bone Marrow & & 39 & 08 & & 5 & 70\tabularnewline
Commerical MSCs & & 99 & 51 & & 45 & 44\tabularnewline
\bottomrule
\end{tabular}
\end{table}
\end{document}
Best Answer
I'd simply transpose the table - columns for the four forces, their properties in separate rows. You probably don't need the word 'force' in "Weak nuclear" and "Strong nuclear". And please (please!) use Formal Style for your tables - that's an option in Table Settings dialog.