L A TEX Truetype 2003 2 8 1. 3 1.1................................... 3 1.2?............................... 4 2. 5 2.1.............................. 5 2.2................................ 6 3. 7 3.1 TEX............................. 7 3.2 TFM........................ 8 3.3 FD...................... 9 3.4 STY....................... 11 3.5 dvipdfmx cid map............... 11 3.6................................. 12 4. 14 15 A TTF 15 B texmf 17 1
2 C freetype ttf2tfm 18 D ttf.sh 19 E FD 20
3 KTUG.,. L A TEX,,. A..... texmf.. 1. KTUG 1, TEX, L A TEX., TEX. KTUG-MiKTeX cygwin-tetex, cvs. HLaTeX CJK., EUC-KR,. L A TEX (User s Guide). 1.1 L A TEX.,. 1 TEX. Korean TeX Users Group. http://www.ktug.or.kr.
4 1. L A TEX(HLaTeX). 2. (KS X 1001, EUC-KR).,. 2 3. PDF. DVI, dvipdfmx., DVI, PK. 3 4. TTF, TTF... 1.2?..? L A TEX,.. L A TEX... L A TEX \rm, \sf, \tt. ( ) boldface, SMALL CAPITAL. \rm. Computer Modern, Times Palatino. 2 UTF-8 KTUG. 3, TTF ttf2pk 1.5, xdvi dvips PK., DVI., KTUG-MiKTeX DVI Previewer yap TTF.
5. ( ),,.,.,,,,. ( ), ( ),,.,,. 2.. TEX, KTUG-MiKTeX.. KTUG-MiKTeX ttf2tfm dvipdfmx. L A TEX L A TEX 0.991. ttf2tfm, dvipdfmx KTUG-MiKTeX. ttf2tfm 1.5, dvipdfmx. TEX, KTUG-MiKTeX, ttf2tfm dvipdfmx. 4 Truetype.. 2.1,, 5 ( ). dvipdfmx 4, cygwin-tetex dvipdfmx. http://project.ktug.or.kr/cygwin-tetex/., cygwin-tetex freetype ttf2tfm C. 5 http://www.ktug.or.kr/jsboard/read.php?table=setup&no=1005&page=1
6 M 1: PDF. PDF Adobe Acrobat Reader, gv. 6,.,., 1. 7 TTC 8,. 9 breakttc.exe. 10 breakttc.exe gulim.ttc, 00 03,,,,. FONT00.ttf gulim.ttf, FONT02.ttf dotum.ttf. 2.2. C:\makefont.. 6 7, TEX TFM, dvipdfmx. 20. 8 batang.ttc gulim.ttc TTC. batang.ttc,,,, TTF, gulim.ttc,,,, TTF. 9 ttf2tfm --f. TTC, batang.ttc,,, 0, 1, 2, 3.. 10, MS TTSDK(ttsdk.zip). ttc2ttf.. http://mail.mizi.com/pipermail/devel/ 2002-January/004279.html
7 M nbatang.ttf h2mjrb.ttf dotum.ttf hmfbg.ttf gulim.ttf h2drrb.ttf ynch05.ttf 2: 1. TTF. 2. 2. KS-HLaTeX.sfd UKS-HLaTeX.sfd. dvipdfmx $TEXMF/dvipdfm/sfd 11. 3. dvipdfmx dvipdfmx.cfg.. $TEXMF/dvipdfm/config. 12 3. 3.1 TEX TEX.,. KTUG 13. my. L A TEX mj, gt, gr, gl. 11 KTUG-MiKTeX C:\texmf C:\texmf\dvipdfm\sfd 12 dvipdfm-cjk dvipdfm config, dvipdfmx dvipdfmx.cfg. dvipdfmx. 13 http://list.kldp.org/pipermail/ktug/2001nov/0068.html
8 mymj mymjb mymjo mygt mygtb mymjo mygl myglb myglo mygr 3: TEX, b, (oblique) o, 3. M. 3.2 TFM L A TEX TFM TEX Font. ttf2tfm. ttf2tfm KTUG 14 1.5. L A TEX, subfont, TTF TFM... 15 ttf2tfm nbatang.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 mymj@uks-hlatex@ >> ttfonts.map ttf2tfm nbatang.ttf -q -s 0.167 -L KS-HLaTeX.sfd -P 3 -E 1 mymjo@uks-hlatex@ >> ttfonts.map ttf2tfm h2mjrb.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 mymjb@uks-hlatex@ >> ttfonts.map ttf2tfm h2mjrb.ttf -q -s 0.167 -L KS-HLaTeX.sfd -P 3 -E 1 mymjbo@uks-hlatex@ >> ttfonts.map ttf2tfm dotum.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 mygt@uks-hlatex@ >> ttfonts.map ttf2tfm dotum.ttf -q -s 0.167 -L KS-HLaTeX.sfd -P 3 -E 1 mygto@uks-hlatex@ >> ttfonts.map ttf2tfm hmfbg.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 mygtb@uks-hlatex@ >> ttfonts.map ttf2tfm hmfbg.ttf -q -s 0.167 -L KS-HLaTeX.sfd -P 3 -E 1 mygtbo@uks-hlatex@ >> ttfonts.map ttf2tfm gulim.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 mygl@uks-hlatex@ >> ttfonts.map ttf2tfm gulim.ttf -q -s 0.167 -L KS-HLaTeX.sfd -P 3 -E 1 myglo@uks-hlatex@ >> ttfonts.map 14, (ligature) -l -L.. http://www.ktug.or.kr/jsboard/read.php?table=tips&no=11 15. D. cygwin.
9 ttf2tfm h2drrb.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 myglb@uks-hlatex@ >> ttfonts.map ttf2tfm h2drrb.ttf -q -s 0.167 -L KS-HLaTeX.sfd -P 3 -E 1 myglbo@uks-hlatex@ >> ttfonts.map ttf2tfm ynch05.ttf -q -l -P 3 -E 5 mygr@ks-hlatex@ >> ttfonts.map ttf2tfm ynch05.ttf -q -s 0.167 -l -P 3 -E 5 mygro@ks-hlatex@ >> ttfonts.map., mymj nbatang.ttf KS-HLaTeX.sfd TFM. UKS-HLaTeX.sfd KS-HLaTeX.sfd subfont -L. ttfonts.map. 16 ttf2tfm nbatang.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 mymj@uks-hlatex@, (itshape) mymjo nbatang.ttf TFM. ttf2tfm nbatang.ttf -q -s 0.167 -L KS-HLaTeX.sfd -P 3 -E 1 mymjo@uks-hlatex@ upshape mymjb, h2mjrb.ttf TFM. ttf2tfm h2mjrb.ttf -q -L KS-HLaTeX.sfd -P 3 -E 1 mymjb@uks-hlatex@.,, -E 5. -l. 17 1. TFM. 3.3 FD L A TEX (font definition). L A TEX.fd, (w), (s), (h). 4. 16 dvipdfmx ttfonts.map. ttf2pk PK xdvi dvips. 17,.
10 (mymj) Hwmymj.fd Hsmymj.fd Hhmymj.fd (mygt) Hwmygt.fd (mygl) Hwmygl.fd Hsmygl.fd Hhmygl.fd (mygr) Hwmygr.fd 4: FD \DeclareFontFamily{H}{wmymj}{\hyphenchar\font\m@ne} \DeclareFontShape{H}{wmymj}{m}{n}{<->mymj}{} \DeclareFontShape{H}{wmymj}{m}{sl}{<->mymjo}{} \DeclareHFontShape{H}{wmymj}{m}{it}{<->hssub*wmymj/m/sl}{} \DeclareFontShape{H}{wmymj}{b}{n}{<->mymjb}{} \DeclareFontShape{H}{wmymj}{b}{sl}{<->mymjbo}{} \DeclareHFontShape{H}{wmymj}{b}{it}{<->hssub*wmymj/b/sl}{} 1: Hwmymj.fd,,., M. TTF. ttf2tfm 11-29 subfont., \bfseries.., \section., Hwmymj.fd, 18 1., FD. mj gt gr. 18 mymj E.
11 %% myttffont.sty %% \ifx\clearocplists\undefined \MapHangulFamily{mj}{mymj,mymj,mymj} \MapHangulFamily{gt}{mygt,mygl,mygl} \MapHangulFamily{gl}{mygl,mygl,mygl} \MapHangulFamily{gr}{mygr,mymj,mymj} \DeclareErrorHFont{H}{\mjdefault}{m}{n}{10} \DeclareHFontSubstitution{H}{\mjdefault}{m}{n} \fi 2: myttffont.sty,. D. 3.4 STY L A TEX. 19 myttffont.sty, 2., mj, gt, gl, gr, gr mj, gt gl. 3.5 dvipdfmx cid map PDF dvipdfmx., map dvipdfmx.cfg. map myttffont.map. 3 myttffont.map. 20 dvipdfmx. 19, preamble. 20,. mymjb@ks-hlatex@ KSCms-UHC-H :0:!nbatang.ttf,Bold
12 mymj@ks-hlatex@ KSCms-UHC-H :0:nbatang.ttf mymjo@ks-hlatex@ KSCms-UHC-H :0:nbatang.ttf -s.167 mymjb@ks-hlatex@ KSCms-UHC-H :0:h2mjrb.ttf mymjbo@ks-hlatex@ KSCms-UHC-H :0:h2mjrb.ttf -s.167 mygt@ks-hlatex@ KSCms-UHC-H :2:gulim.ttc mygto@ks-hlatex@ KSCms-UHC-H :2:gulim.ttc -s.167 mygtb@ks-hlatex@ KSCms-UHC-H :0:hmfbg.ttf mygtbo@ks-hlatex@ KSCms-UHC-H :0:hmfbg.ttf -s.167 mygl@ks-hlatex@ KSCms-UHC-H :0:gulim.ttc myglo@ks-hlatex@ KSCms-UHC-H :0:gulim.ttc -s.167 myglb@ks-hlatex@ KSCms-UHC-H :0:h2drrb.ttf myglbo@ks-hlatex@ KSCms-UHC-H :0:h2drrb.ttf -s.167 mygr@ks-hlatex@ KSCms-UHC-H :0:ynch05.ttf mygro@ks-hlatex@ KSCms-UHC-H :0:ynch05.ttf -s.167 3: myttffont.map, gulim.ttc gulim.ttf dotum.ttf texmf Windows 5, 6 :2:gulim.ttc :0:dotum.ttf. 9, 10 gulim.ttc :0:gulim.ttf., dvipdfmx. PDF (embed) :0:!nbatang.ttf!. dvipdfmx.cfg. 21 dvipdfmx.cfg. f myttffont.map 3.6,. 4. test.tex,. 21 dvipdfmx.cfg,.
13 \documentclass{article} \usepackage{hangul} \usepackage{myttffont} \newcommand\gr{\hfontfamily{gr}} \newcommand\gl{\hfontfamily{gl}} \begin{document} \title{ } \author{} \date{} \maketitle \begin{table} \centering% \begin{tabular}{ c c c c } \hline & & & \\ \hline & & {\bf } & {\it } \\ \hline \gt & \gt & {\bf\gt } & {\it\gt } \\ \hline \gl & \gl & {\bf\gl } & {\it\gl } \\ \hline \gr & \gr & & \\ \hline \end{tabular} \caption{ }\label{example} \end{table} \end{document} 4: #> latex test #> dvipdfmx test PDF Acrobat Reader. 5.
14 5: 4. *.tfm, *.fd, *.sty *.map. texmf., texmf B., Truetype. TTF L A TEX. TTF, TTF. TTF,.. 22,.. 22,..
15 A. TTF L A TEX TTF KTUG,. KTUG.. TTF. Truetype TFM ttf2pk PK. KTUG ChoF s TeX Archive 23 1999 11.. http://free.kaist.ac.kr/cgi-bin/crazywwwboard.cgi?db=docs&mode= read&num=11&page=4& http://free.kaist.ac.kr/cgi-bin/crazywwwboard.cgi?db=docs&mode= read&num=12&page=4& http://free.kaist.ac.kr/cgi-bin/crazywwwboard.cgi?db=docs&mode= read&num=13&page=4&, Windows tfm msttf.zip. fptex texmf. http://doeun.pe.kr/site-cgi/ezboard/ezboard.cgi?db=latex&action= read&page=2&num=27&dbf=200008190000 ttf2pk ttf2tfm KTUG (2001/10). http://list.kldp.org/pipermail/ktug/2001oct/0001.html. PDF Truetype (embed), ttf2pk(ttf2tfm) *.enc PDF., ttf2tfm 23 http://free.kaist.ac.kr/chof/
16 (ligature), ttf2pk 1.5. ttf2tfm ttf2pk.. http://www.ktug.or.kr/jsboard/read.php?table=tips&no=11 Truetype PDF : PdfTEX KTUG Truetype PDF (embed),. PdfTEX,. http://www.ktug.or.kr/jsboard/read.php?table=tips&no=7. http://www.ktug.or.kr/jsboard/read.php?table=ktugbd&no=26 PDF,. http://www.doeun.pe.kr/uselatex/ref-files/l4wp-kr/l4wp-kr.pdf Truetype PDF : dvipdfm-kor TTF PDF. 24 PDF PDF, dvipdfm. PDF L A TEX. 2001 12.. http://www.ktug.or.kr/jsboard/read.php?table=ktugbd&no=63 http://www.ktug.or.kr/jsboard/read.php?table=ktugbd&no=69 http://www.ktug.or.kr/jsboard/read.php?table=ktugbd&no=80 dvipdfm-kor. http://www.ktug.or.kr/jsboard/read.php?table=ktugbd&no=207 http://www.ktug.or.kr/jsboard/read.php?table=ktugbd&no=218 http://www.ktug.or.kr/jsboard/read.php?table=ktugbd&no=262 dvipdfm-kor. 24, PDF TTF.
17 http://www.ktug.or.kr/doc/gfaq/gfaq.pdf dvipdfm-cjk dvipdfm-kor Shunsaku Hirata dvipdfm-jpn dvipdfm-cjk 25., / /,. CJK PDF (de facto standard). dvipdfmx dvipdfm-cjk dvipdfmx.,, PDF. B. texmf texmf. ( C:\makefont)., texmf,. TDS,., texmf.. 26 $myttf-texmf/fonts/tfm/myttffont/*.tfm $myttf-texmf/fonts/truetype/myttffont/*.ttf 25 http://project.ktug.or.kr/dvipdfm-cjk/ 26 texmf tree TEX implementation. tetex /home/user/myttf-texmf/, /usr/share/texmf/web2c/texmf.cnf.. TEXMF. MYTTFTEXMF. texmf.cnf,. 70. MYTTFTEXMF = $HOME/myttf-texmf TEXMF. TEXMF = {$MYTTFTEXMF,!!$TEXMFMAIN} mktexlsr ls-r.
18 $myttf-texmf/tex/latex/myttffont/myttffont.sty $myttf-texmf/tex/latex/myttffont/*.fd $myttf-texmf/dvipdfm/base/myttffont/myttffont.map $myttf-texmf/dvipdfm/config/config, config. xdvi ttfonts.map myttf-ttfonts.map $myttf-texmf/ttf2tfm/base, ttf2pk.cfg. map +myttf-ttfonts.map mktexlsr. MiKTEX MiKTeX Options. C. freetype ttf2tfm ttf2pk(ttf2tfm) 1.5. 27 freetype ttf2pk(ttf2tfm). cvs -d:pserver:anonymous@cvs.freetype.org:/cvs/freetype login [CVS password: anonymous] cvs -z3 -d:pserver:anonymous@cvs.freetype.org:/cvs/freetype co freetype cvs -z3 -d:pserver:anonymous@cvs.freetype.org:/cvs/freetype \ co freetype1-contrib cp -r freetype1-contrib freetype/ cd freetype./configure --prefix=/usr make make install cd freetype1-contrib/ttf2pk./configure --prefix=/usr --with-kpathsea-lib=/usr/lib \ --with-kpathsea-include=/usr/include/kpathsea make 27 http://www.ktug.or.kr/jsboard/read.php?table=tips&no=11
19 make install prefix kpathsea library path, README. D. ttf.sh cygwin,.. 28 1... 2. ttf.sh. 3.../ttf.sh nbatang.ttf mymj -B h2mjrb.ttf./ttf.sh dotum.ttf mygt -B hmfbg.ttf./ttf.sh gulim.ttf mygl -B h2drrb.ttf./ttf.sh ynch05.ttf mygr 4. mymj_fd, mymj_tfm.. ln -s./my*_fd/*./ ln -s./my*_tfm/*./ 5. map. config., f cid-nbatang.map f cid-dotum.map config. map. 6., 2 preamble. 28 http://doc.ktug.or.kr/ktug-doc/makettfavailable/ttf.sh.
20. E. FD mymj *.fd. mygt mj gt. Hwmymj.fd \DeclareFontFamily{H}{wmymj}{\hyphenchar\font\m@ne} \DeclareFontShape{H}{wmymj}{m}{n}{<->mymj}{} \DeclareFontShape{H}{wmymj}{m}{sl}{<->mymjo}{} \DeclareHFontShape{H}{wmymj}{m}{it}{<->hssub*wmymj/m/sl}{} \DeclareFontShape{H}{wmymj}{b}{n}{<->mymjb}{} \DeclareFontShape{H}{wmymj}{b}{sl}{<->mymjbo}{} \DeclareHFontShape{H}{wmymj}{b}{it}{<->hssub*wmymj/b/sl}{} Hsmymj.fd \DeclareFontFamily{H}{smymj}{\hyphenchar\font\m@ne} \DeclareFontShape{H}{smymj}{m}{n}{<->mymj}{} \DeclareFontShape{H}{smymj}{m}{sl}{<->mymjo}{} \DeclareHFontShape{H}{smymj}{m}{it}{<->hssub*smymj/m/sl}{} \DeclareFontShape{H}{smymj}{b}{n}{<->mymjb}{} \DeclareFontShape{H}{smymj}{b}{sl}{<->mymjbo}{} \DeclareHFontShape{H}{smymj}{b}{it}{<->hssub*smymj/b/sl}{} Hhmymj.fd \DeclareFontFamily{H}{hmymj}{\hyphenchar\font\m@ne} \DeclareFontShape{H}{hmymj}{m}{n}{<->mymj}{}
21 \DeclareFontShape{H}{hmymj}{m}{sl}{<->mymjo}{} \DeclareHFontShape{H}{hmymj}{m}{it}{<->hssub*hmymj/m/sl}{} \DeclareFontShape{H}{hmymj}{b}{n}{<->mymjb}{} \DeclareFontShape{H}{hmymj}{b}{sl}{<->mymjbo}{} \DeclareHFontShape{H}{hmymj}{b}{it}{<->hssub*hmymj/b/sl}{}