## LaTeX forum ⇒ General ⇒ How can I separate exercises from solutions?

LaTeX specific issues not fitting into one of the other forums of this category.
LaTexLearner
Posts: 139
Joined: Tue Mar 10, 2015 11:06 am

### How can I separate exercises from solutions?

I'm in the midst of creating introductory multiplication and division exercises, exemplified by the following, except that I would like to separate the exercises from the solutions.

PicForOnlinePost.PNG (55.6 KiB) Viewed 9370 times

I can almost do it now... but not quite.

I made the code below which compiles, but does not separate the exercises from the solutions. I commented out the way I thought I could separate solutions and exercises, but that did not work unless I remove \Diagram from the definition of \Solution, meaning that there is some tikZ problem with \xdef... I think.

All the pictures and files are in this Dropbox folder. https://www.dropbox.com/sh/04uujszim2jr ... 2tTBa?dl=0

[Side note: I do not know how to turn normal text into a link, so I pasted that huge URL instead...]

Sorry for the long MWE; I'm not sure what I could remove and still get the point across! If anyone needs me to comment on any of the code, I'm happy to.

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})

Tags:

Return to “General”

### Who is online

Users browsing this forum: Baidu [Spider] and 4 guests