Ask Your Question

# Is this right about changing link colour?

My original document contains links as I used a lot of scripture. They are in orange as this looks nice in the PDF. However, I want change them to black as I am now working on the print version. (Chicken and egg which comes first and technically, you need two files, due to page structure etc but the text is the issue here. You write the same stuff for both versions. However, the publisher says best to upload a pdf for the print book)

When I change the style so the link is black, some places this happens and other places it does not.

I go to format-character and can see the colour is still orange there.

So if you change link colour in tools-options, you still need to go to every link and change it by format-character?

Or, is there another way. (Selecting the whole document and format-character, did not work.)

Read the comment below which is great.

edit retag close merge delete

## 1 Answer

Sort by » oldest newest most voted

Writer has a feature to automatically recognise internet links in the form http://site.example.org or mailto://user@example.org. When such links are identified, they automatically received an extra character style Internet Link.

What's not documented is the relationship between the various style categories (each shallower layer overriding the deeper one). The order in this case is:

 paragraph style < character style < *Internet Link* < direct formatting


This explains why link formatting seems so "sticky". It is also an exception in the present rule where only one character style may be applied to a run of characters (though there is still on-going work to relax this rule).

The simplest way to change the appearance of links is to customise character style Internet Link (and maybe also Visited Internet Link but this is important rather for forms or HTML documents).

The change to Internet Link does not propagate to all occurrences if these occurrences have received some direct formatting. The behaviour illustrates once more the "danger" of direct formatting in long-term maintained or complex sophisticated documents. Refrain from direct formatting; it will always play nasty tricks on your back. People coming from Word use it because Word has a poorer notion of styles than Writer (notably, no character, page, frame or "list" [=numbering] styles).

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

more

## Comments

Thank you this explains quite a lot to me as I had cleared Direct formatting and was a bit puzzled as to why I still had Orange in the documents when it didn't show in the source file. I can now amend it in the right way. I think one of the things that happens is that people like me who don't have great technical experience see what they see on the page and a assume that that will be ok. Then we get blindsided because what we produce isn't what we thought we had created. I guess by the end of this book which is extremely long I will be an expert and able to help others but it's been a huge learning curve because I've done other things with libreoffice very happily and had no problem at all. I did possible for awhile ...(more)

( 2019-06-28 12:17:22 +0200 )edit

## Stats

Asked: 2019-06-28 08:26:32 +0200

Seen: 29 times

Last updated: Jun 28