KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당정보글 › 원숫자

yihoze | 2014.01.02 09:00:43 | 메뉴 건너뛰기 쓰기
CircledNumbers.png

\documentclass{memoir} 
\usepackage{fontspec} 
\usepackage{enumitem}
\usepackage{hzmisc}
\newfontfamily\wrapnumfamily[CharacterWidth=Half,LetterSpace=-5.0]{Myriad Pro}
\setwrapnum{type=circle,base=33,color=white,font=\wrapnumfamily\footnotesize,wrapspace=0pt,raise=-.35ex}

\begin{document} 
\thispagestyle{empty}
This is number \wrapnum{12}.
\begin{enumerate}[label=\protect\wrapnum{\arabic*}]
\item I
\item am
\item happy
\item to 
\item join
\item with 
\item you
\item today
\item in
\item what
\item will
\item go 
\item down
\item in 
\item history
\item as 
\item the 
\item greatest
\item demonstration
\item for
\item freedom
\item in
\item the
\item history
\item of
\item our 
\item nation.
\end{enumerate}
\end{document} 

hzmisc.sty.tex
원숫자 문제로 여러 분들이 고민하시는 것 같아 제가 만든  이 패키지를 올려드립니다.
hzguide 클래스에 딸린 패키지인데, \wrapnum이란 명령을 제공합니다.
base=33은 쓸 수 있는 가장 높은 숫자라는 의미가 아니고, 33이라 썼을 때  그 넓이를 기준으로 삼겠다는 것입니다.
type에 circle 말고, oval, rectangle, ball을 쓸 수 있습니다.

memoir 클래스 기반으로 설계되었기 때문에 이 패키지가 다른 클래스에서 문제없이 사용될 수 있다는 것을 제가 보장하지 못합니다.

첨부 [2]

댓글 쓰기

목록

KTUG 한국 텍 사용자 그룹