KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Make a wish, it might come true.
FrontPage › CygWin¿¡¼­¼³Ä¡Çϱâ/obsolete
CygWin¿¡¼­¼³Ä¡Çϱâ ÆäÀÌÁöÀÇ ³»¿ëÀ» °»½ÅÇϸ鼭 ÀÌÀü ³»¿ëÀ» º¸°üÇϱâ À§ÇÏ¿© ¸¸µç ÆäÀÌÁöÀÔ´Ï´Ù(out-of-date).


ttf2pk/ttf2tfm ¼³Ä¡

ttf2pk´Â Æ®·çŸÀÔ ±Û²Ã·ÎºÎÅÍ PK Çȼ¿ ºñÆ®¸Ê ÆùÆ® ÆÄÀÏÀ» ¸¸µé¾î³»´Â FreeType À¯Æ¿¸®Æ¼ÀÌ´Ù. ÇÑ±Û Æ®·çŸÀÔÀ» Àß »ç¿ëÇϱâ À§Çؼ­´Â ÀÌ À¯Æ¿¸®Æ¼°¡ ¹Ýµå½Ã ÇÊ¿äÇѵ¥, ¹®Á¦´Â Á¤½Ä ¹öÀü¿¡´Â ¾ø´Â ¸î °¡Áö ÆÐÄ¡µÈ ±â´ÉÀÌ ÇÊ¿äÇÏ´Ù´Â °ÍÀÌ´Ù.[1] ttf2pk ÆÐÄ¡´Â ¸ðµÎ ¼¼ °¡Áö°¡ KTUG¿¡¼­ ÀÌ·ç¾îÁ³´Ù.
  1. ChoF ´Ô¿¡ ÀÇÇÑ ligature ÆÐÄ¡ (ÀÌ°ÍÀº 1.5 ¹öÀü¿¡ ¹Þ¾Æµé¿©Á³´Ù.)
  2. ChoF ´Ô¿¡ ÀÇÇÑ Omega ÆÐÄ¡ <!>
  3. WkPark ´Ô¿¡ ÀÇÇÑ FreeType 2 ÆÐÄ¡

----
  • [1] Âü°í·Î, ÇöÀçÀÇ 1.5 ¹öÀü¿¡¼­´Â ligature ÆÐÄ¡°¡ ÀÌ·ç¾îÁ® ÀÖ°í ´ëºÎºÐÀÇ TeX ¹èÆ÷ÆÇÀº ÀÌ ¹öÀüÀ» Æ÷ÇÔÇÏ°í ÀÖ´Ù. MiKTeX ¿ª½Ã ¸¶Âù°¡ÁöÀÌ´Ù.

ÀÌ °¡¿îµ¥ Omega <!> ÆÐÄ¡°¡ ¹Ýµå½Ã ÀÌ·ç¾îÁ®¾ß Æ®·çŸÀÔ ±Û²ÃÀ» Omega/Lambda¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ´Ù. WkPark ´ÔÀÇ FreeType 2 ÆÐÄ¡±îÁö Àû¿ëÇϱâ·Î ÇÏ°í, ´ÙÀ½ ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇÑ´Ù. ÀÌ°ÍÀº KTUGBoard:1067¿¡ ÀÖ´Â °ÍÀ» Á¶±Ý ¼öÁ¤ÇÑ °ÍÀÌ´Ù. FreeType 2 ÆÐÄ¡°¡ ÀÌ·ç¾îÁö¸é OTF ÆÄÀÏÀ» ´Ù·ê ¼ö ÀÖ´Ù.
<!> ¾Æ·¡ ½ºÅ©¸³Æ®¿¡¼­ ¹Ú¿ø±Ô ´ÔÀÌ ¿ø·¡ ¸¸µé¾îµÎ½Å °ÍÀº ÁÖ¼®Ã³¸®µÈ ºÎºÐÀε¥, CygWin¿¡¼­ ÄÄÆÄÀÏÇÒ ¶§ ¹ß»ýÇÏ´Â ¿À·ù¸¦ Á¦°ÅÇϱâ À§ÇØ Makefile.inÀ» Á¶±Ý ¼öÁ¤ÇÑ °ÍÀÌ ¾Æ·¡ ÀÖ´Â ÁÖ¼ÒÀÌ´Ù.

