Download it now!
Bug 119048 - Associate a character style to cross-reference fields
Summary: Associate a character style to cross-reference fields
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Fields-Cross-Reference
  Show dependency treegraph
 
Reported: 2018-08-01 17:37 UTC by RGB
Modified: 2018-09-25 03:08 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RGB 2018-08-01 17:37:40 UTC
Request: add to Writer's cross-reference dialogue the ability to associate a character style to the cross-reference field. 

Use case: suppose you need to generate a PDF where you want all cross-references in a particular color, for example, green. Right now you need to manually apply the character style each time you insert a cross-reference field. An option to automate this would be very interesting.
Comment 1 Heiko Tietze 2018-08-16 11:05:00 UTC
(In reply to RGB from comment #0)
> Use case: suppose you need to generate a PDF where you want all
> cross-references in a particular color, for example, green.

For what purpose do you need to highlight cross-refs?
Comment 2 Dieter 2018-08-16 17:16:59 UTC
I'd like this, too. I have several PDF-Documents (mostly scientific articles or books) with cross-references (to tables, footnotes, literature)in a specific color. So you can easily see, that there is a defined link within the text.
Comment 3 RGB 2018-08-16 19:07:46 UTC
(In reply to Heiko Tietze from comment #1)
> (In reply to RGB from comment #0)
> > Use case: suppose you need to generate a PDF where you want all
> > cross-references in a particular color, for example, green.
> 
> For what purpose do you need to highlight cross-refs?

To make them visible and easier to use. If you cannot distinguish at a glance which numbers are cross-references to pages and which ones are just numbers, then you are giving to your reader some extra work. As Dieter Praas indicates, the use of coloured links is not an exception, but an useful tool. In LaTeX you can easily set any link colour (or even set a box around them) with the hyperref package.
Comment 4 Kenneth Hanson 2018-08-20 12:11:10 UTC
I was planning on requesting this as well. We can customize the automatically applied character style for URLs and index links - why not cross-references as well? I recently authored a 25 page handbook where I needed to make the cross-references stand out from the internet links, not to mention the surrounding text. I resorted to making a new character style and manually apply manually. This was especially irritating because you can't double click cross-references in order to select them.
Comment 5 Cor Nouws 2018-08-22 17:24:52 UTC
+1
Comment 6 Thomas Lendo 2018-08-29 08:32:52 UTC
I also support this enhancement request. For every field type it should be possible to assign an own character style with--like it's possible today in the TOC entries dialog tab for single structures. With that the user can use fine-grained  formatting for specific field types all over complete documents.
Comment 7 Heiko Tietze 2018-08-29 18:10:14 UTC
So there seems to be some agreement on the idea. The question remains if binding character styles to fields is possible regarding the ODF specification.