> -----Opprinnelig melding-----
> Fra: Richard Brown [mailto:[email protected]] 
> Sendt: 10. februar 2010 09:29
> Til: lyx list
> Emne: How to replicate the EXERCISE format from the TeXbook 
> inKomsacript and lyx?
> 
> How can a comparative newby adopt the EXERCISE format that 
> Donald Knuth
> uses in the TeXbook? (key issues: correct numbering of exercises by
> chapter, and related answers written in the manuscript next to each
> exercise but printed elsewhere in a separately placed key)
> 
> I've adopted komascript book format, and am happy and 
> learning. But if I
> could just put an EXERCISE with its ANSWERS in my manuscript, and have
> lyx cope with the rest I'd be over the moon... 
> 
> I'm very willing to learn, but slow on the uptake because it's all so
> new... as always, TIA

Hi,
You could use the excersise package:
http://www.ctan.org/tex-archive/macros/latex/contrib/exercise/
It needs to be installed in your latex-distribution, and then 
in the document preamble put:
\usepackage{exercise}

However, this does not integrate the packege into LyX, but
you can use the exercise environment as ERT 
(http://wiki.lyx.org/FAQ/ERT).
If you are going to use it a lot you may look into making
a module for the package to integrate it into LyX.
http://wiki.lyx.org/Layouts/Modules

Ingar Pareliussen

Reply via email to