KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

아 두 분 다 빠르고 친절하신 답변 정말 너무너무 감사드립니다. 

제가 너무 성의없게 질문을 올렸었네요. 죄송합니다.


2번 문제는 말씀해 주신대로 하니 정말 잘 해결이 되었는데요, 1번에 section indentation이 아직도 약간 말썽이네요. 

\cftsetindents 함수만 쓰면 

! LaTeX Error: Missing \begin{document}. 이 에러가 뜨는 걸로 보아 코드 문제는 아닌 것 같고 환경 문제인 것 같습니다..Progress님께서 올려주신 test 텍스 파일도 같은 에러가 뜨네요. 


그래서 kotex 버전도 최신버전으로 깔아보고 부수파일 제거도 해보고 했는데 문제가 계속 발생하네요. 제가 주로 논문 template만 써서 oblivoir 클래스가 생소해서 그런데 혹시 다른 설정을 해주어야 하는 것이 있는 것인지요?


혹시 몰라 샘플 코드와 에러 라인을 첨부합니다. 


==============================

\documentclass[a4papar, nanum, 12pt]{oblivoir}


\usepackage[pdftex]{graphicx}

\usepackage{chngcntr}

\usepackage{tocloft}

\usepackage{titlesec}


\titleformat{\chapter}

{\normalfont\LARGE\bfseries}{\thechapter}{1em}{}

\titlespacing*{\chapter}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}

\titleformat*{\subsection}{\small}

\titlespacing*{\subsection}{20pt}{0em}{0em}


\titleformat*{\subsubsection}{\small}

\titlespacing*{\subsubsection}{30pt}{0em}{0em}


\kscntformat{chapter}{제 }{장}

\kscntformat{section}{제 }{조}

\kscntformat{subsection}{}{}

\renewcommand\hchaptertitlehead{\thechapter}

\setlength{\cftchapternumwidth}{3.5em}


\cftsetindents{section}{3.2em}{3.0em}


\setcounter{secnumdepth}{3}

\setcounter{tocdepth}{1}


\title{테스트문서}

\date{2014년 7월 15일}


\begin{document}


\maketitle

\tableofcontents*


\chapter{1챕터}

\section{1-1섹션}

\section{1-2섹션}


\chapter{2챕터}

\section{2-1섹션}

\section{2-2섹션}


\end{document}

============================

로그~

Package hyperref Message: Driver: hpdftex.


(c:/usr/texlive/2013/texmf-dist/tex/latex/hyperref/hpdftex.def

(c:/usr/texlive/2013/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))

(c:/usr/texlive/2013/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-toclo

f.sty)

(c:/usr/texlive/2013/texmf-dist/tex/latex/kotex-oblivoir/memhangul-ucs/ob-korea

nappendix.sty))

HANGUL DRIVER: dhucs running

)) (c:/usr/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty

(c:/usr/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty

(c:/usr/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)

(c:/usr/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)

(c:/usr/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def)))

(c:/usr/texlive/2013/texmf-dist/tex/latex/titlesec/titlesec.sty)

(c:/usr/texlive/2013/texmf-dist/tex/latex/nanumtype1/lucnanummj.fd)


! LaTeX Error: Missing \begin{document}.


See the LaTeX manual or LaTeX Companion for explanation.

Type H <return> for immediate help.

...

l.23 \cftsetindents{section}{3.2em}{3.0em}

?

=========================== 


나름 찾아본다고 했는데, 아직 어디가 문제인지 모르겠네요. 


계속 질문드려 죄송합니다..

KTUG 한국 텍 사용자 그룹