Jos�,

what would you say if we got rid of the old clever trickery:

    LatexParam            "4|revnumber"

?

What about putting the number in a separate variable "CommandLevel"?
And the string, if needed, into "InnerName" or something? This is after
all for, e.g., generating a separate <title>...</title> pair around a
section header.

I would reserve LatexParam (later to be renamed I think to
OutputParam) for putting in 'attr="value"' strings where needed.

Looking at output_docbook.C, I see

    154             item_name = c_params.empty() ? "title" : c_params;
    155             sgml::openTag(os, depth + 1 + command_depth, false, item_name);

and

    211             end_tag = c_params.empty() ? "title" : c_params;
    212             sgml::closeTag(os, depth + command_depth,
    213                      false, end_tag);

...if we put "title" into the .layout file (as an InnerName), we can
lose the conditional in both places, and I will be happy too as in
AGU-Article the corresponding tag is not <title> but <head> ;-)

Does this make sense?

- Martin

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to