Can't place citation in figure caption line

edited yesterday at 9:16pm
The use with LO Writer 25.2.7
Citing using IEEE style.
Citing works fine in general except one situation (same document).
Failing is placing citation in figure caption line.
However caption line is always created manually, not by the use of Writer built-in function "Insert citationcaption".
Placing citation ends with error message "... experienced an error updating your document".
In end-effect the Writer Navigator presents in group References one a series of well-formed references (working citations in other paragraphs) and one missmal-formed reference ZOTERO_TEMP --word of nearly random characters--.
Before placing citation the caption line includes already one field - figure numbering in document. Caption line/paragraph is formed by use of following scheme:
Figure 3.5: Blah blah blah [7]
Where [7] is desired citation point.
Citation line uses Writer stock paragraph style named Figure yet inheriting from paragraph style Caption.
  • Captions have never supported World fields, sorry, you'll have to work around this.
  • edited yesterday at 9:26pm
    Captions used to numerate objects captioned (object numeration in caption line). I guess that numbering can use only fields. Captions in following form work very well:
    Figure 3.5: Blah blah blah

    "3.5" is field placed using Writer custom numbering scheme.

    Caption line gets created manually, not by the means of Writer built-in function "Insert Caption".

    Yeah, verified in a test. Writer built-in function "Add/Insert Caption" creates a paragraph in .odt with a field for object numbering comprised. Hence I can't retrace your statement "Captions have never supported World fields".
  • edited yesterday at 8:44pm
    Interestingly I extended my latest test of caption line added using Writer built-in function and tried to add a citation to that line. It works.
    In the end it won't be a clean method because when placing a citation this way the Zotero extension alerts at the start of procedure "Citations in text frames will be formatted as if they appear at the end of document".

    Furthermore, in this particular case a fair number of Writer sub-documents is handled with yet higher number of captions - switching to other method will be costly.
  • edited yesterday at 8:56pm
    February '24 I got from some Writer expert the hint to not use Writer built-in Insert Caption - due to its nature and shortcomings. The proposal that time was to create captions only manually, what I also have been following since that point of time.

    Caption lines created manually with a field for object numbering seems to be the reasonable way.
  • edited today at 2:13am
    I could find historical reports:
    [Bug] Citation insert fails on line-end if follow-up paragraph style is different (Libreoffice)
    https://forums.zotero.org/discussion/116330/bug-citation-insert-fails-on-line-end-if-follow-up-paragraph-style-is-different-libreoffice/p1

    Trouble with one specific reference
    https://forums.zotero.org/discussion/comment/469740/#Comment_469740

    [Bug] LibreOffice Citations: Adding Citations at the end of a Style doesn't work.
    https://forums.zotero.org/discussion/84280/bug-libreoffice-citations-adding-citations-at-the-end-of-a-style-doesnt-work/p1

    In my current use Zotero 8.0.4.

    I have a number of Writer subdocuments - ten roughly. So far citations were added successfully until today the aim arose to have one citation in one caption line (actually I need this form in a number of captions but it fails at the very first).

    Neither Zotero code nor Zotero LO integration code is reported by DeepWiKi Devin AI to apply a distinction of paragraph style.
    However LibreOffice-core code, the Writer code, is reported by DeepWiKi Devin to be applying field validation rules regardless of the parent style. The style creation process would be including (according to analysis performed by Devin) automatic property inheritance and validation that can introduce the same field restrictions affecting the "Figure" style. Figure style is the style I started to observe the problem. Only if my caption line uses Body Text style (placed in LO installation / user profile file tree by LO installer) the problem does not occur. I don't use bookmark-based citations. Tracking changes is enabled only to be shown.
Sign In or Register to comment.