KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
When the wind is great, bow before it; when the wind is heavy, yield to it.
FrontPage › PSTricks

PostScript ¾ð¾î¸¦ ÀÌ¿ëÇÏ¿© ¼¶¼¼ÇÏ°í º¹ÀâÇÑ ±×¸²À̳ª È¿°ú¸¦ ±¸ÇöÇØÁÖ´Â LaTeX ÆÐÅ°Áö.


¸ñÂ÷

1 ¼Ò°³
2 PSTricks Homepage
3 Eukleides
4 PSTricks¿Í xcolor
5 PSTricksÀÇ PDF output
6 À¯¿ëÇÑ PSTricks µµ¿ò¸»
6.1 LaTeXDraw
6.2 PSTricks¸¦ EPS·Î Á÷Á¢ ÃßÃâÇϱâ

1 ¼Ò°³

PostScript ¾ð¾î¸¦ ÀÌ¿ëÇÏ¿© ¼¶¼¼ÇÏ°í º¹ÀâÇÑ ±×¸²À̳ª È¿°ú¸¦ ±¸ÇöÇØÁÖ´Â ÆÐÅ°Áö. SeminarPackage³ª Prosper¿Í °°Àº ¸ÅÅ©·ÎµéÀº PSTricks¿¡ Å©°Ô ÀÇÁ¸ÇÑ´Ù.
  • <!> pstricks ÆÐÅ°Áö¿Í pstricks-add ÆÐÅ°Áö´Â MiKTeX (2.4 ÀÌÈÄ ¹öÁ¯)¿¡¼­´Â ÇÊ¿äÇÒ ¶§ ÀÚµ¿À¸·Î ¼³Ä¡µÈ´Ù.
  • <!> ÀÌ ÆÐÅ°Áö´Â ¿ÀÁ÷ dvips¸¸À» Áö¿øÇÑ´Ù. ±×·¯¹Ç·Î PSTricks¸¦ ÀÌ¿ëÇÑ ¹®¼­¸¦ PDF·Î ¸¸µé±â À§Çؼ­´Â dvips·Î ¾ò¾îÁø ps ÆÄÀÏÀ» ps2pdf³ª AcrobatDistiller·Î º¯È¯ÇÏ¿©¾ß ÇÑ´Ù. ¶ÇÇÑ ´ëºÎºÐÀÇ dvi viewer·Î´Â dviÆÄÀÏÀ» º¼ ¼ö ¾øÀ¸¸ç, psÆÄÀÏÀ» ¸¸µé°Å³ª PDF·Î ¸¸µé¾î¼­ º¸¾Æ¾ß ÇÑ´Ù.
  • <!> PDFLaTeX ¶Ç´Â DVIPDFm, DVIPDFMx µîÀ¸·Î PDF¸¦ Á¦ÀÛÇÏ·Á¸é PSTricks¸¦ ¾µ ¼ö ¾ø´Ù. ±× ´ë½Å PDFTricks¶ó´Â ÆÐÅ°Áö°¡ ÀÖÀ¸³ª »ç¿ë¹ýÀÌ ¾ÆÁÖ Æí¸®ÇÏÁö¸¸Àº ¾ÊÀ» »Ó ¾Æ´Ï¶ó, °á±¹ dvips·Î PSTricks¸¦ ÀÌ¿ëÇÑ ±×¸²À» pdflatexÀÌ ÀÌÇØÇÒ ¼ö ÀÖ´Â pdf Á¶°¢±×¸²À¸·Î ¸ÕÀú ¸¸µé¾îµÎ°í pdflatexÀ» ½ÇÇàÇϵµ·Ï ÇÏ´Â °úÁ¤À» ÀÚµ¿È­ÇÑ °Í¿¡ ºÒ°úÇϹǷΠPDFTricks°¡ PSTricks¸¦ ´ëüÇÑ °ÍÀº ¾Æ´Ï´Ù.
  • <!> ÇÏÁö¸¸ PSTricks#s-6.1¿¡¼­ Á¦½ÃÇÏ´Â ¹æ¹ý´ë·Î PSTricks·Î ±×·ÁÁø ±×¸²À» EPS·Î º¯È¯ÇÑ µÚ PDF ±×¸²À¸·Î ¹Ù²Ù¾î TeX ÆÄÀÏ¿¡ »ðÀÔÇϸé, PDFLaTeX ¶Ç´Â DVIPDFm, DVIPDFMx µîÀ» ÀÌ¿ëÇÏ¿© PDF ¹®¼­¸¦ Á¦ÀÛÇÒ ¼ö ÀÖ´Ù.

2 PSTricks Homepage

http://tug.org/PSTricks/main.cgi/ ¿¡ °¡¸é »ç¿ë¹ý°ú »ç¿ë ¿¹¿¡ °üÇÑ ¸¹Àº Á¤º¸°¡ ÀÖ´Ù.

3 Eukleides

Eukleides¶ó´Â ÇÁ·Î±×·¥Àº PSTricks¸¦ ÀÌ¿ëÇÏ¿© À¯Å¬¸®µå ±âÇÏÇÐÀÇ ±×¸²µéÀ» ¾òÀ» ¼ö ÀÖ°Ô ÇÑ´Ù.

