Subject: mailing-list for TeXmacs Users
List archive
From : Joris van der Hoeven <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] visibility flags
- Date: Thu, 7 Jul 2005 21:13:19 +0200
On Thu, Jul 07, 2005 at 01:40:05PM -0500, Corey Sweeney wrote:
> This one has been bugging me for a long time, how do i get a
> visibility flag to reference the current style? I have .tm files,
> which are articles, but if they are loaded as a "include" in a book, I
> don't want them to print their abstract or table of contents. so i'm
> thinking something like:
>
> <macro|x|<if| {style = book} |x|<abstract|This is a nifty
> paper|><table-of-contents|toc|...>x>>
>
> then pass the whole article to the macro as "x", but i just made up
> {style = book}. Is there a way to detect that?
No, although we might export a scheme routine to get the current style and
use the export primitive.
On the other hand, each standard style files "x" defines an environment
variable x-style, so you may test whether this environment variable
is defined or not.
Best wishes, Joris
- visibility flags, Corey Sweeney, 07/07/2005
- Re: [TeXmacs] visibility flags, Joris van der Hoeven, 07/07/2005
- Re: [TeXmacs] visibility flags, Corey Sweeney, 07/08/2005
- Re: [TeXmacs] visibility flags, Joris van der Hoeven, 07/08/2005
- Re: [TeXmacs] visibility flags, Corey Sweeney, 07/08/2005
- Re: [TeXmacs] visibility flags, Joris van der Hoeven, 07/08/2005
- Re: [TeXmacs] visibility flags, Corey Sweeney, 07/08/2005
- Re: [TeXmacs] visibility flags, Joris van der Hoeven, 07/07/2005
Archive powered by MHonArc 2.6.19.