KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

워낙 훌륭한 답변이 달려 있어서 사족에 불과하겠습니다만, 

이왕 tikz로 뭔가를 한다면 다음처럼 간단하게 할 수 있겠다 싶습니다.

핵심은 페이지의 여덟 곳에 점(node)을 찍고 그것을 연결하는 것입니다.

textbody와의 간격을 0.5cm로 하고 상단의 박스 높이는 \myuheight라는 새로 정의한 길이값에 따르도록 합니다.

그리고 맨 왼쪽 간에 그림을 넣는 것을 \tikz로 처리한 이유는 그렇게 하지 않으면 나머지 두 부분의 세로 위치가 흔들리기 때문입니다.


%!TEX TS-program = xelatex

\documentclass[demo,a4paper]{oblivoir}


\usepackage{fapapersize}

%\usefapapersize{*,*,30mm,*,30mm,*}


\ifxetex

\setkormainfont{HCR Batang LVT}

\fi


\usepackage{tikz}

\usepackage{jiwonlipsum}

\usepackage{everypage}

\newlength\mytmplen\mytmplen=\dimexpr\textwidth+1cm\relax

\newlength\myuheight\myuheight=.7cm

\AddEverypageHook{%

 \begin{tikzpicture}[overlay,remember picture]

\node at (current page.center) (CENTER) {};

\node [xshift=\spinemargin-.5cm,yshift=-\uppermargin+.5cm+\myuheight] at (current page.north west) (a) {};

\node [xshift=\spinemargin-.5cm+.33\mytmplen,yshift=-\uppermargin+.5cm+\myuheight] at (current page.north west) (a1) {};

\node [xshift=\spinemargin-.5cm+.67\mytmplen,yshift=-\uppermargin+.5cm+\myuheight] at (current page.north west) (a2) {};

\node [xshift=\spinemargin-.5cm,yshift=-\uppermargin+.5cm] at (current page.north west) (aa) {};

\node [xshift=\spinemargin-.5cm+.33\mytmplen,yshift=-\uppermargin+.5cm] at (current page.north west) (aa1) {};

\node [xshift=\spinemargin-.5cm+.67\mytmplen,yshift=-\uppermargin+.5cm] at (current page.north west) (aa2) {};

\node [xshift=-\foremargin+.5cm,yshift=-\uppermargin+.5cm+\myuheight] at (current page.north east) (b) {};

\node [xshift=-\foremargin+.5cm,yshift=-\uppermargin+.5cm] at (current page.north east) (bb) {};

\node [xshift=-\foremargin+.5cm,yshift=\lowermargin-.5cm] at (current page.south east) (c) {};

\node [xshift=\spinemargin-.5cm,yshift=\lowermargin-.5cm] at (current page.south west) (d) {};

\draw (a.center) rectangle (c.center);

\draw (a.center) rectangle (bb.center);

\draw (a1.center) -- (aa1.center);

\draw (a2.center) -- (aa2.center);

 \end{tikzpicture}

}


\makepagestyle{test}

\makeoddhead{test}{\tikz[overlay,xshift=1cm,yshift=3pt]\node at (0,0) {\includegraphics[width=1cm,height=.5cm]{test}};}{BBBBBBBB}{\thepage/\thelastpage}


\begin{document}


\pagestyle{test}


\jiwon


\jiwon

\end{document}


KTUG 한국 텍 사용자 그룹