Q&A 마당은 텍 관련 질문/답변을 위해 만들었습니다.

  • 로그인 없이 자유롭게 글을 읽고 쓸 수 있는 철학은 처음과 같이 계속됩니다.
  • 질문 전에 아래를 읽어 보세요. 좋은 질문이 좋은 답을 받을 수 있는 좋은 방법입니다.
    • 질문에 맞는 제목을 붙이세요. 질문의 내용과 관련없는 "고수님", "긴급질문", "도와주세요"와 같은 제목은 답이 잘 올라오지 않습니다. 이 게시판에 올라오는 모든 글은 질문입니다. 굳이 [질문], [Q]를 적으실 필요도 없습니다.
    • 내용을 충실히 적어 주시고, 같은 상황을 재현할 수 있는 최소한의 예제가 같이 있어야 합니다.
    • 최소 예제는 "Minimal working example"을 읽어 보세요.
  • 파일을 첨부하실 때에는 가능한 압축하여 파일 크기를 줄여서 올려주시길 바랍니다.
  • 개인적으로 사용하신 글꼴이 들어 있는 경우, preparefont.sty에 관한 답변을 참조하세요.
  • 스팸 글을 막기 위하여 짧은 시간 내에 다시 글이 등록되는 IP를 막거나, 광고 글을 막기 위하여 금지어로 .com, .net 등을 설정하고 있습니다. 다소간의 불편함이 있으시더라도 양해 바랍니다.
    • 금지어에서 stackexchange, stackoverflow, ctan, overleaf, , github, google.com, gmail.com, .org, .io, sil.org, wiki.com, tistory.com등은 해제하였습니다.
  • MathJax를 이용한 수식조판을 사용하실 수 있습니다. 여기를 참조하세요.
  • 사용하는 편집기는 CKeditor입니다.
    • 편집기에서 [enter]를 누르면 <p> 태그가 들어가고, 문단으로 생각하고 한 줄을 비웁니다.
    • 글줄만 바꾸려면 [shift-enter]를 누르면 <BR> 태그가 들어가므로 용도에 맞게 나누어 쓸 수 있습니다.
    • 수식를 문서내에 삽입하시려면 에디터를 툴바에서 [소스]를 눌러 HTML로 입력할 수 있게 바꾸신 후 <pre> </pre> tag를 사용하셔서 <pre> 여러 줄의 수식 </pre>처럼 입력하시면 좋습니다.

noname

section title 스타일만 문제삼는다면 memoir/oblivoir로 만들 때 고려할 것은, (1) \hangsecnum 했을 때 판면 바깥으로 나가는 section number가 예시 문서에서는 좌측정렬되어 있지만 memoir에서는 우측정렬된다는 점, (2) \setsecheadstyle을 이용하면 타이틀 텍스트에 밑줄을 긋는 것은 어려울 것이 없지만 예시 문서에서는 sec num까지 포함하여 밑줄을 그을 것을 요구한다는 점 정도라고 생각됩니다.

사실 이 질문을 하신 분이 궁금해하신 것은 단순히 섹션의 번호가 판면 바깥으로 나갈 수 있게 하려면 어떻게 하느냐는 것이 아니었을까 의심하고 있습니다. 정말 위에 지적한 그런 점이 궁금했다면 그 사실을 자세히 적었어야 할 것입니다. 간단한 문제에 대하여 구체적으로 궁금한 것을 질문하면 될 것을, 이렇게 난해한 샘플을 주고 "이걸 구현해봐라"라고 요구하는 무례한 질문으로 취급된 까닭에 약간의 분란이 있었습니다만, 아무튼지간에 이렇게 할 수 있다는 방법 한 가지를 보이고자 합니다.

\documentclass[a4paper]{oblivoir}

\SetHangulspace{1}{1} 	% emulate memoir layout

\usepackage{fapapersize}
\setheadfoot{\headheight}{45pt}
\usefapapersize{*,*,1.4in,*,1.4in,2.5in}

\usepackage{lipsum,blindtext}
\usepackage{xcolor}
% theme colour
\definecolor{MyThemeColour}{cmyk}{0.10,0.10,1.00,0} % personal yellow

%%%% disable \chapter command
\ReleaseMacros{\chapter}
\counterwithout{section}{chapter}

\usepackage[normalem]{ulem}
\NewDocumentCommand\headuline{O{3pt}}{%
    \bgroup\setlength\ULdepth{#1}%
    \markoverwith{%
      \textcolor{MyThemeColour}{\rule[-0.75ex]{1pt}{1pt}}}%
    \ULon
}

\maxsecnumdepth{subsubsection}

\setsecheadstyle{\noindent\sffamily\bfseries\LARGE
	\headuline[3pt]}
\setsubsecheadstyle{\noindent\sffamily\bfseries\Large
	\headuline[3pt]}
\setsubsubsecheadstyle{\noindent\sffamily\bfseries\large
	\headuline[3pt]}
\setparaheadstyle{\noindent\sffamily\bfseries\headuline}

%%% calculate the width of section number box
\newlength\tmpadim
\settowidth\tmpadim{\noindent\sffamily\bfseries\large 9.9.9.9}

%%% Now, we redefine \@seccntformat via \hangsecnum
\makeatletter
\renewcommand{\hangsecnum}{%
  \def\@seccntformat##1{%
  	\llap{%
  	  \headuline[3pt]{%
	    \makebox[\tmpadim][l]{\csname the##1\endcsname}%
	  }% end of \headuline
	}% end of \llap
  }% end of \@seccntformat definition
}
\makeatother

\hangsecnum

\begin{document}
\section*{Lipsum}
Some text.
\section{Lipsum}
\blinddocument
\end{document}

 




XE Login