2015-11-04 24 views
1

我为我的报告使用乳胶。我被困在一个矢量中心。这是我的乳胶代码:如何在乳胶中置入一个载体

\begin{equation} 
\centering 
X_{i}= 
$$\begin{bmatrix} 
C_1\\ 
C_2\\ 
C_3\\ 
\vdots\\ 
\vdots\\ 
\vdots\\ 
\vdots\\ 
C_n\\ 
OlValue\\ 
\end{bmatrix}$$ 
\label{Vect} 
\end{equation} 

居中命令不起作用。我尝试了几件事,但矢量不在中心。

回答

0

你这样做是错误的...

enter image description here

\documentclass{article} 
\usepackage{amsmath} 
\begin{document} 

\noindent 
X \dotfill X% To show the horizontal text width/margins 

\begin{equation} 
    X_i = 
    \begin{bmatrix} 
    C_1 \\ C_2 \\ 
    \vdots \\ 
    C_n 
    \end{bmatrix} 
\end{equation} 

\end{document} 

不要使用\centeringequation内。也请勿使用$$ ... $$equation环境会自动将其内容置于中间位置。