gwyn-hopkins
About
- Username
- gwyn-hopkins
- Joined
- Roles
- Member
Comments
-
Please ignore the previous comment as if does not work. Insert this instead which seems to do deal with suffixes, prefixes and page locators (only in English!). This should be inserted between insertZoteroBookmarks(False) and if semicolon.search(pla…
-
For pre and post suffixes try adding after "found = false": if not citation_year_duplicates: citation_year_duplicates = [plain_cite] However, this does add them to the hyperlink.
-
Thank you. Yes you have permission to upload to github. I did rewrite to automatically detect numbered or author-date references. I am including it here with your update. I also wrote something similar for word (https://forums.zotero.org/discussion…
-
A work around is to not to use the default page style (define a new one say mystyle). This also works for inserting rtf.
-
I also see this. It happens when the bibliography is inserted. Is this related to https://forums.zotero.org/discussion/109191/libreoffice-bibligraphy-does-not-update#latest
-
If you insert the bibliography at the start of the document, there is an empty section inserted followed by the list of references as shown above. If you type just one letter in the empty section, the bibliography will then update in the section! Yo…
-
Ok. I quickly wrote a python macro to see if it was possible. As usual, the libreoffice api caused a lot of grief. A couple of libraries need adding (see start of code). This has only been tested with Apa6 style of citations e.g. (name et al., 2023)…
-
Try without adding the bibliography listing at the end and turning off automatic update.
-
I managed to get it working by doing: 1) select where you want to insert the reference 2) open Insert -> Cross-Reference -> Insert Reference 3) click on the reference you need in the right panel 4) click the mouse in the name panel and ctrl-a…
-
When using libreoffice with reference marks to enter the citations. if you enter two identical references, then they will have different attributes (look in the navigator for the reference tag, the citation ids are different). Unfortunately, it app…
-
This may be due to you using A5 paper size. This could result in libreoffice doing a lot of work reformatting the page length after each citation addition. You could try (on a copy!) with a larger page size e.g. A4 or even A3 just to help isolate th…
-
I can confirm this is happening with LO 7.5 on linux mint. However, it does seem to work alright if you leave a few blank paragraphs before inserting the table.
-
I wrote this some time ago and published it here. I include it again because one of the routines was left off. This is the VBA version for word so will not work in the web based version. There are 2 entry points (Sub ZoteroLinkNumberedCitations(),…
-
I do not like giving negative answers, so I dug around in my old files (loaded the word macros in Libreoffice!) and found this function: Function multipleReplace(sBmtext, sList) Dim iCounter As Integer For iCounter = 1 To Len(sList) sBmtext = Repla…
-
Unfortunately, I no longer use word. However, I think the line was supposed to remove any extraneous symbols. Please comment it out and see if it works.
-
I have also had a similar behaviour in MSword before. So, for both LO and MSword I usually turn off the track change mode (does seem to help occasionally) and preempt the problem by double spacing and going back one with the left arrow key before in…
-
I had a bit of spare time so looked to see if this could be done as a macro. There are a couple of things to consider when using the attached python script. 1) This is for libreoffice (a linux distribution version so that the standard python could b…
-
You mentioned that the reference numbers do not get underlined. This is true, they should change colour to blue to show that they can be selected. I have not made a change as underlining can look a bit messy. However, the change can be made in: "def…
-
Thank you for your comments. I have updated the libreoffice macro, mainly by converting from the regex searches to find the citations. import uno import re from ast import literal_eval as to_dict #alter this for citations divided by comma semicol…
-
I have updated the libreoffice python macro for author-date cites to cope with some borderline cases. It is not perfect, but works for most citations. import uno import re from ast import literal_eval as to_dict document = XSCRIPTCONTEXT.getDocumen…
-
It is possible to do this for author-date citations (at least in libreoffice - see crude python code below). When it comes to numbered references, I cannot see any sensible way to deal with grouped numbers such as 5-10. There is no place to put the …
-
Some numeric styles such as Nature have non-clickable links within word but when converted to pdf the links work fine. Any ideas?
-
Here is the word version. Again works for numeric citations and author date with year-letter disambiguation. Function firstWord(oStr) firstWord = Split(oStr, " ")(0) End Function Function getYear(oStr, oExtra) Dim searchString As String …
-
Cheers. looks much better! By the way, the code works for numeric references and author-date with disambiguation using year-letter (eg. Smith 2010a, Smith 2010b).
-
Sorry, but pasting the script removed all of the necessary python white spaces. Please insert these yourself (you may need to look up how to format python). I also have a similar version in vba for word.
-
Please use the last post in the list for the macro. I wrote 2 entry points: Sub linkNumberedReferences for numbered references Sub linkAuthorDateReferences for author-date references The latter currently goes to the first matching references where t…
-
Done: https://forums.zotero.org/discussion/comment/347407/#Comment_347407
-
I have been writing a macro for libreoffice odt files. I assumed that the listing of references was by numbered paragraph, and therefore just made a bookmark called _Ref_n where n is the paragraph number, and linked from the citation number to that.…
-
After some comments from a colleague, I have corrected a couple of things (use Sub linkNumberedReferences for numbered references such as Vancover, and Sub linkAuthorDateReferences for author date such as Harvard - adding an additional search for sa…
-
II have extensively modified the macro to link (in most cases) directly to the cited reference in the bibliography list. The macros should work for both numbered and author date citations. However, there are some styles were they do not work (i.e., …