Etiquetas de endereçamento para Avery 5160

Dec 19 2020

Recentemente, troquei minhas etiquetas de mala direta de Natal do MS Word para o LaTeX usando o seguinte, e queria saber se alguém conhecia uma solução melhor. Admito que esta é uma solução mais geral, mas ainda tenho uma caixa quase cheia de etiquetas 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}

Respostas

3 StevenB.Segletes Dec 19 2020 at 05:31

Veja como eu configuro e faço o meu, que precisará ser adaptado para uma página com várias etiquetas, já que os meus são Avery 4013, "3,5" x 15/16 "One Across". É basicamente uma faixa de 12 rótulos em uma única coluna. Meu \setlabelajuste a extensão vertical do conteúdo para caber no espaço do rótulo. Se você acha que é muito grande, adicione uma linha em branco. No preâmbulo, destaco alguns dos parâmetros que podem ser ajustados se eu alterar o formato da etiqueta.

O formato pode ser ajustado para o formato de largura de várias etiquetas, especificando um papel mais largo, removendo linhas em branco entre as \setlabelentradas na mesma linha e removendo o \parda definição de \setlabel. VEJA ABAIXO 1ª SOLUÇÃO.

\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}


MULTI-WIDTH

\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}