KTUGFaq
KTUG FAQ
A truly wise man never plays leapfrog with a Unicorn.
CVSμġϱ/Win › RenamePage&value=ŰŰ&value=RenamePage&value=ŰŰ › SourceCodeListing › pyTeX&value= › ?독후감&value=PDF&value=독후감&value=PDF ›
1.1 level number ¶
δ. level number ٴ´.
\part \chapter \section \subsection \subsubsection \paragraph \subparagraph̰ ǥ Ѵٸ,
ɾ | Level |
\part (book/report) | -1 |
\part (article) | 0 |
\chapter | 0 |
\section | 1 |
\subsection | 2 |
\subsubsection | 3 |
\paragraph | 4 |
\subparagraph | 5 |
ɾ İ Ư ,
ȣ ̱(numbering) | (.toc) | header/footer | |
\section{} | Y | ||
\section[ ]{ } | Y | ||
\section*{} | N |
: (TOC) (Level)
\setcounter{tocdepth}{5}ϴ ̹ cls Ͽ Ʈ Ͽ ִ. cls Ͽ (Level) Ÿ ڰ ٸ ִٴ ̴. ν Utah б cls uuthesis2e.cls
\def\section{\@Ustartsection{section}{3} {\z@} %indent. \z@ == 0pt {\HFsectionSKIP} % before=\baselineskip for \large {1sp} %after {\center %style \HFsection\bfseries}} \def\subsection{\@Ustartsection{subsection}{4} {\z@} %indent {\HFsubsectionSKIP} % before=\baselineskip for \normalsize {1sp} %after {\HFsubsection\bfseries}} %style \def\subsubsection{\typeout{No subsubsections allowed with three levels.}} \def\paragraph{\@Ustartsection{paragraph}{5} {\parindent} %indent {1sp} %before {-1em} %after {\HFparagraph\bfseries}} %stylebook.cls ذ 繵 ٸ. ں
\setcounter{tocdepth}{3}ٸ section ۿ Ÿ ʴ´. subsection Ÿ ҷ 4 Ѵ.
- : uuthesis2e.cls 13926 ÷ε Byung.zip Ǯ ִ.
1.2 secnumdepth tocdepth ¶
δ.
\part \chapter \section \subsection \subsubsection \paragraph \subparagraph
- level number ٴµ, ۼϷ ϴ ȹ level number secnumdepth ۰ų ٸ ȣ(1.1.1 ) ٴ´.
- ۼϷ ϴ ȹ level number tocdepth ۰ų ٸ toc(Table of Contents) Ʈ . , level number tocdepth ũٸ Ÿ ʴ´.
- secnumdepth tocdepth ī ̹Ƿ, \setcounter ִ. article Ŭ \paragraph Ÿ Ϸ
\setcounter{tocdepth}{4}
ں ִ´. - ǥ article Ŭ (secnumdepth tocdepth) counter 3 Ǿ ִ. book 2 Ǿ ִ..
1.3 startsection ¶
\section \@startsection ̶ ũθ ̿Ͽ Ѵ. \section ϴ ̴.
ũδ ڸ ´.
- #1 ī Ī. section section̶ ī, subsection subsection̶ ī ϱ Ǿ ְ ī͵ LaTeX class ̹ ǵǾ Ƿ ٲ ʴ´.
- #2 ܰ(level). section level 1̴. level ӵ ̹Ƿ ǥ Ѵ.
- #3 ܶ Ӹ 鿩. ǥ 鿩 ̴.
- #4 ǥ . ܶ ǥ ̴ ⼭ ־ ̰ 밪̴.
-
{-3.5ex \@plus -1ex \@minus -.2ex}
, 밪 ϸ 3.5ex plus 1ex minus .2ex̴. ̰ 3.5ex 3.3ex 4.5ex øų ִ ( skip)̶ ǹ̰, ǥ ܶ ̽ο \baselineskip + \parskip + ŭ ־ ȴ. ǥ baselineskip=12pt, parskip=0pt̹Ƿ, 12pt+0pt+3.5ex Ǿ ִ ̴. ̳ʽ ȣ پٰ ؼ ǥ Ž ö ̸ ǹϴ ƴϴ. ̳ʽ , ǥ ó ϴ 鿩(indenting) ̴. indentfirst Ű ش. ǥ ̴ Ȱ Ǹ, ùܶ 鿩⸦ ϱ "ȣ" ̳ʽ ϸ ȴ.
-
- #5 ǥ . ǥ ù ܶ ̴ ⼭ ־ ̰ 밪̴. ̸ ǥ̱ ǥ ̰̰ ̸ ùܶ ̰ ȴ.
- #6 ǥ Ÿ. ǥ ڵDZ ũε ´. ַ ۲, ũθ ġ.
2.1 article ø ¶
\documentclass{article} \begin{document} \maketitle \section{} \subsection{ } \subsubsection{ } \section*{} % * ڵ տ Ⱥٰ % .toc ʽϴ. \begin{thebibliography} ... \end{thebibliography} \end{document}
: article Ŭ \chapter ϴ.
2.2 book ø ¶
\documentclass{book} \begin{document} %-------------------------å (frontmatter) \maketitle \section*{} \tableofcontents \listoffigures \listoffigures %------------------------ \part{} \chapter{} \section{} \subsection{} \subsubsection{} \chapter{} \part{} %----------------------ޱ (backmatter) \appendix \chapter{} \chapter{} \begin{thebibliography} ... \end{thebibliography} \begin{theindex} ... \end{theindex} \end{document}
3.1 ڸ ߾̳ ٲٰų, font ٲٳ? ¶
- 1) ϰ (Sectioning commands) Ӱ ٸ ̸ ٽ Ѵ.
:
Section ȣ Bold Ÿų *(, \ssection*{})鵵 ٽ ̷ ؾѴٴ ִ. preamble̶, \documentclass[]{} \begin{document} , \usepackage{} \begin{document} Ѵ.
%<preamble > \newcommand{\ssection}[1]{% ߾ӿ \section[#1]{\centering\sc #1}} \newcommand{\ssubsection}[1]{% ʿ \subsection[#1]{\raggedleft\it #1}} %<> \ssection \ssubsection \section \subsection Ѵ.
- 2) sectsty Ű ̿
Ű ̷ Ȳ ִ (tool) Ѵ.
- 3) titlesec Ű ̿ Ű sectsty ϳ ߾ ִ Ѵ. Ű ϸ ȭ ִ. : titlesec_hfont.tex, titlesec_hfont.pdf
- 4) fncychap Ű ̿, ѱ۰ Բ hfncychap
̿ ڼ ̱ hfncychap . fncychap book class frontmatter, backmatter Ƿ, frontmatter, backmatter鵵 ٲٰ ʹٸ tocbibind Ű Բ Ѵ.
- 5) -- book/report/article class memoir class KOMA-script
memoir.cls sectsty titlesec (tool) Ŭ ȿ Բ ϰ ִ. KOMA-script \partformat, \chapterformat, \sectionformat, ɵ Ѵ.
3.2 subsubsubsection 峪? ¶
LaTeX section ɾ \subsubsection ϰ ִ. ̴ LaTeX â Leslie Lamport ڰ տ ϰڴ° ̴. ǻ κ LaTeX class \subsubsection ϴ ɾ ߰ ִ. \paragraph \subparagraph ̵ε, ɾ տ ڵ ٰ, ణ ΰ ̾ٴ´. ̴ LaTeX ٽ ִ(\renewcommand) ̿ ذ ִ.
- 1) titlesec Ű
Ű \paragraph typesetting ȯ \section typesetting ϰ ִ.
- 2) ltsect.dtx, < class>.dtx The LaTeX Companion Ͽ ٽ ϱ
) report class
\documentclass{report} %-------------------------<preamble> % section number depth counter 켱 level 7 9 øϴ. \setcounter{secnumdepth}{9} %տ ڸ ǥ մϴ \renewcommand{\theparagraph}{\thesubsubsection.\roman{paragraph}} \renewcommand{\thesubparagraph}{\theparagraph.\alph{subparagraph}} %-------------------------<> \begin{document} \part{Part} \chapter{Chapter} \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \paragraph{Paragraph} \subparagraph{Subparagraph} \end{document}
3.3 ̳ տ ٴ ȣ ü ְ ͽϴ. ? ¶
ǥ1 帰 ó * ϸ
̳ Ƚϴ. ̷
ϰ, ɾ մϴ.
%------<preamble> \setcounter{secnumdepth}{-2}
3.4 տ ٴ ȣ θ ڳ ĺ ٲٷ մϱ? ¶
%--------<preamble> \renewcommand{\thesection}{\thechapter.\Roman{section}}%article "\thechapter." \renewcommand{\thesubsection}{\thesection.\Alph{subsection}} \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} ...
\arabic{ctr}, \roman, \Roman, \alph, \Alph 밡ϴ.
3.5 header ʹ ϴ. ? ¶
- 1) , κ Ŭ ɵ `mark' Ѵ. , \chapter \chaptermark, \section \sectionmark Ѵ ̴. ̸ ̿Ͽ
̶ ִ.
\chapter[߸ ]{ }% , ߸ , \chaptermark{ª } % ª ȴ.
, ۵Ǵ ʱ ̷ , ۵Ǵ Ƿ ణ ϴ.#! vim tex \section[߸ ]{ % \sectionmark{ª }} % ̰ ۵Ǵ \sectionmark{ª } %
Ǿ Ѵ. , ɼ\section[]{}
Ǿ ϴ Ϳ Ѵ.
ϴ Ŭ ۵Ǵ ִ´ٸ ɵ Ǿ Ѵ.
: titlesec Ű ٸ ٷ Ű (documentation) ϵ Ѵ.
- 2) memoir Ŭ
\section[middling version][terse version]{verbose version}
ɼ θ ߰ ־ ڰ ̿ ִ.
3.6 , , ǥ, , theorem ȣ ̳ ٽ ֳ? ¶
book report Ŭ , , ǥ, ȣ 忡 ̷ ȴ.̴ master slave counter Ǵ master counter slave counter ٽ 0 .
, ڰ program̶ ȯ , α
ȣ ٱ⸦ Ѵٸ,
\newcounter{program}[section] % program slavḛ section master̴.õ ī ó ƿ 踦 Բ ϸ ȴ.
Ű Ŭ ̷ İ (object) ǵǾ
ǵ ī ְ ϴ programmer interface Բ
ʴ 쿡
- 1)
amsmath Ű ̶
%-------------<preamble> \makeatletter \@addtoreset{equation}{section} \@addtoreset{figure}{section} \makeatother \renewcommand{\theequation}{\thesection.\arabic{equation}} \renewcommand{\thefigure}{\thesection.\arabic{figure}}
ó ִ.\renewcommand{\theequation}{\thesection.\arabic{equation}} \numberwithin{equation}{section}
: sec_eqn_fig_num_test.tex, sec_eqn_fig_num_test.pdf - 2) chngcntr Ű
Ű \counterwithin addtoreset ֵ Ѵ.
%-----------<preamble> \usepackage{chngcntr} %----------<> \counterwithin*{equation}{section} %equation ī section ī slave \counterwithin{figure}{section} % figure ī section ī slave Դٰ % \thefigure <section ȣ>.<figure ȣ> Ѵ.
3.7 report Ŭ ǥ ٲٰ ;. ¶
\@makechapterhead ϸ ˴ϴ. HLaTeX euc-kr.tex ڵ带 Դϴ.
\makeatletter %% from euc-kr.tex (HLaTeX) \def\@makechapterhead#1{% % \vspace*{50\p@}% \vspace*{0pt}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \centering %%% <----------------- % \huge\bfseries \LARGE\bfseries \pre@chaptercnt\thechapter\post@chaptercnt % \par\nobreak % \vskip 20\p@ \fi % \interlinepenalty\@M % \Huge \bfseries #1\par\nobreak \quad #1% \vskip 40\p@ }} \makeatother
memoir Ŭ Ѵٸ renewcommand ƴ϶ ǥ ϴ ũο Ͽ ϰ ϴ ֽϴ.