Ask Your Question
0

how to create an index of hyperlink

asked 2018-02-23 00:55:20 +0200

Domenico L. gravatar image

hello, how May I create an index of hyperlinks inserted in the document? I'm looking for something like: "text shown" .................................page N http://www.somesite.ext/page

My need is because, if I print the document, readers can't use the hyperlink and loose the possibility to know which is the internet address

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2018-02-23 07:18:47 +0200

ajlittoz gravatar image

updated 2018-02-23 13:43:42 +0200

Anything in LO Writer can be entered into an index table. All you need to do is "mark" the text sequence with Insert>Index & Tables>Index Entry.

In your specific case, all depends on what you want to appear in the index (the "text shown" in your question).

  • Show Text from hyperlink creation dialog

    Just select the hyperlink and create the index entry

  • Show hyperlink itself

    Replace the automatically pre-filled Entry by the URL

  • Show both Text (to provide hint for the location in the document) and hyperlink

    You must play with Entry and 1st key. Remember that index is sorted on key. If your look-up data is the URL, enter it in the key and Text in Entry. On the contrary, if you expect your readers to look-up the index using the Text from the document, reverse configuration: Text as key and URL as Entry.

As you can see, you'll have a substantial amount of manual editing.

If this answer helped you, please accept it by clicking the check mark ✔ to the left and, karma permitting, upvote it. If this resolves your problem, close the question, that will help other people with the same question.

edit flag offensive delete link more
0

answered 2018-02-23 10:43:59 +0200

Domenico L. gravatar image

Doh....

I hoped there was some automatism....

and using a script?

I never used in libreoffice, but I'm and IT guy, so I can learn :-)

edit flag offensive delete link more
0

answered 2018-02-23 12:05:33 +0200

Lupp gravatar image

updated 2018-02-23 12:53:43 +0200

@Domenico L.: (BTW) Use the add comment tool instead of posting an "answer" where appropriate.

A textdocument is a complicated thing. There is the text itself (resolvable in paragraphs and below), then there are frames the text of which not is part of the general text, tables, shapes, headers, footers, indexes, and probably structures/kinds of objects I didn't think yet off, and that may contain hyperlinks.

If you have a specific text object or a range in it, resolve it down to the textportion level and test them for supporting some service com.sun.star.text.TextField.URL ... and look for the property .HyperlinkURL... (Sorry. I had Calc in mind.)

As an IT guy you may start with reading the famous texts by Andrew Pitonyak. You may find a way then, to automate what @ajlittoz suggested.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-02-23 00:55:20 +0200

Seen: 658 times

Last updated: Feb 23 '18