[OS X TeX] FAQ List Structure?
Themis Matsoukas
tmatsoukas at me.com
Fri Oct 14 07:42:36 EDT 2011
On Oct 13, 2011, at 4:45 PM, David Craig wrote:
> I need to create a FAQ-type document with a list of groups of questions linked to answers below (in the same document). The question groups and questions need to be numbered. Among other things, this means that the numbering in the list of questions needs to match the numbering in the answers, but the complete list of questions needs to PRECEED the complete list of answers. It would be nice if the tex code could be such that the questions and answers could be entered together but typeset separately, something like a description environment but pairing the list of questions with a list of the questions/answers following:
My solution uses memoir (you can also use the comments package if you on't want to use memoir). Define two new comments, one for questions and one for answers, and turn them on or off depending in what you want show. Instead of a step-by-step explanation I am attaching a root file (FAQ.tex) along with two individual faqs (faq1.tex, faq2.tex) that demonstrate how my approach works. I basically use the same approach to print homework problems (problem statements w/o solutions, solutions w/o problem statements, or both).
Themis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FAQ.tex
Type: application/octet-stream
Size: 974 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20111014/1f8a7b31/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: faq1.tex
Type: application/octet-stream
Size: 170 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20111014/1f8a7b31/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: faq2.tex
Type: application/octet-stream
Size: 180 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20111014/1f8a7b31/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FAQ.pdf
Type: application/pdf
Size: 26093 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20111014/1f8a7b31/attachment.pdf>
More information about the MacOSX-TeX
mailing list