[Top][All Lists]

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

Re:Re: [Texmacs-dev] Solution environment

From: Zou Hu
Subject: Re:Re: [Texmacs-dev] Solution environment
Date: Sat, 25 Dec 2010 10:30:35 +0800 (CST)

Thanks. To share document with others, I think I need to add the macros to the preamble of my document. But I tried several ways to do this without success. Could you give me an example texmacs file? I could not find this kind of things in texmacs document. 

At 2010-12-24,"Miguel de Benito Delgado" <address@hidden> wrote:
I agree this would be nice and it ought not to be too hard to achieve, at least for your own personal documents: to the file src/TeXmacs/progs/text/text-menu.scm you can add the line

 ("Solution" (make 'solution))

(a good place might be after the exercise and problem environments). Then all you have to do is add something like the following to your style file:













I tried adding this to packages/environment/env-theorem.ts but it wasn't enough, maybe someone can shed some light here? Adding the macros to the preamble of the document (hide it with <hide-preamble>) did of course work as expected (i.e. when clicking on the "solution" item inside the menu, I got a new Solution environment).

The problem with adding the environment to the TeXmacs source could be that there are already many styles that don't implement it, as well as latex conversion to be done and lots of translations, all of which adds up to some 40 files. Of course all this can always be done if the others agree.

Miguel de  Benito.

On Fri, Dec 24, 2010 at 06:12, Zou Hu <address@hidden> wrote:
Hi all,
Currently in TeXmacs there are "theorem" and "proof" environments; and also there is a "problem" environment, but I can not find a "solution" environment. I think it would be better to add a "solution" environment to texmacs.

Texmacs-dev mailing list

reply via email to

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