2

I would simply like to have the possibility to turn on and off some parts of a TeX file. For example, when writing a course assignment, it should be possible to hide the solutions to my students, but to show them to me after a new compilation. Hint: The comment package does not work for me, since it does not understand German Umlaute like, e.g., Ä, Ö, Ü, etc. In general, this package seems to be a little bit out of date...

7
  • 4
    It would be nice if you posted a minimal compilable example we can work with (e.g., including those Ä, Ö, etc. that don't work for you).
    – Manuel
    Mar 25, 2015 at 10:32
  • You can use the comment package with utf-8 characters, by adopting the trick described by egreg in this answer: tex.stackexchange.com/a/159824/27635 Mar 25, 2015 at 10:44
  • Or you can use the comment environment of verbatim package
    – touhami
    Mar 25, 2015 at 10:50
  • Depending on how you want to implement it, this question could be very much related: tex.stackexchange.com/questions/125840/… Mar 25, 2015 at 11:48
  • Check out the exam class and its \printanswers/\noprintanswers commands. I believe the exsheets package can also do this, though I'm less familiar. Mar 25, 2015 at 12:32

0

Browse other questions tagged .