Menu

#3 page-number with ref output in color

open
nobody
None
5
2001-07-31
2001-07-31
Yann Dirson
No

The following snipet causes referenced page numbers to
appear in color in the dvi:

(make paragraph
(literal "page ")
(let ((eof-elt (element-with-id "eof")))
(element-page-number-sosofo eof-elt)))

I found out that a workaround is to write wrap the
page-number in a link:

(make link
destination: (idref-address (normalize "eof"))
(element-page-number-sosofo eof-elt))

But well, it looks like a bug anyway.

Discussion

  • Ian Castle

    Ian Castle - 2002-01-30

    Logged In: YES
    user_id=262940

    Is this on top of the docbook stylesheets?

    I don't really understand what the context is...

     
  • Yann Dirson

    Yann Dirson - 2002-01-31

    Logged In: YES
    user_id=38086

    Yes, it is in a customisation layer of norm's stylesheets.
    I put it in a footer. Since then I have wrapped the thing
    in a link, and the color has gone. I just checked - if I
    remove the link wrapper, the number is purple in ps output,
    and pdfjadetex fails, complaining for "! LaTeX Error:
    Undefined color `\@Pagecolor '" and other things.

    (make link
    destination: (idref-address (normalize "eof"))
    (element-page-number-sosofo eof-elt))

     
  • Yann Dirson

    Yann Dirson - 2002-01-31

    Logged In: YES
    user_id=38086

    Yes, it is in a customisation layer of norm's stylesheets.
    I put it in a footer. Since then I have wrapped the thing
    in a link, and the color has gone. I just checked - if I
    remove the link wrapper, the number is purple in ps output,
    and pdfjadetex fails, complaining for "! LaTeX Error:
    Undefined color `\@Pagecolor '" and other things.

    (make link
    destination: (idref-address (normalize "eof"))
    (element-page-number-sosofo eof-elt))