ko.tex live 2010 에서 XeLaTeX 로 컴파일하고 있으며,
xoblivoir 클래스와
xetexko 패키지를 이용해서 작업하고 있습니다.
memoir 에 있는 기본적인 챕터스타일 말고 다른것들을 시도해보려고
veelo 챕터스타일부터 적용해보려 했고
한글 환경에 맞추어 \printchaptername 대신에 \prechapnum 과 \postchapnum 을 정의해서 사용했습니다.
아예 컴파일이 되질 않네요..
컴파일을 돌리게 되면 Missing \begin{document} 에러가 뜹니다...
범인으로는 \chapterstyle{veelo} 가 있는 행이 지목되는군요...
기본인 \chpterstyle{section} 을 쓰면 문제없이 컴파일이 되는데요...
제가 뭘 잘못한것일까요..?
혹시나 해서 프리앰블 전체를 올려봅니다..
**************************************************************************************************************
\documentclass[twoside,showtrims,a4paper,10.5pt,openright]{xoblivoir}
\usepackage[newmum]{fapapersize}
\usefapapersize{152mm,225mm,20mm,20mm,20mm,15mm}
\setheadfoot{5mm}{0mm}
\usepackage{color}
\usepackage{graphicx}
\pagestyle{headings}
\setmainfont [Mapping=tex-text]{Georgia}
\setmainhangulfont[BoldFont=헤움명조242, ItalicFont=헤움명조222, ItalicFeatures={FakeSlant={.17}}, interhchar=-0.08em, FakeStretch=0.95]{은 바탕}
\setsanshangulfont[BoldFont=헤움고딕142, ItalicFont=헤움고딕122, ItalicFeatures={FakeSlant={.17}}]{헤움고딕122}
\linespread{1.5}
\newcommand\MYFNT{\ttfamily\SetAdhocFonts{utyt}{utyt}}\xetexkofontregime[alphs=latin, nums=hangul, quotes=latin, puncts=hangul]{hangul}
\usepackage{xetexko-hanging}
\hangingpunctuation
\usepackage{endnotes}
\pagenumbering{arabic}
\makeatletter
\newlength{\numberheight}
\newlength{\barlength}
\makechapterstyle{veelo}{%
\setlength{\beforechapskip}{40pt}
\setlength{\midchapskip}{25pt}
\setlength{\afterchapskip}{40pt}
\renewcommand{\chapnamefont}{\normalfont\LARGE\flushright}
\renewcommand{\chapnumfont}{\normalfont\HUGE}
\renewcommand{\chaptitlefont}{\normalfont\HUGE\bfseries\flushright}
%\renewcommand{\printchaptername}{\chapternamefont\MakeUppercase{\@chapapp}}%
\renewcommand{\prechapternum}{\chapnamefont \pre@chapter}
\renewcommand{\postchapternum}{\chapnamefont \post@chapter}
\renewcommand{\chapternamenum}{}
\setlength{\numberheight}{18mm}
\setlength{\barlength}{\paperwidth}
\addtolength{\barlength}{-\textwidth}
\addtolength{\barlength}{-\spinemargin}
\renewcommand{\printchapternum}{%
\makebox[0pt][l]{%
\hspace{.8em}%
\resizebox{!}{\numberheight}{\chapnumfont \thechapter}%
\hspace{.8em}%
\rule{\barlength}{\numberheight}
}
}
\makeoddfoot{plain}{}{}{\thepage}
}
\makeatother
\chapterstyle{veelo}
\begin{document}
KTUG 한국 텍 사용자 그룹