Last active
March 2, 2017 12:09
-
-
Save dohyunkim/9eff92bdbfc2ca72d8c04f8816b23228 to your computer and use it in GitHub Desktop.
Formtec 주소용 라벨 LQ3212 (100 x 45mm). 페이지당 12개 라벨 총 240 라벨.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 성명 | 주소 | 우편번호 | 전화번호 | 부수 | 비고 | ... | |
|---|---|---|---|---|---|---|---|
| 성명 | 쉼표가, 들어간, 주소 | 우편번호 | 전화번호 | 부수 | 비고 | ... | |
| (전체 16줄) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[a4paper,12pt,twocolumn]{article} | |
| \usepackage{fontspec} | |
| \usepackage[hmargin=3mm,vmargin={10mm,15mm}]{geometry} | |
| \setmainfont{Noto Sans CJK KR}[Script=Hangul, Language=Korean] | |
| \pagestyle{empty} | |
| \columnsep=3mm | |
| \parindent=0pt | |
| \lineskip=0pt | |
| \raggedbottom | |
| \def\printaddress#1,{% | |
| \vbox to 45mm\bgroup\vss | |
| \leftskip=10mm \rightskip=10mm plus 1fil | |
| \textbf{#1}\par\bigskip | |
| \futurelet\next\printaddressX | |
| } | |
| \def\printaddressX{% | |
| \ifx"\next | |
| \expandafter\printaddressXX | |
| \else | |
| \expandafter\printaddressXXX | |
| \fi | |
| } | |
| \def\printaddressXX"#1",{% | |
| #1\par | |
| \printaddressXXXX | |
| } | |
| \def\printaddressXXX#1,{% | |
| #1\par | |
| \printaddressXXXX | |
| } | |
| \def\printaddressXXXX#1,#2\stop{% | |
| \bigskip | |
| \hfill\small\zipcode#1\stop\par | |
| \vss\egroup\par | |
| } | |
| \def\zipcode#1{% | |
| \ifx#1\stop\else | |
| \fbox{#1}\,% | |
| \expandafter\zipcode | |
| \fi | |
| } | |
| \begin{document} | |
| \immediate\openin0=address.csv\relax | |
| \endlinechar=-1 | |
| \loop | |
| \read0 to \line | |
| \unless\ifeof0 | |
| \ifx\empty\line\else | |
| \expandafter\printaddress\line\stop | |
| \fi | |
| \repeat | |
| \small | |
| \newcount\n \n=1 | |
| \loop | |
| \printaddress 한국텍학회,서울특별시 중구 필동로 1길 30 동국대학교 법과대학 김도현 교수 연구실,04620,\stop | |
| \ifnum\n<16 \advance\n by1 | |
| \repeat | |
| \end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment