KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Some men are discovered; others are found out.
FrontPage › pdflatex°úlatexµ¿½Ã»ç¿ë
PDF / PDFLaTeX°ú LaTeX µ¿½Ã »ç¿ë

°¡²û latex/dvipdfmx ¿Í pdflatex À» µ¿½Ã¿¡ »ç¿ëÇÏ¿©¾ß ÇÏ´Â °æ¿ì°¡ »ý±ä´Ù. ÀÌ ¹®¼­´Â ±×·¯ÇÑ °æ¿ì ó¸® ¹æ¹ýÀ» Á¤¸®ÇÏ¿´´Ù. ÇѱÛÀº Hangul-ucs¸¦ ÀÌ¿ëÇÏ°í ÀÖ´Â °ÍÀ¸·Î °¡Á¤ÇÏ°í, ¸ñÀû ÆÄÀÏÀº pdf¶ó°í »ý°¢ÇÏÀÚ. Áï PDFLaTeX, LaTeX/DVIPDFMx ¾î´À °æ·Î¸¦ ÀÌ¿ëÇÏ¿©µµ PDF¸¦ ¾òÀ» ¼ö ÀÖ´Â ¹æ¹ýÀ» »ý°¢ÇÑ´Ù.

¸ñÂ÷

1 ifpdf/iftex ÆÐÅ°Áö
2 ÅؽºÆ®ÀÇ °Ë»ö°ú ÃßÃâ
3 ºÏ¸¶Å©¿Í ÇÏÀÌÆÛ¸µÅ©
4 ±×¸²°ú »ö»ó
4.1 graphicx
4.1.1 KC2008, TeXLive2008 ¿¡¼­ÀÇ graphicx »ç¿ë
5 ¿ä¾à
5.1 ¸µÅ©
5.2 ÂüÁ¶
6 ¿¹Àü ¹æ¹ý
6.1 ¿¹Àü ±ÇÀåÀå¾È (KC2007ÀÌÀü, MikTeXµîÀÇ »ç¿ëÀڷμ­ À§¿Í °°ÀÌ ÇÒ ¼ö ¾øÀ» °æ¿ì)

1 ifpdf/iftex ÆÐÅ°Áö

ÇöÀç ÄÄÆÄÀÏ·¯·Î PDFLaTeXÀÌ ½ÇÇàµÇ°í ÀÖ´ÂÁöÀÇ ¿©ºÎ¸¦ È®ÀÎÇϱâ À§Çؼ­ ifpdf ÆÐÅ°ÁöÀÇ \ifpdf Á¶°Ç °Ë»ç¸¦ ÀÌ¿ëÇÑ´Ù.
\usepackage{ifpdf}
\ifpdf
   %%% pdflatex ÀÌ ½ÇÇàµÇ´Â °æ¿ì 󸮵Ǵ ·çƾ
\else
   %%% latex ÀÌ ½ÇÇàµÇ´Â °æ¿ì 󸮵Ǵ ·çƾ
\fi

¶Ç´Â Á»´õ ÃÖ±ÙÀÇ iftex ÆÐÅ°Áö¸¦ ÀÌ¿ëÇÑ´Ù.
\usepackage{iftex}
\ifPDFTeX
 ....
\else
 ....
\fi

2 ÅؽºÆ®ÀÇ °Ë»ö°ú ÃßÃâ

pdftex¿¡¼­ ÇÑ±Û °Ë»ö ÃßÃâÀ» À§Çؼ­ ´ÙÀ½ ÇÑ ÁÙÀ» ½á³Ö´Â´Ù. ko.TeXÀÇ ±âº» ±Û²ÃÀº Àº ±Û²Ã type 1À̹ǷΠ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù. (DVIPDFMx¸¦ À§Çؼ­´Â Ưº°È÷ ÇØ¾ß ÇÒ ÀÏÀÌ ¾ø´Ù.)
\ifpdf
 \input glyphtounicode\pdfgentounicode=1 %% type 1 (default)
\fi
Æ®·çŸÀÔÀ» »ç¿ëÇÏ´Â °æ¿ì¿¡´Â ´ÙÀ½°ú °°ÀÌ Çß´Ù. ÇöÀç´Â pdftex¿¡¼­ Æ®·çŸÀÔÀ» »ç¿ëÇÒ ÀÏÀÌ ¸¹Áö ¾Ê´Ù.
\ifpdf
 \usepackage{dhucs-cmap}
\fi

3 ºÏ¸¶Å©¿Í ÇÏÀÌÆÛ¸µÅ©

