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>처럼 입력하시면 좋습니다.

Progress

ndh 님 감사합니다. 

기준점 표시를 하고 영역을 칠하는 것까지 보태 다시 올려봅니다. 


connecting_8node_and_each_area.png


% 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)이라고 해야 그 위치에 표시되는 걸까요? 이런게 헷갈립니다. 분명 매뉴얼 어딘가에 나오긴 할텐데... 




XE Login