KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당자유글 › 지금까지 작업한 부분을 정리해서 command 로 만들어 봤습니다.

불량양파 | 2016.11.04 11:59:35 | 메뉴 건너뛰기 쓰기
\newcommand{\PhotoFrame}[8]{%
%%%%%%%% photoframe argument
%% arg1 : rotate degress
%% arg2 : X position
%% arg3 : Y position
%% arg4 : framecolor
%% arg5 : textcolor
%% arg6 : image file name
%% arg7 : text_date
%% arg8 : text
\begin{tikzpicture}[remember picture,overlay,anchor=center]
 \pgflowlevel{\pgftransformrotate{#1}}
  \fill[#4,use shadow] (#2,#3) rectangle (#2 +4,#3 -3.7);%
  \node[transform shape](frameimage) at (#2 +2.0,#3 -1.4) {\includegraphics[width=3.5cm]{#6}};
  \node[draw=none,fill=none,text width=3.6cm,text=orange] at (#2 +2.05,#3 -2.8) {%
    \noindent\DigitFont\small{#7}
 };
  \node[draw=none,fill=none,text width=3.6cm,text=#5] at (#2 +2.05,#3 -3.3) {%
    \noindent\HandwriteFont\HandwriteFontKor{#8}
 };
\end{tikzpicture}%
}
 
\PhotoFrame{7}{3}{0}{gray}{white}{이미지파일명}{2016/03/05}{하단텍스트}%


어차피 다들 하실 수 있는거라 제가 올리는 팁으로는 별 의미가 없겠습니다만...

혹시 newcommand 말고 더 좋고 깔끔한 방법은 없겠죠? 뭔가 argument 가 이거저거 들어가서 좀 번잡해 보여서.. (긁적)


본문에 바로 붙여넣으려 했는데 tkiz스타일 에서 s 와 t 가 붙은건 허용이 안돼서 부득이하게 필요 부분이나 스크립트등은 빼고 올립니다. TeX 스크립트라고 해서 다 올라갈 수 있는것도 아니네요... 흠.. 소스코드를 이미지로 붙여넣는게 맞으려나..T.T

댓글 [6]

댓글 쓰기

목록

KTUG 한국 텍 사용자 그룹