wget -N \
http://aleron.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.9.tar.gz

wget \
#http://chem.skku.ac.kr/~wkpark/project/ktug/ttf2pk-freetype2_20030314.tgz
http://my.ktug.or.kr/~karnes/testtest/ttf2pk-freetype2_20030314_2.tar.gz

wget \
http://ftp.ktug.or.kr/pub/ktug/freetype/contrib/ttf2pk-1.5-20020430.patch

tar xzvf freetype-2.1.9.tar.gz

cd freetype-2.1.9
mkdir contrib
tar xzvf ../ttf2pk-freetype2_20030314_2.tar.gz -C contrib
sh configure --prefix=/usr/local

make
# freetype2¿Í staticÇÏ°Ô ¸µÅ©µÇ°Ô ÇÏ¿´½À´Ï´Ù. ¼³Ä¡ÇÒ ÇÊ¿ä ¾ø½À´Ï´Ù.

cd contrib/ttf2pk-freetype2

patch -p1 <../../../ttf2pk-1.5-20020430.patch
# ofmÆÐÄ¡¸¦ ÇÏ·Á¸é À§ ÁÖ¼®Ç¥½Ã¸¦ Á¦°Å

# ¾Æ·¡´Â ÀÚ½ÅÀÇ È¯°æ¿¡ ¸ÂÃß¾î¾ß ÇÕ´Ï´Ù.
sh configure --with-kpathsea-include=/usr/include/kpathsea \
   --with-kpathsea-lib=/usr/lib

make
cp ttf2tfm.exe ../../..
cp ttf2pk.exe ../../..

À§ÀÇ ³»¿ë Àüü¸¦ rules.sh·Î ÀúÀåÇÑ ´ÙÀ½ ½ÇÇà(./rules.sh)ÇÏ¸é °£´ÜÈ÷ ³¡³­´Ù. ¾à°£ÀÇ °æ°í°¡ ³ª¿ÀÁö¸¸ ¹«½ÃÇÑ´Ù. ½ÇÇà µð·ºÅ丮¿¡ ¸¸µé¾îÁø ttf2pk.exe¿Í ttf2tfm.exe¸¦ /usr/local/binÀ¸·Î ¿Å±ä´Ù. ÀÌ¹Ì ÀÌ ½ÇÇàÆÄÀϵéÀÌ ÀÖ´Ù¸é À̸§À» º¯°æÇصдÙ.

À̸¶Àú ±ÍÂúÀ¸½Å ºÐÀ» À§ÇÑ ¹æ±Ý ÄÄÆÄÀÏÇÑ ½ÇÇàÆÄÀÏ ¹ÙÀ̳ʸ® => Uploads:ttf2pk-cygwin-binaries-20050829.zip

local texmf ¼³Á¤

¿ì¸®´Â º°µµÀÇ »ç¿ëÀÚ texmf ¼³Á¤À» ÇÏÁö ¾Ê°í teTeXÀÇ ±âº» ¼³Á¤À» ±×´ë·Î ÀÌ¿ëÇÏ·Á ÇÑ´Ù. teTeXÀÌ ¼³Ä¡µÇ¸é ±âº» ¼³Á¤Àº ´ÙÀ½°ú °°ÀÌ µÇ¾î ÀÖ´Ù.
 $TEXMFMAIN = /usr/share/texmf
 $TEXMFDIST = /usr/share/texmf
 $TEXMFSYSCONFIG = /usr/share/texmf
 $VARTEXFONTS = /var/cache/fonts
 $TEXMFSYSVAR = /var/lib/texmf

 $TEXMFLOCAL = /usr/local/share/texmf
 $TEXMFHOME = $HOME/texmf
 $TEXMFVAR = $HOME/.texmf/var
 $TEXMFCONFIG = $HOME/.texmf/config
