KTUGFaq
KTUG FAQ
Don't be overly suspicious where it's not warranted.
FrontPage › ¶°´Ù´Ï´Â°³Ã¼
Floating Objects. Floats.
[ÆíÁý]
1 ¶°´Ù´Ï´Â °³Ã¼¶õ? ¶
¶°´Ù´Ï´Â °³Ã¼´Â º»¹®ÀÇ È帧À» ¹æÇØÇÏÁö ¾ÊÀ¸¸é¼ Ç¥(Table)¿Í ±×¸²(Figure)À» ¹èÄ¡Çϱâ À§ÇÑ Á¶ÆÇ »óÀÇ µµ±¸ÀÌ´Ù.
Ç¥¿¡ ´ëÇؼ´Â Tableȯ°æÀ», ±×¸²¿¡ ´ëÇؼ´Â Figureȯ°æÀ», ±×¸®°í ³¿ÜÁÖ¿¡ ´ëÇؼ´Â MarginalNote¸¦ º¸¶ó.
[ÆíÁý]
1.1 ¶°´Ù´Ï´Â °³Ã¼¿¡ ´ëÇÑ ¸î °¡Áö ±âº» Áö½Ä ¶
- ¶°´Ù´Ï´Â °³Ã¼´Â ±×¸²À̳ª Ç¥°¡ ³õÀÏ À§Ä¡¸¦ LaTeX¿¡°Ô ¸Ã±â´Â °ÍÀÌ´Ù. ±×·¯¹Ç·Î ÀÚ½ÅÀÌ ¿¹»óÇÏ´ø À§Ä¡¿¡ ±×¸²À̳ª Ç¥°¡ ³õÀÌÁö ¾ÊÀ» ¼ö ÀÖ´Ù.
- ¶°´Ù´Ï´Â °³Ã¼¿Í °ü·ÃµÈ ¸¹Àº ÆĶó¹ÌÅ͸¦ Á¶ÀýÇÏ¸é ±×¸²À̳ª Ç¥°¡ ³õÀÌ´Â À§Ä¡¸¦ ÀÚ½ÅÀÇ Àǵµ¿¡ ¸Â°Ô °³¼±ÇÒ ¼ö ÀÖÁö¸¸, óÀ½»ç¿ëÀÚ¿¡°Ô ÀÌ ¸¹Àº ÆĶó¹ÌÅ͸¦ ¸ðµÎ ÀÌÇØÇÏ°í ÃÖÀû°ªÀ» ¼±ÅÃÇÏ´Â °ÍÀº °ÅÀÇ ºÒ°¡´ÉÇÑ ÀÏÀÌ´Ù. ±×·¯¹Ç·Î,
- ¶°´Ù´Ï´Â °³Ã¼ÀÇ À§Ä¡ ¼±Á¤ÀÌ ¸¶À½¿¡ µéÁö ¾Ê°í ¾î¶»°Ô Çؼµç ±×¸²À̳ª Ç¥ÀÇ À§Ä¡¸¦ ÀÚ½ÅÀÌ Á¦¾îÇÏ°í ½Í´Ù¸é, ¶°´Ù´Ï´Â °³Ã¼¸¦ ¾²Áö ¾Ê¾Æ¾ß ÇÑ´Ù.
- figure¿Í tableÀº ĸ¼ÇÀÇ À̸§À» Figure ¶Ç´Â Table·Î Àû¾îÁÖ°í list of figures¿Í list of tables ¾î´À ÂÊ ¸ñ·Ï¿¡ ¿°ÅÇÒ °ÍÀΰ¡¸¸ °áÁ¤ÇØÁÖ¸ç ³»ºÎÀûÀ¸·Î´Â °ÅÀÇ µ¿ÀÏÇÏ´Ù. Áï, figureµç tableÀÌµç ±×¸²À̳ª Ç¥(tabular)³ª ¾î¶² °ÍÀÌµç ¿Íµµ µÈ´Ù.
- 2´Ü ÆíÁý ½Ã¿¡´Â ¿©·¯ °¡Áö Á¦¾àÀÌ µû¸¥´Ù. ¿¹¸¦ µé¸é ÆäÀÌÁöÀÇ ÇÏ´Ü(b)¿¡ ±×¸²À» ³õÀ» ¼ö ¾ø´Ù. (ÀÌ°ÍÀ» °¡´ÉÇÏ°Ô ÇØÁÖ´Â ÆÐÅ°Áöµµ ¹°·Ð ÀÖ´Ù.)
[ÆíÁý]
1.2 »ç¿ë¹æ¹ý ¶
¶°´Ù´Ï´Â °³Ã¼¸¦ ¾²´Â ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.
\begin{table}[À§Ä¡ÁöÁ¤ÀÚ] % ¶Ç´Â figure %.....¿©±â¿¡ ³»¿ëÀÌ ¿Â´Ù.... \caption{ĸ¼Ç}\label{·¹À̺í} \end{table}
[ÆíÁý]
1.4 ¶°´Ù´Ï´Â °³Ã¼ÀÇ À§Ä¡ ÁöÁ¤ÀÚ ¶
À§Ä¡ÁöÁ¤ÀÚ | °³Ã¼ÀÇ À§Ä¡ |
h | here. |
t | top. ÆäÀÌÁöÀÇ ÀºÎºÐ. |
b | bottom. ÆäÀÌÁöÀÇ ¾Æ·¡ºÎºÐ. |
p | page. ±×¸²°ú Ç¥·Î¸¸ ÀÌ·ç¾îÁø Ưº°ÇÑ ÆäÀÌÁö |
! | float À§Ä¡°ü·Ã ³»ºÎº¯¼ö °ªÀ» ¸ðµÎ ¹«½ÃÇÏ°Ô ÇÔ |
- ¶°´Ù´Ï´Â °³Ã¼ÀÇ À§Ä¡´Â LaTeXÀÌ ½º½º·Î °áÁ¤Çϵµ·Ï ÇÏ´Â °ÍÀÌ °¡Àå ¹Ù¶÷Á÷ÇÏ´Ù.
- [h] À§Ä¡ÁöÁ¤ÀÚ´Â ÀÌ Çϳª¸¸ ¾²ÀÌÁö ¾Ê´Â´Ù. LaTeX¿¡¼ À§Ä¡ÁöÁ¤ÀÚÀÇ ±âº»°ªÀº tbpÀÌ°í, [h]¸¸ ¾²´õ¶óµµ htbpÀÎ °Í°ú µ¿ÀÏÇÏ°Ô µ¿ÀÛÇÑ´Ù. ±×·¯¹Ç·Î, ¾î¶² ±×¸²À̳ª Ç¥¸¦ ±»ÀÌ Æ¯Á¤ À§Ä¡¿¡ ¹Ýµå½Ã À§Ä¡ÇÏ°Ô ÇÏ°í ½Í´Ù¸é, ±× ±×¸²À̳ª Ç¥¸¦ floating ½ÃÅ°Áö ¾Ê¾Æ¾ß ÇÑ´Ù. ±×¸²À̳ª Ç¥¸¦ floating ½ÃÅ°Áö ¾ÊÀ¸·Á¸é Figureȯ°æÀ̳ª Tableȯ°æ ¾È¿¡ ³ÖÀ¸¸é ¾È µÈ´Ù. \caption ¸í·ÉÀº ¿ÀÁ÷ floating ȯ°æ ¾È¿¡¼¸¸ ÀÛµ¿ÇÏÁö¸¸, Ç÷ÎÆýÃÅ°Áö ¾ÊÀº °³Ã¼¿¡ ¸¶Ä¡ ĸ¼ÇÀÌ ÀÖ´Â °Íó·³ ĸ¼ÇÀ» ºÙÀÌ´Â ¹æ¹ýÀÌ ÀÖ´Ù. GFAQ no. 50À» Âü°íÇ϶ó.
[ÆíÁý]
2 ¶°´Ù´Ï´Â °³Ã¼¿¡ °ü·ÃµÈ ¸í·É ¶
- \clearpage ¹× \cleardoublepage
- \suppressfloats
ÇöÀç ÆäÀÌÁö¿¡´Â Ç÷ÎÆ®°¡ À§Ä¡ÇÏÁö ¸øÇϵµ·Ï ÇÑ´Ù.
[ÆíÁý]
3 ¶°´Ù´Ï´Â °³Ã¼¿¡ °ü·ÃµÈ º¯¼ö(parameters) ¶
- topnumber, bottomnumber, totalnumber (counter)
- \topfraction, \bottomfraction ¶Ç´Â \dbltopfraction
- \textfraction
- dbltopnumber (counter)
- \floatpagefraction ¶Ç´Â \dblfloatpagefraction
Àüü ÆäÀÌÁöÀÇ ¾î´À Á¤µµÀÇ ºñÀ²ÀÌ ³ÑÀ¸¸é floatpage¸¦ ¸¸µé °ÍÀΰ¡¸¦ °áÁ¤ÇÏ´Â º¯¼öÀÌ´Ù. Ç¥ÁØ Å¬·¡½º¿¡¼´Â 0.5·Î ¼³Á¤µÇ¾î ÀÖ´Ù. ÀÌ °ªÀ» ¼³Á¤ÇÒ ¶§´Â \topfractionÀÇ °ªÀ» \floatpagefractionº¸´Ù Å©°Ô ÁÖ´Â °ÍÀÌ ¾ÈÀüÇÏ´Ù. ¿¹¸¦ µé¸é,
\renewcommand\topfraction{.88} \renewcommand\floatpagefraction{.75}
- \floatsep, \textfloatsep, \intextsep, \dblfloatsep, \dbltextfloatsep
\floatsep : ÆäÀÌÁö ¸Ó¸®¿¡¼ top À§Ä¡ÀÇ float±îÁö ¼öÁ÷±æÀÌ Ãß°¡ºÐ \textfloatsep : float°¡ top/bottom¿¡ ¿Ã ¶§ ÅؽºÆ®±îÁöÀÇ ¼öÁ÷±æÀÌ Ãß°¡ºÐ \intextsep : float°¡ here¿¡ ¿Ã ¶§ ÅؽºÆ®¿ÍÀÇ ±æÀÌ Ãß°¡ºÐ
- \topfigrule, \botfigrule, \dblfigrule
[ÆíÁý]
5.1 flafter, placeins ¶
flafter ÆÐÅ°Áö´Â ¶°´Ù´Ï´Â °³Ã¼°¡ ¼Ò½º »óÀÇ À§Ä¡º¸´Ù ¾ÕÂÊ(ÀÌÀü)¿¡ ³õÀÌÁö ¾Êµµ·Ï ÇØÁÝ´Ï´Ù.
\usepackage{flafter}placeins ÆÐÅ°Áö´Â ¿¹ÄÁ´ë \section°ú °°Àº ÀåÀý¸í·É ¾ÕÂÊÀ̳ª ÆäÀÌÁö óÀ½¿¡ ¶°´Ù´Ï´Â °³Ã¼°¡ ³õÀÌÁö ¾Êµµ·Ï ¸·¾ÆÁÝ´Ï´Ù. section ¸í·ÉÀ» ±âÁØÀ¸·Î Ç×»ó ±× µÚÂÊ¿¡ ³õÀ̵µ·Ï ÇÏ·Á¸é,
\usepackage[section]{placeins}
[ÆíÁý]
5.2 afterpage ¶
ÀÌ ¼ÒÀý¿¡¼´Â afterpage¸¦ ÀÌ¿ëÇÑ ±â¹ýÀ» ¼Ò°³ÇÕ´Ï´Ù.
\usepackage{afterpage}´ÙÀ½ ÄÚµå´Â, ÆäÀÌÁö°¡ ³ª´©¾îÁö´Â ½ÃÁ¡¿¡ \clearpage¸¦ ½ÇÇàÇÕ´Ï´Ù. \clearpageÀÇ µ¿ÀÛÀº ÇöÀç±îÁö Å¥¿¡ µé¾î ÀÖ´ø floatµéÀ» ¸ðµÎ flushÇÏ´Â °ÍÀÔ´Ï´Ù. µû¶ó¼ ¹Ýµå½Ã ÀÌ ±×¸²ÀÌ ´ÙÀ½ ÆäÀÌÁö°¡ ½ÃÀ۵DZâ Àü¿¡ À§Ä¡ÇÏ°Ô ÇÏ°í ½ÍÀ» ¶§ ¾µ ¼ö ÀÖ½À´Ï´Ù.
\begin{figure} .... \end{figure} \afterpage{\clearpage}
ÁÖÀÇÇÒ °ÍÀº, ÀÌ ÆÐÅ°ÁöÀÇ µ¿ÀÛÀÌ ¿ÏÀüÈ÷ ¾ÈÁ¤ÀûÀÌÁö´Â ¾Ê´Ù´Â °ÍÀÔ´Ï´Ù. ¿øº»¿¡¼ ¶°´Ù´Ï´Â °³Ã¼ÀÇ À§Ä¡°¡ ¸¶Ä§ ÆäÀÌÁö°¡ ³ª´©ÀÌ´Â ¹Ù·Î ±× À§Ä¡¿´´Ù¸é ÀÌ °³Ã¼´Â *À¯½Ç*µË´Ï´Ù. ·Î±×¿¡¼ ¡°ÀÌ°ÍÀº LaTeXÀÇ ¹ö±×ÀÏ ¼ö ÀÖ´Ù¡±´Â ¸Þ½ÃÁö¸¦ ¸¸³ª°Ô µÉ °ÍÀÔ´Ï´Ù. ÀÌ·² °æ¿ì´Â ¼Ò½º¿¡¼ ÇØ´ç ºÎºÐÀÇ À§Ä¡¸¦ Á¶±Ý ¹Ù²Ù¾î º¸´Â ¹æ¹ý¹Û¿¡´Â º°´Ù¸¥ ¼ö°¡ ¾ø½À´Ï´Ù.
¿©·¯ °¡Áö ÀÌÀ¯¿¡¼ ÀÌ ÆÐÅ°ÁöÀÇ ¸í·ÉÀ» ¹ü¿ëÀ¸·Î »ç¿ëÇÏ´Â °ÍÀº ÇÑ°è°¡ ÀÖÀ¸¹Ç·Î ÁÖÀÇÇؼ »ç¿ëÇϽñ⠹ٶø´Ï´Ù.
[ÆíÁý]
6 ¶°´Ù´Ï´Â °³Ã¼¿¡ °ü·ÃµÈ LaTeX ÆÐÅ°Áö ¶
- float ÆÐÅ°Áö
- -
floatflt ÆÐÅ°Áö- (obsolete)
- subfigure ÆÐÅ°Áö, subfig ÆÐÅ°Áö
- subfloat ÆÐÅ°Áö
- -
here ÆÐÅ°Áö-
- afterpage ÆÐÅ°Áö
- morefloats ÆÐÅ°Áö
- endfloat ÆÐÅ°Áö
- placeins ÆÐÅ°Áö
- picinpar ÆÐÅ°Áö
- wrapfig ÆÐÅ°Áö
- -
ccaption ÆÐÅ°Áö- (obsolete)
- hvfloat ÆÐÅ°Áö
- dpfloat ÆÐÅ°Áö
- rotfloat ÆÐÅ°Áö
- floatrow ÆÐÅ°Áö
[ÆíÁý]
7 Q & A ¶
Q. ¿©·¯ °³ÀÇ figure¸¦ ¿¬¼ÓÇؼ ³Ö¾ú´õ´Ï "too many unprocessed floats" ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù.
A. figure, table, maginal note µî floats´Â ÀÏ´Ü queue¿¡ µé¾î°£ ÈÄ flushµÇ´Â ¹æ½ÄÀ¸·Î 󸮵Ǵµ¥, LaTeXÀÌ Ã³¸®ÇÒ ¼ö ÀÖ´Â float queue´Â 18°³¸¦ ³ÑÀ» ¼ö ¾ø½À´Ï´Ù. ±×·¯¹Ç·Î 󸮵ÇÁö ¾ÊÀº float°¡ 18°³¸¦ ³ÑÀ» ¶§ À§¿Í °°Àº ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù. Âü°í. ¿À·ùó¸®. ÀÌ·² ¶§´Â Áß°£Áß°£ Àû´çÇÑ °÷¿¡ \clearpage¸¦ µÎ¾î¼ floatµéÀ» °Á¦·Î flushÇÏ°Ô ÇÏ´Â ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù. ¶Ç, morefloats ÆÐÅ°Áö¸¦ ¾²¸é 36°³±îÁö ÀÌ °ªÀ» Áõ°¡½Ãų ¼ö ÀÖ½À´Ï´Ù.
Q. ¶°´Ù´Ï´Â °³Ã¼¸¦ ¹®´ÜÀÇ ÀϺηΠÆ÷ÇÔÇÏ°í ½Í½À´Ï´Ù.
A. ±×¸²ÀÇ °æ¿ì GFAQ no. 43¿¡ ¹æ¹ýÀÌ ³ª¿Í ÀÖ½À´Ï´Ù. floatflt ÆÐÅ°Áö¸¦ ÀÌ¿ëÇϽʽÿÀ. ±×¸²°ú ÇÑ±Û ¹®´ÜÀÇ °æ¿ì¿¡´Â picins ¶Ç´Â picinpar ÆÐÅ°Áö°¡ Àß µÉ ¶§µµ ÀÖ½À´Ï´Ù. (TeXLive 2008¿¡´Â floatflt¿Í picins°¡ Æ÷ÇԵǾî ÀÖÁö ¾ÊÀ¸¹Ç·Î wrapfig³ª hvfloat, floatrow ÆÐÅ°Áö¸¦ »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.)
Q. table, figure, maginpar ÀÌ¿ÜÀÇ ¶°´Ù´Ï´Â °³Ã¼¸¦ ÀÓÀÇ·Î ¸¸µé ¼ö´Â ¾ø³ª¿ä?
A. algorithm ÆÐÅ°Áö´Â algorithm ±â¼úÀ» À§ÇÑ ÀÓÀÇÀÇ float ȯ°æÀ» ¸¸µé ¼ö ÀÖ°Ô ÇØÁÖ°í ÀÖ½À´Ï´Ù. ÀÌ ±â´ÉÀº float ÆÐÅ°Áö¸¦ ÀÌ¿ëÇÑ °ÍÀÔ´Ï´Ù. ±×·¯¹Ç·Î float ÆÐÅ°Áö¸¦ »ç¿ëÇÏ¸é »õ·Î¿î float¸¦ ¸¸µé ¼ö ÀÖ½À´Ï´Ù. ´ÙÀ½Àº floatÀÇ ½ºÅ¸ÀÏ ÆÐÅ°Áö ¹®¼¿¡ ³ª¿À´Â ¿¹ °¡¿îµ¥ ÇϳªÀÔ´Ï´Ù. ÀÌ ÀÌ¿Ü¿¡µµ ´Ù¾çÇÑ ¼³Á¤À» ÇÒ ¼ö ÀÖÀ¸¹Ç·Î, texdoc float ¸¦ ½ÇÇàÇÏ¿© ÆÐÅ°Áö ¹®¼¸¦ Âü°íÇϽñ⠹ٶø´Ï´Ù.
\floatstyle{ruled} \newfloat{Program}{tbp}{lop}[section] \listof{Program}{List of Programs} \begin{Program} \begin{verbatim} ... program codes ... \end{verbatim} \caption{...caption...} \end{Program}