KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Mind your own business, Spock. I'm sick of your halfbreed interference.
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}
¶Ç multirow ÆÐÅ°Áö¿Í ÇÔ²² ¾²¸é ¿©·¯ Çà¿¡ °ÉÄ£ ¼¿¿¡µµ ¾Æ·¡¿Í °°ÀÌ ´ë°¢¼±À» ³ÖÀ» ¼ö ÀÖ´Ù. ->see KTUGOperate: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}
\makeatletter
\input{multirow.sty}    % preamble
\input{slashbox.sty}    % preamble
\makeatother

\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}

(!) slashbox¸¦ ¾²´Â °æ¿ìÀÇ ÆÁ.
  1. tabcolsepÀº ¾ø¾Ö´Â °ÍÀÌ Ä®·³ÀÇ Å©±â¸¦ Á¤Çϱ⿡ ÁÁ´Ù.
    \renewcommand\tabcolsep{0pt}
    
  2. \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ȯ°æ ÆäÀÌÁö¸¦ Âü°íÇÒ °Í.

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-11-01 16:11:14
Processing time 0.2188 sec