[cstex] Dvojtý řádek v matici

Jaromír Kuben kuben at scova.vabo.cz
Tue Mar 6 20:43:42 CET 2007


vydron at atlas.cz napsal(a):

>Dobrý den,
>
>Prosím potřeboval bych poradit, jak udělat v LaTeXu matici, která bude
>mít jeden člen na více řádků. 
>
>Např:
>
>|               vemli   |
>|  vzorec       dlouhý  |
>|               vzorec  |
>|                       |
>|  vzorec       kratší  |
>|               vzorec  |
>
>konkrétně
>
>\begin{equation}
>	\left[ \begin{array}{cccccccc}
>	X_{u} & X_w - Q_e & X_q - W_e & -g \cos \Theta_e & X_v + R_e & X_p & 0 &
>X_r - V_e\\
>	Z_u -Q_e& Z_w & Z_q +U_e & -g\cos\Phi_e \sin\Theta_e & Z_v -P_e& Z_p -V_e
>& -g\sin\Phi_e \sin\Theta_e & Z_r\\
>	M_u & M_w& M_q& 0& M_v & M_p + 2 P_e I_{xz}/I_{yy} %TADY ZLOM bunky
>- R_e(I_{xx} - I_{zz})/I_{yy}& 0 & M_r + 2 R_e I_{xz}/I_{yy} - P_e(I_{xx}
>- I_{zz}/I_{yy}\\
>	\end{array} \right] 
>	\label{eq:dymak}
>\end{equation}
>
>Předem děkuji za nápady
>
>_______________________________________________
>csTeX mailing list
>csTeX at cs.felk.cvut.cz
>http://lists.felk.cvut.cz/mailman/listinfo/cstex
>  
>
Dobry den.
Zkuste pouzit  okoli aligned, gathered nebo alignedat z baliku amsmath.
Napr.

\usepackage{array}
\usepackage{amsmath}

\begin{document}

\begin{equation}
\extrarowheight3pt
    \left[ \begin{array}{cccccccc}
    X_{u} & X_w - Q_e & X_q - W_e & -g \cos \Theta_e & X_v + R_e & X_p & 0 &
X_r - V_e\\
    Z_u -Q_e& Z_w & Z_q +U_e & -g\cos\Phi_e \sin\Theta_e & Z_v -P_e& Z_p 
-V_e
& -g\sin\Phi_e \sin\Theta_e & Z_r\\[2mm]
    M_u & M_w& M_q& 0& M_v & \begin{aligned} M_p + 2 P_e 
I_{xz}/I_{yy}-\mbox{}\\ %TADY ZLOM bunky
\mbox{}- R_e(I_{xx} - I_{zz})/I_{yy} \end{aligned}& 0 & 
\begin{aligned}M_r + 2 R_e I_{xz}/I_{yy} -\mbox{}\\
\mbox{}-P_e(I_{xx} - I_{zz}/I_{yy}\end{aligned}\\
    \end{array} \right]
    \label{eq:dymak}
\end{equation}

Stejne je to ale porad moc siroke a nevypada to hezky. Mozna by stalo za 
uvahu otocit tu matici
o 90 stupnu, pokud je nutne ji mit explicitne vypsanou.
Okoli aligned i ta dalsi maji nepovinny parametr:
\begin{aligned}[t] nebo \begin{aligned}[b].
Zpusobi to vertikalni zarovnani na prvni resp. posledni radek - viz 
dokumentace k amsmath.
Implicitne je to centrovane.

Zdravi
                  Jaromir Kuben



More information about the csTeX mailing list