KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You are farsighted, a good planner, an ardent lover, and a faithful friend.
FrontPage › PDFTricks

PSTricks Äڵ带 Æ÷ÇÔÇÑ TeX ¿øº»ÆÄÀÏ¿¡¼­ PDF¸¦ ¾ò±â À§ÇÏ¿© »ç¿ëÇÏ´Â Macro Wrap ÆÐÅ°Áö.

±âº»ÀûÀÎ ¾ÆÀ̵ð¾î´Â PSTricks Äڵ忡 ÇØ´çÇÏ´Â ºÎºÐÀ» µ¶¸³ÀûÀÎ TeX ÆÄÀÏ·Î ¾²°í, ÀÌ°ÍÀ» pst2pdf ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇÏ¿© EPS·Î º¯È¯½ÃŲ ´ÙÀ½ ±×°ÍÀ» PDF·Î ¹Ù²Ù¾î¼­ ºÒ·¯¿À´Â ¹æ½ÄÀε¥, ÀÌ ¹ø°Å·Î¿î °úÁ¤À» Á»´õ °£´ÜÇÏ°Ô ÇØÁÖ´Â ÀåÁ¡ÀÌ ÀÖ´Ù.


¸ñÂ÷

1 »ç¿ë¹æ¹ý
1.1 pdftricks¸¦ ÀÌ¿ëÇÏ¿© pstricks¸¦ dvipdfmx¿¡ ³Ö±â
1.2 pdftricks/pdfmtricks
1.3 pdflatex ¿¡¼­ »ç¿ëÇϱâ

1 »ç¿ë¹æ¹ý

0. ¿ä±¸»çÇ×. PDFTricks¸¦ »ç¿ëÇÏ·Á¸é ´ÙÀ½°ú °°Àº Á¶°ÇÀÌ °®Ãß¾îÁ®¾ß ÇÑ´Ù.
  • Unix Shell Script¸¦ ½ÇÇàÇÒ ¼ö ÀÖÀ» °Í.
  • epstopdf¸¦ ½ÇÇàÇÒ ¼ö ÀÖÀ» °Í.
  • graphicx¿Í keyval ÆÐÅ°Áö¸¦ ·ÎµåÇÒ ¼ö ÀÖÀ» °Í.
  • Web2C TeXImplementationÀÏ °Í.

1. Preamble¿¡¼­ ÆÐÅ°Áö¸¦ ·ÎµåÇÏ°í PSTricksÀÇ ÁÖ¿äÇÑ ÆÐÅ°Áö¸¦ psinputs ȯ°æ¿¡¼­ ÁöÁ¤ÇÑ´Ù.
\usepackage{pdftricks}
\begin{psinputs}
 \usepackage{txfonts}
 \usepackage{pstricks}
 \usepackage{color}
 \usepackage{pstcol}
 \usepackage{pst-plot}
 \usepackage{pst-tree}
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{pst-node}
 \usepackage{pst-eps}
\end{psinputs} 

2. PSTricks ºÎºÐÀ» ÀûÀýÇÑ È¯°æÀ¸·Î °¨½Ñ´Ù. PDFTricks°¡ Á¦°øÇϴ ȯ°æÀº pdfpic°¡ ÀÖ´Ù. ȯ°æÀ» ½ÃÀÛÇϱâ Àü¿¡ \configure ¸í·ÉÀ¸·Î Æ÷Ç﵃ ±×¸²¿¡ ¸î °¡Áö ¿É¼ÇÀ» ÁÙ ¼ö ÀÖ´Ù.
\configure[pdfgraphic][color=red,rulesep=12pt,
                       linecolor=gray30,
                      linewidth=2pt]
\begin{pdfpic}
\definecolor{lightblue}{rgb}{0,0,.5}
\definecolor{Navy}{rgb}{0,0,0.5}
\definecolor{LemonChiffon}{rgb}{1,0.98,0.8}
\definecolor{ForestGreen}{rgb}{0.13,0.55,0.13}
\def\transl#1#2{#1\space 72 2.54 div mul #2\space 72 2.54 div
     mul translate  0 0 moveto }
\newif\ifnotbothz
 \pspicture(-6,-6)(6,6)
 \psaxes{<->}(0,0)(-6,-6)(6,6)
 \multido{\n=-5+1}{11}{%
 \multido{\N=-5+1}{11}{%
 \notbothztrue%
 \ifnum\N=0 %
 \ifnum\n=0 \notbothzfalse\fi%
 \fi%
 \ifnotbothz%
 \psdot(0,0)%
 \pstverb{\transl{\n}{\N}\space
 \n\space neg \N\space
    atan rotate -9 0 moveto 18 0 rlineto stroke }
\fi}}
\endpspicture                      
\end{pdfpic} 

3. PDFLaTeXÀ» ½ÇÇàÇÑ´Ù. ÀÌ ¶§, shell escape ¸ðµå·Î ½ÇÇàÇÏ¿©¾ß ¼¿ ½ºÅ©¸³Æ®¸¦ ºÒ·¯¿Â´Ù.
#> pdflatex -shell-escape foo
¸¸¾à shell escape¸¦ ½ÇÇàÇÏÁö ¾Ê´Â´Ù¸é, ½ºÅ©¸³Æ®ÀÇ ½ÇÇàÀ» Á÷Á¢ ÇØÁÖ¾î¾ß ÇÑ´Ù.
#> pdflatex foo
#> pst2pdf
#> pdflatex foo

4. PDFTricks´Â PDFLaTeX°ú LaTeXÀ» ¸ðµÎ ¾µ ¼ö ÀÖ´Ù°í ÇÑ´Ù. ±×·¯³ª ÀϹÝÀûÀ¸·Î PDFLaTeX°ú ÇÔ²² ÁÖ·Î ¾²ÀδÙ.

5. ´õ ÀÚ¼¼ÇÑ »ç¿ë¹ý°ú ¿¹Á¦´Â ¸Å´º¾ó ¹®¼­¸¦ Âü°íÇ϶ó.

1.1 pdftricks¸¦ ÀÌ¿ëÇÏ¿© pstricks¸¦ dvipdfmx¿¡ ³Ö±â

From KTUGContrib:2695

1.2 pdftricks/pdfmtricks

MoveMe From KTUGSetup:9753

1.3 pdflatex ¿¡¼­ »ç¿ëÇϱâ


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