Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] style file: "if" in a macro

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] style file: "if" in a macro


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] style file: "if" in a macro
  • Date: Sat, 15 Oct 2005 11:53:37 +0200

On Fri, Oct 14, 2005 at 03:45:01PM -0700, Kris Kuhlman wrote:
> I am trying to write my own style file which will render figures and
> tables differently. I think I have it set up, except I am not seeing
> how to test the "type" argument of the macro (which is either table or
> figure). I tried equals using various forms of <arg|type> or
> <value|type>, but in the help files, it describes the equals macro for
> evaluating numbers. Is there a way to see check the contents of the
> argument "type"?

Macro arguments are always accessed using <arg|...>. In the style file you
attached, there are several spurious <value|...> tags: doing <value|<arg|...>>
hardly ever makes sense and, instead of "<value|figchoice>", you probably
just meant "figchoice". Indeed, you want to test against the *name* of
the macro, not its contents.

On the other hand, you rightly put the if statement as a first argument
of the compound statement, as explained in the documentation.
Notice also that, when things will work, you may need to change
the DRD-properties of your macro with drd-props, because the usual
heuristic may not work in case of conditional statements.

Best wishes, Joris



Archive powered by MHonArc 2.6.19.

Top of Page