
KTUG FAQ
FrontPage › SlashBoxPackage
'slashbox ÆÐŰÁö´Â TeXLive¿¡¼ Á¦¿ÜµÇ¾î ÀÖÀ¸¹Ç·Î ¼³Ä¡µÇÁö ¾Ê½À´Ï´Ù. DiagBoxPackage¸¦ Âü°íÇϽñ⠹ٶø´Ï´Ù.
\usepackage{slashbox} % preamble \begin{tabular}{c|c|c|c|c||c} \hline \backslashbox{$i$}{$j$} & 4 & 5 & 6 & 7 & \makebox[3em]{$v_i$} \\ \hline 1 & \slashbox{$*$}{6} & \slashbox{7}{7} & \slashbox{$*$}{3} & \slashbox{5}{7} & 0 \\ \hline 2 & \slashbox{$-1$}{8} & \slashbox{$*$}{3} & \slashbox{$*$}{6} & \slashbox{$*$}{5} & $-3$ \\ \hline 3 & \slashbox{$-5$}{5} & \slashbox{0}{4} & \slashbox{$-2$}{5} & \slashbox{$*$}{6} & $-4$ \\ \hline \hline &&&&& \\[-1ex] $v_j$ & 6 & 0 & 3 & 2 & \\[-1ex] &&&&& \\ \hline \end{tabular}
![\makeatletter
\input{slashbox.sty} % preamble
\makeatother
\begin{tabular}{c|c|c|c|c||c}
\hline
\backslashbox{$i$}{$j$} & 4 & 5 & 6 & 7 & \makebox[3em]{$v_i$} \\ \hline
1 & \slashbox{$*$}{6} & \slashbox{7}{7} & \slashbox{$*$}{3} & \slashbox{5}{7} & 0 \\ \hline
2 & \slashbox{$-1$}{8} & \slashbox{$*$}{3} & \slashbox{$*$}{6} & \slashbox{$*$}{5} & $-3$ \\ \hline
3 & \slashbox{$-5$}{5} & \slashbox{0}{4} & \slashbox{$-2$}{5} & \slashbox{$*$}{6} & $-4$ \\ \hline
\hline
&&&&& \\[-1ex]
$v_j$ & 6 & 0 & 3 & 2 & \\[-1ex]
&&&&& \\ \hline
\end{tabular}
\makeatletter
\input{slashbox.sty} % preamble
\makeatother
\begin{tabular}{c|c|c|c|c||c}
\hline
\backslashbox{$i$}{$j$} & 4 & 5 & 6 & 7 & \makebox[3em]{$v_i$} \\ \hline
1 & \slashbox{$*$}{6} & \slashbox{7}{7} & \slashbox{$*$}{3} & \slashbox{5}{7} & 0 \\ \hline
2 & \slashbox{$-1$}{8} & \slashbox{$*$}{3} & \slashbox{$*$}{6} & \slashbox{$*$}{5} & $-3$ \\ \hline
3 & \slashbox{$-5$}{5} & \slashbox{0}{4} & \slashbox{$-2$}{5} & \slashbox{$*$}{6} & $-4$ \\ \hline
\hline
&&&&& \\[-1ex]
$v_j$ & 6 & 0 & 3 & 2 & \\[-1ex]
&&&&& \\ \hline
\end{tabular}](/wiki/_cache/latex/c1/c14dcb6e552fa7bffbea35b5d85875ef.png)
¶Ç multirow ÆÐŰÁö¿Í ÇÔ²² ¾²¸é ¿©·¯ Çà¿¡ °ÉÄ£ ¼¿¿¡µµ ¾Æ·¡¿Í °°ÀÌ ´ë°¢¼±À» ³ÖÀ» ¼ö ÀÖ´Ù. ->see
5740

\usepackage{multirow} % preamble \usepackage{slashbox} % preamble \begin{tabular}{|l|l|l|l|}\hline \multirow{2}{1.3cm}{\backslashbox{a}{a}} & b & c & d\\\cline{2-4} & e & f & g \\\hline h & i & j & k\\\hline l & m & n & o\\\hline \end{tabular}


- tabcolsepÀº ¾ø¾Ö´Â °ÍÀÌ Ä®·³ÀÇ Å©±â¸¦ Á¤Çϱ⿡ ÁÁ´Ù.
\renewcommand\tabcolsep{0pt}
- \backslashbox µîÀÇ ¸í·É¿¡ ¿É¼Ç ÀÎÀÚ·Î ±æÀ̸¦ ÁöÁ¤ÇÑ´Ù. ¾ÈŸ±õ°Ôµµ ÀÌ ¼³Á¤ÀÌ ¾ÆÁÖ È¿°úÀûÀ¸·Î ÀÛµ¿ÇÏ´Â °ÍÀº ¾Æ´ÏÁö¸¸,[1] ±âº» ¼³Á¤À¸·Î ¸¸µé¾îÁö´Â Ä®·³ÀÇ ÆøÀÌ ³Ê¹« ³Ð°Å³ª Á¼¾Æ¼ ºÒ¸¸ÀÎ °æ¿ì (½ÃÇàÂø¿À¸¦ °ÅÃļ¶óµµ) ¸ð¾çÀ» Á¶ÀýÇØº¼ ¼ö ÀÖ´Ù.
´ÙÀ½ ¼¼ °¡Áö ¿¹¸¦ ºñ±³Çغ¼ °Í.
\setlength{\fboxsep}{0pt}\setlength{\tabcolsep}{0pt}\fbox{\slashbox{a}{b}} \setlength\fboxsep{0pt}\setlength\tabcolsep{0pt}\fbox{\backslashbox[4em]{½ÇÁ¦}{¿¹Ãø}} \setlength\fboxsep{0pt}\setlength\tabcolsep{0pt}\fbox{\backslashbox[6em]{½ÇÁ¦}{¿¹Ãø}}
----
- [1] ±× ÀÌÀ¯´Â LaTeX¿¡¼ ±×¸± ¼ö ÀÖ´Â »ç¼±ÀÇ °¢µµ°¡ Á¤ÇØÁ® Àֱ⠶§¹®ÀÌ´Ù. ÀÌ¿¡ ´ëÇØ¼´Â Pictureȯ°æ ÆäÀÌÁö¸¦ Âü°íÇÒ °Í.