[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Solution environment

From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] Solution environment
Date: Sat, 25 Dec 2010 13:15:58 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Dear Miguel,

On Fri, Dec 24, 2010 at 10:59:05AM +0100, Miguel de Benito Delgado wrote:
> I agree this would be nice and it ought not to be too hard to achieve,

The difficulty here is that the semantics is not completely clear.
Sometimes, you might want to put the solution just after the problem,
in a similar way as a proof. But it also frequently occurs that solutions
are put at the end of a document, and the numbering has somehow to
be kept in sync with the numbering of the problems.

These are some of the reasons why a solution environment does not exist yet,
but it is quite easy to add one in a personal style file.

>    <assign|solution-text|<macro|<localize|Solution>>>
>   <assign|render-solution|<\macro|which|body>
>     <\render-remark|<arg|which>>
>       <\surround||<htab|0.5fn><active*|<with|mode|math|\<box\>>>>
>         <arg|body>
>       </surround>
>     </render-remark>
>   </macro>>
>   <assign|solution|<\macro|body>
>     <render-solution|<solution-text>|<arg|body>>
>   </macro>>

I would rather suggest to base it on the render-proof environment
(assuming your semantics).

Best, --Joris

reply via email to

[Prev in Thread] Current Thread [Next in Thread]