Upload
lamthuy
View
348
Download
16
Embed Size (px)
Citation preview
ko
2
ko
ko
ko ko
ko
ko
ko
ko
ko
ko
I 1
1 ko.TEX 2
ko
ko
ko
2 7
3 11
4 12
ko
II ko.TEX-utf 15
5 16
6 43
ko
7 50
8 () 59
komkindex
III 61
9 plainTEX ko.TEX 62
10 HTML 64
11 65
ttf2kotexfont
12 68
70
75
I
1
ko.TEX
1.1 ko.TEX
ko
ko
ko.TEX-utf tex
latex pdftex pdflatex
dhucs kotexplain
cjk-ko CJK
ko ko
ko
\usepackage{kotex}
X ETEX-ko
LuaTEX-ko
ko ko.TeX ko ko
3
oblivoir memoir
ko.TEX utilities
komkindex xindy modules
ko
ko
kotex-euc
ko
untype1 ko
ko
ko
nanumtype1
ko
1.2
1.2.1 ko.TEX (2007)
ko
ko ko
4 1 ko.TEX
ko
ko ko
ko.TEX 5
1.2.2
ko
ko
ko ko
oblivoir xoblivoir
cjk-ko nanumtype1 luatexko xetexko
ko
ko ko
ko
1.3 ko.TEX
ko
ko
\newcommand*\koTeX{%\textsf{k}\kern-0.0625em\textit{o}\kern-0.11em%\lower.15ex\hbox{.}\kern-0.1em\protect\TeX}
ko kotex-
logo \usepackage{kotex-logo} \koTeX
cjk-ko
6 1 ko.TEX
1.4
ko
ko.TEX-utf
X ETEX-ko
LuaTEX-ko
cjk-ko
oblivoir
ko.TEX-euc
untype1
untype1 cjk-ko
2
2.1 kotex.sty
ko kotex
ko
\usepackage[]{kotex}
[hangul]
[hanja] [hangul]
ko
ko
\usepackage
[cjk]{kotex} cjkutf8-ko...{kotex} dhucs...{kotex} xetexko...{kotex} luatexko
8 2
2.2 pdfLATEX LATEX
\usepackage[cjk]{kotex}
[cjk] cjk-ko cjkutf8-ko.sty
[hangul] [hanja] [nojosa]
[usedotemph] [usecjkt1font]
\usepackage[utf]{kotex}
dhucs.sty
ko
dhucs
[utf]
2.3 X ELATEX LuaLATEX
xetexko.sty luatexko.sty \usepacakge{kotex}
xelatex
[hangul]
[hanja]
2.4
[euc] kotex-euc
pdf 9
iftex ko
\documentclass{article}
\usepackage[hangul]{kotex}
\usepackage{iftex}\ifPDFTeX
\usepackage{dhucs-nanumfont}\else\ifXeTeX
\setmainhangulfont{NanumMyeongjo}\else\ifLuaTeX
\setmainhangulfont{NanumMyeongjo}\fi\fi\fi
2.5 pdf
2.5.1 pdf bookmark
hyperref [pdfencoding = auto]
\usepackage{kotex}\usepackage{pdfencoding=auto,bookmarks]{hyperref}
2.5.2
dvipdfmx
[unicode] [unicode] [pdfencoding=auto]
10 2
dvips
pdftex \pdfgentounicode
\begin{document}
\ifpdf\input glyphtounicode\pdfgentounicode=1
\fi
oblivoir oblivoir
3
ko ko
ko ko ko
texdoc
texdoc kotex
cjk-ko texdoc cjk-ko
X ETEX-ko texdoc xetexko
LuaTEX-ko texdoc luatexko
oblivoir texdoc memman
texdoc ultrasimple
texdoc memucs-manual
ko untype1
kotexguide ko ko untype1
kotex-euc
4
4.1 CTAN
ko
kotex-utf xetex-ko luatex-ko cjk-ko kotex-oblivoir kotex-utils kotex-
plain
kotex-plain cjk-ko xetex-ko kotex-utf
luatex-ko xetex-ko
nanumtype1
TEX Live
MiKTEX kotex-utils
collection-langkorean
KTUG 13
4.2 KTUG
ko ko
ko
kotex-euc ko
unfonts-base
unfonts-base
unfonts-extra
nanumbaruntype1
kotex-midkor
jiwonlipsum
kswrapfig
ob-chapstyles
hanjacnt
arara-rules-ko
ktugbin ko
texworks-config ko
ko tlmgr
$ tlmgr repository add http://ftp.ktug.org/KTUG/texlive/tlnet/ ktug
tlpkg
/usr/local/texlive/texmf-local/tlpkg
14 4
ktug:*
pinning.txt
$ tlmgr install unfonts-base$ tlmgr remove unfonts-base
kotex-midkor
4.3 ko.TEX Live
ko
ko
ko
ko
4.4 TEX Live
cjk-ko xetex-ko luatex-ko kotex-utf kotex-plain
kotex-oblivoir
tlmgr
ko collection-langkorean
ko
http://www.ktug.org
http://www.ktug.org
II
ko.TEX-utf
5
5.1
ko
dhucs
5.2
5.2.1
kotex \usepackage ko
[cjk] [euc]
dhucs
hyperref [unicode]
hyperref
bookmarks=false
\hypersetup
\ifpdf .. \else .. \fi
ifpdf
pdflatex pdf dvipdfmx
dvi pdf
17
\documentclass{article}
\usepackage[hangul,nonfrench,finemath]{kotex} \usepackage{dhucs-nanumfont}
\usepackage{ifpdf} \ifpdf \usepackage[pdfencoding=auto,pdftex,colorlinks]{hyperref} \input glyphtounicode \pdfgentounicode=1
\else \usepackage[unicode,dvipdfmx,colorlinks]{hyperref} \fi
\begin{document}
\section{} .
\end{document}
firsttest.tex
5.2.2
$ pdflatex firsttest
latex .dvi dvipdfmx
$ latex firsttest
$ dvipdfmx firsttest
5.2.3
ko
hangul
18 5
nojosa
hanja hangul
nonfrench
finemath
strictcharcheck .tfm
.log
5.3
5.3.1
[hangul]
e eurofont eurosym
\euro
[]
babel
\DeclareUnicodeCharacter
19
e
20 5
5.3.2
[hangul]
\kscntformat
[hangul]
\refname
\renewcommand{\refname}{~}
ko \ksnamedef
\newcommand\ksnamedef[2]{\expandafter\def\csname #1\endcsname{#2}}
5.3.3
ko [hangul]
\kscntformat kotex-utf ko ko oblivoir titlesec sectsty
21
today enclname ccname headtoname seename \ \ contentsname listfigurename listtablename refname indexname tablename abstractname bibname appendixname ksTHE partname chaptername sectionname colorlayer glossaryname pagename figurename
\kscntformat{section}{}{}
\kscntformat{}{}{}
\chapter
\renewcommand{\thechapter}{\Hnum{chapter}}\renewcommand{\chaptername}{}\kscntformat{chapter}{}{~\chaptername}
ko dhucs-sectsty
22 5
\usepackage{dhucs-sectsty}\sectionfont{\nohang\sffamily\centering}
5.3.4
\em \emph
ko
dhucs-gremph
\usepackage{dhucs-gremph}
dhucs-
gremph
xetex-ko luatex-ko ItalicFont,ItalicFeatures xetex-ko
dhucs-gremph \sffamily
23
\dotemph
ko
ko
\dotemph \dotemph \dotema a
\circemph \circemph \circema [hangul]
\useremph
\dotemph [hangul]
\circemph \dotemph \useremph
\useremph
\renewcommand\useremphchar{\tiny}\setlength\useremphraisedim{10pt}\useremph{ }
\underline
ulem
\uline{} ?
ulem \emph
\uline
\usepackage[normalem]{ulem}
24 5
5.3.5 ,
kotex-utf
dhucs-interword xetex-ko luatex-
ko
kotex-
utf
dhucs-interword \interhchar
\interhchar{3pt}
\spaceskip
\interhchar{3pt} \spaceskip=2em plus 1em minus 1em
25
\baselinestretch
\linespread
\renewcommand*{\baselinestretch}{2.0}
\linespread{2.0}
dhucs-setspace
\begin{spacing}{2.0}....\end{spacing}
26 5
\setstretch
ko
dhucs-interword
dhucs-interword
dhucs-setspace
dhucs-interword dhucs-
setspace
\usepackage[hangul]{dhucs}
\usepackage[default]{dhucs-interword}
\usehangulfontspec{default}
\usepackage[hangul]{dhucs-setspace}
dhucs-interword
[hangul] dhucs-setspace
\linespread{1.333}
[finemath]
0pt dhucs-interword
[finemath]
5.3.6
27
5.3.7 nonfrench spacing
[nonfrench]
\xspaceskip
\xspaceskip
Frenchspacing:
Nonfrenchspacing:
28 5
5.3.8
ko hangulfn.sty
ko dhucsfn
superscript, hang
superscript, parenthesis, hang, multipara, para, leftflush,
indent, leftflushindent, hangpar, varhangpar
5.3.9
\newcounter{test} \setcounter{test}{2}\jaso{test} \pjaso{test} \ojaso{test} \gana{test} \ogana{test} \pgana{test} \onum{test} \pnum{test} \oeng{test} \peng{test} \hnum{test} \Hnum{test} \hroman{test} \hRoman{test}
[hangul]
\hNum{cnt}, \hanjanum{cnt}
cnt
29
5.3.10
\ref
\ \, \ \, \ \, \ \, \ \, \ \
\, \
\ref{sec:test}\
\jong \jung \rieul
\newcommand*\teststr{\rieul}\teststr\
\section
\caption
\ref \protect \nameref
hyperref
30 5
5.3.11 enumerate
enumerate
\renewcommand\theenumi{\pgana{enumi}}
\renewcommand\labelenumi{\theenumi}
\begin{enumerate}
\item
\item
\item
\item
\item
\end{enumerate}
enumerate
\usepackage{dhucs-enumerate}
enumerate
\begin{enumerate}[ )]\item \item \end{enumerate}
31
enumerate A, a, i,
I, 1 , , , , , , , , , , ,
paralist
dhucs-paralist
enumitem
%\usepackage{enumitem}\usepackage{dhucs-enumitem}
\begin{enumerate}[label={\bfseries\pgana*.}]\item \item \end{enumerate}
enumitem
enumitem
\setenumerate[1]{label={\pgana*},noitemsep}\setenumerate[2]{label={\ogana*},nolistsep}
enumerate enumitem
32 5
5.4
ko
[finemath]
5.4.1
[finemath] [finemath]
[finemath]
\def\breakafterinlinemath{\hskip2pt}\def\nobreakafterinlinemath{\kern2pt}
x f(x) x y
x = 2 x x+ y
[finemath] kotex-utf xetex-ko
[finemath]
33
sample-finemath-setup.tex
5.4.2 Micro Typography
Micro-typographic extensions
to the TEX typesetting system
ko
microtype
34 5
.
,
.
,
,
,
.
.
.
,
.
.
,
.
,
.
.
1
.
,
.
,
,
,
.
.
.
,
.
.
,
.
,
.
.
1font expansion font expansion
\usepackage[verbose=true]{microtype}\DeclareMicrotypeSet{dhucsmicro}{encoding=LUC}\UseMicrotypeSet[expansion]{dhucsmicro}
5.5
5.5.1
35
. PageStyle running heading. fancyhdr . .FAQ (FancyHdr) .
'K'sWs/37'./G PageStyle
running heading'/ 6'. '6 G #G fan-
cyhdr Ws +. ' Ws G # [
; ' C 3_
h. FAQ (FancyHdr) K's/ /.
ko ko
5.5.2
FAQ(FancyHdr)
ko
http://ktug.kldp.net/jsboard/read.php?table=ktugbd&no=4825
http://ktug.kldp.net/jsboard/read.php?table=ktugbd&no=4825
36 5
'()G ; PageStyle running heading'/ ;_G
( G) 6'. '6 G #G fancyhdr Ws +.
' Ws G # [ ;
' C 3_ h. FAQ(FancyHdr)
K's/ /.
s sC', [C/] LATEX 3
(orphans and widows)/G _;G '7 ;_G + [gw
{\s G X' ;g '
5.5.3
ko
\par \nobreak
\nobreak
\
Memoir Manual
PDF 37
5.6 PDF
5.6.1
hyperref
\usepackage[...]{hyperref}
\hypersetup
hyperref.cfg
[unicode]
hyperref.cfg
5.6.2
\usepackage[pdfencoding=auto,,...]{hyperref}
38 5
hyperref
pdftex dvipdfm dvips
5.7
komkindex
kotex.ist
biber
natbib cite apacite
biblatex
5.8
dhhangul
dhucs-midkor
apacite apacite
tlmgr install kotex-midkor ko ko
[U+AC00] [U+1100][U+1161]
http://ktug.kldp.net/jsboard/read.php?table=operate&no=21183
39
ko
ko ko
jamo-normalize
ko ko
dhucs-midkor
# jamo-normalize -d -o yettest.tex
http://ko.wikisource.org/wiki/%EC%82%AC%EB%AF%B8%EC%9D%B8%EA%B3%A1
http://ko.wikisource.org/wiki/%EC%82%AC%EB%AF%B8%EC%9D%B8%EA%B3%A1
40 5
dhucs-midkor
\def\mymidkorfont{obat}
ko
ko ko
5.9
ko dhucs-trivcj
CJK ruby
dhucs-trivcj
xetex-ko luatex-ko \japanese luatex-ko
41
~ CJK
dhucs-trivcj japanese chinese chinese
Schinese Tchinese
chinese chinese
\let\chinese\Tchinese\let\endchinese\endTchinese
Tchinese
dhucs-trivcj
[]
http://wikka.ctex.org/TeX
http://wikka.ctex.org/TeX
42 5
[]
5.10
ko
ko xetexko-vertical
6
kotex-utf
latex pdflatex
6.1
ko
untype1
\usepackage{kotex}
ko ko
ko
nanumtype1
uhc cjk-ko
44 6
ko
ttfamily
6.2 , ,
6.2.1
ko
fontenc
lmodern txfonts
, , 45
6.2.2
ko
\usepackage[T1]{fontenc}
\usepackage{pxfonts}
kotex
\usepackage[T1]{fontenc} kotex
6.2.3
ko
ko
46 6
\textrm, \textsf, \texttt\rmfamily, \sffamly, \ttfamily
ko ko
amsmath \text
6.3
47
ko
6.3.1 ko.TEX
ko
\SetHangulFonts{mj}{gt}{tz}\SetHanjaFonts{mj}{gt}{tz}
\SetSerifFonts{hangul}{hanja}\SetSansFonts{hangul}{hanja}\SetMonoFonts{hangul}{hanja}
\SetAdhocFonts{hangul}{hanja}
48 6
6.3.2 Legacy TEX
type 1 ko kotex-base
tlmgr install kotex-base
\usepackage{dhucs-untype1}
ko
ttf2kotexfont
6.3.3
.tfm .tfm .tfm
.log .log
[strictcharcheck]
.tfm
49
.log
7
kotex-utf
7.1
\emph
dhucs-
gremph
\emph
\SetGremphFonts{hangul}{hanja}
ttf2kotexfont
\SetGremphFonts{nanummj}{nanumgt}
ko
51
\SetGremphFonts{outgr}{outgt}
\ungremph, \regremph
7.2
7.2.1 dhucsfn
dhucsfn ko hangulfn
ko
\usepackage[]{dhucsfn}
(superscript) 1
(parenthesis)
(multipara)
52 7
(para)
(hang)
(leftflush)
(indent)
53
(leftflushindent)
(hangpar)
(varhangpar)
7.2.2
dhucs-setspace
\footnotesep
54 7
bigfoot bigfoot footmisc
7.3 , ,
7.3.1 : dhucs-interword
\setInterHangulSkip
\setInterHangulSkip{0pt}
hfontspec
dhucs-interword \interhchar
\usepackage{dhucs-interword}\interhchar{0pt}
ko \setInterHangulSkip \interhchar
dhucs-interword [default]
0
\usehangulfontspec
\usepackage[default]{dhucs-interword}\usehangulfontspec{ut}
dhucs-interword ko finemath
, , 55
\spaceskip
\xspaceskip
dhucs-interword
\interhword
\usepackage{dhucs-interword}\interhword[.6]{.475}{.1}{.1}
[.6] \xspaceskip
.475 0.475 10 = 4.75 [12pt]
plus minus
dhucs-interword dhucs-interword
[default]
[HWP] [default]
\interhword
\interhchar
\interhchar{0pt}
dhucs-interword
56 7
7.3.2 : dhucs-setspace
\baselinestretch \linespread
dhucs-setspace setspace
\usepackage[hangul]{dhucs-setspace}
dhucs-setspace setspace setspace
singlespace doublespace onehalfspace \singlespacing
spacing secspace
[hangul]
1.333 setspace \setstretch{1.333}
setspace
stretch
\SetHangulspace{1.333}{1.2}
dhucs-setspace \linespread \setstretch
[nofloatspacing]
57
[noquotespacing]
[hangul] \SetHangulspace
[adjustverbatim]
[adjustfootnotesep]
\SetHangulspace
\SetHangulspace{1.3}{1.1}
7.4
ko [hangul]
sectsty dhucs-sectsty
sectsty
sectsty dhucs-sectsty [ensec]kotex
[hangul]
58 7
7.5
ko [finemath]
\usehangulfontspec
hfontspec.
hfontspec.my \usehangulfontspec{my}
hu = .059375eminterhchar = -.03266emfullstoplower = .15exexclamationlower = .15exquestionlower = .15ex
hu ko
[finemath] 3 hu
0 [finemath]
8
()
8.1 komkindex
ko kotex.ist komkindex
makeidx foo.idx
$ komkindex(.pl) -s kotex foo
foo.idx foo.ind
makeindex
makeindex komkindex xindy
xindy modules
ko komkindex
8.2
makeidx \makeindex
\usepackage{makeidx}\makeindex
60 8 ()
\index
\index{}
\index{!}
\index{@
}
\printindex
.idx
makeindex
# latex foo# komkindex -s kotex foo# latex foo
\renewcommand{\indexname}{}
# xelatex foo# texindy -L korean -I omega foo.idx# xelatex foo
III
9
plainTEX ko.TEX
(sjnam at ktug kr)
ko kotexplain.tex hangulcweb.tex
ko
9.1 kotexplain.tex
kotexplain.tex
The Art of
Computer Programming The TEXbook
tex foo.tex
kotexplain.tex
tex
etex pdftex
\input kotexplain
The TEXbook
hangulcweb.tex 63
kotexplain.tex
\font
\hfont{outbtb}{at 12pt}
\hfontname{outbtb}
\hfont{outbtb}{}
\hfontsize{at 12pt}
\hfont{}{at 12pt}
9.2 hangulcweb.tex
CWEB
CWEB
texinfo
CWEB
\input hangulcweb
hangulcweb.tex kotexplain.tex
CWEB CWEB
hangulcweb.tex CWEB
CWEB
10
HTML
tex
TeX4ht
ko TeX4ht ko
TeX4ht ko
$ htlatex foo.tex "dhucs,html4" " -cunihtf"
.htf
TeX4ht
ko TeX4ht
http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.htmlhttp://ktug.kldp.net/jsboard/read.php?table=contrib&no=4313 TeX4ht
http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.htmlhttp://ktug.kldp.net/jsboard/read.php?table=contrib&no=4313
11
ko
ko ttf2kotexfont
11.1 ttf2kotexfont
hmfmpyun.ttf
YNCH05.TTF
test.conf
FOUNDRY:myFONTmj: f=pj m=hmfmpyun.ttfFONTnc: m=YNCH05.TTF
66 11
config FOUNDRY
FONTmj
FONT
f FONTmj mypj
FONTxx xx m, b, l
b b-series bx-series
m
mypj mync
# ttf2kotexfont -c test.conf
# latex testutf# dvipdfmx testutf
# pdflatex testutf
texmf
# ttf2kotexfont -c test.conf -i $HOME/texmf
$HOME/texmf
dvipdfmx.cfg ttf2pk.cfg
# mktexlsr
ko
$HOME %HOME%
67
11.2
ttf2kotexfont
mypj mync
\SetHangulFonts{mypj}{mync}{uttz}\SetHanjaFonts{utbt}{utgt}{uttz}
ttf2kotexfont hfontspec
11.3 pdf pdfLATEX
\usepackage{ifpdf}\ifpdf
\usepackage{dhucs-cmap}\pdfmapfile{=myttf-pdftex.map}
\fi
x
12
12.1
ko hypua2jamo jamo2hypua
insertjamofiller jamo-normalize
http://faq.ktug.org/faq/HanyangPuaTableProject http://ko.wikipedia.org/wiki/%EC%98%9B%ED%95%9C%EA%B8%80
http://faq.ktug.org/faq/HanyangPuaTableProjecthttp://ko.wikipedia.org/wiki/%EC%98%9B%ED%95%9C%EA%B8%80http://ko.wikipedia.org/wiki/%EC%98%9B%ED%95%9C%EA%B8%80
jamo-normalize 69
12.2 jamo-normalize
hypua2jamo jamo2hypua
$ jamo-normalize [option] outfile
-d
-h
-i
-o
-p
-t
\usepackage{kotex-logo}
...{kotex}
\spaceskip=2em plus 1em minus
1em
[cjk]{kotex}
\usepackage[cjk]{kotex}
\usepackage[utf]{kotex}
\begin{document}
\usepacakge{kotex}
\usepackage{kotex}
\linespread{1.333}
\setstretch{1.333}
\interhchar{3pt}
texdoc cjk-ko
tlmgr install kotex-midkor
texdoc kotex
texdoc luatexko
texdoc memman
texdoc memucs-manual
texdoc ultrasimple
texdoc xetexko
71
72
73
74
75
collection-kotex
ko kotex-midkor
ko
ko
ko
\ksnamedef
http://ftp.ktug.org/KTUG/texlive/http://www.ktug.org
http://ftp.ktug.org/KTUG/texlive/http://www.ktug.org
ko.TeX ko.TeX ko.TeX (2007)
ko.TeX
kotex.stypdfLaTeX LaTeX XeLaTeX LuaLaTeX pdf pdf bookmark
CTAN KTUG ko.TeXLiveTeXLive
ko.TeX-utf
, nonfrench spacing enumerate
Micro Typography
``''
, ,
ko.TeX Legacy TeX
dhucsfn
, , : dhucs-interword: dhucs-setspace
() komkindex
plainTeX ko.TeXkotexplain.texhangulcweb.tex
HTML ttf2kotexfont pdf pdfLaTeX
jamo-normalize