KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

fmtcount 패키지를 안쓰고 조건문으로 밀어부치는 거친(?) 방법도 있습니다. progress님이 소개해주신 multido를 이용해봤습니다.

\documentclass{xoblivoir}
\usepackage{multido}

\usepackage{ifthen}
\newcounter{KTUG}
\setcounter{KTUG}{0}
\newcommand{\KTUG}{%
  \stepcounter{KTUG}%
  \ifthenelse{\value{KTUG}<10}%
  {00\arabic{KTUG}}%
  {\ifthenelse{\value{KTUG}<100}%
    {0\arabic{KTUG}}%
    {\arabic{KTUG}}%
  }%
}

\begin{document}

\section{조건문으로 밀어부치기}
\multido{}{120}{%
  \KTUG\quad}

\end{document}

Screen Shot 2013-02-23 at 10.34.24 AM.png


@book{Lim1995a,
    Author = {Lim, Y. K.},
    Isbn = {9789810212957},
    Month = {1},
    Publisher = {World Scientific Publishing Company},
    Title = {Problems and Solutions on Mechanics (Major American Universities PhD Qualifying Questions and Solutions)},
    Year = {1995}}
이라는 책에서 이와 비슷한 스타일이 나옵니다. 이 경우는 00x 앞에 part counter가 붙어서 들어갑니다.

Screen Shot 2013-02-23 at 10.11.23 AM.png


KTUG 한국 텍 사용자 그룹