Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option for switching the entire tasks environment to math mode. #8

Closed
student-sx opened this issue Apr 27, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@student-sx
Copy link

commented Apr 27, 2016

On of the motivations of creating the tasks packages seems to be (from the manual):

The reason for the tasks environment is an unwritten agreement in German maths textbooks
(exspecially in (junior) high school textbooks) to organize exercises in columns counting horizontally > rather than vertically. That is what tasks primarily is for. If you don’t need this feature
you’re better off using traditional LATEX lists and the enumitem package for customization.

Now such exercises often consist of only math formulas (for example calculating some integrals or derivatives) without text. Then you have to enter mathmode for every task. With regard to the quoted aim of the package, I think it would be a good idea to have an option such that the whole task environment operates in mathmode (similar as you can have matrices of math nodes in tikz).

Here is an example of a similar environment called brqalign, which was created by David Carlisle in response of one of my questions:

http://tex.stackexchange.com/a/51543/4011

@cgnieder cgnieder self-assigned this Apr 27, 2016

@cgnieder

This comment has been minimized.

Copy link
Owner

commented Apr 27, 2016

Nice idea. This should be easy to implement. I'm thinking of a more general option which lets the user apply an arbitrary formatting to an item. This would cover math-mode then.

cgnieder added a commit that referenced this issue May 2, 2016

@cgnieder

This comment has been minimized.

Copy link
Owner

commented May 2, 2016

\documentclass{article}
\usepackage{tasks}[2016/05/02]

\settasks{
  item-format = \ensuremath
}

\begin{document}

\begin{tasks}(4)
  \task y + 4x
  \task \sin(x)
  \task \int e^x \,dx
  \task a^2 + b^2
\end{tasks}

\end{document}

tasks

@cgnieder cgnieder closed this May 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.