2

Original .: enter image description here And

I want to do like this. how can I do it? enter image description here

\documentclass[a5paper]{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage{amsmath}
\usepackage{tasks}
\newlength{\taskindent}
%
\settowidth{\taskindent}{\text{m)}}
\settasks{
    item-indent=\taskindent,
    label-format=\MakeUppercase, 
    after-skip = 3ex,
}
%
\begin{document}
%
            \begin{tasks}(3)
                \task $360$
                \task $190$
                \task $209$
                \task $300$
                \task $120$
            \end{tasks}
%
\end{document}
leandriis
  • 62,593
cufcuf
  • 594

1 Answers1

3

Edit:

The following code

\documentclass[a5paper]{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage{amsmath}
\usepackage{tasks}
\newlength{\taskindent}
%
\settowidth{\taskindent}{\text{m)}}
\settasks{
    item-indent=\taskindent,
    label-format=\MakeUppercase, 
    after-skip = 3ex,
}
%
\begin{document}
%
\begin{tasks}(5)
  \task*(2) $360$
  \task*(2) $190$
  \task $209$
  \task[] 
  \task*(2) $300$
  \task $120$
\end{tasks}
%
\end{document}

generates: enter image description here

Luis Turcio
  • 2,757
  • thanks for comment but When I add the after document to my code, the options are a, b, c, e, f . Not a,b,c,d,e @Luis Turcio – suarez Oct 03 '21 at 18:21
  • Can you show your preamble, because this behavior is due to something in your document – Luis Turcio Oct 03 '21 at 18:42
  • \documentclass[a5paper]{article} \usepackage[margin=1.5cm]{geometry} \usepackage{amsmath} \usepackage{tasks} \newlength{\taskindent}

    \settowidth{\taskindent}{\text{m)}} \settasks{ item-indent=\taskindent, label-format=\MakeUppercase, after-skip = 3ex, }

    \begin{document}

            \begin{tasks}(5)
    

    \task(2) $360$ \task(2) $190$ \task $209$ \task[] \task*(2) $300$ \task $120$ \end{tasks}

    \end{document} @Luis Turcio

    – suarez Oct 03 '21 at 18:53
  • @suarez I have edited my answer showing the output generated by the code with the addition of your supposed preamble. As you can see it is the desired output, so if you don't have the same it must be something in your preamble – Luis Turcio Oct 03 '21 at 19:28
  • @Luis Turcio thanks for support but see screenshot here https://ibb.co/6R1dSK0 – cufcuf Oct 03 '21 at 19:33
  • Remember overleaf uses an outdated texlive. You can copy-paste the same code in, say, texlive and you will see the difference. One option could be to download the newer version of tasks and add it to your document files. I have not tested so I don't know if this suffices – Luis Turcio Oct 03 '21 at 19:40
  • thank you @Luis Turcios :) – cufcuf Oct 03 '21 at 19:47