KTUGFaq
KTUG FAQ
You have a will that can be influenced by all with whom you come in contact.
FrontPage › MacOS¿¡¼¼³Ä¡Çϱâ/Alternative
ÀÌ ÆäÀÌÁö¿¡¼ ´Ù·ç°í ÀÖ´Â ÁÖÁ¦´Â 2007³â ÀÌÈÄ ´ëºÎºÐ ³°Àº °ÍÀÌ µÇ¾ú´Ù. teTeXÀº °³¹ßÀÌ ÁߴܵǾúÀ¸¸ç, Hangul-ucsµµ ko.TeXÀ¸·Î ÅëÇյǾúÀ¸¹Ç·Î, ÀÌ ÆäÀÌÁöÀÇ Á¤º¸´Â °ÅÀÇ Àǹ̰¡ ¾ø´Ù. ´Ù¸¸ "¿ª»çÀû" ÀÌÀ¯¿¡¼ ÀÌ ÆäÀÌÁö¸¦ »èÁ¦ÇÏÁö ¾Ê´Â´Ù. ÃÖ½ÅÀÇ Á¤º¸´Â MacOS¿¡¼¼³Ä¡Çϱ⸦ Âü°íÇÒ °Í.
ÀÌ ÆäÀÌÁö´Â MacOS¿¡¼¼³Ä¡Çϱ⿡ µþ¸° ±ÛÀÔ´Ï´Ù. º» ±Û¿¡¼ ¼³¸íÇÏ°í ÀÖ´Â °Í°ú´Â ´Ù¸¥ ¹æ½ÄÀ¸·Î TeX ½Ã½ºÅÛÀ» ±¸ÃàÇÏ´Â ¹®Á¦¸¦ ´Ù·ì´Ï´Ù.
[ÆíÁý]
1 teTeX ¼³Ä¡Çϱ⠶
Fink¸¦ ÀÌ¿ëÇÏ¿© teTeX ȯ°æÀ» ±¸ÃàÇϸé ÀϹÝÀûÀÎ Unix¿¡¼ ¼³Ä¡ÇÑ °æ¿ì¿Í °ÅÀÇ µ¿ÀÏÇϱ⠶§¹®¿¡ Unix/Linux ȯ°æ¿¡ Ä£¼÷ÇÑ °æ¿ì¿¡´Â ±ÇÀåÇÒ ¸¸ÇÏ´Ù. ´ëºÎºÐÀÇ ÇÁ·Î±×·¥À» ½Ã½ºÅÛ¿¡¼ »õ·ÎÀÌ ÄÄÆÄÀÏ-ºôµåÇÏ¿© ¼³Ä¡ÇÏ°Ô µÇ±â ¶§¹®¿¡ ÇÁ·Î±×·¥ÀÇ ¹öÀüÀ̳ª Äڵ带 »ç¿ëÀÚ°¡ Á¦¾îÇÒ ¼ö ÀÖ´Ù´Â °Íµµ ÀåÁ¡ÀÌ´Ù.
È¥¶õÀ» ÇÇÇϱâ À§ÇÏ¿© ÀÌ ±Û¿¡¼´Â Fink·Î ¼³Ä¡ÇÏ´Â °æ¿ì¸¦ ¼Ò°³Çϱâ·Î ÇÑ´Ù. i-Installer·Î ¼³Ä¡ÇÏ´Â °æ¿ì¿¡ ´ëÇؼ´Â MacOS¿¡¼¼³Ä¡Çϱ⸦ Âü°íÇ϶ó.
ÀÌ ±Û¿¡¼ ¸ðµç ÀÛ¾÷Àº Å͹̳Π¸í·ÉÇà¿¡¼ ÀÌ·ç¾îÁø´Ù. [ÀÀ¿ëÇÁ·Î±×·¥/À¯Æ¿¸®Æ¼/Å͹̳Î] ¶Ç´Â Applications/Utilities/Terminal.app ÇÁ·Î±×·¥À» ¹Ì¸® ½ÇÇàÇÏ¿© µÎÀÚ.
[ÆíÁý]
1.1 µð·ºÅ丮 ±¸Á¶ ¶
teTeXÀÇ ¼³Ä¡ ¿î¿µ¿¡¼ »ç¿ëÀÚ°¡ ½Å°æ½á¾ß ÇÒ °ÍÀº µð·ºÅ丮 ±¸Á¶ÀÌ´Ù. ¿¹ÄÁ´ë ¸¹Àº Mac °ü·Ã TeX À¯Æ¿¸®Æ¼µéÀº i-installer¸¦ ÀÌ¿ëÇÏ¿© ¼³Ä¡µÈ »óŸ¦ ±âº»°ªÀ¸·Î Àâ°í ÀÖ´Ù. TeXShop, iTeXMac, TeXShell in TeXTools µîÀÌ ´ëºÎºÐ ±×·¯ÇϹǷΠFink³ª ´Ù¸¥ ¹æ¹ýÀ¸·Î ¼³Ä¡ÇÑ °æ¿ì »ç¿ëÀÚ ÀÚ½ÅÀÌ Preferences¿¡¼ µð·ºÅ丮 À§Ä¡¸¦ Á¶Á¤ÇØÁÖ¾î¾ß ÇÏ´Â °æ¿ì°¡ ¸¹´Ù.
- Fink ±âº»°ªÀ¸·Î ¼³Ä¡ÇÑ °æ¿ì
- ½ÇÇàÆÄÀÏÀÇ À§Ä¡ : /sw/bin
- main texmf tree : /sw/share/texmf
- others : /sw/share/texmf-local, /sw/share/texmf-dist, /sw/share/texmf-config
- home texmf tree : $HOME/.texmf-var, $HOME/.texmf-config, $HOME/Library/texmf
- Hangul-ucs ¼³Ä¡¿¡ ÀÌ¿ëÇÒ texmf tree (ÀÌ ±Û¿¡¼ÀÇ ¼³Á¤)
- Fink ¼³Ä¡ÀÇ °æ¿ì¿¡´Â $HOME/.texmf-var ¸¦ ÀÌ¿ëÇÑ´Ù.
[ÆíÁý]
1.2 Fink·Î teTeX ¼³Ä¡ ¶
http://fink.sourceforge.net/ ¿¡¼ Fink¸¦ ¼³Ä¡ÇÑ´Ù.
- Å͹̳Î(Terminal.app)À» ¿¾î¼ ¼³Ä¡ ÀÛ¾÷À» ÁøÇàÇÑ´Ù.
- fink list ·Î ÆÐÅ°Áö È®ÀÎ
- fink install tetex ·Î tetex ÀνºÅç
- fink install libkpathsea4 ·Î kpathsea ¶óÀ̺귯¸® ÀνºÅç
$ fink list | grep tetex $ fink install tetex
- http://finkcommander.sf.net/ ¿¡¼ Fink Commander¸¦ ±¸ÇÏ¿© ¼³Ä¡ÇÑ ´ÙÀ½ ÀÌ À¯Æ¿¸®Æ¼·Î ¼³Ä¡ÇÑ´Ù.
[ÆíÁý]
1.3 teTeX ¼Ò½º·ÎºÎÅÍ ÄÄÆÄÀÏ Çϱâ (ºñÃßõ) ¶
¾îÂ÷ÇÇ Fink¸¦ ÀÌ¿ëÇÑ´Ù Çصµ ¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ´Â °ÍÀº ¸¶Âù°¡ÁöÀÌ´Ù. ±×·² ¹Ù¿¡¾ß teTeX ÀÚü¸¦ ¼Ò½º·ÎºÎÅÍ Á÷Á¢ ±¸ÃàÇÏ´Â °ÍÀÌ ³´Áö ¾Ê°Ú´Â°¡ ÇÏ´Â »ý°¢ÀÌ µå½Ã´Â ºÐÀº ´ÙÀ½ ¹æ¹ýÀ» »ç¿ëÇصµ µÈ´Ù.
download http://ftp.ktug.or.kr/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-3.0.tar.gz download http://ftp.ktug.or.kr/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmf-3.0.tar.gz mkdir -p /usr/local/teTeX/share/texmf /usr/local/teTeX/share/texmf-dist gzip -dc tetex-texmf-3.0.tar.gz | (umask 0; cd /usr/local/teTeX/share/texmf-dist ; tar xvf -) gzip -dc tetex-src-3.0.tar.gz | (umask 022; tar xvf -) cd tetex-src-3.0 ./configure --prefix=/usr/local/teTeX --disable-multiplatform --without-xdvik --without-oxdvik make world¶Ç´Â web2c ¹èÆ÷ÆÇÀ» ºôµåÇÏ¿©µµ Å« Â÷ÀÌ´Â ¾ø´Ù. ÀÌ °æ¿ì¶ó¸é tetex-texmf¸¦ texmf-dist¿¡ Ç®¾î³õ°í web2c¸¦ ºôµåÇÏ¸é µÈ´Ù.
[ÆíÁý]
2.1 ¼³Ä¡ÇÒ µð·ºÅ丮 ¶
¿©±â¼µµ »ç¿ëÀÚ°¡ »õ·Î¿î texmf Æ®¸®¸¦ Ãß°¡ÇÏ´Â °ÍÀº ÇÏÁö ¾Ê±â·Î ÇÑ´Ù. ÀÌ°ÍÀ» °¡´ÉÇÏ°Ô ÇÏ·Á¸é texmf.postinst ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇÏ¿© teTeX ¼³Ä¡ ¼³Á¤À» óÀ½ºÎÅÍ ÇØ¾ß Çϴµ¥ ³Ê¹« ¹ø°Å·Ó´Ù. µû¶ó¼,
- ¹èÆ÷ÆÇÀÌ ÀÌ¹Ì ¼³Á¤ÇصР»ç¿ëÀÚ texmf tree ÁßÀÇ ÇϳªÀÎ ~/.texmf-var ¾Æ·¡ ¼³Ä¡Çϱâ·Î ÇÑ´Ù.
[ÆíÁý]
2.3 Hangul-ucs °£´Ü¼³Ä¡ ¶
¸ÕÀú µÎ °³ÀÇ ÆÄÀÏÀ» ´Ù¿î·Îµå¹ÞÀÚ.
À§ÀÇ ÆÄÀÏÀ» ´Ù¿î·Îµå¹Þ¾Æ¼,
- _to_sw_bin.tar.gz¸¦ Ç®¸é _to_sw_bin µð·ºÅ丮 ¾È¿¡ ¼¼ °³ÀÇ ÆÄÀÏÀÌ ÀÖ´Ù. À̵éÀ» /sw/binÀ¸·Î ¿Å±ä´Ù.
- _to_dot_texmf.tar.gz¸¦ Ç®¸é _to_dot_texmf µð·ºÅ丮°¡ ÀÖ´Ù. ÀÌ µð·ºÅ丮ÀÇ À̸§À» ~/.texmf-var·Î °íÄ£ ´ÙÀ½ Ȩ µð·ºÅ丮¿¡ °¡Á®´ÙµÐ´Ù. °£´ÜÈ÷ ÆÄÀÏÀ» Ȩµð·ºÅ丮¿¡ ´Ù¿î·Îµå¹ÞÀº ´ÙÀ½ ´ÙÀ½°ú °°ÀÌ ÇÏ´Â °ÍÀÌ °£´ÜÇÒ °ÍÀÌ´Ù.
cd ~ tar zxvf _to_dot_texmf.tar.gz mv _do_dot_texmf .texmf-var
- sudo mktexlsr À» ½ÇÇàÇÑ´Ù.
[ÆíÁý]
2.4 memhangul-ucsÀÇ ¼³Ä¡ ¶
- memoir¸¦ ÃֽŠ¹öÀüÀ¸·Î ¾÷µ¥ÀÌÆ®ÇÑ´Ù.
# cd ~ # cd .texmf-var/tex/latex # wget http://ftp.ktug.or.kr/tex-archive/macros/latex/contrib/memoir.zip # unzip memoir.zip # cd memoir # latex memoir.ins # (sudo) mktexlsr
- MemhangulClass ÆäÀÌÁö¿¡¼ ÃֽŠ¹öÀüÀ» ´Ù¿î·Îµå¹Þ´Â´Ù.
- Àû´çÇÑ °÷¿¡¼ Ç®¸é memhangul-ucs-1.44c(ÇöÀç ¹öÀü) µð·ºÅ丮°¡ »ý°Ü³ª´Âµ¥, ±× ¾Æ·¡ ÀÖ´Â doc, fonts, makeindex, tex µð·ºÅ丮¸¦ ~/.texmf-var/ ¾Æ·¡·Î ¿Å±ä´Ù. ´ÙÀ½ ¸í·ÉÀ» ¼ø¼´ë·Î ½ÇÇàÇÑ´Ù.
# tar zxvf memhangul-ucs-1.44c.tar.gz # mv memhangul-ucs-1.44c texmf-memhangul # cd texmf-memhangul # tar -c -f texmf-memhangul.tar ./doc ./fonts ./makeindex ./tex # mv ./texmf-memhangul.tar ~/.texmf-var/ # cd ~/.texmf-var # tar xvf texmf-memhangul.tar
- mktexlsr
# (sudo) mktexlsr
[ÆíÁý]
3 DVIPDFMx ¼³Ä¡ ¶
Fink·Î ¼³Ä¡ÇÑ °æ¿ì dvipdfmxÀÇ ÃֽŠ¹öÀüÀ» ÄÄÆÄÀÏÇØÁÖ´Â °ÍÀÌ ÁÁ´Ù. Fink·Î ´Ù¿î·Îµå ¼³Ä¡ÇÒ ¼ö ÀÖ´Â dvipdfmx´Â 2004³â 09¿ù ¹öÀüÀÌ°í ptex¿¡ ÀÇÁ¸¼ºÀÌ °É·Á ÀÖ¾î¼ ¼³Ä¡°¡ Àß µÇÁöµµ ¾Ê´Â´Ù.
dvipdfmx ÀÇ ÃֽŹöÀüÀ» ÄÄÆÄÀÏ ÇØÁÖ¾î¾ß ÇÑ´Ù.
http://project.ktug.or.kr/dvipdfmx/ À» ÂüÁ¶ÇÑ´Ù.
[ÆíÁý]
3.1 ¼Ò½ºÄÚµå ´Ù¿î·Îµå ¶
- http://project.ktug.or.kr/dvipdfmx/snapshot/current/
- ¸¸¾à cvs Äڵ带 ÄÄÆÄÀÏÇÏ°íÀÚ ÇÑ´Ù¸é
- cvs -d:pserver:anonymous@cvs.ktug.or.kr:/home/cvsroot login ÇÏ°í ¾ÏÈ£´Â ±×³É Enter Ä£´Ù.
- cvs -d:pserver:anonymous@cvs.ktug.or.kr:/home/cvsroot co dvipdfmx ÇÏ¸é ¼Ò½º¸¦ ´Ù¿î·Îµå ÇØÁØ´Ù. ¸¸¾à cvs°¡ ¼³Ä¡µÇ¾î ÀÖÁö ¾Ê¾Ò´Ù¸é fink install cvs.
[ÆíÁý]
3.2 ÄÄÆÄÀÏ/ÀνºÅç ¶
Fink·Î teTeXÀ» ¼³Ä¡ÇÑ °æ¿ì¶ó¸é ¸ÕÀú,
- Fink·Î libkpathsea4¸¦ ¼³Ä¡Çصξú´ÂÁö È®ÀÎÇÑ´Ù.
- dvipdfmx ¼Ò½ºµð·ºÅ丮¿¡°¡¼ ./configure --prefix=/sw ÇØÁÖ¾î¾ß ÇÑ´Ù.
- make ÇØÁØ´Ù.
- sudo ¸í·ÉÀ» ÀÌ¿ëÇϰųª su ·Î ½´ÆÛÀ¯Àú°¡ µÇ¾î¼ make install ÇØÁØ´Ù.
- dvipdfmx ÆÄÀÏÀÌ /sw/bin ¿¡ ¼³Ä¡ µÈ´Ù.
- /sw/share/texmf/dvipdfm/config/glyphlist.txt ÆÄÀÏÀ» /sw/share/texmf-dist/fonts/map/dvipdfm/ À§Ä¡·Î ¿Å°ÜÁØ´Ù.
[ÆíÁý]
4.1 Àº±Û²ÃÀÇ ¼³Ä¡ ¶
¸Æ »ç¿ëÀڷμ Ưº°È÷ Àº±Û²ÃÀ» ½Ã½ºÅÛ¿¡ ¼³Ä¡ÇÒ Àǻ簡 ÀÖ´Â ºÐÀÌ ¾Æ´Ï¶ó¸é Àº±Û²ÃÀº TeXÀ» À§Çؼ¸¸ »ç¿ëÇÒ °áÁ¤À» Çϱ⠽¬¿ï °ÍÀÌ´Ù. ÀÌ °æ¿ì texmf tree ¾Æ·¡¿¡ Àº±Û²Ã Æ®·çŸÀÔ ÆÄÀϵéÀ» °¡Á®´ÙµÐ´Ù.
- ÀÌ ¾ÐÃàÆÄÀÏÀ» Ç®¾î¼ ³ª¿À´Â .ttf ÆÄÀϵéÀ»
- ~/.texmf-var/fonts/truetype/unttf/
¾Æ·¡ÀÇ Àû´çÇÑ °÷¿¡ µÐ´Ù.
- sudo mktexlsr ÇÑ´Ù.
[ÆíÁý]
4.2 ´Ù¸¥ ±Û²ÃÀÇ ¼³Ä¡ ¶
ÇÑ±Û Æ®·çŸÀÔÀ» »ç¿ëÇÏ·Á¸é ttf2hlatexfont.plÀ» ÀÌ¿ëÇÑ´Ù. _to_sw_bin ÆÄÀÏ ¾È¿¡ ÀÌ°ÍÀÌ µé¾î ÀÖÀ¸¹Ç·Î ¼³Ä¡´Â µÈ ¼ÀÀÌÁö¸¸ ¹®Á¦´Â ÀÌ°ÍÀÌ ttf2tfmÀÌ ÀÖ¾î¾ß ÀÛµ¿ÇÑ´Ù´Â °ÍÀÌ´Ù. ¸¸¾à ´Ù¸¥ Æ®·çŸÀÔÀ» »ç¿ëÇÏ°íÀÚ ÇÑ´Ù¸é Fink·Î ½Ã½ºÅÛÀ» ±¸ÃàÇÏ´Â °æ¿ì ttf2tfmÀ» ÀÚ½ÅÀÌ ÄÄÆÄÀÏ-ºôµåÇÏ¿©¾ß ÇÑ´Ù.
[ÆíÁý]
4.2.1 ttf2pkÀÇ ÄÄÆÄÀÏ ¶
¿©±â¼´Â 2006-01-07 ÇöÀç °¡´ÉÇÑ °¡Àå ½¬¿î ¹æ¹ýÀ» »ý°¢Çغ¸°Ú´Ù.
- freetype1°ú freetype1-contrib¸¦ cvs·Î ´Ù¿î·Îµå¹Þ´Â´Ù.
$ cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/freetype co freetype $ cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/freetype co freetype1-contrib
- ttf2pk_KTUG ÆÄÀÏÀ» ´Ù¿î·Îµå¹Þ´Â´Ù.
- ´ÙÀ½ ¼ø¼·Î ÄÄÆÄÀÏÇÑ´Ù.
$ tar zxvf ttf2pk-1.5_KTUG.tar.gz $ cd freetype/contrib $ mv ../../ttf2pk-1.5_KTUG/* ./ $ mv ttf2pk ttf2pk-orig ; mv ttf2pk-1.5_CVS20051222 ttf2pk $ cd ttf2pk $ patch -p1 < ../01_ttf2pk-1.5-omega.patch $ patch -p1 < ../02_ttf2pk-1.5-kpathsea.patch $ cd ../../ $ sh ./configure --prefix=/sw $ make $ cd contrib/ttf2pk $ sh ./configure --prefix=/sw $ make¿©±â¼ »ý°Ü³ª´Â ttf2pk¿Í ttf2tfmÀ» /sw/bin/ À¸·Î ¿Å°ÜµÐ´Ù.
[ÆíÁý]
4.2.2 »õ ±Û²Ã ¼³Ä¡ »ç¿ë ¶
- ÁÖÀÇÁ¡!!! ¹Ýµå½Ã ÆùÆ®ÀÇ È®ÀåÀÚ°¡ ttf ¿©¾ßÇÑ´Ù. Ȥ TTF ·Î È®ÀåÀÚ°¡ µÇ¾î ÀÖÀ¸¸é dvidpfmx °¡ ÀνÄÇÏÁö ¸øÇÑ´Ù.
- ÁÖÀÇÁ¡!!! Windows ½Ã½ºÅÛ°ú´Â ´Þ¸® UNIX ¿¡¼´Â ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇϹǷΠÆÄÀÏÀÇ À̸§ÀÇ ´ë¼Ò¹®ÀÚ ÇüŸ¦ ¹Ýµå½Ã È®ÀÎÇϵµ·Ï ÇÑ´Ù.
FOUNDRY: yn FONTmj: f=bt m=YMJO120.ttf b=YMJO140.ttf FONTgt: m=YGO120.ttf b=YGO130.ttf FONTgl: m=YoonGo-Regular.ttf b=YoonGo-Bold.ttf FONThd: m=HyundaiEonhae.ttf b=HyundaiEonhae.ttf FONTmg: m=Hahoem.ttf b=Hahoeb.ttf FONTgr: m=Boram-Medium.ttf b=Boram-Bold.ttf FONTpg: m=Youth-Light.ttf b=Youth-Medium.ttfÅ͹̳Πâ¿¡¼ ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
$ perl ttf2hlatexfont.pl -c config-yn -p $ perl ttf2hlatexfont.pl -c config-yn -p -i ~/.texmf-var (¿©±â¼ ÀÌ¹Ì ÀÖ´Â µð·ºÅ丮¶ó´Â ¸Þ½ÃÁö°¡ ³ª¿À¸é yes·Î ÀÀ´äÇÑ´Ù.) $ sudo mktexlsr ; sudo mktexlsr ~/Library/texmf
ttf2hlatexfont.plÀÌ dvipdfmx.cfgÀ» ¼öÁ¤ÇØÁֹǷΠÃß°¡ ¼³Á¤Àº °í¹ÎÇÏÁö ¾Ê¾Æµµ »ó°ü¾ø´Ù. ±×·¯³ª À§¿Í °°ÀÌ ÇÏÁö ¾Ê°í º°µµÀÇ Æ®¸®¸¦ ¸¸µé¾î¼ Ãß°¡ÇÏ¿´´Ù¸é ½º½º·Î ¼öÁ¤ÇØ¾ß ÇÒ °ÍÀÌ´Ù.
[ÆíÁý]
4.3 ÀϺ»¾î/Áß±¹¾î »ç¿ë ¶
Hangul-ucsÀÇ Ãß°¡ ÆÐÅ°ÁöÀÎ trivcj¸¦ »ç¿ëÇÏ¿© ÀϺ»¾î³ª Áß±¹¾î¸¦ ½ÄÀÚÇÒ ¼ö ÀÖ´Ù. ±×·¯³ª ÀÌ°ÍÀº DVIPDFMx¸¦ ÅëÇؼ¸¸ °¡´ÉÇϸç pdfTeXÀ¸·Î´Â µÇÁö ¾Ê´Â´Ù´Â »ç½ÇÀ» ¸í½ÉÇØ¾ß ÇÑ´Ù.
ÀÌ ÀÌÈÄ´Â MacOS¿¡¼¼³Ä¡ÇϱâÀÇ ³ª¸ÓÁö ºÎºÐ°ú µ¿ÀÏÇÏ´Ù.