KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You will be surprised by a loud noise.
FrontPagefpTeXKTSWorkshop › PSTricks/pst-pdf
PDF / PSTricksÀ» ÀÌ¿ëÇÏ¿© PDF¸¦ ¾ò±â À§ÇÑ pst-pdf ÆÐÅ°Áö

pst-pdf ´Â PostScript Äڵ带 PDF·Î Ãâ·ÂÇÒ ¼ö ÀÖ°Ô ÇØÁÖ´Â LaTeX ÆÐÅ°ÁöÀÌ´Ù. PSTricks¸¦ »ç¿ëÇÏ´Â ¹®¼­¸¦ pdfLateXÀ¸·Î ÄÄÆÄÀÏÇÏ¿© ±×·¡ÇÈÀÌ Æ÷ÇÔµÈ PDF ¹®¼­¸¦ ¾òÀ» ¼ö ÀÖ°Ô ÇØ ÁØ´Ù.


¸ñÂ÷

1 ¼Ò°³
2 »ç¿ë¹ý
3 ¿¹Á¦

1 ¼Ò°³

PSTricks ¸ÅÅ©·ÎµéÀº pdfTeX°ú ÇÔ²² »ç¿ëµÉ ¼ö ¾ø´Ù. pstricks°¡ »ç¿ëÇÏ´Â PostScript Äڵ尡 PDFÀÇ ÀϺΰ¡ ¾Æ´Ï±â ¶§¹®ÀÌ´Ù. ÀÌ·± ÇѰ踦 ÇØ°áÇϱâ À§ÇÑ ¹æ¹ýÀ» Á¦°øÇÏ´Â °Í ÁßÀÇ Çϳª°¡ pst-pdf ÆÐÅ°ÁöÀÌ´Ù.

pst-pdf ÆÐÅ°Áö´Â PSTricks¸¦ ºñ¸©ÇÑ ¿©Å¸ PostScript ÄÚµå·ÎµÈ ±×·¡ÇÈÀ» PDF ¹®¼­¿¡¼­ ¼Õ½±°Ô »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇØ ÁØ´Ù. BibTeXÀ¸·Î Âü°í¹®ÇåÀ» ¸¸µé ¶§ ¿ÜºÎ ÇÁ·Î±×·¥ (bibtex)¸¦ È£ÃâÇÏ´Â ¹æ½Ä°ú °°´Ù°í ÀÌÇØÇÒ ¼ö ÀÖ´Ù.

2 »ç¿ë¹ý

»ç¿ë¹ýÀº ¾ÆÁÖ °£´ÜÇÏ´Ù.

1. ¹®¼­ÀÛ¼º:

PSTricks¸¦ »ç¿ëÇÑ ¹®¼­ÀÇ preamble¿¡¼­ pst-pdf ÆÐÅ°Áö¸¦ Ãß°¡·Î ·ÎµåÇÑ´Ù.
\usepackage{pst-pdf}

2. ÄÄÆÄÀÏ: ps4pdf ÀÌ¿ë

ÀÛ¼ºÇÑ ¹®¼­ÀÇ À̸§ÀÌ document.tex À̶ó¸é ´ÙÀ½°ú °°ÀÌ ¼¿ ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇÏ¿© ÄÄÆÄÀÏÇÏ¸é µÈ´Ù.
$ ps4pdf document.tex

¼¿ ½ºÅ©¸³Æ® ps4pdf °¡ ¾ø´Ù¸é ´ÙÀ½°ú °°ÀÌ ¼ø¼­´ë·Î ½ÇÇà½ÃŲ´Ù.
$ latex document.tex
$ dvips -Ppdf -o document-pics.ps document.dvi
$ ps2pdf -dAutoRotatePages=/None document-pics.ps
$ pdflatex document.tex

3 ¿¹Á¦

´ÙÀ½ ¿¹Á¦ ÆÄÀÏÀº [http]PSTricks ȨÆäÀÌÁö¿¡¼­ Á¦°øÇÏ´Â [http]pst-treeÀÇ ¿¹ Áß¿¡¼­ Çϳª¸¦ ÀÌ¿ëÇÑ °ÍÀÌ´Ù. preamble¿¡¼­ pst-pdf ¸¦ ·ÎµåÇÏ´Â ¶óÀθ¸ Ãß°¡ÇÏ¸é µÈ´Ù.

% pst-pdf-simple-test.tex
\documentclass{article} % voss_at_pstricks.de (2004-06-03)

\usepackage{pst-pdf}%<---- HERE!!!
\usepackage{pst-tree}

\begin{document}

\pstree{\Tcircle{P}}{%
  \Tdot~[tnpos=l]{\shortstack{Do\\Nothing}}
  \Tdot~[tnpos=r]{\kern1em\shortstack{Sue\\No Offer\\Pursue Suit}}
  \Tdot~[tnpos=r]{\shortstack{Sue\\No Offer\\Drop Suit}}
  \pstree{\Tcircle{D}_{\shortstack{Sue\\Offer\\Settlement}} }{%
    \pstree{\Tcircle{P}^{Reject}}{%
      \Tdot^{Pursue}
      \Tdot_{Drop Suit}}
    \Tdot_{Accept}
  }
}

\end{document}



^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-01-09 04:07:16
Processing time 0.0355 sec