\def\filedate{2005/04/22} \def\fileversion{1.0.1} \ProvidesPackage{hangul}[\filedate\space Document Package for 한글LaTeX] \typeout{한글 문서 꾸러미 `\filename' <\filedate>.} %% 추가 ì„ íƒ ì²˜ë¦¬ %% -------------- %%%% 추가 ì„ íƒ "hanja"는 단ì›ì˜ ì´ë¦„ë“¤ì„ í•œìžë¡œ 표시한다. \newif\if@hanja\@hanjafalse \DeclareOption{hanja}{\@hanjatrue} %% 용지 규격 \DeclareOption{êµë°˜íŒ}{%êµë°˜íŒ(105x148)<105x148> \setlength\paperheight{148mm} \setlength\paperwidth {105mm} \@resetpapersize } \DeclareOption{êµíŒ}{%êµíŒ(148x210)<148x210> \setlength\paperheight{210mm} \setlength\paperwidth {148mm} \@resetpapersize } \DeclareOption{ì‹ êµíŒ}{%ìƒí•˜=20/25, 좌우=22.5/22.5,머리꼬리=0/0 \setlength\paperheight{225mm} \setlength\paperwidth {152mm} \@resetpapersize } \DeclareOption{êµë°°íŒ}{%êµë°°íŒ(210x297)<210x297> \setlength\paperheight{297mm} \setlength\paperwidth {210mm} \@resetpapersize } \DeclareOption{사륙íŒ}{%사륙íŒ(128x188)<128x182> \setlength\paperheight{182mm} \setlength\paperwidth {128mm} \@resetpapersize } \DeclareOption{사륙배íŒ}{%ìƒí•˜=25/30, 좌우=30/30 머리꼬리=15/0 \setlength\paperheight{257mm} \setlength\paperwidth {182mm} \@resetpapersize } \DeclareOption{í¬ë¼ìš´íŒ}{%í¬ë¼ìš´íŒ(176x248)<176x248> \setlength\paperheight{248mm} \setlength\paperwidth {176mm} \@resetpapersize } \DeclareOption{ì‹ ì„œíŒ}{%ì‹ ì„œíŒ(삼륙íŒ)(103x182)<103x182> \setlength\paperheight{182mm} \setlength\paperwidth {103mm} \@resetpapersize } \DeclareOption{삼륙íŒ}{%ì‚¼ë¥™íŒ \setlength\paperheight{182mm} \setlength\paperwidth {103mm} \@resetpapersize } \DeclareOption{타블로ì´ë“œíŒ}{%<타블로ì´ë“œ> \setlength\paperheight{364mm} \setlength\paperwidth {257mm} \@resetpapersize } \DeclareOption{사륙반íŒ}{%사륙반íŒ% \setlength\paperheight{128mm} \setlength\paperwidth {94mm} \@resetpapersize } \DeclareOption{사륙배배íŒ}{%ì‚¬ë¥™ë°°ë°°íŒ \setlength\paperheight{374mm} \setlength\paperwidth {254mm} \@resetpapersize } \DeclareOption{대êµì „íŒ}{%대êµì „íŒ \setlength\paperheight{244mm} \setlength\paperwidth {172mm} \@resetpapersize } \DeclareOption{삼ì‹ì ˆíŒ}{%삼ì‹ì ˆíŒ \setlength\paperheight{205mm} \setlength\paperwidth {125mm} \@resetpapersize } \DeclareOption{삼오íŒ}{%ì‚¼ì˜¤íŒ \setlength\paperheight{148mm} \setlength\paperwidth {84mm} \@resetpapersize } \def\@resetpapersize{ \setlength\@tempdima{\paperwidth} \divide\@tempdima by9 \if@twoside %% ì œë³¸ 여백: 0.3\@tempdima \setlength\oddsidemargin{1.3\@tempdima} \setlength\evensidemargin{1.7\@tempdima} \else \setlength\oddsidemargin{1.5\@tempdima} \setlength\evensidemargin{1.5\@tempdima} \fi \setlength\marginparwidth{\evensidemargin} \addtolength{\marginparwidth}{-3\marginparsep} \setlength\textwidth{\paperwidth} \addtolength\textwidth{-3\@tempdima} \addtolength\oddsidemargin{-1in} \addtolength\evensidemargin{-1in} \setlength\topmargin{\paperheight} \divide\topmargin by9 \setlength\headheight{12\p@} % \setlength\headsep{14.65pt} \setlength\headsep{25\p@} \addtolength\topmargin{-\headheight} \addtolength\topmargin{-\headsep} \setlength\textheight{\paperheight} \addtolength\textheight{-2\topmargin} \addtolength\textheight{-\headheight} \addtolength\textheight{-\headsep} \addtolength\textheight{-\footskip} \addtolength\topmargin{-1in} } \ProcessOptions %% 우리ë§ì˜ ë¶„ì² : %% -------------- %% 우리ë§ì€ \hyphencharê°€ ì—†ê³ ì–´ëŠ ê³³ì—서나 åˆ†ç¶´ì´ å¯èƒ½í•˜ë‹¤. 그러므로 %% ì¼ë‹¨ 글ìžì²´ ìžì²´ì—ì„œ åˆ†ç¶´ì„ ì–µì œí•˜ê³ (\hyphenchar\font\m@ne) %% ìš°ë¦¬ë§ ì‚¬ì´ì— \hskip\hangul@skipì„ æ·å…¥í•¨ìœ¼ë¡œì¨ åˆ†ç¶´ì„ å¯èƒ½í•˜ê²Œ %% 함과 ë™ì‹œì— \hangulskip으로 ìžê°„ ê°„ê²©ì„ ì¡°ì ˆì„ í• ìˆ˜ 있ë„ë¡ í•œë‹¤. %% \newdimen\hangulskip \newskip\hangul@skip % 글ìžì²´ê°€ 바뀔 때마다 ìžê°„ ê°„ê²©ì„ ìƒˆë¡œ 계산한다. \def\set@hangulskip{% \@tempdima=\f@size\p@ \multiply\@tempdima100 \divide\@tempdima\p@ \multiply\@tempdima\p@ \hangul@skip=\hangulskip minus\hangulskip \multiply\hangul@skip by\strip@pt\@tempdima% \divide\hangul@skip by1000 } %% ìš°ë¦¬ë§ ìœ ë‹ˆì½”ë“œ 부호는 16진수로 ^^80ì—ì„œ ^^FF ë²”ìœ„ì— ìžˆëŠ” %% 세 옥텟으로 구성ë˜ë©° ì´ ë²”ìœ„ì˜ ëª¨ë“ ì˜¥í…Ÿì€ ëª¨ë‘ í‰ë²”í•œ ê¸€ìž %% (\catcode=11)ë¡œ 처리ëœë‹¤. \def\utf@list{% \do\^^80\do\^^81\do\^^82\do\^^83\do\^^84\do\^^85\do\^^86\do\^^87% \do\^^88\do\^^89\do\^^8a\do\^^8b\do\^^8c\do\^^8d\do\^^8e\do\^^8f% \do\^^90\do\^^91\do\^^92\do\^^93\do\^^94\do\^^95\do\^^96\do\^^97% \do\^^98\do\^^99\do\^^9a\do\^^9b\do\^^9c\do\^^9d\do\^^9e\do\^^9f% \do\^^a0\do\^^a1\do\^^a2\do\^^a3\do\^^a4\do\^^a5\do\^^a6\do\^^a7% \do\^^a8\do\^^a9\do\^^aa\do\^^ab\do\^^ac\do\^^ad\do\^^ae\do\^^af% \do\^^b0\do\^^b1\do\^^b2\do\^^b3\do\^^b4\do\^^b5\do\^^b6\do\^^b7% \do\^^b8\do\^^b9\do\^^ba\do\^^bb\do\^^bc\do\^^bd\do\^^be\do\^^bf% \do\^^c0\do\^^c1\do\^^c2\do\^^c3\do\^^c4\do\^^c5\do\^^c6\do\^^c7% \do\^^c8\do\^^c9\do\^^ca\do\^^cb\do\^^cc\do\^^cd\do\^^ce\do\^^cf% \do\^^d0\do\^^d1\do\^^d2\do\^^d3\do\^^d4\do\^^d5\do\^^d6\do\^^d7% \do\^^d8\do\^^d9\do\^^da\do\^^db\do\^^dc\do\^^dd\do\^^de\do\^^df% \do\^^e0\do\^^e1\do\^^e2\do\^^e3\do\^^e4\do\^^e5\do\^^e6\do\^^e7% \do\^^e8\do\^^e9\do\^^ea\do\^^eb\do\^^ec\do\^^ed\do\^^ee\do\^^ef% \do\^^f0\do\^^f1\do\^^f2\do\^^f3\do\^^f4\do\^^f5\do\^^f6\do\^^f7% \do\^^f8\do\^^f9\do\^^fa\do\^^fb\do\^^fc\do\^^fd\do\^^fe\do\^^ff} \def\do@utfspecial#1{% \catcode`#1=11 \lccode`#1=`#1 \uccode`#1=`#1} \let\do\do@utfspecial\utf@list %%% 조사 ìžë™ 처리 ëª…ë ¹: \DeclareRobustCommand*{\중@성}{\gdef\is@rieul{n}% \global\let\@조사\@firstoftwo} \DeclareRobustCommand*{\종@성}{\gdef\is@rieul{n}% \global\let\@조사\@secondoftwo} \DeclareRobustCommand*{\리@ì„}{\gdef\is@rieul{y}% \global\let\@조사\@secondoftwo} \DeclareRobustCommand*{\ks@num}[1]{{\count@#1% \ifnum\count@<\z@ \count@-\count@ \fi\count2\count@ \divide\count2 10 \multiply\count2 10 \advance\count@-\count2 \ifcase\count@\종@성\or\리@ì„\or\중@성\or\종@성\or\중@성\or \중@성\or\종@성\or\리@ì„\or\리@ì„\or\중@성\fi}} %% ìžë™ 조사 ëª…ë ¹ ë’¤ì— \space (2005/04/07) \def\afterj@sa#1{\ifnum\catcode`#1=11\hspace{\spaceskip} \fi #1}% %% \ì€=\는 \ì´=\ê°€ \ì„=\를 \와=\ê³¼ \def\ì€{\relax\@조사{는}{ì€}\afterj@sa}\let\는\ì€ \def\ì´{\relax\@조사{ê°€}{ì´}\afterj@sa}\let\ê°€\ì´ \def\ì„{\relax\@조사{를}{ì„}\afterj@sa}\let\를\ì„ \def\와{\relax\@조사{와}{ê³¼}\afterj@sa}\let\ê³¼\와 %%% ë§¤ê°œëª¨ìŒ ``으'' (2005/04/07) {\ã…¡} %% \으로=\ë¡œ (\으로서=\로서 \으로ì¨=\ë¡œì¨) \def\ã…¡{\relax\if y\is@rieul\else\@조사{}{으}\fi} \def\ë¡œ{{\ã…¡}ë¡œ\afterj@sa} \let\으로\ë¡œ \def\로서{{\ã…¡}로서\afterj@sa} \let\으로서\로서 \def\ë¡œì¨{{\ã…¡}ë¡œì¨\afterj@sa} \let\으로ì¨\ë¡œì¨ %%% ì§€ì •ì‚¬ ``ì´'' (2005/04/07) {\ã…£} \def\ã…£{{\relax\@조사{}{ì´}}} \catcode`\^^^^e002=13 \catcode`\^^^^e003=13 \catcode`\^^^^e004=13 \let^^^^e002\중@성 \let^^^^e003\종@성 \let^^^^e004\리@ì„ %% 우리ë§ì˜ ë¶„ì² %% \catcode`\^^^^e000=13 \catcode`\^^^^e001=13 \def^^^^e000{\ifhmode\ifnum\spacefactor=999\hskip\hangul@skip\fi\fi\hemph@size} \def^^^^e001{\spacefactor=999\relax} \def\no@ccent#1{#1} \let\hemph@size\no@ccent \expandafter\def\expandafter\selectfont\expandafter{\selectfont\set@hangulskip} %%% 드러냄표 (2005/04/10 koaunghi@kornet.net) \def\circemph@size#1{\leavevmode% \setbox0\hbox{\fontencoding{OT1}\fontseries{m}\selectfont!}% \dimen@\ht0\advance\dimen@-.3ex% \rlap{\raise.7\dimen@\hbox{\fontencoding{OT1}\fontseries{m}\selectfont\rule{.3\dimen@}{0pt}\char'27}}#1} \def\dotemph@size#1{\leavevmode% \setbox0\hbox{\fontencoding{OT1}\fontseries{m}\selectfont!}% \dimen@\ht0\advance\dimen@-.3ex% \rlap{\raise.7\dimen@\hbox{\fontencoding{OT1}\fontseries{m}\selectfont\rule{.7\dimen@}{0pt}\char'137}}#1} \def\circem{\let\hemph@size\circemph@size} \def\dotem#1{\let\hemph@size\dotemph@size} \def\circemph#1{{\let\hemph@size\circemph@size #1}} \def\dotemph#1{{\let\hemph@size\dotemph@size #1}} %% ì¤„ë°”ê¿ˆì˜ ì–µì œ % ìš°ë¦¬ë§ ìŒì ˆì€ ì–´ëŠ ê³³ì—ì„œë“ ì§€ ì¤„ë°”ê¿ˆì´ ê°€ëŠ¥í•˜ë‹¤. ì¤„ë°”ê¿ˆì„ ì–µì œí• % ë•Œì— ë¼í…ì˜ \nolinebreakë„ íš¨ê³¼ê°€ 없다. ìš°ë¦¬ë§ ìŒì ˆì˜ 경계ì—서는 % 다ìŒê³¼ ê°™ì´ ì¤„ë°”ê¿ˆì„ ì–µì œí•œë‹¤. \def\noHyphen{\spacefactor=1001\nolinebreak} %% 2002.Apr.12: EUC-KRìš©ì˜ ksx1001.ocp는 ì‹ ì •ì‹ë‹˜(jshin@mailaps.org)ì˜ %% inuhc.otp와 hlatex.otpë¡œ 대체ë˜ì–´ 윈ë„우즈 ìš´ì˜ì²´ê³„ì—ì„œ 사용ë˜ëŠ” %% cp949 부호화 ì²´ê³„ì— ë”°ë¥¸ 한글 글ìžë¥¼ ëª¨ë‘ ì‚¬ìš©í• ìˆ˜ 있ë„ë¡ í•˜ì˜€ê³ %% hlatex.otp는 inutf8.otp와 함께 UTF-8 ì¸ì½”ë”©ì„ ì²˜ë¦¬í•˜ëŠ”ë° ì‚¬ìš©ëœë‹¤. \ocp\OCPutf=inutf8 \ocp\OCPinHLaTeX=hlatex \ocplist\OCPlistutf=\addbeforeocplist 1000 \OCPutf\nullocplist \ocplist\OCPHLaTeXutf=\addbeforeocplist 1000 \OCPutf \addbeforeocplist 1000 \OCPinHLaTeX\nullocplist \pushocplist\OCPHLaTeXutf %% verbatim 환경ì—ì„œ "! Missing number, treated as zero."ì˜ ì°©ì˜¤ë¥¼ %% ë°œìƒì‹œí‚¤ëŠ” \unhbox ëª…ë ¹ì€ ë‹¤ìŒê³¼ ê°™ì´ í•´ê²°í•œë‹¤. \def\do@noligs#1{% \catcode`#1\active \begingroup \lccode`\~`#1\relax \lowercase{\endgroup\def~{\leavevmode\kern\z@{\clearocplists\char`#1}}}} %% 우리ë§ì˜ 글ìžì²´ 바꾸기: %% ----------------------- %% 우리ë§ì˜ 글ìžì²´ ê°€ì¡±ì€ "글ìžì²´ 종류"ì— ë”°ë¼ ì§€ì •ë˜ê³ 글ìžì²´ 바꿈 %% 모듬 ëª…ë ¹ì€ "\text+글ìžì²´ì¢…류"나 "\글ìžì²´ì¢…류"ë¡œ 형성ëœë‹¤. %% ìš°ë¦¬ë§ ê¸€ìžì²´ ê°€ì¡±ì€ ëª…ì¡°, ê³ ë”•, 타ìžì˜ 세가지가 ìžˆê³ ë‹¤ìŒê³¼ ê°™ì€ %% 등ì‹ì´ 성립한다. \rmfamily=\명조, \sffamily=\ê³ ë”•, \ttfamily=\타ìž. \DeclareRobustCommand\mjfamily {\not@math@alphabet\mjfamily\mathmj \fontfamily\mjdefault\selectfont} \DeclareRobustCommand\gtfamily {\not@math@alphabet\gtfamily\mathgt \fontfamily\gtdefault\selectfont} \DeclareRobustCommand\tzfamily {\not@math@alphabet\tzfamily\mathtz \fontfamily\tzdefault\selectfont\let^^^^e001\@} \DeclareTextFontCommand{\textmj}{\mjfamily} \DeclareTextFontCommand{\textgt}{\gtfamily} \DeclareRobustCommand\texttz[1]{% \@italiccorr를 무ìžë¹„하게 금지 \ifmmode \nfss@text{\tzfamily#1} \else \leavevmode {\tzfamily#1}% \fi } \let\명조\mjfamily \let\ê³ ë”•\gtfamily \let\타ìž\tzfamily %% ì˜ë¬¸ì˜ 글ìžì²´ 바꿈 모듬 ëª…ë ¹ì€ ìš°ë¦¬ë§ ê¸€ìžì²´ 바꿈 ëª…ë ¹ê³¼ ì¼ì¹˜ì‹œí‚¨ë‹¤. \let\rmfamily\mjfamily \let\sffamily\gtfamily \let\ttfamily\tzfamily \let\textrm\textmj \let\textsf\textgt \let\texttt\texttz %% 편ì˜ìƒ 다ìŒê³¼ ê°™ì€ ê°€ì¡±ë°”ê¿ˆëª¨ë“¬ëª…ë ¹ë„ ì œê³µëœë‹¤. (그래픽, ê¶ì„œ, %% 필기, 외곽, 새명조, 목ê°, 옛글, 봄글씨, 펜글씨, 바다, 디나루, %% 필기a) \def\그래픽{\fontfamily{gr}\selectfont} \def\ê¶ì„œ{\fontfamily{gs}\selectfont} \def\ì‹ ë¬¸{\fontfamily{sh}\selectfont} \def\필기{\fontfamily{pg}\selectfont} \def\펜글씨{\fontfamily{pn}\selectfont} \def\펜í˜ë¦¼{\fontfamily{ph}\selectfont} \def\봄글씨{\fontfamily{bm}\selectfont} \def\옛글{\fontfamily{yt}\selectfont} \def\ìžëª¨ëª…ì¡°{\fontfamily{jmj}\selectfont} \def\ìžëª¨ê³ 딕{\fontfamily{jgt}\selectfont} \def\ìžëª¨ë…¸ë²¨{\fontfamily{jnv}\selectfont} \csname ìžëª¨ì†Œë¼\endcsname{\fontfamily{jsr}\selectfont} \def\바다{\fontfamily{vd}\selectfont} \def\디나루{\fontfamily{dn}\selectfont} \def\필기a{\fontfamily{pga}\selectfont} %% 호환성: %% LaTeXì„ ì“¸ 때만 필요로 하는 ëª…ë ¹ë“¤ì€ ë‹¤ìŒê³¼ ê°™ì´ ëŒ€ì¹˜ì‹œí‚¨ë‹¤. \def\MapHangulFamily#1#2{\relax} \DeclareRobustCommand\hfontfamily[1]{\fontfamily{#1}\selectfont\ignorespaces} \def\make@josa#1{} \let\hbfdefault\bfdefault %% LaTeX209ì‹ì˜ 글ìžì²´ 바꿈 모듬 ëª…ë ¹ì€ ê¸°ë³¸ 글ìžì²´ë§Œ ì œê³µí•œë‹¤. \DeclareOldFontCommand{\mj}{\normalfont\mjfamily}{\@nomath\mj} \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\@nomath\gt} \DeclareOldFontCommand{\tz}{\normalfont\tzfamily}{\@nomath\tz} %% ìš°ë¦¬ë§ ê¸€ìžì²´ì˜ ê¸°ë³¸ê°’ì€ ë‹¤ìŒê³¼ ê°™ì´ ì£¼ì–´ì§„ë‹¤. \def\mjdefault{mj} \def\gtdefault{gt} \def\tzdefault{tz} \DeclareFontEncoding{UHC}{}{} \DeclareErrorFont{UHC}{mj}{m}{n}{10} \DeclareFontSubstitution{UHC}{mj}{m}{n} \renewcommand{\encodingdefault}{UHC} \renewcommand{\familydefault}{mj} \renewcommand{\rmdefault}{mj} \renewcommand{\sfdefault}{gt} \renewcommand{\ttdefault}{tz} \renewcommand{\bfdefault}{b} %% ΩTPì— ì˜í•´ ë¬¸ì œë¥¼ ì¼ìœ¼í‚¤ëŠ” 특수 문ìžë“¤ì€ Î©ì˜ ë²ˆì— ì²˜ë¦¬ë¥¼ ì–µì œí•˜ê³ %% OT1 부호화와 OMS ë¶€í˜¸í™”ì— ì˜í•œ 글ìžë¥¼ ì„ íƒí•˜ë„ë¡ í•œë‹¤. %% from ot1enc.def \DeclareTextCommand{\textendash}{OT1}{{\clearocplists\char123}} \DeclareTextCommand{\textquotedblleft}{OT1}{{\clearocplists\char92}} \DeclareTextCommand{\AE}{OT1}{{\clearocplists\char29}} \DeclareTextCommand{\OE}{OT1}{{\clearocplists\char30}} \DeclareTextCommand{\O}{OT1}{{\clearocplists\char31}} \DeclareTextCommand{\ae}{OT1}{{\clearocplists\char26}} \DeclareTextCommand{\i}{OT1}{{\clearocplists\char16}} \DeclareTextCommand{\j}{OT1}{{\clearocplists\char17}} \DeclareTextCommand{\oe}{OT1}{{\clearocplists\char27}} \DeclareTextCommand{\o}{OT1}{{\clearocplists\char28}} \DeclareTextCommand{\ss}{OT1}{{\clearocplists\char25}} \DeclareTextCommand{\textdollar}{OT1}{{\clearocplists% \ifdim \fontdimen\@ne\font >\z@ \slshape \else \upshape \fi \char`\$}} \DeclareTextCommand{\textsterling}{OT1}{{\clearocplists% \ifdim \fontdimen\@ne\font >\z@ \itshape \else \fontshape{ui}\selectfont \fi \char`\$}} \DeclareTextCompositeCommand{\r}{OT1}{A} {\leavevmode\setbox\z@\hbox{h}\dimen@\ht\z@\advance\dimen@-1ex% \rlap{\raise.67\dimen@\hbox{\clearocplists\char23}}A} %% from omsenc.def \DeclareTextCommand{\textcircled}{OMS}[1]{{\clearocplists% \ooalign{% \hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr \char 13 % "0D }% }} \DeclareTextCommand{\textparagraph}{OMS}{{\clearocplists\char"7B}} \DeclareTextCommand{\textperiodcentered}{UHC}{·} % \DeclareTextCommand{\textperiodcentered}{OMS}{{\clearocplists\char"01}} \DeclareTextCommand{\textasteriskcentered}{OMS}{{\clearocplists\char"03}} \DeclareTextCommand{\textbullet}{OMS}{{\clearocplists\char"0F}} %% from latex.ltx \DeclareRobustCommand{\#}{{\clearocplists\char`\#}} \DeclareRobustCommand{\%}{{\clearocplists\char`\%\relax}} \DeclareRobustCommand{\&}{{\clearocplists\char`\&}} %% hfont.styì€ ì—¬ê¸°ì„œ ë난다. \@nameuse{hfont.sty} %% 우리ë§ë¬¸ì„œ 짜기 %% --------------- %% ìš°ë¦¬ë§ ë¬¸ì„œì˜ ê³³ê³³ì—ì„œ 사용ë ì´ë¦„ë“¤ì€ \ksnamedef 모듬으로 ì •ì˜ëœë‹¤. %% %% 다른 꾸러미가 ì´ ì´ë¦„ë“¤ì„ ë‹¤ì‹œ ì •í•˜ê²Œ ë ê²½ìš°ë„ ìžˆìœ¼ë¯€ë¡œ ì•„ëž˜ì˜ %% ì •ì˜ëŠ” ëª¨ë“ ê¾¸ëŸ¬ë¯¸ë¥¼ 다 ì²˜ë¦¬í•˜ê³ ë‚œ 후 \begin{document}ê°€ 나올 ë•Œ %% íš¨ë ¥ì„ ê°–ë„ë¡ í•œë‹¤. ì´ëŸ° ì´ë¦„ë“¤ì€ \begin{document} ì•žì—ì„œ %% \renewcommand를 통해 ë³€ê²½í• ìˆ˜ 있다. \def\ksnamedef#1#2{\@namedef{#1}{#2}% \@namedef{ks#1}{\csname #1\endcsname}} \if@hanja \ksnamedef{today}{\number\year å¹´~\number\month 月~\number\day æ—¥} \ksnamedef{enclname}{åŒå°ç‰©} \ksnamedef{ccname}{寫本} \ksnamedef{headtoname}{å—信人} \ksnamedef{seename}{\ì„~åƒè€ƒ} \ksnamedef{seealso}{ë„~åƒè€ƒ} \ksnamedef{contentsname}{ç›®~次} \ksnamedef{listfigurename}{그림~目次} \ksnamedef{listtablename}{表~目次} \ksnamedef{refname}{åƒè€ƒ~æ–‡ç»} \ksnamedef{indexname}{ç´¢~引} \ksnamedef{tablename}{表} \ksnamedef{abstractname}{è¦~ç´„} \ksnamedef{bibname}{åƒè€ƒ~æ–‡ç»} \ksnamedef{appendixname}{附錄} \ksnamedef{ksTHE}{第} \ksnamedef{partname}{篇} \ksnamedef{chaptername}{ç« } \ksnamedef{sectionname}{節} \ksnamedef{colorlayer}{幻燈版~色相} \ksnamedef{glossaryname}{語~å½™} \else \ksnamedef{today}{\number\year ë…„~\number\month ì›”~\number\day ì¼} \ksnamedef{enclname}{ë™ë´‰ë¬¼} \ksnamedef{ccname}{사본} \ksnamedef{headtoname}{받는ì´} \ksnamedef{seename}{\ì„~ì°¸ê³ } \ksnamedef{seename}{ë„~ì°¸ê³ } \ksnamedef{contentsname}{목~ì°¨} \ksnamedef{listfigurename}{그림~목차} \ksnamedef{listtablename}{í‘œ~목차} \ksnamedef{refname}{ì°¸ê³ ~문헌} \ksnamedef{indexname}{찾아보기} \ksnamedef{tablename}{í‘œ} \ksnamedef{abstractname}{ìš”~약} \ksnamedef{bibname}{ì°¸ê³ ~문헌} \ksnamedef{appendixname}{부ë¡} \ksnamedef{ksTHE}{ì œ} \ksnamedef{partname}{편} \ksnamedef{chaptername}{장} \ksnamedef{sectionname}{ì ˆ} \ksnamedef{colorlayer}{환등íŒ~색깔} \ksnamedef{glossaryname}{ìš©ì–´~í’€ì´} \fi \ksnamedef{pagename}{쪽} \ksnamedef{figurename}{그림} %% 우리ë§ìˆ«ìž \def\jaso#1{\@jaso{\@nameuse{c@#1}}} \def\@jaso#1{\ifcase#1\or ㄱ\or ã„´\or ã„·\or ㄹ\else\@ijaso{#1}\fi} \def\@ijaso#1{\ifcase#1\or\or\or\or\or ã…\or ã…‚\or ã……\or ã…‡\or ã…ˆ\or ã…Š\or ã…‹\or ã…Œ\or ã…\or ã…Ž\else\@ctrerr\fi} \def\gana#1{\@gana{\@nameuse{c@#1}}} \def\@gana#1{\ifcase#1\or ê°€\or 나\or 다\or ë¼\else\@igana{#1}\fi} \def\@igana#1{\ifcase#1\or\or\or\or\or 마\or ë°”\or 사\or ì•„\or ìž\or ì°¨\or ì¹´\or 타\or 파\or 하\else\@ctrerr\fi} \def\ojaso#1{\@ojaso{\@nameuse{c@#1}}} \def\@ojaso#1{\ifcase#1\or ㉠\or ㉡\or ㉢\or ㉣\else\@iojaso{#1}\fi} \def\@iojaso#1{\ifcase#1\or\or\or\or\or ㉤\or ㉥\or ㉦\or ㉧\or ㉨\or ㉩\or ㉪\or ㉫\or ㉬\or ã‰\else\@ctrerr\fi} \def\ogana#1{\@ogana{\@nameuse{c@#1}}} \def\@ogana#1{\ifcase#1\or ㉮\or ㉯\or ㉰\or ㉱\else\@iogana{#1}\fi} \def\@iogana#1{\ifcase#1\or\or\or\or\or ㉲\or ㉳\or ㉴\or ㉵\or ㉶\or ㉷\or ㉸\or ㉹\or ㉺\or ㉻\else\@ctrerr\fi} \def\pjaso#1{\@pjaso{\@nameuse{c@#1}}} \def\@pjaso#1{\ifcase#1\or ㈀\or ãˆ\or ㈂\or ㈃\else\@ipjaso{#1}\fi} \def\@ipjaso#1{\ifcase#1\or\or\or\or\or ㈄\or ㈅\or ㈆\or ㈇\or ㈈\or ㈉\or ㈊\or ㈋\or ㈌\or ãˆ\else\@ctrerr\fi} \def\pgana#1{\@pgana{\@nameuse{c@#1}}} \def\@pgana#1{\ifcase#1\or ㈎\or ãˆ\or ãˆ\or ㈑\else\@ipgana{#1}\fi} \def\@ipgana#1{\ifcase#1\or\or\or\or\or ㈒\or ㈓\or ㈔\or ㈕\or ㈖\or ㈗\or ㈘\or ㈙\or ㈚\or ㈛\else\@ctrerr\fi} \def\onum#1{\@onum{\@nameuse{c@#1}}} \def\@onum#1{\ifcase#1\or â‘ \or â‘¡\or â‘¢\or â‘£\else\@ionum{#1}\fi} \def\@ionum#1{\ifcase#1\or\or\or\or\or ⑤\or â‘¥\or ⑦\or ⑧\or ⑨\or â‘©\or ⑪\or â‘«\or ⑬\or â‘\or â‘®\else\@ctrerr\fi} \def\pnum#1{\@pnum{\@nameuse{c@#1}}} \def\@pnum#1{\ifcase#1\or â‘´\or ⑵\or ⑶\or â‘·\else\@ipnum{#1}\fi} \def\@ipnum#1{\ifcase#1\or\or\or\or\or ⑸\or ⑹\or ⑺\or â‘»\or ⑼\or ⑽\or ⑾\or â‘¿\or â’€\or â’\or â’‚\else\@ctrerr\fi} \def\oeng#1{\@oeng{\@nameuse{c@#1}}} \def\@oeng#1{\ifcase#1\or â“\or â“‘\or â“’\or â““\else\@ioeng{#1}\fi} \def\@ioeng#1{\ifcase#1\or\or\or\or\or â“”\or â“•\or â“–\or â“—\or ⓘ\or â“™\or â“š\or â“›\or â“œ\or â“\or â“ž\or â“Ÿ\or â“ \or â“¡\or â“¢\or â“£\or ⓤ\or â“¥\or ⓦ\or ⓧ\or ⓨ\or â“©\else\@ctrerr\fi} \def\peng#1{\@peng{\@nameuse{c@#1}}} \def\@peng#1{\ifcase#1\or â’œ\or â’\or â’ž\or â’Ÿ\else\@ipeng{#1}\fi} \def\@ipeng#1{\ifcase#1\or\or\or\or\or â’ \or â’¡\or â’¢\or â’£\or â’¤\or â’¥\or â’¦\or â’§\or â’¨\or â’©\or â’ª\or â’«\or â’¬\or â’\or â’®\or â’¯\or â’°\or â’±\or â’²\or â’³\or â’´\or â’µ\else\@ctrerr\fi} \def\hnum#1{\@hnum{\@nameuse{c@#1}}} \def\@hnum#1{\ifcase#1\or 하나\or 둘\or ì…‹\or ë„·\or\@ihnum{#1}\fi} \def\@ihnum#1{\ifcase#1\or\or\or\or\or 다섯\or 여섯\or ì¼ê³±\or ì—¬ëŸ\or 아홉\or ì—´\or 열하나\or 열둘\or ì—´ì…‹\or ì—´ë„·\or 열다섯\or 열여섯\or ì—´ì¼ê³±\or ì—´ì—¬ëŸ\or 열아홉\or 스물\or 스물하나\or 스물둘\or 스물셋\or 스물넷\else\@ctrerr\fi} \def\Hnum#1{\@Hnum{\@nameuse{c@#1}}} \def\@Hnum#1{\ifcase#1\or 첫\or 둘\or 세\or 네\or\@iHnum{#1}\fi 째} \def\@iHnum#1{\ifcase#1\or\or\or\or\or 다섯\or 여섯\or ì¼ê³±\or ì—¬ëŸ\or 아홉\or ì—´\or 열하나\or 열둘\or ì—´ì…‹\or ì—´ë„·\or 열다섯\or 열여섯\or ì—´ì¼ê³±\or ì—´ì—¬ëŸ\or 열아홉\or 스물\or 스물하나\or 스물둘\or 스물셋\or 스물넷\else\@ctrerr\fi} %% 한글LaTeXì˜ logo는 ì´ë ‡ê²Œ. \DeclareRobustCommand{\HLaTeX}{í•œ\kern-.4ex\lower.3ex\hbox{글}\kern-.4ex\LaTeX} %% 단ì›ì˜ 한글화 %% ============= %% %% Part I --> ì œ I 편, 第 I 篇 %% Chapter 1 --> ì œ 1 장, 第 1 ç« <book,report> %% Section 1 --> ì œ 1 ì ˆ, 第 1 節 %% Appendix A --> ë¶€ë¡ A, 附綠 A %% %% 위와 ê°™ì€ ë‹¨ì›ì˜ 한글화는 ì ˆ(節)까지 ì˜í–¥ì„ 미친다. 그러므로 우리는 %% ëª©ì°¨ì— \subsubsection까지 단ì›ì´ 번호와 함께 나오ë„ë¡ í•œë‹¤. %% articleì—서는 ì´ë¯¸ 3으로 ì§€ì •ë˜ì—ˆìœ¼ë‚˜, 그외ì—서는 2ë¡œ ì§€ì •ë˜ì–´ %% \subsection까지만 번호가 ëª©ì°¨ì— ë‚˜ì˜¤ë„ë¡ ë˜ì–´ 있다. \setcounter{secnumdepth}{\thr@@} \@ifclassloaded{article}{% <article> \renewcommand{\appendix}{\par \setcounter{section}{0}% \setcounter{subsection}{0}% \def\@chapapp{\appendixname}% 부ë¡ì˜ í•œê¸€í™”ì— ì˜í•´ í•„ìš”. \kscntformat{section}{\appendixname~}{} \def\thesection{\@Alph\c@section}}% }{\@ifundefined{@chapapp}{}{% <report|book> \renewcommand\thesection{\@arabic\c@section} \renewcommand\appendix{\par \setcounter{chapter}{0}% \setcounter{section}{0}% \renewcommand\@chapapp{\appendixname}% \kscntformat{chapter}{\appendixname~}{} \renewcommand\thechapter{\@Alph\c@chapter}}% }} %% ìœ„ì™€ê°™ì€ ìž¬ì •ì˜ë¡œ 다ìŒê³¼ ê°™ì€ ë¬¸ì œê°€ ë°œìƒí•œë‹¤. %% 1. \part는 \partname~\thepartë¡œ 나오게 ëœë‹¤. 편~I %% 2. \chapter는 \@chapapp{} \thechapterë¡œ. 장~1 %% 3. \sectionì€ \sectionname~\thesection으로. ì ˆ~1 %% 4. ëª©ì°¨ìž‘ì„±ì˜ ë“¤ì—¬ì“°ê¸°ê°€ ìš°ë¦¬ë§ í™˜ê²½ì— ì 당하지 않다. %% 5. 페ì´ì§€ headingì˜ ê¸€ìžì²´ê°€ \slshape으로 바뀜으로서 우리ë§ì´ %% ë¶ˆì•ˆì •í•´ì§„ë‹¤. %% %% ì´ëŸ° 약ì ì„ ë³´ì™„í•˜ê¸° 위해 단ì›ì˜ ì¼ë ¨ë²ˆí˜¸ì˜ ì•žê³¼ ë’¤ì— ë¼ì›Œë„£ì„ %% ëª¨ë“¬ì„ ë‹¤ìŒê³¼ ê°™ì´ ì„¤ì •í•œë‹¤. \def\kscntformat#1#2#3{\@namedef{pre@#1cnt}{#2} \@namedef{post@#1cnt}{#3}} \kscntformat{part}{\ksTHE~}{~\partname} \kscntformat{chapter}{\ksTHE~}{~\chaptername} \kscntformat{section}{\ksTHE~}{~\sectionname} \@ifclassloaded{article}{% <article> \def\@part[#1]#2{% \ifnum \c@secnumdepth >\m@ne \refstepcounter{part}% \addcontentsline{toc}{part}% {\pre@partcnt\thepart\post@partcnt\hspace{1em}#1}% \else \addcontentsline{toc}{part}{#1}% \fi {\parindent \z@ \raggedright \interlinepenalty \@M \normalfont \ifnum \c@secnumdepth >\m@ne \Large\bfseries \pre@partcnt\thepart\post@partcnt \par\nobreak \fi \huge \bfseries #2% \markboth{}{}\par}% \nobreak \vskip 3ex \@afterheading} }{% <report|book> \@ifundefined{@part}{}{% \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \addcontentsline{toc}{part}% {\pre@partcnt\thepart\post@partcnt\hspace{1em}#1}% \else \addcontentsline{toc}{part}{#1}% \fi \markboth{}{}% {\centering \interlinepenalty \@M \normalfont \ifnum \c@secnumdepth >-2\relax \huge\bfseries \pre@partcnt\thepart\post@partcnt \par \vskip 20\p@ \fi \Huge \bfseries #2\par}% \@endpart} } } \@ifclassloaded{book}{% \def\@chapter[#1]#2{% \ifnum \c@secnumdepth >\m@ne \if@mainmatter \refstepcounter{chapter}% \typeout{\pre@chaptercnt\thechapter\post@chaptercnt}% \addcontentsline{toc}{chapter}% {\protect\numberline{% \pre@chaptercnt\thechapter\post@chaptercnt}#1}% \else \addcontentsline{toc}{chapter}{#1}% \fi \else \addcontentsline{toc}{chapter}{#1}% \fi \chaptermark{#1}% \addtocontents{lof}{\protect\addvspace{10\p@}}% \addtocontents{lot}{\protect\addvspace{10\p@}}% \if@twocolumn \@topnewpage[\@makechapterhead{#2}]% \else \@makechapterhead{#2}% \@afterheading \fi} \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \if@mainmatter \huge\bfseries \pre@chaptercnt\thechapter\post@chaptercnt \par\nobreak \vskip 20\p@ \fi \fi \interlinepenalty\@M \Huge \bfseries #1\par\nobreak \vskip 40\p@ }}}{}% \@ifclassloaded{report}{% \def\@chapter[#1]#2{% \ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% \typeout{\pre@chaptercnt\thechapter\post@chaptercnt} \addcontentsline{toc}{chapter}% {\protect\numberline{% \pre@chaptercnt\thechapter\post@chaptercnt}#1}% \else \addcontentsline{toc}{chapter}{#1}% \fi \chaptermark{#1}% \addtocontents{lof}{\protect\addvspace{10\p@}}% \addtocontents{lot}{\protect\addvspace{10\p@}}% \if@twocolumn \@topnewpage[\@makechapterhead{#2}]% \else \@makechapterhead{#2}% \@afterheading \fi} \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \huge\bfseries \pre@chaptercnt\thechapter\post@chaptercnt \par\nobreak \vskip 20\p@ \fi \interlinepenalty\@M \Huge \bfseries #1\par\nobreak \vskip 40\p@ }}}{} \@ifundefined{chapter}{}{% \renewcommand*\l@chapter[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setbox\z@=\hbox{\bfseries\pre@chaptercnt\post@chaptercnt~} \setlength\@tempdima{1.5em} \advance\@tempdima\wd\z@ \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \advance\leftskip \@tempdima \hskip -\leftskip #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi}} \@ifundefined{section}{}{% \def\section{% \if@noskipsec \leavevmode \fi \par \@afterindentfalse \if@nobreak \everypar{}% \else \addpenalty\@secpenalty\addvspace{3.5ex \@plus 1ex \@minus .2ex\relax} \fi \secdef\ks@sect\ks@ssect} \def\ks@sect[#1]#2{% \ifnum \c@secnumdepth<1 \let\@svsec\@empty \else \refstepcounter{section}% \protected@edef\@svsec{% \pre@sectioncnt\thesection\post@sectioncnt \quad\relax}% \fi \begingroup \normalfont\Large\bfseries{% \@hangfrom{\hskip \z@\relax\@svsec}% \interlinepenalty \@M #2\@@par}% \endgroup \sectionmark{#1}% \addcontentsline{toc}{section}{% \ifnum\c@secnumdepth<1 \else \protect\numberline{\pre@sectioncnt\thesection\post@sectioncnt}% \fi #1} \@xsect{2.3ex \@plus.2ex}} \def\ks@ssect#1{% \begingroup \normalfont\Large\bfseries{% \@hangfrom{\hskip \z@}% \interlinepenalty \@M #1\@@par}% \endgroup \@xsect{2.3ex \@plus.2ex}} } \@ifclassloaded{article}{% \renewcommand*\l@section[2]{% \ifnum \c@tocdepth >\z@ \addpenalty\@secpenalty% \addvspace{1.0em \@plus\p@}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \settowidth{\@tempdima}{\pre@sectioncnt\post@sectioncnt} \addtolength{\@tempdima}{1.5em} \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \endgroup \fi} }{\@ifundefined{l@section}{}{% \renewcommand*\l@section{% \settowidth{\@tempdima}{\pre@sectioncnt\post@sectioncnt} \addtolength{\@tempdima}{2.3em} \@dottedtocline{1}{1em}{\@tempdima}}}%1.5em 2.3em } %% 다ìŒì€ \ps@headingsê³¼ \ps@myheadings를 í•œê¸€ì— ë§žê²Œ ìˆ˜ì •í•œ 것ì´ë‹¤. %% ê°ê°ì˜ classë“¤ì´ ì„œë¡œ 다른 ë°©ì‹ìœ¼ë¡œ 페ì´ì§€ 머리를 짜므로 우리는 %% 여기서 ê°ê°ì„ 따로따로 ì •ì˜í•´ 주어야 한다. \@ifclassloaded{article}{% \if@twoside \renewcommand\ps@headings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@evenhead{\thepage\hfil\slshape\leftmark}% \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\sectionmark##1{% \markboth {\MakeUppercase{% \ifnum \c@secnumdepth >\z@ \pre@sectioncnt\thesection\post@sectioncnt\quad \fi ##1}}{}}% \def\subsectionmark##1{% \markright {% \ifnum \c@secnumdepth >\@ne \thesubsection\quad \fi ##1}}} \else \def\ps@headings{% \let\@oddfoot\@empty \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\sectionmark##1{% \markright {\MakeUppercase{% \ifnum \c@secnumdepth >\m@ne \pre@sectioncnt\thesection\post@sectioncnt\quad \fi ##1}}}} \fi }{} \@ifclassloaded{book}{% \if@twoside \def\ps@headings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@evenhead{\thepage\hfil\slshape\leftmark}% \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\chaptermark##1{% \markboth {\MakeUppercase{% \ifnum \c@secnumdepth >\m@ne \if@mainmatter \pre@chaptercnt\thechapter\post@chaptercnt\quad% \fi \fi ##1}}{}}% \def\sectionmark##1{% \markright {\MakeUppercase{% \ifnum \c@secnumdepth >\z@ \pre@sectioncnt\thesection\post@sectioncnt\quad% \fi ##1}}}} \else \def\ps@headings{% \let\@oddfoot\@empty \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\chaptermark##1{% \markright {\MakeUppercase{% \ifnum \c@secnumdepth >\m@ne \if@mainmatter \pre@chaptercnt\thechapter\post@chaptercnt\quad% \fi \fi ##1}}}} \fi \pagestyle{headings} }{} \@ifclassloaded{report}{% \if@twoside \def\ps@headings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@evenhead{\thepage\hfil\slshape\leftmark}% \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\chaptermark##1{% \markboth {\MakeUppercase{% \ifnum \c@secnumdepth >\m@ne \pre@chaptercnt\thechapter\post@chaptercnt\quad% \fi ##1}}{}}% \def\sectionmark##1{% \markright {\MakeUppercase{% \ifnum \c@secnumdepth >\z@ \pre@sectioncnt\thesection\post@sectioncnt\quad% \fi ##1}}}} \else \def\ps@headings{% \let\@oddfoot\@empty \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\chaptermark##1{% \markright {\MakeUppercase{% \ifnum \c@secnumdepth >\m@ne \pre@chaptercnt\thechapter\post@chaptercnt\quad% \fi ##1}}}} \fi }{} %% 첫 줄 들여쓰기: 2ë°°ê° \settowidth{\parindent}{\reset@font 한글} %%% End of file `u8hangul.tex'.