KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You have literary talent that you should take pains to develop.
FrontPage › graphicx
graphicx

LaTeX ¹®¼­¿¡ ´Ù¾çÇÑ Á¾·ùÀÇ ±×·¡ÇÈ ÆÄÀÏÀ» Á÷Á¢ Æ÷ÇÔ½Ãų ¼ö ÀÖµµ·Ï ÇØ ÁÖ´Â ÆÐÅ°ÁöÀÌ´Ù. LaTeXÀÇ ±×·¡ÇÈ ±â´ÉÀº color, graphics, graphicx ÆÐÅ°Áö¿¡ ÀÇÇØ Á¦°øµÈ´Ù.

ÂüÁ¶: ---

¸ñÂ÷

1 °£´ÜÇÑ »ç¿ë¹ý
1.1 Preamble¿¡
1.2 \includegraphics ¸í·É
1.3 eps ÆÄÀÏ ¸¸µé±â
1.4 figure ȯ°æ¿¡ ³Ö±â
2 graphics ÆÐÅ°ÁöÀÇ ¿É¼Ç
3 \includegraphics ¸í·ÉÀÇ ¿É¼Ç
4 Âü°íÀÚ·á

1 °£´ÜÇÑ »ç¿ë¹ý

1.1 Preamble¿¡


ÀÌ ÆÐÅ°Áö¸¦ »ç¿ëÇÏ·Á¸é preamble¿¡¼­ ÆÐÅ°Áö¸¦ ·ÎµåÇØ¾ß ÇÑ´Ù.
\usepackage{graphicx}

ÀÌ ÆÐÅ°Áö´Â ±âº»ÀûÀ¸·Î ÀåÄ¡ ÀÇÁ¸Àû ±×·¡ÇÈ(device-dependent graphics)À» ó¸®Çϱâ À§ÇÑ °ÍÀ̱⠶§¹®¿¡ ¾î¶² °á°ú¹°À» ¸¸µé °ÍÀ̳Ŀ¡ µû¶ó ÀûÀýÇÑ ¿É¼ÇÀ» »ç¿ëÇØ¾ß ÇÑ´Ù.

ÀÏ´Ü ±âº»ÀûÀÎ »óȲÀ¸·Î ¿ÜºÎ ±×·¡ÇÈ ÆÄÀÏÀº EPS ÀÌ°í dvips·Î ÄÄÆÄÀÏÇÒ °ÍÀ̶ó¸é Ưº°È÷ ½Å°æ¾²Áö ¾Ê¾Æµµ µÈ´Ù.

1.2 \includegraphics ¸í·É


¿ÜºÎ ±×·¡ÇÈ ÆÄÀÏ LaTeX ¹®¼­¿¡ ³ÖÀ¸·Á¸é º»¹®¿¡¼­ ¿øÇÏ´Â À§Ä¡¿¡¼­ \includegraphics ¸í·ÉÀ» »ç¿ëÇÑ´Ù. ¿¹¸¦µé¾î, file.eps¶ó´Â ÆÄÀÏÀ» Áý¾î³Ö°í ½ÍÀ¸¸é:
\includegraphics{file.eps}

ÀÌ ¸í·Éµµ ¿É¼ÇÀ» ÅëÇØ ±×¸²ÀÇ Å©±â, ȸÀü, Àß¶ó³»±â µî ¿©·¯°¡Áö ¼³Á¤À» ÇÒ ¼ö ÀÖ´Ù. ¾Æ¹« ¿É¼Çµµ ¾øÀÌ ¸í·ÉÀ» »ç¿ëÇÏ¸é ¿ø·¡ Å©±â ±×´ë·Î ¿ÂÀüÈ÷ ³ªÅ¸³­´Ù.

1.3 eps ÆÄÀÏ ¸¸µé±â


ÀÌ·¸°Ô °£´ÜÇÏ°Ô »ç¿ëÇÏ·Á¸é EPS ÆÄÀÏÀÌ ÀÖ¾î¾ß ÇÑ´Ù. eps ÆÄÀÏÀ» ¸¸µå´Â ¹æ¹ýÀº

(./) ps2eps: PS2Eps ÇÁ·Î±×·¥À» ÀÌ¿ëÇϸé ps ÆÄÀÏÀ» eps ·Î º¯È¯ÇÒ ¼ö ÀÖ´Ù. ´ÙÀ½Ã³·³ ¸í·ÉÀ» ³»¸®¸é file.eps°¡ ¸¸µé¾îÁø´Ù.
$ ps2eps file.ps

(./) convert: ImageMagickÀÇ convert ÇÁ·Î±×·¥À» ÀÌ¿ëÇϸé png, jpg µîÀÇ ºñÆ®¸Ê À̹ÌÁö ÆÄÀÏÀ» eps·Î º¯È¯ÇÒ ¼ö ÀÖ´Ù. file.png ÆÄÀÏÀÌ ÀÖ´Ù¸é ´ÙÀ½ ¸í·ÉÀ¸·Î file.eps ÆÄÀÏÀ» ¸¸µé ¼ö ÀÖ´Ù.
$ convert file.png file.eps

