2

My question is how may I specify that the parts to a question be typeset horizontally with the option to specify the amount of rows as well as shown below. It is also essential that the level of enumeration inside the exercises start with lowercase letters (not numbers).

enter image description here

1028
  • 647
  • 5
  • 16
  • @ChristianHupfer That seems to do the trick, however the part regarding the enumeration style being lower-case alphabetical is not there yet. Thank you though! – 1028 Sep 07 '15 at 21:06
  • That's left as an exercise to you ;-) –  Sep 07 '15 at 21:06
  • 4
    multicols and enumerate will enumerate in columns rather than in rows like in the picture. But there are a number of questions here asking the same thing: http://tex.stackexchange.com/q/107269/, http://tex.stackexchange.com/q/149273/ – cgnieder Sep 07 '15 at 21:13
  • @clemens: Thanks for providing tasks ;-) –  Sep 07 '15 at 21:13
  • @ChristianHupfer :) – cgnieder Sep 07 '15 at 21:13
  • @clemens: I thought of tasks already, but wrote too quickly that undesirable feature of multicols and enumerate with somewhat 'transposed' counting. –  Sep 07 '15 at 21:15
  • @ChristianHupfer I already guessed that (seeing your answer) :) – cgnieder Sep 07 '15 at 21:17
  • Is there a way I can keep using multicols and enumerate? Maybe at least someone can point me out in the right direction? – 1028 Sep 07 '15 at 21:22
  • @1028: The problem with multicols and enumerate is that enumerate traverses downwards along the column, not horizontally –  Sep 07 '15 at 21:24

1 Answers1

2

Here is a solution using the tasks package by your fellow user clemens.

To get three 3 columns, say

\begin{tasks}(3) 
\task ... 
\task etc. 
\end{tasks}

The task labels can be changed with counter-format={(tsk[a])}, where 'tsk' will be replaced with the actual task counter. [a] will use \alph, i.e. lower case characters. (See the tasks manual for more options)

\documentclass{article}


\usepackage{mathtools}

\usepackage{tasks}

\begin{document}

\begin{enumerate}
\item Evaluate each expression without calculator
\settasks{counter-format={(tsk[a])},label-offset=1em}
\begin{tasks}(3)
  \task $(-3)^4$ 
  \task $-3^4$
  \task $3^{-4}$
  \task $\dfrac{5^{23}}{5^{21}}$
  \task $\left(\dfrac{2}{3}\right)^{-2}$
  \task $16^{-3/4}$
\end{tasks}
\end{enumerate}

\end{document}

enter image description here

  • This seems like a good way to do it! I keep getting that tasks is deprecated option in my build log. What is that about? – 1028 Sep 07 '15 at 21:21
  • @1028: I don't understand. tasks is a rather new package by clemens, I don't think it's deprecated –  Sep 07 '15 at 21:23
  • I don't understand either, it keeps asking me for epic.sty and I don't know what package that's from. – 1028 Sep 07 '15 at 21:32
  • @1028: Yes, tasks requires the epic package, but I don't have this warning. Have you updated your distribution? –  Sep 07 '15 at 21:42
  • I believe so, I'm running Arch and under tasks it says it is installed and up to date. I am however using TeXLive so if you're referring to the package here: https://www.ctan.org/tex-archive/macros/latex/contrib/epic?lang=en then it is not contained in TeXLive. – 1028 Sep 07 '15 at 21:49
  • I am using TeXLive 2015, daily updated –  Sep 07 '15 at 21:50
  • I will recheck then! Thank you for replying! I appreciate it! – 1028 Sep 07 '15 at 21:59
  • @1028 can you look in the log file what the warning says exactly? (There's nothing deprecated about tasks… so I'm wondering what this might be?) – cgnieder Sep 07 '15 at 22:12
  • @clemens Here is my log file: ! LaTeX Error: File `epic.sty' not found.

    Type X to quit or to proceed, or enter new name. (Default extension: sty)

    Enter file name: /usr/share/texmf-dist/tex/latex/tasks/tasks.sty:56: Emergency stop. <read *>

    l.56 \msg_new:nnn {tasks} {deprecated-option} No pages of output. Transcript written on /tmp/gummi_TDO63X.log.

    – 1028 Sep 07 '15 at 22:14
  • @1028: epic is on TeXLive, I've completely installed yesterday on my new machine, from scratch, and fetched no other packages so far -- it's on my new machine, so I could only get from TL. The error message is perhaps misleading here. –  Sep 07 '15 at 22:17
  • @1028 Ah, so the deprecated thing is secondary and the error really is ! LaTeX Error: Fileepic.sty' not found.`, thanks. – cgnieder Sep 07 '15 at 22:21
  • So I would assume that my problem is epic.sty? – 1028 Sep 07 '15 at 22:22
  • @1028: Yes, install the eepic bundle (note eepic, not epic) –  Sep 07 '15 at 22:27
  • Ohhhh, that changes everything... – 1028 Sep 07 '15 at 22:31
  • Compilation successful! Thank you ChristianHupfer and @clemens ! – 1028 Sep 07 '15 at 22:33