KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Stop searching forever. Happiness is unattainable.
FrontPage › CJKLaTeXUnderMiKTeX
MiKTeX 2.8¿¡¼­ CJKLaTeXÀ¸·Î ÇÑ±Û ¹®¼­¸¦ ÀÛ¼ºÇÏ´Â ¹æ¹ý.
À¯µ¶ MiKTeX¸¸ÀÌ ¹®Á¦°¡ µÇ´Â ÀÌÀ¯´Â MiKTeXÀÌ ¹èÆ÷ÇÏ´Â cjk ÆÐÅ°Áö°¡ ºÒ¿ÏÀüÇÏ¿© ±×´ë·Î´Â ÇѱÛÀ» ½ÄÀÚÇÏ´Â µ¥ ¾î·Á¿òÀ» °Þ±â ¶§¹®ÀÌ´Ù. MiKTeX ¹èÆ÷ÆÇ cjk ÆÐÅ°Áö°¡ TeXLive µîÀÇ °Í°ú µ¿ÀÏÇØÁø´Ù¸é ÀÌ ÆäÀÌÁö´Â ºÒÇÊ¿äÇØÁú °ÍÀÌ´Ù.

¸ñÂ÷

1 ¸ÅÅ©·Î¿Í ÆùÆ®ÀÇ ¼³Ä¡
1.1 CJKLaTeX MacroÀÇ ¼³Ä¡
1.2 CJKLaTeX Font ¼³Ä¡¿Í ¼³Á¤
2 ¹®¼­ ÀÛ¼ºÇϱâ
2.1 ¿Ï¼ºÇü(EUC-KR) ¹®¼­ ÀÛ¼º
3 UTF-8 ÇѱÛÀÌ Æ÷ÇÔµÈ ¹®¼­ ÀÛ¼º

1 ¸ÅÅ©·Î¿Í ÆùÆ®ÀÇ ¼³Ä¡

\usepackage{CJK} ·Î ÇѱÛÀÌ µé¾î°¡´Â ¹®¼­¸¦ ÀÛ¼ºÇÏ´Â ¹æ¹ý
  • ko.TeX ¼³Ä¡ÇÒ ÇÊ¿ä ¾øÀÌ MiKTeX¸¸À¸·Î ÇØ°áµÈ´Ù.
  • PDFTeX ¿£ÁøÀ» »ç¿ëÇÒ °æ¿ì¸¸ ÇØ´çÇÑ´Ù. (pdflatex, latex -> dvipdfmx)

1.1 CJKLaTeX MacroÀÇ ¼³Ä¡

MiKTeX 2.4 ÀÌÈÄ ¹öÀü °æ¿ì´Â ÀÚµ¿À¸·Î ¼³Ä¡ÇØÁØ´Ù.

1.2 CJKLaTeX Font ¼³Ä¡¿Í ¼³Á¤

¸ÅÅ©·Î´Â ÀÚµ¿À¸·Î ¼³Ä¡ÇØÁÖÁö¸¸ ÆùÆ®´Â º°µµ·Î ¼³Ä¡ÇØ¾ß ÇÑ´Ù. ÆÐÅ°Áö °ü¸®ÀÚ(MiKTeX Package Manager)¸¦ ¿­¾î¼­ cjk_fonts ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÑ´Ù. mpmcjklatex.jpg

- ±×·¯³ª, MiKTeX 2.8ÀÇ °æ¿ì cjk-fonts¸¦ ¼³Ä¡Çß´Ù°í Çؼ­ ÇѱÛÀ» ¾µ ¼ö ÀÖ´Â °ÍÀº ¾Æ´Ï´Ù. - - ´ÙÀ½ ÆÄÀÏÀ» ÀÛ¾÷ µð·ºÅ丮¿¡ µÎ¾î¾ß ÇÑ´Ù. - - * @c63mj.fd.zip (568 Bytes) - - °°Àº À̸§ÀÇ ÆÄÀÏÀÌ ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇÁö¸¸ ³»¿ëÀÌ ´Ù¸£±â ¶§¹®¿¡ ¹Ýµå½Ã ÀÛ¾÷ µð·ºÅ丮¿¡ °¡Á®´ÙµÎ´Â °ÍÀÌ ÁÁ´Ù. ½Ã½ºÅÛ Æú´õ´Â »ç¿ëÀÚ°¡ ¼öÁ¤ÇÏÁö ¾Ê¾Æ¾ß ÇÑ´Ù. - - * Âü°í·Î, uhc ÇÑ±Û ±Û²ÃÀ» ¼³Ä¡ÇÑ´Ù¸é fd ÆÄÀÏÀ» ¼öÁ¤Çϰųª º°µµ·Î °¡Á®´ÙµÑ ÇÊ¿ä´Â ¾ø´Ù. ±×·¯³ª MiKTeX 2.8¿¡¼­ uhc ÇÑ±Û ±Û²ÃÀ» ¼³Ä¡ÇÒ ¹æ¹ýÀº ¾ø´Ù. HLaTeXÀ» ¼³Ä¡ÇÏ¸é µÇ±â´Â ÇÏÁö¸¸ ±×·² °æ¿ì CJK¸¦ ²À »ç¿ëÇØ¾ß ÇÒ ÇÊ¿ä°¡ Àִ°¡? ÀÌ ±ÛÀº HLaTeXÀ» º°µµ·Î ¼³Ä¡ÇÏÁö ¾Ê°í MiKTeX¸¸À¸·Î ÇÑ±Û ¹®¼­¸¦ ÀÛ¼ºÇÏ´Â °ÍÀ» º¸ÀÌ´Â °ÍÀÌ ¸ñÀûÀÌ´Ù. - - * ¿ÀÁ÷ ¸íÁ¶Ã¼ Çϳª¹Û¿¡ »ç¿ëÇÒ ¼ö ¾ø´Ù. - - * Âü°í. KTUGSetup:12254 -

2 ¹®¼­ ÀÛ¼ºÇϱâ

2.1 ¿Ï¼ºÇü(EUC-KR) ¹®¼­ ÀÛ¼º

ÇѱÛÀº CJK ȯ°æ ¾È¿¡ µÐ´Ù.
  • ±½Àº ±Û²ÃÀº poorman's bold ó¸®ÇϹǷΠ»ç¿ëÇÒ ¼ö ÀÖ´Ù.
  • \title, \author µî¿¡ ÇѱÛÀÌ ÇÊ¿äÇÑ °æ¿ì ¹Ýµå½Ã \begin{CJK}... ÀÌÈÄ¿¡ ÁöÁ¤ÇØ¾ß ÇÑ´Ù.
%!TEX program = PDFLaTeX
%!TEX encoding = system
\documentclass{article}
\usepackage{CJK}

\begin{document}
\begin{CJK}[HL]{KS}{}

ÇÑ±Û ÅØ »ç¿ëÀÚ ±×·ìÀÔ´Ï´Ù.

\end{CJK}
\end{document}

  1. TeXWorks¸¦ À§ÇÑ ÀÎÄÚµù ¸¶Å©¿¡¼­ "system"À̶õ cp949¸¦ ÀǹÌÇÑ´Ù. ½ÇÁ¦·Î´Â euc-kr¹®ÀÚ¸¸ 󸮵ȴÙ.
  2. "system"Àº À©µµ¿ìÁî¿¡¼­¸¸ Àǹ̰¡ ÀÖÀ¸¹Ç·Î ¸Æ/¸®´ª½º¿¡¼­´Â ÆÄÀÏ ÀÎÄÚµùÀ» cp949 (euc-kr)·Î °­Á¦ÇØ¾ß ÇÑ´Ù.

3 UTF-8 ÇѱÛÀÌ Æ÷ÇÔµÈ ¹®¼­ ÀÛ¼º

ÇѱÛÀ» Æ÷ÇÔÇÏ´Â UTF-8 ÀÔ·ÂµÈ ÅؽºÆ®¸¦ ó¸®ÇÒ ¼ö ÀÖ´Â ±â´ÉÀÌ CJKLaTeX¿¡ ÀÖ´Ù. ¿©±â¼­´Â CJKLaTeXÀÇ UTF8 ȯ°æ¿¡ ´ëÇؼ­¸¸ ´Ù·é´Ù.

trivcj ÆùÆ® ÀÌ¿ëÇϱâ

Hangul-ucsÀÇ trivcj ÆÐÅ°Áö¸¦ ÀÌ¿ëÇϱâ À§ÇÏ¿© Á¦ÀÛÇصРtrivcj ÆùÆ® ¼¼Æ®´Â CJKLaTeX¿¡¼­µµ »ç¿ëÇÒ ¼ö ÀÖ´Ù. ÇÑ±Û ¸î ±ÛÀÚ Á¤µµ¸¦ Ç¥ÇöÇϱâ À§Çؼ­¶ó¸é °¡Àå °£´ÜÇÑ ÇØ°áÃ¥ÀÏ µí.
  1. CJK ÆÐÅ°Áö ¼³Ä¡. MiKTeXTools ¸¦ »ç¿ëÇÑ´Ù¸é, mpm --install=cjk·Î ÃæºÐ.
  2. PDFLaTeX Àº »ç¿ëÇÏÁö ¸øÇÔ. latex -> DVIPDFMx ·çÆ®·Î pdf¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
  3. pdf¿¡´Â ¾Æ¹«·± ÆùÆ®µµ ÀÓº£µåµÇÁö ¾Ê´Â´Ù. AdobeReader·Î ÀÐÀ¸¸é AdobeReaderÀÇ ¾Æ½Ã¾Æ ±Û²Ã ÆÐÅ°Áö¿¡¼­ ±âº» ÆùÆ®¸¦ ºÒ·¯¿Í¼­ º¸¿©ÁØ´Ù. xpdf¿¡¼­´Â ¹é¹¬±Û²Ã, Windows/gsview¿¡¼­´Â À©µµ ±âº» ¹ÙÅÁ ±Û²Ã·Î µð½ºÇ÷¹ÀÌµÉ ¼ö ÀÖ´Ù.(ºä¾î¿¡ µû¶ó °á°ú°¡ Á¶±Ý ´Þ¶óÁú ¼ö ÀÖÁö¸¸ ¸¸µé¾îÁø pdf ÆÄÀÏÀÇ Å©±â´Â ´ë´ÜÈ÷ ÀÛ´Ù.)
  4. ÆùÆ®´Â komj, kogt µÑÀ̸ç, boldü´Â ¾ø´Ù. ÇÑ±Û ÆùÆ®¸¸ ÀÖÀ½. ÀϺ»¾î¿Í Áß±¹¾î ÆùÆ®´Â Æ÷ÇÔÇÏ°í ÀÖÁö ¾ÊÀ½.
¼³Ä¡/»ç¿ë¹ýÀº ´ÙÀ½°ú °°´Ù.(Hangul-ucs¸¦ ÀüºÎ ¼³Ä¡ÇÒ ÇÊ¿äµµ ¾øÀ½)
  1. ´ÙÀ½ ÆÄÀÏÀ» ´Ù¿î·Îµå¹Þ¾Æ¼­ local texmf Æ®¸®·Î Ç®¾î³õ´Â´Ù.(1¸Þ°¡µµ ¾ÈµÊ)
  2. dvipdfmx.cfg¿Í ttf2pk.cfg¸¦ ÆíÁýÇÑ´Ù.
    • dvipdfmx.cfg
      f cid-simpletriv.map
      
    • ttf2pk.cfg
      +map simpletriv-ttf2pk.map
      
  3. mktexlsr
¿øº» ¹®¼­ ÆÄÀÏÀº ´ÙÀ½°ú °°Àº Çü½ÄÀ¸·Î ÆíÁýÇÑ´Ù.
\documentclass{article}
\usepackage{CJK}

%%%% \gt, \mj ¸í·ÉÀ» Á¤ÀÇÇؼ­ ¾²·Á¸é
\newcommand\gt{\CJKfamily{kogt}\selectfont}
\newcommand\mj{\CJKfamily{komj}\selectfont}
\DeclareTextFontCommand\textgt{\gt}
\DeclareTextFontCommand\textmj{\mj}

\begin{document}
\begin{CJK}{UTF8}{komj}
....
\end{CJK}
\end{document}

ko.TeX ÆùÆ® ÀÌ¿ëÇϱâ

default´Â cyberbit ±Û²ÃÀ» ÀÌ¿ëÇÏ´Â °ÍÀÌÁö¸¸, ÀÌ cyberbit Æ®·çŸÀÔÀÌ ¹èÆ÷ºÒ°¡´ÉÇÑ ±Û²ÃÀ̱⠶§¹®¿¡ Á÷Á¢ »ç¿ëÀÚ°¡ ÀÌ Æ®·çŸÀÔ ±Û²Ã ÆÄÀÏÀ» È®º¸ÇÏ¿© .tfmÀ» º°µµ·Î ÃßÃâÇÏ´Â ¹ø°Å·Î¿î °úÁ¤À» °ÅÃÄ¾ß ÇÑ´Ù.

¸¸¾à ko.TeXÀÇ ±âº» ÆùÆ® (Àº±Û²Ã type 1)¸¦ ¾²°íÀÚ ÇÑ´Ù¸é ´ÙÀ½ ÆÄÀÏÀÇ ¾ÐÃàÀ» Ç®¸é ³ª¿À´Â fd ÆÄÀÏÀ» Àû´çÇÑ °÷¿¡ µÎ°í ¿¹½ÃÇÑ ¹Ù¿Í °°ÀÌ ÆùÆ®¸¦ ÁöÁ¤ÇÏ¸é µÈ´Ù.
\documentclass{article}
\usepackage{CJK}

\newcommand\gt{\CJKfamily{utgt}\selectfont}
\newcommand\mj{\CJKfamily{utbt}\selectfont}
\DeclareTextFontCommand\textgt{\gt}
\DeclareTextFontCommand\textmj{\mj}

\begin{document}
\begin{CJK}{UTF8}{utbt}

°¡³ª´Ù¶ó \textbf{°¡³ª´Ù¶ó} \textit{°¡³ª´Ù¶ó}
\textgt{°¡³ª´Ù¶ó} °¡³ª´Ù¶ó

\gt Å×½ºÆ® \bfseries Å×½ºÆ®

\mj \mdseries ÇÑ±Û ÅØ »ç¿ëÀÚ ±×·ì

\end{CJK}
\end{document}






^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-08-25 12:42:14
Processing time 0.0517 sec