I may have an odd request. Is it possible to to create hyperlinks for
the display on the monitor (with all colors, underlinings, etc.), but to
have a regular print-out as if processed without the hyperref-package?
If one want to put up a pdf-file on the web, hyperlinks are great, but
they are pretty useless (and often disturbing), once the file is
printed, as it happens often. I guess I am looking for some kind of
command, the removes all the hyperlinks, once the print-button is pressed.
TIA,
Tom
> I may have an odd request. Is it possible to to create hyperlinks for
> the display on the monitor (with all colors, underlinings, etc.), but to
> have a regular print-out as if processed without the hyperref-package?
If you instruct hyperref to make "framed" links,
i.e.,
\usepackage[colorlinks=false]{hyperref}
the frames will not appear in print. AFAIK this is
the default behavior, anyway. Colored links, in
contrast,
\usepackage[colorlinks=true]{hyperref}
appear colored also in print.
HTH
Walter
What I do is print the links in blue. They are quite easy to spot on the
screen and appear almost black when printed in black & white (enough that
most people won't notice). If you need color printing, then the proposed
solution is good, although I find framed links quite annoying on screen.
Martin
Martin> What I do is print the links in blue. They are quite easy
Martin> to spot on the screen and appear almost black when printed
Martin> in black & white (enough that most people won't
Martin> notice). If you need color printing, then the proposed
Martin> solution is good, although I find framed links quite
Martin> annoying on screen.
Is that because of the bad choice of DEFAULT colours for the frames?
I find the default colours of hyperref (and most other Office suites)
awful: They are programmer-centric colours: pure red, pure green, pure
blue, pure cyan, pure magenta, pure blue. Except for pure blue, they
don't contrast well with a white background nor a black background.
Unfortunately, users don't use their minds these days anymore. They
simply take the defaults without much thinking.
Usually a less "pure" colour is much better. For light backgrounds,
30% red and 30% green are much better, for example. On a dark
background, a shade between pure red and pure white (e.g. 75% white)
is certainly better than pure red. This isn't that difficult a task
for programmers. Simply convert these colours to a grey value
(e.g. grey = 0.30 * red 0.59 green 0.11 * blue) and see if they're
different enough from the grey value of the background.
Would the author/maintainer of the hyperref consider using more
eye-friendly colours in the next release?
--
Lee Sau Dan 李守敦 ~{@nJX6X~}
E-mail: dan...@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee
> I find the default colours of hyperref (and most other Office suites)
> awful: They are programmer-centric colours: pure red, pure green, pure
> blue, pure cyan, pure magenta, pure blue. Except for pure blue, they
> don't contrast well with a white background nor a black background.
> Unfortunately, users don't use their minds these days anymore. They
> simply take the defaults without much thinking.
>
> Usually a less "pure" colour is much better. For light backgrounds,
> 30% red and 30% green are much better, for example. On a dark
> background, a shade between pure red and pure white (e.g. 75% white)
> is certainly better than pure red. This isn't that difficult a task
> for programmers. Simply convert these colours to a grey value
> (e.g. grey = 0.30 * red + 0.59 green + 0.11 * blue) and see if they're
> different enough from the grey value of the background.
>
>
> Would the author/maintainer of the hyperref consider using more
> eye-friendly colours in the next release?
No, some prefer one color for all kind of links, some prefer
diffferent colors, some wants optimization for printing,
some for display, some ... There is no "best" set of colors.
But happily, hyperref allows you to change the colors by
options {link,anchor,cite,url,menu,file,page}{,border}color.
The user interface of these options, however, can be improved:
* The options without "border" expects color names in the scope
of the color packages. The value will then be used in
\color{<value>}. The color name has to be known by the
color package or has to be defined by \definecolor. The
optional argument, color space, of \color is not supported.
* The values of the border options are used directly in PDF
dictionaries. The PDF specifications expects RGB values,
three numbers between 0 and 1. It would be nicer, if
here also the names of the color package could be used.
Yours sincerely
Heiko <ober...@uni-freiburg.de>
PS: In Freiburg there is a "TeX-Stammtisch" where such questions
also can be discussed. If you are interested, see
http://www.informatik.uni-freiburg.de/~inacker/TeX/
Since v1.11, the xcolor package provides additional keys for hyperref,
allowing to specify the border colors as well in terms of known color
names or color expressions, e.g. "xurlbordercolor=green" or
"xfilebordercolor=red!75".
Uwe Kern
> "Walter Schmidt" <t...@quantentunnel.de> wrote in message
> news:40BF93D3...@quantentunnel.de...
>
>>Tom Kink schrieb:
>>
>>If you instruct hyperref to make "framed" links,
>>i.e.,
>> \usepackage[colorlinks=false]{hyperref}
>>
>>the frames will not appear in print. AFAIK this is
>>the default behavior, anyway. Colored links, in
>>contrast,
>
> What I do is print the links in blue. They are quite easy to spot on the
> screen and appear almost black when printed in black & white (enough that
> most people won't notice). If you need color printing, then the proposed
> solution is good, although I find framed links quite annoying on screen.
>
> Martin
I played around with Walters suggestion and found his suggestion quite
good. The links are black and underlined (no boxes). When printing, the
underlining is not printed. So, the links are easy to spot on the
monitor, yet still quite readable, but the text prints normal without
any disturbing colors or gray-shadings (on a BW printer).
Walter, thanks a lot!
Tom
> I played around with Walters suggestion and found his suggestion
> quite good. The links are black and underlined (no boxes). When
> printing, the underlining is not printed. So, the links are easy
How do you achive this? I only get boxes or colored text, but i
found no way to produce underlined links.
--
Stefan.
Interesting .... this is the setup, I use:
\usepackag{hyperref}
\hypersetup{backref=true,bookmarksnumbered=true,bookmarksopen=true,breaklinks=true,
colorlinks=false,hyperindex=true,linktocpage=true,pagebackref=true
}%
I don't know, which key makes the underlines instead of boxes, or which
option may do this by default in my installation. I also use pdflatex
with \usepackage[activate,DVIoutput]{pdfcprot}, but I don't think this
has any influence. I only found those options useful and liked the
outcome - underlined.
Tom
The underlining is a feature of the used DVI or PS viewer,
the boxes are a feature of the PDF format.
Yours sincerely
Heiko <ober...@uni-freiburg.de>
> Tom Kink <ki...@hia.rwth-aachen.de> wrote:
>
>
>>Stefan Nobis wrote:
>>
>>
>>>Tom Kink <ki...@hia.rwth-aachen.de> writes:
[...]
>>>How do you achive this? I only get boxes or colored text, but i
>>>found no way to produce underlined links.
>>
>>Interesting .... this is the setup, I use:
>>
>>\usepackag{hyperref}
>>\hypersetup{backref=true,bookmarksnumbered=true,bookmarksopen=true,breaklinks=true,
>>colorlinks=false,hyperindex=true,linktocpage=true,pagebackref=true
>>}%
[...]
>>with \usepackage[activate,DVIoutput]{pdfcprot}
[...]
> The underlining is a feature of the used DVI or PS viewer,
> the boxes are a feature of the PDF format.
I see! So, creating the pdf through the the dvi-file gives the nice
underlined hyperlinks, which aren't printed (I've tried that). But what
I have seen so far (I didn't investigate deeper), it is no possible to
pass pdf-commands through a dvi-file (e.g. pdfauthor), or am I missing
something? Then I assume I would have to use the direct pdf-output. In
my case, this means to convert all eps-pictures and pstricks-stuff.
Tom
> Heiko Oberdiek wrote:
>
> I see! So, creating the pdf through the the dvi-file gives the nice
> underlined hyperlinks, which aren't printed (I've tried that).
I doubt this. You get really a *pdf* file, viewed in *AcrobatReader*
shows underlined hyperlinks that are not printed?
> But what
> I have seen so far (I didn't investigate deeper), it is no possible to
> pass pdf-commands through a dvi-file (e.g. pdfauthor), or am I missing
> something?
Read in the manual about the different drivers. You are using
default driver "hypertex" that is not for pdf. You need then hyperref
driver "dvips" for the route "DVI -dvips-> PS -ps2pdf-> PDF".
> Then I assume I would have to use the direct pdf-output. In
> my case, this means to convert all eps-pictures and pstricks-stuff.
ps4pdf, pdftricks, ...
Yours sincerely
Heiko <ober...@uni-freiburg.de>