This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to VietTUG.org

Bảng lạ

Tác giả: Lâm Hữu Phước

% required package: lscape

\newlength\dodaia
\settowidth \dodaia{$\begin{array}{ccccc}
              b_{11} & \multicolumn{1}{|c}{1} & c_{12} & c_{13} & c_{14}\\
              \cline{2-2}
              b_{21} & b_{22} & \multicolumn{1}{|c}{1} & c_{23} & c_{24}\\
              \cline{3-3}
              b_{31} & b_{32} & b_{33} & \multicolumn{1}{|c}{1} & c_{34}\\
              \cline{4-4}
              b_{41} & b_{42} & b_{43} & b_{44} & \multicolumn{1}{|c}{1}\\
          \end{array}$}

\newlength\dodaib
\settowidth \dodaib{$\begin{array}{ccccc}
              3 & \multicolumn{1}{|c}{1} & 0,333333 & -0,333333 &
              0,666667\\
              \cline{2-2}
              -5 & 2,66667 & \multicolumn{1}{|c}{1} & 0,5 & -0,25\\
              \cline{3-3}
              2 & -0,666667 & 2 & \multicolumn{1}{|c}{1} & -1,25\\
              \cline{4-4}
              1 & -5,333333 & 6 & 2,5 & \multicolumn{1}{|c}{1}\\
          \end{array}$}

          \newlength{\daia}
\newlength{\daic}
\settowidth{\daia}{I}
\settowidth{\daic}{I\mbox{}I\mbox{}I}

\begin{landscape}
\begin{table}
\renewcommand{\arraystretch}{1.25}
\begin{tabular}{|c|*{4}{@{}>{\centering$}p{.25\dodaia}<{$}@{}|}
*{2}{>{$}c<{$}|}*{4}{@{}>{\centering$}p{.25\dodaib}<{$}@{}|}
*{2}{>{$}c<{$}|}}
    \hline
    & x_1 & x_2 & x_3 & x_4 &   & \sum & 
    x_1 & x_2 & x_3 & x_4 &   & \sum \\
              \hline
              \multirow{4}{\daia}{I} & a_{11} & a_{12} & a_{13} & 
              a_{14} & a_{15} & a_{16} & 3 & 1 & -1 & 2 & 6 & 11 \\
    & a_{21} & a_{22} & a_{23} & a_{24} & a_{25} & a_{26} & 
    -5 & 1 & 3 & -4 & -12 & -17 \\
    & a_{31} & a_{32} & a_{33} & a_{34} & a_{35} & a_{36} & 
    2 & 0 & 1 & -1 & 1 & 3 \\
    & a_{41} & a_{42} & a_{43} & a_{44} & a_{45} & a_{46} & 
    1 & -5 & 3 & -3 & 3 & -1 \\
              \hline
              I\mbox{}I & \multicolumn{4}{@{}>{$}c<{$}@{}|}{\begin{array}{ccccc}
                  b_{11} & \multicolumn{1}{|c}{1} & c_{12} & c_{13} & c_{14}\\
                  \cline{2-2}
                  b_{21} & b_{22} & \multicolumn{1}{|c}{1} & c_{23} & c_{24}\\
                  \cline{3-3}
                  b_{31} & b_{32} & b_{33} & \multicolumn{1}{|c}{1} & c_{34}\\
                  \cline{4-4}
                  b_{41} & b_{42} & b_{43} & b_{44} & \multicolumn{1}{|c}{1}\\
              \end{array}} & 
              \begin{array}{c}
                  c_{15}\\
                  c_{25}\\
                  c_{35}\\
                  c_{45}\\
              \end{array} & 
              \begin{array}{c}
                  a_{16}\\
                  a_{26}\\
                  a_{36}\\
                  a_{46}\\
              \end{array} & 
              \multicolumn{4}{@{}>{$}c<{$}@{}|}{\begin{array}{ccccc}
                  3 & \multicolumn{1}{|c}{1} & 0,333333 & -0,333333 &
                  0,666667\\
                  \cline{2-2}
                  -5 & 2,66667 & \multicolumn{1}{|c}{1} & 0,5 & -0,25\\
                  \cline{3-3}
                  2 & -0,666667 & 2 & \multicolumn{1}{|c}{1} & -1,25\\
                  \cline{4-4}
                  1 & -5,333333 & 6 & 2,5 & \multicolumn{1}{|c}{1}\\
              \end{array}} & 
              \begin{array}{c}
                  2\\
                  -0,75\\
                  -1,75\\
                  3\\
              \end{array} & 
              \begin{array}{c}
        3,666667\\
                   0,5\\
        -2\\
        4\\
              \end{array} \\
              \hline
              \multirow{4}{\daic}{I\mbox{}I\mbox{}I} &   &   &   &   & 
              y_1 & x_1 &   &   &   &   & 2 & 1 \\
    &   &   &   &   & y_2 & x_2 &   &   &   &   & -0,75 & -1 \\
    &   &   &   &   & y_3 & x_3 &   &   &   &   & -1,75 & 2 \\
    &   &   &   &   & y_4 & x_4 &   &   &   &   & 3 & 3 \\
              \hline
\end{tabular}
\caption{Bảng lạ với các đường kẻ phức tạp.
    Mã nguồn có thể tải về tại \url{http://viettug.org/wiki/tex/table_ex101}}
\label{tab:phuoc.06}
\end{table}
\end{landscape}
\endinput