ÀÌ °¡¿îµ¥ À§ÀÇ ´Ù¼¸ °³´Â °Çµå¸± ÇÊ¿ä ¾ø°í ¾Æ·¡ÀÇ ³× °³¸¦ »ç¿ëÀÚ°¡ ¼³Á¤ÇÏ¿© »ç¿ëÇÑ´Ù. ¸¸¾à $HOME/.texmf µîÀÌ ¸¸µé¾îÁ® ÀÖÁö ¾Ê´Ù¸é Á÷Á¢ ¸¸µé¾îÁØ´Ù.
$> cd ~
$> mkdir -p .texmf
$> cd .texmf
$> mkdir -p var
$> mkdir -p config
<!> $HOME À̶õ »ç¿ëÀÚÀÇ È¨ µð·ºÅ丮¸¦ ¸»ÇÑ´Ù. À§ÀÇ cygwin.bat¿¡¼­ ÀÌ µð·ºÅ丮°¡ Á¤ÀǵǾî Àִµ¥, »ç¿ëÀÚÀÇ User nameÀÌ karnes¶ó¸é ÀϹÝÀûÀ¸·Î /home/karnesÀÌ´Ù. À©µµ °æ·Î·Î´Â C:\cygwin\home\karnesÀÌÁö¸¸, ÀÏ´Ü CygWin bash shell¿¡ ¿Ã¶ó¿À¸é À¯´Ð½º ½ºÅ¸ÀÏÀÇ °æ·Î¸íÀ» »ç¿ëÇÑ´Ù. ÀÌ µð·ºÅ丮´Â shell »ó¿¡¼­ ~À¸·Îµµ ÂüÁ¶µÈ´Ù.
$> cd ~

±× ´ÙÀ½, ÇÊ¿äÇÑ ¼³Á¤ ÆÄÀϵéÀ» º¹»çÇϰųª »õ·Î ¸¸µç´Ù. ÇÊ¿äÇÑ ÆÄÀÏÀº dvipdfmx.cfg, ttf2pk.cfg, updmap.cfg, texmf.cnf, fmtutil.cnf µîÀÌ´Ù.) ´ÙÀ½°ú °°ÀÌ º¹»çÇÏ¸é µÈ´Ù.
º¹»çµÉ ÆÄÀÏ º¹»çÇÒ À§Ä¡
/usr/share/texmf/web2c/texmf.cnf $HOME/.texmf/config/web2c/texmf.cnf
/usr/share/texmf/web2c/fmtutil.cnf $HOME/.texmf/config/web2c/fmtutil.cnf
/usr/share/texmf/dvipdfm/config/dvipdfmx.cfg $HOME/.texmf/config/dvipdfm/config/dvipdfmx.cfg
* $HOME/.texmf/config/ttf2pk/config/ttf2pk.cfg
/usr/share/texmf/web2c/updmap.cfg $HOME/.texmf/var/web2c/updmap.cfg

ttf2pk.cfgÀÇ ¼³Ä¡´Â ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù. ttf2pk ¼Ò½º data µð·ºÅ丮 ³»ÀÇ ¸ðµç ÆÄÀÏÀ» $HOME/.texmf/config/ttf2pk/·Î º¹»çÇÑ´Ù.

<!> ttf2pk ½ÇÇàÆÄÀϸ¸À» ´Ù¿î·Îµå¹ÞÀ¸½Å ºÐÀº, ´ÙÀ½ ÆÄÀÏÀ» ´Ù¿î·Îµå¹Þ¾Æ¼­ Ç®¸é(tar zxvf ttf2pk-data.tar.gz) ttf2pk µð·ºÅ丮¸¦ ¾òÀ» ¼ö ÀÖ´Ù. ÀÌ µð·ºÅ丮ÀÇ ³»¿ëÀ» $HOME/.texmf/config/ttf2pk/·Î º¹»çÇÑ´Ù. Uploads:ttf2pk-data.tar.gz