4 PSTricks¿Í xcolor

Á¾·¡ PSTricks´Â color ±¸ÇöÀ» À§ÇØ pstcol.sty¸¦ »ç¿ëÇÏ¿´´Ù. ±×·¯³ª ÃÖ±Ù ÀÌ ÆÐÅ°Áö¸¦ ´õÀÌ»ó »ç¿ëÇÏÁö ¾Êµµ·Ï pstricks.sty°¡ °³¼±µÇ¾ú´Ù. ±×·¯¹Ç·Î ÀÌÀü¿¡ ÀÛ¼ºµÈ ¼Ò½º¸¦ ÄÄÆÄÀÏÇÒ ¶§´Â \usepackage{pstcol}ÀÌ ÀÖÀ¸¸é ÀÌ°ÍÀ» Á¦¿ÜÇÏ°í \usepackage{pstricks}·Î ´ëüÇÏ¿©¾ß ÇÑ´Ù.

5 PSTricksÀÇ PDF output

6 À¯¿ëÇÑ PSTricks µµ¿ò¸»

6.2 PSTricks¸¦ EPS·Î Á÷Á¢ ÃßÃâÇϱâ

PSTricksÄڵ带 EPS·Î ÃßÃâÇÒ ¼ö ÀÖÀ¸¸é º»¹®¿¡ ±ä PSTricks Äڵ带 ³ÖÁö ¾Ê¾Æµµ µÈ´Ù. ¶ÇÇÑ dvipdfm(x)³ª pdflatex (¹°·Ð epstopdf¸¦ »ç¿ëÇؼ­ º¯È¯ÇÑ ÈÄ)¸¦ »ç¿ëÇÏ¿© PDF ÆÄÀÏÀ» ¸¸µé ¼ö ÀÖ´Ù.

PSTricks ÆÐÅ°Áö³»¿¡ ÀÖ´Â `pst-eps.sty'À» ÀÌ¿ëÇÏ¸é ¿øº» Äڵ忡¼­ Á÷Á¢ EPS¸¦ ÃßÃâÇÒ ¼ö ÀÖ´Ù. ÀÌÈ£Àç´ÔÀÌ ¸¸µç ¾Æ·¡ÀÇ ¿¹Á¦ ÆÄÀÏÀ» imsi.texÀ̶ó°í ÇÏÀÚ.
  \documentclass{article}

  \usepackage{pstricks,pst-eps}

  \newcommand{\nopark}{\psdiabox{\sffamily No Parking}}
  \newcommand{\yespark}{\psdiabox{\sffamily Yes Parking}}

  \begin{document}
    \begin{TeXtoEPS}         % ÀÌ È¯°æ³»¿¡ ÀÖ´Â ³»¿ëÀÌ EPS·Î ÃßÃâµÈ´Ù.
      \nopark
    \end{TeXtoEPS}
  \end{document}
 
ÄÄÆÄÀÏÇÒ¶§ dvips¿¡ EPS·Î ¸¸µé °Å¶ó´Â ¿É¼Ç (-E)¸¦ Áà¾ß ÇÑ´Ù. Áï, ¸í·ÉÇà¿¡¼­

#> dvips -P outline -G0 -E -o imsi.eps imsi.dvi 

¿Í °°ÀÌ ÄÄÆÄÀÏÇϸé imsi.eps°¡ »ý¼ºµÈ´Ù. (-P outline ȤÀº -P pdf´Â Type1 ÆùÆ®¸¦ »ç¿ëÇ϶ó´Â ¿É¼ÇÀÌ´Ù)

¿©·¯ PSTricks ±×¸²À» °¢°¢ÀÇ EPS ÆÄÀϷεµ ÃßÃâÀÌ °¡´ÉÇÏ´Ù. À§ÀÇ ¿¹Á¦¸¦
  \begin{document}

    \begin{TeXtoEPS}         % ÀÌ È¯°æ³»¿¡ ÀÖ´Â ³»¿ëÀÌ EPS·Î ÃßÃâµÈ´Ù.
      \nopark
    \end{TeXtoEPS}

   \begin{TeXtoEPS}          % ÀÌ È¯°æ³»¿¡ ÀÖ´Â ³»¿ëÀÌ EPS·Î ÃßÃâµÈ´Ù.
      \yespark
    \end{TeXtoEPS}

  \end{document}
 
·Î °íÄ¡°í dvips¿¡ -i ¿É¼ÇÀ» ´õÇØÁÖ¸é µÈ´Ù. Áï, ¸í·ÉÇà¿¡¼­

#> dvips -P outline -G0 -E -i -o imsi.eps imsi.dvi 

¿Í °°ÀÌ ÄÄÆÄÀÏÇϸé imsi.001¿Í imsi.002¶õ µÎ°³ÀÇ EPS ÆÄÀÏÀÌ »ý¼ºµÈ´Ù.



^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-05-28 00:36:45
Processing time 0.0457 sec