\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 | Á¦¸ñÀÌ µé¾î °¡Áö ¾ÊÀ½ | Á¦¸ñÀÌ µé¾î °¡Áö ¾ÊÀ½ |
\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}} %style·Î book.clsÀÇ ¼öÁØ°ú´Â »ç¹µ ´Ù¸£´Ù. µû¶ó¼ ÇÁ¸®¾Úºí¿¡
\setcounter{tocdepth}{3}À» ½è´Ù¸é section ±îÁö ¹Û¿¡´Â ³ªÅ¸³ªÁö ¾Ê´Â´Ù. subsection ±îÁö ³ªÅ¸³ª°Ô ÇÒ·Á¸é ¼ýÀÚ 4¸¦ ½á¾ß ÇÑ´Ù.
\part \chapter \section \subsection \subsubsection \paragraph \subparagraph
\setcounter{tocdepth}{4}¸¦ ÇÁ¸®¾Úºí¿¡ ³Ö´Â´Ù.
{-3.5ex \@plus -1ex \@minus -.2ex}
\documentclass{article} \begin{document} \maketitle \section{Á¦¸ñ} \subsection{ºÎ Á¦¸ñ} \subsubsection{ºÎ Á¦¸ñ} \section*{Á¦¸ñ} % *°¡ ºÙÀ¸¸é ¼ýÀÚµµ ¾Õ¿¡ ¾ÈºÙ°í % .toc¿¡µµ µé¾î°¡Áö ¾Ê½À´Ï´Ù. \begin{thebibliography} ... \end{thebibliography} \end{document}
\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}
%<preamble¿¡¼ > \newcommand{\ssection}[1]{% Áß¾Ó¿¡ \section[#1]{\centering\sc #1}} \newcommand{\ssubsection}[1]{% ¿À¸¥ ÂÊ¿¡ \subsection[#1]{\raggedleft\it #1}} %<º»¹®¿¡¼> \ssection°ú \ssubsectionÀ» \section°ú \subsection ´ë½Å »ç¿ëÇÑ´Ù.
\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}
%------<preamble> \setcounter{secnumdepth}{-2}
%--------<preamble> \renewcommand{\thesection}{\thechapter.\Roman{section}}%article¿¡¼´Â "\thechapter."À» Áö¿ï °Í \renewcommand{\thesubsection}{\thesection.\Alph{subsection}} \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} µîµî...
\section[ªÀº Á¦¸ñ]{±ä Á¦¸ñ}À̶ó´Â ½ÄÀÇ ¿É¼ÇÀ» °®°í ÀÖ´Ù. ±×·¯³ª ÀÌ Çü½ÄÀ» »ç¿ëÇϸé ªÀº Á¦¸ñÀÌ ¸ñÂ÷¿¡¼µµ »ç¿ëµÈ´Ù. ÀÌ°ÍÀÌ ¹®Á¦°¡ µÈ´Ù¸é ¸ñÂ÷¿¡´Â °£·«ÇÑ Á¦¸ñÀ» ³Ö°í Çì´õ¿¡´Â ´õ ªÀº Á¦¸ñÀ» ³Ö´Â °ÍÀÌ ´õ ¹Ù¶÷Á÷ÇÒ °Í ÀÌ´Ù.
\chapter[°£Ã߸° Á¦¸ñ]{¿ø·¡ÀÇ ±ä Á¦¸ñ}%º»¹®¿¡´Â ±ä Á¦¸ñÀÌ, ¸ñÂ÷¿¡´Â °£Ã߸° Á¦¸ñ, \chaptermark{ªÀº Á¦¸ñ} %Çì´õ¿¡´Â ªÀº Á¦¸ñÀÌ »ç¿ëµÈ´Ù.
#! vim tex \section[°£Ã߸° Á¦¸ñ]{¿ø Á¦¸ñ% \sectionmark{ªÀº Á¦¸ñ}} % ÀÌ°ÍÀº »õ ÀýÀÌ ½ÃÀ۵Ǵ ÀåÀÇ Çì´õ¸¦ À§ÇÑ °ÍÀÓ \sectionmark{ªÀº Á¦¸ñ} %º¸Åë ÆäÀÌÁöÀÇ Çì´õ¸¦ À§ÇÑ °ÍÀÓ¶õ ½ÄÀ¸·Î »ç¿ëµÇ¾ß ÇÑ´Ù. ÀÌ ¶§, °£ÃâÀÎ Á¦¸ñ°ú ¿ø·¡ÀÇ ±ä Á¦¸ñÀÌ °°´õ¶óµµ ¿É¼ÇÇüÀÎ
\section[Á¦¸ñ]{Á¦¸ñ}ÀÌ »ç¿ëµÇ¾ß ÇÏ´Â °Í¿¡ ÁÖÀÇÇÑ´Ù.
\section[middling version][terse version]{verbose version}¶ó´Â ½ÄÀÇ ¿É¼ÇÇüÀ» Àå°ú Àý ¸ðµÎ¸¦ À§ÇØ °®Ãß°í ÀÖ¾î »ç¿ëÀÚ°¡ ½±°Ô ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù.
\newcounter{program}[section] % programÀÌ slaveÀÌ°í sectionÀÌ masterÀÌ´Ù.¶ó´Â ½ÄÀ¸·Î °ü·ÃµÈ Ä«¿îÅ͸¦ óÀ½¿¡ Á¤ÀÇÇÒ ¶§ ¾Æ¿¹ °ü°è¸¦ ÇÔ²² Á¤ÀÇÇÏ¸é µÈ´Ù.
%-------------<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}
%-----------<preamble> \usepackage{chngcntr} %----------<º»¹®> \counterwithin*{equation}{section} %equation Ä«¿îÅ͸¦ section Ä«¿îÅÍÀÇ slave·Î ¸¸µç´Ù \counterwithin{figure}{section} %À§¿Í °°ÀÌ figure Ä«¿îÅ͸¦ section Ä«¿îÅÍÀÇ slave·Î ¸¸µé°í °Ô´Ù°¡ % \thefigure¸¦ <section ¹øÈ£>.<figure ¹øÈ£>ÀÇ ½ÄÀ¸·Î Àç Á¤ÀÇÇÑ´Ù.
\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