<!> Âü°í <!> CygWinÀº Windows TTF Æú´õ¸¦ ÀÚµ¿À¸·Î ÀÐÁö ¾Ê´Â´Ù.
  1. texmf.cnf¿¡¼­ /cygdrive/c/windows/fonts¸¦ truetype ÆùÆ® ¼­Ä¡ µð·ºÅ丮·Î ¼³Á¤Çصδ ¹æ¹ýÀÌ ÀÖ´Ù. ÀÌ °¡À̵忡¼­´Â ÀÌ ¹æ¹ýÀ» »ç¿ëÇÑ´Ù.
  2. ~/texmf-local/fonts/truetype/WindowsTTF µð·ºÅ丮¸¦ ¸¸µé°í C:\Windows\Fonts¿¡ ÀÖ´Â *.ttf¸¦ ¿©±â¿¡ ½Éº¼¸¯ ¸µÅ©¸¦ °É¾îµÎ´Â ¹æ¹ýµµ ÀÖ´Ù. 1¹øÀÇ ¹æ¹ýÀ¸·Î Àß µÇÁö ¾Ê´Â °æ¿ì¿¡´Â ÀÌ ¹æ¹ýÀ» »ç¿ëÇÑ´Ù.
    #> cd ~
    #> mkdir -p ./.texmf/var/fonts/truetype/WindowsTTF
    #> ln -s /cygdrive/c/Windows/Fonts/Batang.ttc ./.texmf/var/fonts/truetype/WindowsTTF/batang.ttc
    #> ln -s /cygdrive/c/Windows/Fonts/Gulim.ttc ./.texmf/var/fonts/truetype/WindowsTTF/gulim.ttc
    #> mktexlsr
    


texmf.cnfÀÇ ¼öÁ¤


$HOME/.texmf/config/web2c/texmf.cnf¸¦ ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÑ´Ù.

1. ¸Þ¸ð¸® ¼³Á¤

Å« ±Ô¸ðÀÇ ÇÑ±Û ¹®¼­¸¦ ó¸®ÇÏ·Á ÇÑ´Ù¸é memory ¼³Á¤µµ ¾ÆÁÖ Á¶±Ý¸¸ ¹Ù²Û´Ù. ÀÌ ¼³Á¤»çÇ×Àº 480Çà ±Ùó¿¡ ÀÖ´Ù.
main_memory = 1500000 % modified
%main_memory = 1000000 % words of inimemory available; also applies to inimf&mp 

2. À©µµ ÆùÆ® Æú´õ¸¦ Æ®·çŸÀÔ Å½»ö µð·ºÅ丮·Î Ãß°¡

À©µµ ÆùÆ® µð·ºÅ丮¸¦ Æ®·çŸÀÔ Å½»ö Æú´õ·Î Æ÷ÇÔÇÏ°íÀÚ ÇÑ´Ù¸é,(306Çà ±Ùó)
% TrueType outline fonts.
TTFONTS = .;$TEXMF/fonts/truetype//;/cygdrive/c/Windows/Fonts

3. CMAPINPUTS º¯¼ö Ãß°¡

(¸¸¾àÀ» À§Çؼ­) 390Çà ±Ùó Part 1ÀÌ ³¡³ª´Â ºÎºÐ¿¡ ´ÙÀ½ »çÇ×À» Ãß°¡ÇÑ´Ù.
% DVIPDFMx
CMAPINPUTS = .;$TEXMF/fonts/cmap//;/cygdrive/c/PROGRA~1/ADOBE/ACROBA~1.0/RESOURCE/CMAP
<!> ¿©±â¼­´Â CMAP ÆÄÀÏÀ» ã´Â °÷À» ÁöÁ¤ÇÑ´Ù. gs7.07ÀÌ ¼³Ä¡µÇ¾î ÀÖ´Â °ÍÀÌ ¾Æ´Ï¶ó¸é AdobeReaderÀÇ ÇÏÀ§ µð·ºÅ丮¸¦ ¿©±â¿¡ ½áÁÖ¾î¾ß ÇÑ´Ù. ¿¹¸¦ µé¸é À§¿Í °°´Ù. ¹Ýµå½Ã 8.3 µµ½º °æ·Î¸íÀ¸·Î ½áÁØ´Ù.

4. ÀúÀå

ÀúÀåÇÑ´Ù.

texconfigÀÇ ½ÇÇà

¿©±â¼­ texconfig¸¦ ½ÇÇàÇÑ´Ù. ½ÇÇà ÈÄ¿¡ ¿£Å͸¦ ´©¸£¶ó´Â ¸Þ½ÃÁö°¡ º¸ÀÌ¸é ¿£Å͸¦ Ä£´Ù. runtexconfig.jpg

