Allow setting a background color in choicegroup and markgroup environments #25

Open
benzea opened this Issue May 1, 2013 · 3 comments

Comments

Projects
None yet
1 participant
@benzea
Member

benzea commented May 1, 2013

In theory all that is needed is setting a white fill for checkboxes, and then one could use the normal methods for tables. However, there are some issues:

  • "choicegroup" emits much of the environment from the first choiceline command. It also has a header row.
  • "markgroup" also seems to create some issues, not sure why.
  • "table" needs to be past to the document setup, so that "color" is loaded using the option

Not really perfect. We could add support for the normal coloring commands by adding row color on/off commands. Maybe it would make more sense to create some custom commands though.

@benzea

This comment has been minimized.

Show comment
Hide comment
@benzea

benzea Aug 3, 2013

Member

With commit f191838 we have the white background already. so the next step would be to support coloring for the different environments. I am thinking that it makes sense to create some custom coloring commands, but I am not entirely sure how to best do that.

Member

benzea commented Aug 3, 2013

With commit f191838 we have the white background already. so the next step would be to support coloring for the different environments. I am thinking that it makes sense to create some custom coloring commands, but I am not entirely sure how to best do that.

@benzea

This comment has been minimized.

Show comment
Hide comment
@benzea

benzea Aug 12, 2013

Member

OK, this will not work. The theory is nice, but \multicolumn (ie. the implementation from colortbl) does not support fills. These are however required for the stretchable \choiceitemtext to work.

It looks like colortbl might be doing this on purpose.

Member

benzea commented Aug 12, 2013

OK, this will not work. The theory is nice, but \multicolumn (ie. the implementation from colortbl) does not support fills. These are however required for the stretchable \choiceitemtext to work.

It looks like colortbl might be doing this on purpose.

@benzea

This comment has been minimized.

Show comment
Hide comment
@benzea

benzea Aug 13, 2013

Member

Here is a working patch: https://gist.github.com/benzea/6222666

However, if one uses it, then the survey ID changes. It appears that at least the checkboxes in markgroup environments shift their position sligthly. Most people will not care, but it is not nice :-/.

Member

benzea commented Aug 13, 2013

Here is a working patch: https://gist.github.com/benzea/6222666

However, if one uses it, then the survey ID changes. It appears that at least the checkboxes in markgroup environments shift their position sligthly. Most people will not care, but it is not nice :-/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment