diff options
Diffstat (limited to 'language/korean/HLaTeX/contrib/khyper.sty')
-rw-r--r-- | language/korean/HLaTeX/contrib/khyper.sty | 310 |
1 files changed, 310 insertions, 0 deletions
diff --git a/language/korean/HLaTeX/contrib/khyper.sty b/language/korean/HLaTeX/contrib/khyper.sty new file mode 100644 index 0000000000..fc386bbe5a --- /dev/null +++ b/language/korean/HLaTeX/contrib/khyper.sty @@ -0,0 +1,310 @@ +\input hyperref.sty + +\ifx\nullocplist\undefined +\hypersetup{unicode=true} +\expandafter\def\expandafter\pdfstringdefPreHook\expandafter{% + \pdfstringdefPreHook + \let\KSC@\string% + \makekscletter% + \let\hangul@skip\relax + \let\pre@sectioncnt\relax + \let\post@sectioncnt\relax + \let\make@josa\@gobble + \let\@Hyphen\relax + \let\noHyphen\relax + \let\hemph@size\relax + \let\set@hangulskip\relax + \let\protect\noexpand + \def^^a1{\string ^^a1} + \def^^a2{\string ^^a2} + \def^^a3{\string ^^a3} + \def^^a4{\string ^^a4} + \def^^a5{\string ^^a5} + \def^^a6{\string ^^a6} + \def^^a7{\string ^^a7} + \def^^a8{\string ^^a8} + \def^^a9{\string ^^a9} + \def^^aa{\string ^^aa} + \def^^ab{\string ^^ab} + \def^^ac{\string ^^ac} + \def^^ad{\string ^^ad} + \def^^ae{\string ^^ae} + \def^^af{\string ^^af} + \def^^b0{\string ^^b0} + \def^^b1{\string ^^b1} + \def^^b2{\string ^^b2} + \def^^b3{\string ^^b3} + \def^^b4{\string ^^b4} + \def^^b5{\string ^^b5} + \def^^b6{\string ^^b6} + \def^^b7{\string ^^b7} + \def^^b8{\string ^^b8} + \def^^b9{\string ^^b9} + \def^^ba{\string ^^ba} + \def^^bb{\string ^^bb} + \def^^bc{\string ^^bc} + \def^^bd{\string ^^bd} + \def^^be{\string ^^be} + \def^^bf{\string ^^bf} + \def^^c0{\string ^^c0} + \def^^c1{\string ^^c1} + \def^^c2{\string ^^c2} + \def^^c3{\string ^^c3} + \def^^c4{\string ^^c4} + \def^^c5{\string ^^c5} + \def^^c6{\string ^^c6} + \def^^c7{\string ^^c7} + \def^^c8{\string ^^c8} + \def^^c9{\string ^^c9} + \def^^ca{\string ^^ca} + \def^^cb{\string ^^cb} + \def^^cc{\string ^^cc} + \def^^cd{\string ^^cd} + \def^^ce{\string ^^ce} + \def^^cf{\string ^^cf} + \def^^d0{\string ^^d0} + \def^^d1{\string ^^d1} + \def^^d2{\string ^^d2} + \def^^d3{\string ^^d3} + \def^^d4{\string ^^d4} + \def^^d5{\string ^^d5} + \def^^d6{\string ^^d6} + \def^^d7{\string ^^d7} + \def^^d8{\string ^^d8} + \def^^d9{\string ^^d9} + \def^^da{\string ^^da} + \def^^db{\string ^^db} + \def^^dc{\string ^^dc} + \def^^dd{\string ^^dd} + \def^^de{\string ^^de} + \def^^df{\string ^^df} + \def^^e0{\string ^^e0} + \def^^e1{\string ^^e1} + \def^^e2{\string ^^e2} + \def^^e3{\string ^^e3} + \def^^e4{\string ^^e4} + \def^^e5{\string ^^e5} + \def^^e6{\string ^^e6} + \def^^e7{\string ^^e7} + \def^^e8{\string ^^e8} + \def^^e9{\string ^^e9} + \def^^ea{\string ^^ea} + \def^^eb{\string ^^eb} + \def^^ec{\string ^^ec} + \def^^ed{\string ^^ed} + \def^^ee{\string ^^ee} + \def^^ef{\string ^^ef} + \def^^f0{\string ^^f0} + \def^^f1{\string ^^f1} + \def^^f2{\string ^^f2} + \def^^f3{\string ^^f3} + \def^^f4{\string ^^f4} + \def^^f5{\string ^^f5} + \def^^f6{\string ^^f6} + \def^^f7{\string ^^f7} + \def^^f8{\string ^^f8} + \def^^f9{\string ^^f9} + \def^^fa{\string ^^fa} + \def^^fb{\string ^^fb} + \def^^fc{\string ^^fc} + \def^^fd{\string ^^fd} + \def^^fe{\string ^^fe} +} + +\renewcommand\theHsection{\number\c@section} +\renewcommand\theHequation{\theHsection.\number\c@equation} +\@ifundefined{theHpart}{}{\renewcommand\theHpart{\number\c@part}} +\@ifundefined{theHchapter}{% + \renewcommand\theHsection {\number\c@section} + \renewcommand\theHfigure {\number\c@figure} + \renewcommand\theHtable {\number\c@table} +}{% + \renewcommand\theHchapter {\number\c@chapter} + \renewcommand\theHfigure {\theHchapter.\number\c@figure} + \renewcommand\theHtable {\theHchapter.\number\c@table} + \renewcommand\theHsection {\theHchapter.\number\c@section} +} +\renewcommand\theHsubsection {\theHsection.\number\c@subsection} +\renewcommand\theHsubsubsection{\theHsubsection.\number\c@subsubsection} +\renewcommand\theHparagraph {\theHsubsubsection.\number\c@paragraph} +\renewcommand\theHsubparagraph {\theHparagraph.\number\c@subparagraph} +\renewcommand\theHtheorem {\theHsection.\number\c@theorem} +\renewcommand\theHthm {\theHsection.\number\c@thm} +\def\theHItem{\number\c@Item} +\renewcommand\theHHfootnote {\number\c@Hfootnote} +\renewcommand\theHmpfootnote{\number\c@mpfootnote} + +\AtBeginDocument{ + \ifHy@texht + \long\def\@firstoffive#1#2#3#4#5{#1}% + \long\def\@secondoffive#1#2#3#4#5{#2}% + \long\def\@thirdoffive#1#2#3#4#5{#3}% + \long\def\@fourthoffive#1#2#3#4#5{#4}% + \long\def\@fifthoffive#1#2#3#4#5{#5}% + \providecommand*\@safe@activestrue{}% + \providecommand*\@safe@activesfalse{}% + \def\T@ref#1{% + \@safe@activestrue\let\protect\string + \expandafter\@setref\csname r@#1\endcsname\@firstoffive{#1}% + \@safe@activesfalse + }% + \def\T@pageref#1{% + \@safe@activestrue\let\protect\string + \expandafter\@setref\csname r@#1\endcsname\@secondoffive{#1}% + \@safe@activesfalse + }% + \else + \ifHy@typexml\else\RequirePackage{nameref}\fi + \def\T@ref#1{% + \@safe@activestrue\let\protect\string + \expandafter\@setref\csname r@#1\endcsname\@firstoffive{#1}% + \@safe@activesfalse + }% + \def\T@pageref#1{% + \@safe@activestrue\let\protect\string + \expandafter\@setref\csname r@#1\endcsname\@secondoffive{#1}% + \@safe@activesfalse + }% + \fi +} + +\def\@setref#1#2#3{% csname, extract group, refname + \let\protect\relax + \ifx#1\relax + \protect\G@refundefinedtrue + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{% + Reference `#3' on page \thepage \space undefined% + }% + \else + \hyper@@link + {\expandafter\@fifthoffive#1}% + {\expandafter\@fourthoffive#1\@empty\@empty}% + {\expandafter#2#1\@empty\@empty\null}% + \fi +} +\def\@pagesetref#1#2#3{% csname, extract macro, ref + \let\protect\relax + \ifx#1\relax + \protect\G@refundefinedtrue + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{% + Reference `#3' on page \thepage \space undefined% + }% + \else + \protect\hyper@@link + {\expandafter\@fifthoffive#1}% + {page.\expandafter\@secondoffive#1}% + {\expandafter\@secondoffive#1}% + \fi +} + +\def\auto@setref#1#2#3{% csname, extract group, refname + \let\protect\relax + \ifx#1\relax + \protect\G@refundefinedtrue + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{% + Reference `#3' on page \thepage \space undefined% + }% + \else + \edef\@thisref{\expandafter\@fourthoffive#1\@empty\@empty}% + \expandafter\test@reftype\@thisref\\% + \hyper@@link + {\expandafter\@fifthoffive#1}% + {\expandafter\@fourthoffive#1\@empty\@empty}% + {\@currentHtag\expandafter#2#1\@empty\@empty\null}% + \fi +} + +%% 조사 처리 추가 <2005/04/21> koaunghi@kornet.net +\@ifundefined{NAT@parse}{% + \def\bibcite#1#2{\let\protect\string% + \@newl@bel{b}{#1\@extra@binfo}{\hyper@@link[cite]{}{cite.#1}{#2}}% + }% + \gdef\@extra@binfo{}% + \let\Hy@bibcite\bibcite + \begingroup + \@ifundefined{bbl@cite@choice}{}{% + \g@addto@macro\bbl@cite@choice{% + \let\bibcite\Hy@bibcite + }% + }% + \endgroup + \providecommand*{\@BIBLABEL}{\@biblabel}% + \def\@lbibitem[#1]#2{% + \@skiphyperreftrue + \H@item[% + \ifx\Hy@raisedlink\@empty + \hyper@anchorstart{cite.#2}\@BIBLABEL{#1}\hyper@anchorend + \else + \Hy@raisedlink{\hyper@anchorstart{cite.#2}\hyper@anchorend}% + \@BIBLABEL{#1}% + \fi + \hfill + ]% + \@skiphyperreffalse + \if@filesw + \begingroup + \let\protect\noexpand + \immediate\write\@auxout{% + \string\bibcite{#2}{#1\string\make@josa{#1}}% + }% + \endgroup + \fi + \ignorespaces + }% + \def\@bibitem#1{% + \@skiphyperreftrue\H@item\@skiphyperreffalse + \Hy@raisedlink{\hyper@anchorstart{cite.#1}\relax\hyper@anchorend}% + \if@filesw + \begingroup + \let\protect\noexpand + \immediate\write\@auxout{% + \string\bibcite{#1}{\the\value{\@listctr}% + \string\ks@num{\the\value{\@listctr}}}% + }% + \endgroup + \fi + \ignorespaces + }% +}{} + +\def\hyper@makecurrent#1{% + \begingroup + \edef\Hy@param{#1}% + \ifx\Hy@param\Hy@chapterstring + \let\Hy@param\Hy@chapapp + \fi + \ifHy@hypertexnames + \let\protect\string + \let\@number\@firstofone + \ifHy@naturalnames + \let\textlatin\@firstofone + \xdef\@currentHlabel{\csname the#1\endcsname}% + \else + \xdef\@currentHlabel{\csname theH#1\endcsname}% + \fi + \xdef\@currentHref{% + \Hy@param.\expandafter\strip@prefix\meaning\@currentHlabel + }% + \else + \Hy@GlobalStepCount\Hy@linkcounter + \xdef\@currentHref{\Hy@param.\the\Hy@linkcounter}% + \fi + \endgroup +} + +%% Where (in \cite) is this used? +\expandafter\def\csname OT1/cmr/m/n/A/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/B/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/C/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/D/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/E/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/F/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/F/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/G/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/H/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/I/10\endcsname{\relax} +\expandafter\def\csname OT1/cmr/m/n/J/10\endcsname{\relax} +\fi |