2

I want to make a market list where the column quantity is blank. The hard copy of the list will be used as a template for market list. Housewife/House keeper will fill the quantity in the hard copy she will need corresponding to the item.

Now, my question is that is there any good package that makes the market list good one?

MWE(compile using xelatex)

\documentclass{article}
\usepackage{booktabs}
\usepackage{polyglossia}
%\setmainlanguage[numerals=Devanagari]{bengali}
%\setmainlanguage{bengali}
%\setotherlanguage{english}
%\newfontfamily\englishfont[Scale=MatchLowercase]{Linux Biolinum O}
%\newfontfamily\bengalifont[Script=Bengali]{Akaash}
\begin{document}
  \begin{tabular}{l@{\hspace{1.5cm}}}
  Name\\
  \toprule
Rice\\
\midrule
pulse\\
\midrule
Salt\\
\midrule
Oil\\
\midrule
Pepper\\
\midrule
Onion\\
\midrule
Garlic\\
\midrule
Ginger\\
\midrule
Salad\\
\midrule
Chicken\\
\midrule
Spice\\
\bottomrule
\end{tabular}
\end{document}

enter image description here

11
  • @AlanMunn I changed the Bangla text to English.
    – alhelal
    Mar 13 '18 at 0:30
  • It's still not clear what your question is, though.
    – Alan Munn
    Mar 13 '18 at 0:33
  • @AlanMunn I try to edit again.
    – alhelal
    Mar 13 '18 at 0:34
  • @AlanMunn I edited again. If further editing needed tell me.
    – alhelal
    Mar 13 '18 at 0:54
  • 1
    My point was that your example code still has the problem @AlanMunn pointed out, since most people will still be unable to compile it. I am extremely unlikely to offer a solution given that I have no idea what the problem is. However, I'll bear that criterion in mind should my crystal ball come up with anything plausible. Right now, it's just displaying an error and asking to be rebooted, but I tried that already and it didn't fix anythng.
    – cfr
    Mar 13 '18 at 1:24
2

Something like this?

\documentclass{article}
\usepackage{multicol}
\usepackage{pgffor}
\raggedcolumns
\newcommand{\ListItem}[1]{\underline{\makebox[2cm][l]{#1}}}
\begin{document}
\begin{multicols}{4}
\foreach \x in {Rice,pulse,Salt,Oil,Pepper,Onion,Garlic,Ginger,Salad,Chicken,Spice}
{
\ListItem{\x}\par\bigskip}
\end{multicols}
\end{document}

output of code

2
  • Looks good, but I like one column.
    – alhelal
    Mar 13 '18 at 8:05
  • 1
    So remove the multicols environment.
    – Alan Munn
    Mar 13 '18 at 9:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.