Cannot exit the cross-reference

Hi,

I created a cross-reference in LibreOffice Writer and I can’t seem to exit it to continue the sentence.

As you can see, everything after 2009) is my attempt to continue the sentence, but it still is inside the cross-reference.

I scoured the wiki to try and find a keyboard shortcut or command that’d let me exit the cross-reference, however I did not manage to find anything.

Ctrl+F8 just disables the shading visually. TAB becomes part of the cross-reference as well.

ENTER does seem to work, but then I have to make a newline, put at least one character in there, and then delete the newline to continue the sentence.

What can I do to make it less tedious?

Thanks

1 Like

This is a usability issue worth a bug report.

The bug report exists since 2016! Please add yourselves to CC to increase its priority.
https://bugs.documentfoundation.org/show_bug.cgi?id=81720

If the cross reference extends to the end of the paragraph (which will often be the case when you insert references while editing), I can’t find a better way than what you already found. Looks like a glitch.

You asked for “less tedious”.

  1. I prefer to insert an asterisk or
    some other rarely used character
    where I want cross references, and
    insert actual references when
    editing is done. It is better for me
    if I don’t “break the flow” of
    writing. Undoubtedly, some will find
    it just as tedious as the
    enter-space-home-backspace-end key
    sequence, if not more.

  2. If you are using Microsoft Windows, you could use “autohotkey” software
    to automate the entry of said
    sequence.

This is not a solution, but I prefer to use an answer instead of a comment to highlight the point.

I was misled by an improper use of words, but OP is not to be blamed because terminology is not obvious.

The bug does not occur when you insert a cross-reference but when you create a reference with Insert>Cross-reference, type Set Reference while typing.

Considering the context, there are two workarounds:

  • don’t do it where you are typing text, i.e. defer creation of reference after you have typed at least a space or a word beyond the limit of the reference.

    Stop typing and select the sequence to be part of the reference, leaving ignored characters between the end of the reference and the future typing position. You can then Insert>Cross-reference, type Set Reference safely.

  • don’t use Set Reference, i.e, create a bookmark on the selected sequence. The reference will be inserted with Insert>Cross-reference, type Bookmark.

    I know this is not the correct use of bookmarks because they should be reserved for navigating quickly to the tagged location, but there are many advantages to this “abuse”: bookmarks can be easily deleted and renamed, they are listed in the Navigator as are references, they can be jumped to with a right-click on the page number in the bottom status bar, etc.

The difference between a bookmark and a reference is precisely the bug addressed by this question: bookmarks are never extended (since they primarily designate a location to jump to), references are more versatile as they can be extended without difficulty if another word needs to be added to it, just put the cursor immediately of the reference end and type).

Consequently the usability issue is to tell LO to stop collecting the reference sequence.

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!

In case you need clarification, edit your question (not an answer) or comment the relevant answer.

Thanks for pointing out the typo

Thank you for replying. Unfortunately, I forgot to disclose that I’m not actually the one who inserts the cross-reference. They are made by a Zotero add-on, so none of the solutions would work for me. I was really hoping for something that’d let me exit the reference, whereas this is just a workaround. Anyway, I thank you again for taking the time to reply

1 Like

In this case, your workaround (typing Enter to stop the reference, because a reference cannot extend beyond the end of a paragraph) is the only one available.

Try to suggest to the Zotero developers to use a bookmark instead of a “Set Reference”.

@datka: Thanks for the link to the bug report. However this is no new solution to the problem, so please turn your “non-answer” into a comment and delete the “non-answer”.

This is finally fixed in 7.6, I’ve just added it to the release notes.

In 7.6 you need to put the cursor inside the reference in order to add to it - the same behavior that hyperlinks exhibit.