¿©±â¼­ rebuild filename database¸¦ ¸Ç¸ÕÀú ½ÇÇàÇÑ´Ù. show configurationÀ¸·Î ÇöÀç ¼³Á¤À» È®ÀÎÇÒ ¼ö ÀÖ´Ù.

texconfig¸¦ ºüÁ®³ª¿Í¼­ ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÑ´Ù. ¹Ýµå½Ã texconfig¸¦ ºüÁ®³ª¿Í¼­ ½ÇÇàÇϵµ·Ï ÇÑ´Ù.
$> fmtutil --all

texmf-KTUGÀÇ ¼³Ä¡

¿ì¸®´Â ÇÑ±Û È¯°æÀ» texmf-KTUGÀ¸·Î ±¸ÃàÇÏ·Á ÇÑ´Ù. ÀÌ texmf tree´Â KTUGÀÇ Ç¥ÁØ ÇÑ±Û È¯°æ ÇÁ·ÎÁ§Æ®ÀÇ ÀÏȯÀ¸·Î Á¦°øµÇ´Â °ÍÀ¸·Î¼­ Å©±â°¡ Å©´Ù´Â Á¡ÀÌ ´ÜÁ¡ÀÌÁö¸¸ °¡´ÉÇÑ °ÅÀÇ ¸ðµç ÇÑ±Û È¯°æÀ» ¸ðµÎ Æ÷ÇÔÇÏ°í ÀÖ´Â all-in-one ½Ã½ºÅÛÀÌ´Ù. Á¾·¡ ¸¹ÀÌ »ç¿ëµÇ¾î ¿Â HLaTeXÀÇ 1.0.1 ¹öÀü°ú DHUcs ¹× MemhangulClass±îÁö Æ÷ÇÔÇÏ°í ÀÖÀ¸¹Ç·Î ÇÑ±Û »ç¿ë¿¡ °üÇÑ ÇÑ ´Ù¸¥ ¹æ¹ýÀ» »ý°¢ÇØ¾ß ÇÒ ÇÊ¿ä°¡ ¾ø´Ù. Àº±Û²Ãµµ Æ÷ÇԵǾî ÀÖ´Ù. KTUGCollectionProject ÆäÀÌÁö¿¡¼­ °ø°³ÆÇ texmf-KTUGÀ» ³»·Á¹Þ´Â´Ù. Àû¾îµµ texmf-KTUG-*.tar.gz¿Í KTUG_BIN*.tar.gz´Â ¹Ýµå½Ã ³»·Á¹Þ¾Æ¾ß ÇÑ´Ù.

KTUG_BINÀÇ ¼³Ä¡

