/usr/share/texmf/tex/latex/kotex/utf/oblivoir/ob-nokoreanappendix.sty is in ko.tex 0.1.0+20071012-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | %% oblivoir sub-style. part of oblivoir
%% \appendix (부록) : nokorean
%%
\gdef\set@appendix@chapter{%
\ifanappendix\counterwithout{section}{chapter}\fi%
\setcounter{section}{0}
\setcounter{chapter}{0}
\renewcommand\thesection{\Alph{section}}%
\counterwithin{figure}{section}\counterwithin{table}{section}%
\counterwithin{equation}{section}%
\renewcommand\thefigure{\Alph{section}.\arabic{figure}}%
\renewcommand\thetable{\Alph{section}.\arabic{table}}%
\renewcommand\theequation{\Alph{section}.\arabic{equation}}%
\set@appendix@chapsec
}
\renewcommand{\@resets@pp}{%
\par
\@ppsavesec
\set@appendix@chapter
\restoreapp
}
\renewcommand{\appendix}{\par
\set@appendix@chapter
\anappendixtrue
% \chapterstyle{appendixdefault}%
\if@AppendixTitleToToc
\addcontentsline{toc}{chapter}{\appendixname}%
\fi
\if@AttachAppendixTitleToSecnum
\addtodef{\secheadstyle}{}{\appendixrefname~}%
\fi
}
\def\set@appendix@chapsec{%
%%% SECTION in APPENDIX
\renewcommand{\section}{%
\sechook
\@startsection{section}{1}% level 1
{\secindent}% heading indent
{\beforesecskip}% skip before the heading
{\aftersecskip}% skip after the heading
{\normalfont\secheadstyle}} % font
%
\def\M@sect##1##2##3##4##5##6[##7][##8]##9{%
\ifheadnameref\M@gettitle{##8}\else\M@gettitle{##7}\fi
\ifnum ##2>\c@secnumdepth
\let\@svsec\@empty
\else
\refstepcounter{##1}%
\protected@edef\@svsec{\@seccntformat{##1}\relax}%
\fi
\@tempskipa ##5\relax
\ifdim \@tempskipa>\z@
\begingroup
##6{%
\@hangfrom{\hskip ##3\relax\@svsec}%
\interlinepenalty \@M ##9\@@par}%
\endgroup
\csname ##1mark\endcsname{##8}%
\addcontentsline{toc}{##1}{%
\ifnum ##2>\c@secnumdepth \else
\protect\numberline{\noexpand\protect\csname the##1\endcsname}%
\fi
##7}%
\else
\def\@svsechd{%
##6{\hskip ##3\relax
\@svsec ##9}%
\csname ##1mark\endcsname{##8}%
\addcontentsline{toc}{##1}{%
\ifnum ##2>\c@secnumdepth \else
\protect\numberline{\csname the##1\endcsname}%
\fi
##7}}%
\fi
\expandafter\protected@edef
\expandafter\@currentlabel
\expandafter{\csname the##1\endcsname}%
\@xsect{##5}}%
}
\endinput
|