Avery 5160 용 우편 라벨

Dec 19 2020

최근에 다음을 사용하여 내 Xmas 메일 링 레이블을 MS Word에서 LaTeX로 전환했으며 더 나은 솔루션을 알고있는 사람이 있는지 궁금합니다. 이것이 보다 일반적인 해결책 이라는 것을 인정할 것이지만, 여전히 Avery 5160 레이블이 거의 가득 차 있습니다.

\documentclass[letterpaper]{article}% Avery 5160
\usepackage[top=0.5in, bottom=0.5in, left=0.125in, right=0.125in, noheadfoot]{geometry}
\usepackage{varwidth}

\newenvironment{cell}{\minipage[c][1in][c]{2.75in}\centering% Avery 5160 described as 1in by 2.625in
  \varwidth{2.625in}\raggedright}% but measures 2.75in wide
{\endvarwidth\endminipage\allowbreak\ignorespaces}
  
\parindent=0pt
\pagestyle{empty}

\begin{document}
\large% set font etc.
\begin{cell}
Name\\
Address\\
City, State Zip\\
extra line if needed
\end{cell}
\begin{cell}
Name\\
Address\\
Very wide city name, State Zip
\end{cell}
\begin{cell}
Name\\
Address\\
City, State Zip
\end{cell}
\begin{cell}
Name\\
Address\\
City, State Zip
\end{cell}
\end{document}

답변

3 StevenB.Segletes Dec 19 2020 at 05:31

여기에 내가 설정하고 수행하는 방법이 있습니다.이 페이지는 Avery 4013, "3.5"x 15/16 "One Across"이므로 다중 레이블 너비 페이지에 맞게 조정해야합니다. 기본적으로 단일 열에 12 개의 레이블 스트립입니다. 내 \setlabel음악 컨텐츠의 수직 범위는 라벨 공간에 맞게. 너무 크다고 생각되면 빈 줄을 추가하십시오. 서문에서는 레이블 형식을 변경하면 조정할 수있는 몇 가지 매개 변수를 강조합니다.

더 넓은 용지를 지정 \setlabel하고 동일한 행의 항목 사이에 빈 줄 을 제거하고 \par의 정의에서 를 제거하여 형식을 다중 레이블 너비 형식으로 조정할 수 있습니다 \setlabel. 아래 첫 번째 솔루션을 참조하십시오.

\documentclass[12pt]{article}
\usepackage[paperwidth=4.3275in,paperheight=12in,left=0.4in,right=0.4in,
  top=.63in,bottom=.12in]{geometry}% top= tuned to your printer
\usepackage{scalerel}
\usepackage[usestackEOL]{stackengine}
\parindent 0in
\parskip .24in% Related to label width
\usepackage{Palatino}% Pick a font with good stroke width
\newlength\htone
\newlength\httwo
\htone=.73in% related to label height
\httwo=.73in% related to label height

\renewcommand\stackalignment{l}
\strutlongstacks{T}

\def\setlabel#1{\hfil%
  \rule[-\dp\strutbox]{0in}{\htone}\scaleto{\Longstack{#1}}{\httwo}%
  \par%
}
\frenchspacing
\begin{document}

\setlabel{
Pastor Theophilus Jones\\
St. Luke Lutheran Church}% Wife Betsy

\setlabel{
Dr. \& Mrs. Greg Lastname \& Family\\
908 Streetname Dr.\\
Lancaster, PA 17601}% Liz + Kenny and Susie

\setlabel{
Herr Doktor Johann Schmidt\\
Birkenstrasse 27\\
86240 Biburg\\
GERMANY}% Mom's Uncle
\end{document}


다중 너비

\documentclass[12pt]{article}
\usepackage[paperwidth=10in,paperheight=12in,left=0.4in,right=0.4in,
  top=.63in,bottom=.12in]{geometry}% top= tuned to your printer
\usepackage{scalerel}
\usepackage[usestackEOL]{stackengine}
\parindent 0in
\parskip .24in% Related to label width
\usepackage{Palatino}% Pick a font with good stroke width
\newlength\htone
\newlength\httwo
\htone=.73in% related to label height
\httwo=.73in% related to label height

\renewcommand\stackalignment{l}
\strutlongstacks{T}

\def\setlabel#1{\hfil%
  \rule[-\dp\strutbox]{0in}{\htone}\scaleto{\Longstack{#1}}{\httwo}%
%  \par%
}
\frenchspacing
\begin{document}

\setlabel{
Pastor Theophilus Jones\\
St. Luke Lutheran Church}% Wife Betsy
\setlabel{
Dr. \& Mrs. Greg Lastname \& Family\\
908 Streetname Dr.\\
Lancaster, PA 17601}% Liz + Kenny and Susie

\setlabel{
Herr Doktor Johann Schmidt\\
Birkenstrasse 27\\
86240 Biburg\\
GERMANY}% Mom's Uncle
\setlabel{
Frau Doktor Johanna Schmidt\\
Birkenstrasse 27\\
86240 Biburg\\
GERMANY}% Mom's Uncle
\end{document}