KTUGFaq
KTUG FAQ
If you always postpone pleasure you will never have it. Quit work and play for once!
FrontPage › Pictureȯ°æ
[ÆíÁý]
1 picture ȯ°æ ¸¸µé±â ¶
picture ȯ°æÀ» ¸¸µå´Â ¹æ¹ý¿¡µµ µÎ °¡Áö°¡ ÀÖ´Ù. Çϳª´Â ¸·³ëµ¿À¸·Î picture ȯ°æÀ» ¸¸µå´Â ¹æ¹ýÀÌ°í, ¶Ç Çϳª´Â LaTeX picture ȯ°æÀ¸·Î exportÇØÁÖ´Â ±×¸² µµ±¸(LaTeXCad, JPicEdt, LaTeXPix, TpX µî)·Î picture ȯ°æÀ» ¸¸µå´Â ¹æ¹ýÀÌ´Ù. ÈÄÀÚÀÇ ¹æ¹ýÀº ¸ð´« Á¾ÀÌ(±×·¡ÇÁ ¿ëÁö)¿¡ ±×¸²ÀÌ º¸À̵µ·Ï(WysiWygÀ¸·Î) ±×·Á ³õÀ¸¸é ÀÌ°ÍÀ» LaTeXÀÌ ¾Ë ¼ö ÀÖ´Â ¾ð¾î(¸í·É¾î¿Í ȯ°æ)·Î ¹Ù²Ù¾î ÁØ´Ù.
ù¹ø° ¹æ¹ý¿¡ ´ëÇؼ´Â ´ÙÀ½ ¹®ÇåµéÀ» Âü°íÇÒ ¼ö ÀÖ´Ù.
- picture.pdf v1.1 (2007/04/11)
- Leslie Lamport, LaTeX : A Document Preparation System, 2nd Edition, 1994, pp. 119-129, "7.1.1 The picture Environment"
- Helmut Kopka & Patrick W. Daly, A GUIDE TO LaTeX, Third Edition, Addison Wesley, 1999, pp.151-166, "6.1 Drawing pictures with LaTeX"
- lshort¿¡µµ picture ȯ°æÀ» ÀÌ¿ëÇÑ ±×¸² ±×¸®±â°¡ ¼Ò°³µÇ¾î ÀÖ´Ù. lshort-kr
[ÆíÁý]
2.1 unitlength ¶
\unitlength´Â picture ȯ°æÀÇ ±âº» ±æÀÌ ´ÜÀ§°¡ µÈ´Ù. ÀÌ °ªÀº \setlength·Î ¹Ù²Ü ¼ö ÀÖ´Ù.
±âº»°ªÀº 1pt(0.351 mm = 1/72.27 in)ÀÌ´Ù.
[ÆíÁý]
2.2 put ¶
picture ȯ°æ ¾È¿¡¼ ±×¸²À» ±×¸®´Â ¸í·ÉÀÌ´Ù. »ç¿ë Çü½ÄÀº \put(x,y){object}. ¿©±â¼ x, y´Â ±×¸² ȯ°æ ¾ÈÀÇ ÁÂÇ¥°ªÀÌ´Ù.
[ÆíÁý]
2.3 linethickness ¶
\linethickness{±æÀÌ°ª} Çü½ÄÀ¸·Î ¼öÆò¼±°ú ¼öÁ÷¼±ÀÇ ±½±â¸¦ ¹Ù²Ü ¼ö ÀÖ´Ù. ±×·¯³ª ÀÌ ¸í·ÉÀº ´ë°¢¼±ÀÇ ±æÀ̳ª oval ¹Ú½ºÀÇ corner ¼±ÀÇ ±½±â¸¦ ¹Ù²ãÁÖÁö ¾Ê±â ¶§¹®¿¡ µÇµµ·ÏÀÌ¸é »ç¿ëÀ» ¾ïÁ¦ÇÏ°í ±âº»°ªÀ¸·Î ÁÖ¾îÁø \thicklines, \thinlines µÎ °³ÀÇ ±½±â¸¸À» »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ´Ù.
[ÆíÁý]
2.4 picture ȯ°æÀÇ ½ÃÀÛ ¶
\begin{picture}(30,10)
ÀÌ°ÍÀº °¡·Î 30Æ÷ÀÎÆ®, ¼¼·Î 10Æ÷ÀÎÆ® ¹Ú½º¸¦ ±×¸² ¿µ¿ªÀ¸·Î ¼³Á¤ÇÏ´Â ¸í·ÉÀÌ´Ù. ÀÌ ¿µ¿ªÀÇ ÁÂÇϱͰ¡ ÁÂÇ¥ÀÇ ¿øÁ¡ÀÌ µÈ´Ù.
\begin{picture}(20,30)(5,10)¿øÁ¡ÀÇ ÁÂÇ¥´Â Åë»ó (0,0)ÀÌÁö¸¸, À§¿Í °°ÀÌ ¼³Á¤ÇÏ¿© ÀÌ°ÍÀ» ¹Ù²Ü ¼öµµ ÀÖ´Ù.
\end{picture}±×¸² ȯ°æÀÇ ³¡ÀÌ´Ù. picture ȯ°æ Àüü°¡ ÇϳªÀÇ ¹Ú½º¸¦ ÀÌ·é´Ù. ÀÌ ¹Ú½º´Â baselineÀÌ ¹Ú½ºÀÇ ¾Æ·¡¸éÀÌ°í height°¡ ¹Ú½ºÀÇ ¼öÁ÷¸éÀÌ µÈ´Ù. depth´Â 0ÀÌ´Ù.
±×·¯¹Ç·Î ¿¹ÄÁ´ë 10Æ÷ÀÎÆ® ³ôÀÌÀÇ picture ȯ°æ ¹Ú½º¸¦ horizontal mode¿¡¼ ³õÀ¸¸é ±ÛÀÚÀÇ baseline°ú ÀÏÄ¡ÇÏ¿© Á¤·ÄµÈ´Ù. ´Ù¸¥ ±ÛÀÚ¿Í °¡Áö·±ÇÏ°Ô ÇÏ·Á¸é ¹®ÀÚ ¹Ú½ºÀÇ depth¸¸Å ±×¸² ¹Ú½º¸¦ \lower ÇØÁÖ¾î¾ß ÇÒ °ÍÀÌ´Ù.
[ÆíÁý]
2.5 ¼±ºÐ ¶
\begin{picture}(30,10) \put(5,0){\line(2,1){22}} \end{picture}
\put(x,y) ¸í·ÉÀº ¿øÁ¡À» ±âÁØÀ¸·Î (x,y)¿¡ ÇØ´çÇÏ´Â ÁÂÇ¥Á¡¿¡ ÀÎÀÚ¸¦ ³õ´Â´Ù.
\line(m,n){d} ¸í·É¿¡¼ (m,n)Àº ¼±ºÐÀÇ ±â¿ï±â·Î¼ $$\frac{n}{m}$$ÀÇ ±â¿ï±â¸¦ °¡Áö´Â Á÷¼±À» ±×¸°´Ù. d ÀÎÀÚ´Â Á÷¼±ÀÇ ±æÀÌÀÌ´Ù.
°á°ú´Â ´ÙÀ½°ú °°´Ù.
¼±ºÐÀÇ ³¡À» È»ìÇ¥·Î Ç¥ÇöÇÏ·Á¸é \line ´ë½Å \vector¸¦ ¾µ ¼ö ÀÖ´Ù.
\begin{picture}(30,10) \put(5,0){\vector(2,1){22}} \end{picture}
¼±ºÐÀÇ µÎ²²¸¦ ³ªÅ¸³»±â À§ÇØ \thicklines, \thinlines¸¦ Áö½ÃÇÒ ¼ö ÀÖ´Ù.
[ÆíÁý]
2.6 ¹®ÀÚ ¶
picture ȯ°æ ³»¿¡¼ ¹®ÀÚ¸¦ ¾µ ¼öµµ ÀÖ´Ù.
\begin{picture}(40,30) \put(5,6){\vector(2,1){22}} \put(0,0){\tiny ¿©±âºÁ¿ä} \put(16,16){\mbox{\tiny\sffamily KTUG ¸¸¼¼!}} \end{picture}
[ÆíÁý]
2.7 »ç°¢Çü ¶
\framebox(x,y){stuff} \makebox(x,y){stuff} \dashbox{d}(x,y){stuff} or \dashbox(x,y){stuff}
\framebox(x,y)[t]{stuff} Çü½ÄÀ¸·Î ¾µ ¶§ ¿É¼ÇÀÎÀÚ´Â t,b,r,l(°¢°¢ top, bottom, right, left)¸¦ ÁÙ ¼ö ÀÖ´Ù. stuffÀÌ »ç°¢Çü ¾ÈÀÇ ¾î´À À§Ä¡¿¡ ¿À´ÂÁö¸¦ Á¤ÇÏ´Â °ÍÀÌ´Ù.
\dashboxÀÇ Ã¹¹ø° ÀÎÀÚ d´Â dash¼±ÀÇ ±æÀ̸¦ °¡¸®Å²´Ù. ÁÖÁö ¾ÊÀ¸¸é 1\unitlengthÀÌ´Ù.
\setlength{\unitlength}{1cm} \begin{picture}(2.5,1) \thicklines \put(0,0){\framebox(1,1){±½Àº¼±}} \thinlines \put(1.5,0){\framebox(1,1){°¡´Â¼±}} \end{picture}
[ÆíÁý]
2.8 ¿ø ¶
\circle{d}
d´Â ¿øÀÇ Áö¸§ÀÌ´Ù. ¿øÀ» ±×¸± ¶§ »ç¿ëÇÏ´Â ÆùÆ®ÀÇ Á¦¾à ¶§¹®¿¡ Áö¸§ÀÇ °ªÀº 15mm Á¤µµ¸¦ ³ÑÁö ¸øÇÑ´Ù.[1]
\setlength{\unitlength}{1pt} \begin{picture}(30,30) \put(15,15){\circle{2}} \put(15,15){\circle{4}} \put(15,15){\circle{10}} \end{picture}
[ÆíÁý]
2.9 oval ¶Ç´Â ¿øÀÇ ÀϺκР¶
\usepackage{pspicture} % preamble \setlength{\unitlength}{1cm} \begin{picture}(6,4) \linethickness{0.1mm} \thicklines \put(2,4){\oval(6,8)[bl]}%bl=bottom left \put(2,3){\oval(3,1.8)} \thinlines \put(3,2){\oval(3,1.8)} \thicklines \put(2,1){\oval(3,1.8)[tl]} \put(4,1){\oval(3,1.8)[b]} \put(4,3){\oval(3,1.8)[r]} \put(3,1.5){\oval(1.8,0.4)} \end{picture}
·Î ¾²¸é "ÁÂÇ¥ (2,4)¸¦ Áß½ÉÀ¸·Î ÇÏ°í °¡·Î ¹ÝÁö¸§(Ⱦ¹Ý°æ) 6 ´ÜÀ§ ¼¼·Î ¹ÝÁö¸§(Á¾¹Ý°æ) 8 ´ÜÀ§ÀÎ oval(Ÿ¿ø ºñ½ÁÇÑ °Í)À» ±×¸®µ¥ ¹Ø(b)¿¡¼ ¿ÞÂÊ(l)±îÁö¸¸ ±×·Á¶ó"´Â ¶æÀÌ´Ù. ¸¸¾à \oval(6,6)·Î °°Àº ¼öÄ¡¸¦ ¾²¸é ¿ø(¿É¼Ç []À» ³ÖÁö ¾ÊÀ» °æ¿ì)ÀÌ µÈ´Ù.
[t], [b], [l], [r]°ú °°ÀÌ Çϳª¸¸ ¾²¸é ¸ðµÎ ¹Ý¿øÀÌ µÈ´Ù.
[bl], [br], [tl], [tr] µîÀº ¸ðµÎ 4ºÐ¿øÀÌ µÈ´Ù.
[ÆíÁý]
2.10 bezier °î¼± ¶
quadratic bezier °î¼±À» ±×¸°´Ù.
\qbezier(sx,sy)(mx,my)(tx,ty)(sx,sy), (mx,my), (tx,ty)´Â °¢°¢ ½ÃÀÛÁ¡, Áß°£Á¶ÀýÁ¡, ³¡Á¡ÀÇ ÁÂÇ¥ÀÌ´Ù.
´ÙÀ½ ¿¹Á¦´Â http://www.ursoswald.ch/ ¿¡¼ ±¸ÇÒ ¼ö ÀÖ´Â LaTeX Graphics ¹®¼¿¡ µé¾î ÀÖ´Â °ÍÀ¸·Î lshort¿¡µµ Æ÷ÇԵǾî ÀÖ´Ù.
\setlength{\unitlength}{1cm} \begin{picture}(6,4)(-2.5,-1.5) \put(-2.5,0){\vector(1,0){5}} \put(2.7,-0.1){$\chi$} \put(0,-1.5){\vector(0,1){3}} \multiput(-2.5,1)(0.4,0){13} {\line(1,0){0.2}} \multiput(-2.5,-1)(0.4,0){13} {\line(1,0){0.2}} \put(0.2,1.4) {$\beta=v/c=\tanh\chi$} \qbezier(0,0)(0.8853,0.8853)(2,0.9640) \qbezier(0,0)(-0.8853,-0.8853)(-2,-0.9640) \put(-2.5,-1.5){\circle*{0.2}} \end{picture}
Bezier °î¼±ÀÇ Áß°£Á¶ÀýÁ¡ ÁÂÇ¥¸¦ ¾ò´Â java script°¡ http://www.ursoswald.ch/ ¿¡ ÀÖ´Ù.
[ÆíÁý]
2.11 ¿©·¯¹ø µÎ±â(multiput) ¶
\multiput(x,y)(p,q){n}{stuff}
ÀÌ ¸í·ÉÀ» ½ÇÇàÇÑ °á°ú´Â stuffÀ» ÁÂÇ¥ À§Ä¡¿¡ ¿©·¯¹ø ±×¸°´Ù.
\setlength\unitlength{1truecm} \begin{picture}(10,0.7) \put(0,0){\line(1,0){10}} \multiput(0,0)(1,0){11}{\line(0,1){0.7}} \multiput(0,0)(0.5,0){20}{\line(0,1){0.5}} \multiput(0,0)(0.1,0){100}{\line(0,1){0.3}} \end{picture}
[ÆíÁý]
2.12 ¿¹Á¦ ¶
ÀÌ ¿¹Á¦´Â ¿ÀÄí¹«¶ó, ¡¸LaTeX2eÚ¸ÙþßöíÂà÷ìýÚ¦¡¹ÀÇ p.310¿¡ ÀÖ´Â ¿¹ÀÌ´Ù.
\newcommand{\BOOK}{{\normalsize \begin{picture}(19.3,13) \put(1.1,-2){\line(0,1){10}} \put(.5,6.5){$\frown$} \put(.5,-2.5){$\frown$} \put(.5,-3.4){\small$\frown$} \put(9.65,-2){\line(0,1){10}} \put(8.65,-2){\line(1,0){2}} \put(9,6.5){$\frown$} \put(9,-2.5){$\frown$} \put(9.8,-3.4){\small$\frown$} \put(18.2,-2){\line(0,1){10}} \end{picture} }}
[ÆíÁý]
3 epic, eepic ÆÐÅ°Áö ¶
epic, eepic ÆÐÅ°Áö´Â picture ȯ°æÀ» È®ÀåÇÏ¿© LaTeX¿¡ ±âº»ÀûÀ¸·Î Á¤ÀÇµÈ °Íº¸´Ù ´õ ¼¼¹ÐÇÑ ±×¸²À» ±×¸± ¼ö ÀÖ°Ô ÇØÁØ´Ù.
[ÆíÁý]