(./) gnuplot: GNUPlot¸¦ ÀÌ¿ëÇÏ¸é µ¥ÀÌÅͳª ÇÔ¼ö¿¡ µû¸¥ ´Ù¾çÇÑ 2D/3D ±×·¡ÇÁ¸¦ eps·Î ¸¸µé ¼ö ÀÖ´Ù. terminalÀ» epslatex·Î ÁöÁ¤ÇÏ¸é µÈ´Ù.

(./) dot: GraphVizÀÇ dot, neato µîÀ» ÀÌ¿ëÇÏ¸é ´Ù¾çÇÑ ±×·¡ÇÁ(´ÙÀ̾î±×·¥)À» ±×¸± ¼ö ÀÖ°í ps ÆÄÀÏ·Î Ãâ·ÂÇÒ ¼ö ÀÖ´Ù.

(./) xfig: XFigÀ» ÀÌ¿ëÇϸé eps ÆÄÀÏÀ» ÆíÁýÇÒ ¼ö ÀÖ°í, µå·ÎÀ×ÇÑ °á°ú¸¦ eps·Î ³»º¸³»±âµµ ÇÒ ¼ö ÀÖ´Ù.

1.4 figure ȯ°æ¿¡ ³Ö±â


±×³É \includegraphics·Î¸¸ ±×¸²À» ³Ö¾îÁÖ¸é ¸í·ÉÀ» ¾´ ÀÚ¸®¿¡ µé¾î°£´Ù. ÀÌ ±×¸²À» À§Ä¡µµ Á¶ÀýÇÏ°í ĸ¼Çµµ ´Þ°í ·¹ÀÌºíµµ ´Þ°í ÇÏ·Á¸é figure ȯ°æ¿¡ ³Ö¾îÁÖ¸é µÈ´Ù.
\begin{figure}[ht]
  \includegraphics{file.eps}
  \caption{¿©±â¿¡ ±×¸² ¼³¸í}
  \label{fig2}
\end{figure}

figure ȯ°æ µî°ú °ü·ÃÇؼ­´Â ¶°´Ù´Ï´Â°³Ã¼, ĸ¼Ç¿¡ ´ëÇؼ­´Â CaptionOfFloats, label°ú °ü·ÃÇؼ­´Â »óÈ£ÂüÁ¶ ÆäÀÌÁö¿¡¼­ »ó¼¼ÇÑ Á¤º¸¸¦ ¾òÀ» ¼ö ÀÖ´Ù.




2 graphics ÆÐÅ°ÁöÀÇ ¿É¼Ç


3 \includegraphics ¸í·ÉÀÇ ¿É¼Ç


  • bb (Bounding Bbox) : °ø¹éÀ¸·Î ºÐ¸®µÈ 4°³ÀÇ ¼ýÀÚ¸¦ ÁöÁ¤.
  • bblx,bblly,bburx,bbury : bounding boxÀÇ °¢ °ªÀ» °³º°ÀûÀ¸·Î ÁöÁ¤
  • natwidth,natheight : bounding boxÀÇ ´Ù¸¥ ¹æ¹ý. natheight=h,natwidth=w ¶ó°í ÁöÁ¤Çϸé bb = 0 0 h w ¿Í °°Àº ÀǹÌ
  • hiresbb : true ¶Ç´Â false.
  • viewport : ¼ýÀÚ 4°³.
  • trim : ¼ýÀÚ 4°³. Àß¶ó³¾ ±æÀ̸¦ ÁöÁ¤. trim = 1 2 3 4 ÀÌ¸é ¿ÞÂÊ¿¡¼­ 1bp, ¾Æ·¡ÂÊ¿¡¼­ 2bp, ¿À¸¥ÂÊ¿¡¼­ 3bp, À§¿¡¼­ 4bp À߶ó³¿.
  • angle : ȸÀü°¢
  • origin : ȸÀüÀÇ Áß½É
  • width : Æø
  • height : ³ôÀÌ
  • totalheight : Àüü ³ôÀÌ (height + depth)
  • keepaspectratio: °¡·Î¼¼·Î ºñÀ² À¯Áö
  • scale : È®´ë/Ãà¼Ò. scale=.5 À̸é 50%·Î Ãà¼Ò.
  • clip : true ¶Ç´Â false.
  • draft : treu ¶Ç´Â false.
  • type : ±×·¡ÇÈ Å¸ÀÔÀ» ÁöÁ¤.
  • ext : ÆÄÀÏ È®ÀåÀÚ ÁöÁ¤.
  • read : ÆÄÀÏ È®ÀåÀÚ ÁöÁ¤. type°ú ÇÔ²² »ç¿ëÇØ¾ß ÇÔ.
  • command : ÆÄÀÏ¿¡ Àû¿ëÇÒ ¸í·É. type °ú ÇÔ²² »ç¿ëÇØ¾ß ÇÔ.

¿¹:
\includegraphics[scale=.5,angle=-60]{file.eps}


4 Âü°íÀÚ·á

  1. D. P. Carlisle. Packages in the `graphics' bundle. 2005/11/14.
  2. D. P. Carlisle and S. P. Q. Rahtz. The graphicx package. 1999/02/16.


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-04-19 19:46:57
Processing time 0.0438 sec