\draw[fill=black!50] (a.center) circle (2pt) node[anchor=south east] {a};
\draw[fill=black!50] (b.center) circle (2pt) node[anchor=south west] {b};
\draw[fill=black!50] (c.center) circle (2pt) node[anchor=north west] {c};
\draw[fill=black!50] (d.center) circle (2pt) node[anchor=north east] {d};
\draw[fill=black!50] (aa.center) circle (2pt) node[anchor=east] {aa};
\draw[fill=black!50] (bb.center) circle (2pt) node[anchor=west] {bb};
\draw[fill=black!50] (a1.center) circle (2pt) node[anchor=south] {a1};
\draw[fill=black!50] (a2.center) circle (2pt) node[anchor=south] {a2};
\draw[fill=black!50] (aa1.center) circle (2pt) node[anchor=north] {aa1};
\draw[fill=black!50] (aa2.center) circle (2pt) node[anchor=north] {aa2};
\end{tikzpicture}
}
\makepagestyle{test}
\makeoddhead{test}{\tikz[overlay,xshift=1.5cm,yshift=3pt]\node at (0,0) {\includegraphics[height=\onelineskip]{KTSbanner}};}{Korean \TeX{} Users Group}{\small\sffamily\textbf{\thepage}/\thelastpage}
\begin{document}
\pagestyle{test}
\jiwon
\jiwon
\end{document}
===
까먹지 말아야할텐데 아직도 원리를 이해하기가 쉽지 않습니다. 예를 들어 밑줄 친 부분입니다. 그림에서 보면 'a'라고 텍스트로 표시한 부분은 점 a, 즉 node a를 기준으로 북서쪽(north west) 방향에 식자되었는데 왜 anchor에서 남서쪽(south east)이라고 해야 그 위치에 표시되는 걸까요? 이런게 헷갈립니다. 분명 매뉴얼 어딘가에 나오긴 할텐데...
ndh 님 감사합니다.
기준점 표시를 하고 영역을 칠하는 것까지 보태 다시 올려봅니다.
% grid_test4.tex
%!TEX TS-program = xelatex
\documentclass[a4paper]{oblivoir}
\usepackage{fapapersize}
%\usefapapersize{*,*,30mm,*,30mm,*}
\usepackage[svgnames,dvipsnames]{xcolor}
\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]
%기준점 8개 설정
\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) {};
% 영역 칠하기
\filldraw[YellowGreen!30] (a.center) rectangle (aa1.center);
\filldraw[YellowGreen!70] (a1.center) rectangle (aa2.center);
\filldraw[YellowGreen!30] (a2.center) rectangle (bb.center);
% 선 긋기
\draw[line width=1pt,color=YellowGreen] (a.center) rectangle (c.center);
\draw[line width=1pt,color=YellowGreen] (a.center) rectangle (bb.center);
\draw[line width=1pt,color=YellowGreen] (a1.center) -- (aa1.center);
\draw[line width=1pt,color=YellowGreen] (a2.center) -- (aa2.center);
% 점 표시
\draw[fill=black!50] (a.center) circle (2pt) node[anchor=south east] {a};
\draw[fill=black!50] (b.center) circle (2pt) node[anchor=south west] {b};
\draw[fill=black!50] (c.center) circle (2pt) node[anchor=north west] {c};
\draw[fill=black!50] (d.center) circle (2pt) node[anchor=north east] {d};
\draw[fill=black!50] (aa.center) circle (2pt) node[anchor=east] {aa};
\draw[fill=black!50] (bb.center) circle (2pt) node[anchor=west] {bb};
\draw[fill=black!50] (a1.center) circle (2pt) node[anchor=south] {a1};
\draw[fill=black!50] (a2.center) circle (2pt) node[anchor=south] {a2};
\draw[fill=black!50] (aa1.center) circle (2pt) node[anchor=north] {aa1};
\draw[fill=black!50] (aa2.center) circle (2pt) node[anchor=north] {aa2};
\end{tikzpicture}
}
\makepagestyle{test}
\makeoddhead{test}{\tikz[overlay,xshift=1.5cm,yshift=3pt]\node at (0,0) {\includegraphics[height=\onelineskip]{KTSbanner}};}{Korean \TeX{} Users Group}{\small\sffamily\textbf{\thepage}/\thelastpage}
\begin{document}
\pagestyle{test}
\jiwon
\jiwon
\end{document}
===
까먹지 말아야할텐데 아직도 원리를 이해하기가 쉽지 않습니다. 예를 들어 밑줄 친 부분입니다. 그림에서 보면 'a'라고 텍스트로 표시한 부분은 점 a, 즉 node a를 기준으로 북서쪽(north west) 방향에 식자되었는데 왜 anchor에서 남서쪽(south east)이라고 해야 그 위치에 표시되는 걸까요? 이런게 헷갈립니다. 분명 매뉴얼 어딘가에 나오긴 할텐데...