Previous: , Up: @url   [Contents][Index]

#### 6.10.4 PDF Colors

By default, urls and cross-reference links are printed in black in PDF output. Very occasionally, however, you may want to highlight such “live” links with a different color, as is commonly done on web pages. Texinfo provides a PDF-specific option for specifying these colors, which must be used inside @tex:

@tex

\urlcolor changes the color of @url output (both the actual url and any textual label), while \linkcolor changes the color for cross-references to nodes, etc. They are independent.
These definitions only have an effect when the PDF output is produced with the pdfTeX program, not with other ways of getting from Texinfo to PDF (e.g., TeX to DVI to PDF). Consequently, it is ok to specify this option unconditionally within @tex, as shown above. It is ignored when DVI is being produced.