hyperref ÆÐÅ°Áö´Â µå¶óÀ̹ö¿¡ ¸Å¿ì ¹Î°¨ÇÏ´Ù. pdf bookmark¸¦ ¾ò±â À§Çؼ­´Â ÀÔ·Â ÀÎÄÚµùÀ» UTF-8À¸·Î ÇÏ°í unicode ¿É¼ÇÀ» hyperref¿¡ ºÎ¿©ÇÑ´Ù. (XeLaTeX¿¡¼­´Â ÀÌ unicode ¿É¼ÇÀÌ ºÒÇÊ¿äÇÏÁö¸¸ pdflatex°ú latex -> dvipdfmx¿¡¼­´Â ²À ÇÊ¿äÇÔ.)
\ifpdf
  \usepackage[pdftex,unicode,....]{hyperref}
\else
  \usepackage[dvipdfmx,unicode,....]{hyperref}
\fi
  • hyperref ¼³Á¤À» À§ÇÏ¿© hypersetupÀ» º°µµ·Î ºÎ¸¦ ¼ö ÀÖ´Ù.
    \hypersetup{
     colorlinks=true,
     ...
    }
    
  • Prosper³ª beamer¿Í °°ÀÌ Å¬·¡½º ÀÚ½ÅÀÌ hyperrefÀ» ¹Ì¸® ·ÎµåÇÏ°í ÀÖ´Â °æ¿ì°¡ ÀÖ´Ù. ÀÌ·² ¶§´Â \hypersetupÀ» ½áµµ Ŭ·¡½º°¡ ¼³Á¤ÇÑ ±âº»°ªÀ» º¯°æÇÒ ¼ö ¾ø´Â °æ¿ì°¡ »ý±ä´Ù. °¢ Ŭ·¡½º¸¶´Ù ÀÌ·± °æ¿ì¿¡ ´ëºñÇÑ ¹æ¹ýÀÌ Á¦½ÃµÇ¾î ÀÖÀ» ¼ö ÀÖÀ¸¸ç, hyperref.cfg¶ó´Â ¼³Á¤ÆÄÀÏÀ» Àß ÅëÁ¦Çϸé ÀÌ·± °æ¿ì¿¡ ÇÊ¿äÇÑ ¿É¼ÇÀ» È°¼ºÈ­ÇÒ ¼ö ÀÖ´Ù.

4 ±×¸²°ú »ö»ó

4.1 graphicx

4.1.1 KC2008, TeXLive2008 ¿¡¼­ÀÇ graphicx »ç¿ë

 \usepackage{ifpdf}

 \ifpdf
  \usepackage{graphicx}
  \usepackage[svgnames]{xcolor}
 \else
  \usepackage[dvipdfmx]{graphicx}
  \usepackage[dvipdfmx,svgnames]{xcolor}
 \fi
  • KC2008¿¡¼­ LaTeX ȤÀº PDFLaTeX À¸·Î ÄÄÆÄÀÏ ÇÒ °æ¿ì´Â À§¿Í °°ÀÌ Äڵ带 ÀÛ¼ºÇÏ°í,
  • latexÀ» ½ÇÇàÇÒ ¶§ --shell-escape ¶Ç´Â -shell ¿É¼ÇÀ» ³Ö¾îÁØ´Ù.(KCmenu¸¦ ¾²´Â °æ¿ì ºÒÇÊ¿äÇÏ´Ù.)
    • .eps´Â »ç¿ëÇÏÁö ¾Ê´Â °ÍÀÌ ÁÁ´Ù. (PDFLaTeX¿¡¼­ »ç¿ëÇÒ ¼ö ¾ø´Ù.)
    • º¤ÅÍ ±×·¡ÇÈÀº .pdf Æ÷¸ËÀ¸·Î º¯È¯ÇÏ°í, »çÁø°ú °°Àº ·¡½ºÅÍ ±×¸²Àº .png³ª .jpg·Î º¯È¯ÇÑ´Ù. pdflatexÀÇ °æ¿ì, Èæ¹é ±×¸²Àº jbig2¸¦ »ç¿ëÇÒ ¼öµµ ÀÖ´Ù.
    • graphicx ÆÐÅ°Áö¸¦ ¾²µÇ, DVIPDFMx·Î PDF¸¦ ¸¸µé °æ¿ì dvipdfmx ¿É¼ÇÀ» »ç¿ëÇÑ´Ù. ¶ÇÇÑ, µÇµµ·Ï color ÆÐÅ°Áö ´ë½Å xcolor¸¦ ¾²´Â ÂÊÀ» ±ÇÀåÇÑ´Ù.
    • boundingbox (.bb)¸¦ ¹Ì¸® ¸¸µé¾î µÑ ÇÊ¿ä°¡ ¾ø´Ù.
    • Ãâó : kc08manual