$HOME¿¡ ³»·Á¹Þ¾Ò´Ù°í ÇÒ ¶§ ³»·Á¹ÞÀº ÆÄÀÏÀ» ´ÙÀ½°ú °°ÀÌ Ç¬´Ù.
$> tar zxvf KTUG_BIN-*.tar.gz
-*´Â ³»·Á¹ÞÀº ÆÄÀÏ À̸§¿¡ ¸Â°Ô ½áÁÖ¾î¾ß ÇÑ´Ù.(ÅÇÅ°·Î ¿Ï¼ºÇÏ¸é µÉ °ÍÀÓ) ´ÙÀ½°ú °°ÀÌ µÎ °³ÀÇ ÆÄÀÏÀ» ÄÄÆÄÀÏÇÑ´Ù.
$> cd KTUG_BIN
$> gcc -o hbibtex hbibtex.c
$> gcc -o hmakeindex hmakeindex.c
±×¸®°í ÀÌ ÆÄÀϵéÀ» /usr/local/binÀ¸·Î ¿Å±ä´Ù.
$> mv ./* /usr/local/bin/
ÇÊ¿äÇÏ´Ù¸é ½ÇÇà Æ۹̼ÇÀ» ¿­¾îÁÖ¾î¾ß Çϴµ¥ ¾Æ¸¶µµ ±×·² ÇÊ¿ä°¡ ¾øÀ» °ÍÀÌ´Ù.

texmf-KTUGÀÇ ¼³Ä¡

$HOME¿¡ ³»·Á¹Þ¾Ò´Ù°í ÇÒ ¶§ ´ÙÀ½°ú °°ÀÌ ÇÏ¿© ÆÄÀÏÀ» Ç®¾îÁØ´Ù.
$> cd ~  (ÆÄÀÏÀ» ³»·Á¹ÞÀº µð·ºÅ丮)
$> tar zxvf texmf-KTUG-*.tar.gz
-*´Â ³»·Á¹ÞÀº ÆÄÀÏ À̸§¿¡ ¾Ë¸Â°Ô ½áÁØ´Ù. Ç®¾î¼­ »ý°Ü³ª´Â µð·ºÅ丮¸¦ $HOME/texmf·Î ½Éº¼¸¯ ¸µÅ©¸¦ °É¾îÁØ´Ù. ¸¸¾à texmf-KTUGÀÌ ´Ù¸¥ À§Ä¡¿¡ ÀÖ´ÙÇÏ´õ¶óµµ ¿ª½Ã $HOME/texmf·Î ½Éº¼¸¯ ¸µÅ©¸¦ °É¾î¾ß ÇÑ´Ù.
$> ln -s ./texmf-KTUG ./texmf

dvipdfmx.cfgÀÇ ¼öÁ¤

~/.texmf/config/dvipdfm/config/dvipdfmx.cfg¸¦ ¿¡µðÅÍ·Î ¿­¾î¼­ 138ÇàÀÇ ÁÖ¼®À» Á¦°ÅÇÑ´Ù.
D  "gs -q -dNOPAUSE ....

¸¶Áö¸· Çà¿¡ ´ÙÀ½ ÇÑ ÁÙÀ» Ãß°¡ÇÑ´Ù.
f cid-KTUG.map 

ttf2pk.cfgÀÇ ¼öÁ¤

~/.texmf/config/ttf2pk/ttf2pk.cfg¸¦ ´ÙÀ½°ú °°Àº ³»¿ëÀ¸·Î ÆíÁýÇÑ´Ù.
% this is the map file for ttf2pk
map +ttfonts.map
map +KTUG-ttf2pk.map

updmap.cfgÀÇ ¼öÁ¤

~/.texmf/var/web2c/updmap.cfg¿¡ ´ÙÀ½ ³»¿ëÀ» Ãß°¡ÇÑ´Ù.
Map uhc-base.map
Map uhc-extra.map
Map wan-down.map
Map AdobePiStd.map

Fontmap ¸¸µé±â

¿©±â±îÁö ¼öÁ¤ÀÌ ³¡³µÀ¸¸é, ¿ì¼± Filename Database¸¦ °»½ÅÇÑ´Ù.
$> mktexlsr

¶Ç´Â
$> texhash

´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.

$> updmap

unicode ÆÐÅ°ÁöÀÇ ¼³Ä¡

teTeX¿¡´Â unicode ÆÐÅ°Áö°¡ µé¾î ÀÖÁö ¾Ê´Ù. ±×·¯¹Ç·Î dhucs¸¦ »ç¿ëÇÏ·Á¸é ÀÌ°ÍÀ» ¼³Ä¡ÇØÁÖ¾î¾ß ÇÑ´Ù. ¸ÕÀú .texmf/var/tex/latex µð·ºÅ丮¸¦ ¸¸µç´Ù. ±×·± ´ÙÀ½ ÀÌ µð·ºÅ丮¿¡ µé¾î°¡¼­ ´ÙÀ½ ¸í·ÉÀ» Â÷·Ê·Î ¼öÇàÇÑ´Ù.
$> pwd
   (~/.texmf/var/tex/latex À§Ä¡¿¡ ÀÖ¾î¾ß ÇÔ)
$> wget http://ftp.ktug.or.kr/tex-archive/macros/latex/contrib/unicode.zip
$> unzip unicode.zip

Refresh FNDB

ÀÌÁ¦ TeX »ç¿ë ¼³Á¤Àº ³¡³µ´Ù. ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
$> mktexlsr

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-02-19 01:38:10
Processing time 0.0555 sec