एवरी 5160 के लिए मेलिंग लेबल

Dec 19 2020

मैंने हाल ही में अपने Xmas मेलिंग लेबल को MS Word से LaTeX में निम्न का उपयोग करके स्विच किया, और सोच रहा था कि क्या कोई बेहतर समाधान जानता था। मैं स्वीकार करूंगा कि यह एक अधिक सामान्य समाधान है, लेकिन मेरे पास अभी भी एवरी 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

यहां बताया गया है कि मैं कैसे सेटअप करता हूं और मेरा काम करता है, जिसे मल्टी-लेबल-चौड़ाई वाले पेज पर एडाप्ट करने की आवश्यकता होगी, क्योंकि खान एवरी 4013, "3.5" x 15/16 "वन एक्रॉस" हैं। यह मूल रूप से एक एकल स्तंभ पर 12 लेबल की एक पट्टी है। मेरे \setlabelधुनों सामग्री के ऊर्ध्वाधर हद लेबल अंतरिक्ष फिट करने के लिए। यदि आपको लगता है कि यह बहुत बड़ा है, तो एक रिक्त रेखा जोड़ें। प्रस्तावना में, मैं कुछ मापदंडों को उजागर करता हूं, जिन्हें लेबल प्रारूप में परिवर्तित करने पर मुझे घुमाया जा सकता है।

प्रारूप को एक व्यापक पेपर को निर्दिष्ट करके, \setlabelउसी पंक्ति पर प्रविष्टियों के बीच रिक्त लाइनों को हटाकर , और \parपरिभाषा से परिभाषा को हटाकर बहु-लेबल-चौड़ाई प्रारूप में समायोजित किया जा सकता है \setlabel। 1 मिलियन समाधान देखें।

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


बहु- 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}