5 ¿ä¾à

\documentclass{article}
\usepackage{kotex}
\usepackage{ifpdf}

\ifpdf
  \input glyphtounicode\pdfgentounicode=1 %type 1 font»ç¿ë½Ã
  % \usepackage{dhucs-cmap} % true type ±Û²Ã »ç¿ë½Ã
  % \pdfmapfile{+unttf-pdftex-dhucs.map} % truetype±Û²Ã»ç¿ë½Ã
  \usepackage[pdftex,unicode]{hyperref}
  \usepackage[pdftex]{graphicx}
  \usepackage[pdftex,svgnames]{xcolor}
\else
  \usepackage[dvipdfmx,unicode]{hyperref}
  \usepackage[dvipdfmx]{graphicx}
  \usepackage[dvipdfmx,svgnames]{xcolor}
\fi
%KC2008ÀÇ °ø½Ä¿¹Á¦ÀÎ first.tex¿Í ko.TEX v0.1.0 »ç¿ë ¼³¸í¼­ ÂüÁ¶
%hangul-ucs 4.0 ÀÌÀü ¹öÀü¿¡¼­´Â dhucs-ucshyper¶ó´Â ºÎ°¡ ÆÐÅ°Áö°¡ Á¦°øµÇ¾úÀ¸³ª, 
%hyperrefÀÇ ±â´É Çâ»ó¿¡ µû¶ó ºÒÇÊ¿äÇØÁ³À¸¹Ç·Î 
%ko.TEX¿¡¼­´Â À̸¦ Á¦°øÇÏÁö ¾Ê´Â´Ù.

5.1 ¸µÅ©

6 ¿¹Àü ¹æ¹ý

6.1 ¿¹Àü ±ÇÀåÀå¾È (KC2007ÀÌÀü, MikTeXµîÀÇ »ç¿ëÀڷμ­ À§¿Í °°ÀÌ ÇÒ ¼ö ¾øÀ» °æ¿ì)


PDFLaTeXÀº eps ±×¸²À» ÀνÄÇÏÁö ¸øÇÑ´Ù´Â Á¡¿¡ ƯÈ÷ ÁÖÀÇÇÑ´Ù.
\ifpdf
 \usepackage[pdftex]{graphicx,color}
\else
 \usepackage{graphicx,color}
 \DeclareGraphicsExtensions{.jpg,.pdf}
 \DeclareGraphicsRule{.jpg}{eps}{.bb}{}
 \DeclareGraphicsRule{.pdf}{eps}{.bb}{}
\fi
  • graphicx ¹× color¿¡°Ô [dvipdfm] ¿É¼ÇÀ» ÁÖ¸é pdf, png, jpg ±×¸²À» »ç¿ëÇÒ ¼ö ÀÖ´Ù. ±×·¯³ª À§¿Í °°ÀÌ ¼³Á¤ÇÏ´Â ÂÊÀÌ graphicx.cfg¿Í °°Àº ¼³Á¤ ÆÄÀÏÀÇ ¿µÇâÀ» ¹ÞÁö ¾Ê°í ¹®¼­¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ´Â ¹æ¹ýÀÌ´Ù.
  • ƯÈ÷ DVIPDFMxÀÇ °æ¿ì¿¡´Â ¹Ù¿îµù¹Ú½º ÆÄÀÏ(.bb)À» ¹Ì¸® ÀÛ¼ºÇصξî¾ß ÇÑ´Ù.

\documentclass{article}
\usepackage{dhucs}

\usepackage{dhucs-ucshyper}

\usepackage{ifpdf}
\ifpdf
  \usepackage{dhucs-cmap}
  \pdfmapfile{+unttf-pdftex-dhucs.map}
  \usepackage{pdfsync} %%% ¸ÅŲÅä½ÃÀÇ TeXShop »ç¿ëÀÚÀÇ °æ¿ì
  \usepackage[pdftex]{graphicx,color}
\else
  \usepackage{graphicx,color}
  \DeclareGraphicsExtensions{.jpg,.pdf}
  \DeclareGraphicsRule{.jpg}{eps}{.bb}{}
  \DeclareGraphicsRule{.pdf}{eps}{.bb}{}
\fi

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-05-04 00:33:27
Processing time 0.0443 sec