I tried ChatGPT and Bard for this first, but both responses were a little off. Here's my request:
I need a LaTeX program like this: the label format is 2 wide, 10 rows down per page. Within the label I need the three columns as specified before ("not for infants under 1 yr", "Kate's Blackberry Honey", (graphic placeholder above) , "Not for infants under 1 yr" ) thanks ... Avery 5163 are the labels ... Thanks
Here's Bard's latest:
\documentclass{article}
\usepackage{graphicx}
\newcommand{\mylabel}[4]{%
\begin{tabular}{@{}c@{\hspace{20pt}}c@{\hspace{20pt}}c@{}}
#1 & #2 & #3
#4 & &
\end{tabular}%
}
\begin{document}
\noindent\begin{minipage}{.5\textwidth}
\centering
\mylabel{Not for infants under 1 yr}{Kate's Blackberry Honey}{Graphic placeholder above}{Not for infants under 1 yr}
\end{minipage}\hfill
\begin{minipage}{.5\textwidth}
\centering
\mylabel{Not for infants under 1 yr}{Kate's Blackberry Honey}{Graphic placeholder above}{Not for infants under 1 yr}
\end{minipage}
\end{document}
This isn't quite right; I get
Extra alignment tab has been changed to \cr. \unskip \hfil }\endtemplate
l.18 ...eholder above}{Not for infants under 1 yr}
Looks like it's close; can you help please?
\\instead of\after#3. – Qrrbrbirlbel Apr 25 '23 at 00:37