Giter Club home page Giter Club logo

lyz's Introduction

LyZ

LyZ is a plugin for Zotero, which is intended to make working with LyX/Zotero more pleasant. The latest source code is available at GitHub. The latest stable release is available from the GitHub releases page.

Features

  • Inserting citations to LyX from Zotero.
  • BibTeX database automatically updated when citation is inserted.
  • BibTeX database can be updated when the references in Zotero are modified.
  • Custom BibTeX key format.
  • Unique BibTeX key check.
  • Custom BibTeX translators.
  • Synchronization of BibTex keys between LyX document, BibTeX database and LyZ.
  • Editing of master/child documents (the same BibTeX database) and multiple documents (different BibTeX database for each document).
  • Persistent association of LyX documents and BibTeX databases.
  • Support for group cooperation.

NOTE: As of version 4.0, LyZ is distributed from the GitHub releases page. New updates will not be published to the location checked by previous versions of LyZ (the Mozilla Add-ons page). To receive new LyZ updates, please update to the latest version of LyZ.

Installation and Settings

  1. Download the lyz .xpi file from the GitHub releases page.
  2. Install LyZ in Zotero by selecting Add-ons from the Tools menu and then clicking the gear icon in the Add-ons window, selecting "Install add-on from file" and selecting the lyz .xpi file.
  3. Open LyX and set LyXServer path (in LyX go to menu, Tools > Preferences... > Paths and set LyXServer pipe to): Windows users can use the default path setting in LyZ, i.e. \\.\pipe\lyxpipe. Linux and Mac users can use e.g. ~/.lyxpipe and change the LyZ settings accordingly.
  4. By default all characters are escaped, e.g. š becomes \v{s}. Set extensions.lyz.use_utf8 to true in about:config to avoid escaping (in case you need to use non-latin scripts such as Chinese).
  5. Open document in LyX.

NOTE for Firefox users: Firefox treats .xpi files as Firefox add-ons and tries to install them. To download:

  1. Right click on link
  2. Select 'Save Link As'
  3. Select a folder to save in
  4. Click 'Save'
  5. The file will now download

You can also download it either with a different browser or with a command-line tool like curl or wget.

Adding and inserting citations

  1. Open the LyX document you want to add a citation to and put the cursor at the point in the text at which you want the citation added.

  2. From Zotero, select a citation and either from the LyZ menu or from the context menu (right click on the citation) do “Cite in LyX”.

    When you try to insert a citation into a new document (i.e. document unknown to LyZ) you have to select a BibTeX database. You will be asked to either create a new database or choose a database you have created before (by LyZ). Type the database name (*.bib extension is automatically added if you don’t provide it) and press OK. The citation is added into the BibTeX database you have just created and inserted into the LyX document. Your citation should appear in LyX document now. Further citations are automatically added to this database.

  3. Insert the BibTeX database into the LyX document by adding a bibliography (Insert->List/TOC->BibTeX Bibliography...) and then selecting the newly created *.bib file as the database.

    • From the bibliography window (which appears when the bibliography is created and may be accessed by clicking on the bibliography), you may also select a BibTeX style file (*.bst). This file determines how your references will be formatted in the bibliography. Most TeX packages come with a large number of style files. Some journals (or other publishing entities) also provide their own style files. One good option is apalike2.
    • From Document->Settings->Bibliography, you may choose a citation style which determines how your citations will appear in the text. Natbib and Jurabib give more flexible citation styles than the default numerical option.
    • A helpful introduction to working with BibTeX and LyX is available from the LyX website.
  4. Insert additional citations

    • New citations can be added from Zotero as above.
    • Previously added citations can be either inserted through Zotero or through the LyX interface.
  5. If you modify the reference information of previously cited items in Zotero, use “Update BibTeX” from the LyZ menu to update the BibTeX database.

Custom BibTeX keys

  • Custom BibTeX keys can be set in LyZ > Settings dialog.
  • The default format is “author year title”. Good alternative for the use with natbib package is format “zotero”, which will produce “human unreadable” BibTeX keys. It consists of library ID and zotero item key, e.g. 0_XXXXX. Format keyword “zoteroShort” will produce only XXXXX, which can be used when exporting from OOo.
  • Key formats can be composed from keywords “author”, “year”, “title”, “zotero” and separators such as “_” (the following characters should be safe to use: a-z, 0-9!$&*+-.:;<>?[]^\`|), e.g. “author year title”, which will produce authoryeartitle BibTeX key, e.g. tichy1988thefoundations. If you prefer the default format used in Zotero BibTeX export (tichy_thefoundations_1988), change the pattern to “author _ title _ year”. The keywords and any separating characters have to be separated by space. Characters in citekeys are escaped and unsafe characters are removed conforming to the regular expression /[^a-z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\[\]\^\_\`\|]+/g.
  • If you use custom BibTeX translator and want to use the cite keys generated in the translator, go to LyZ > Setting and switch creation of cite keys off.

Update BibTeX

Menu command “Update BibTex” will update BibTeX database of the active LyX document. Whatever changes made in Zotero will be reflected in the update, including BibTeX keys if the BibTeX key format or the relevant information (first author, title, year) have been changed.

When a single BibTeX database is shared among several authors, e.g. using version control system such as SVN and CVS, LyZ database is updated from local working copy of BibTeX database.

Only current LyX document will be updated. Multiple document update is implemented, but seems unreliable. Needs more testing…

Synchronization between LyX/BibTeX/LyZ

When Zotero reference is changed, BibTeX database as well as the LyX document can be updated. This is useful when nice BibTeX keys are used, such as ‘author year title’ and e.g. the title or the first author’s surname has been modified, which will result in modification of the BibTeX key. When the “Update BibTeX” is run, you should select to update the LyX document in case your modifications to Zotero references might affect your BibTeX keys. Before the update, a backup of the active LyX document is made (extension *.lyz). LyZ will save, close and then reopen your document.

Notes on usage

  • Always modify your references in Zotero. If you modify the BibTeX database manually or using other software, LyZ will overwrite all the changes when you run “Update BibTeX“.

  • Lyz stores identifiers for all of the references in the BibTeX database as a space separated string in the first line of the BibTeX file. Do not modify this line. When Lyz updates the BibTeX file, it first reads this line to check the current contents of the BibTeX (this behavior is useful if you are passing the BibTeX around between computers and want Lyz to keep up with the changes). If this line is not properly formed, an error will occur and Lyz will not work properly.

  • Keep your Zotero items unique. LyZ does not make an attempt to identify duplicates, they will be treated as different items and unique BibTeX keys will be created.

  • When working with master/child documents in LyX, you will have to specify the BibTeX database for each child document. This will be the same file as specified for the master document. Unfortunately LyZ has no way of knowing the relationship between documents, so it has to be done manually.

  • Old writing projects can be deleted from LyZ menu. When the record of BibTeX database is deleted, all associated LyX document records are also deleted. When LyX document is deleted, associated BibTeX database will remain untouched as it may be used by another document. The actual file won’t be deleted.

  • BibTeX database is uniformly exported to UTF8 and all characters are escaped. Exporting to doesn’t seem to have any advantages. When your references contain extra characters such as the degree symbol, add \usepackage{textcomp} to your preamble.

  • URLs in bibliography. Use bibliography style that can handle URLs, such as apalike, or add \usepackage{url} to your preamble.

  • LyZ stores the information about documents and BibTeX databases in lyz.sqlite in the Zotero folder. If you backup Zotero with some synchronization application, you will notice the new file.

  • When working with non-latin scripts such as Chinese, set extensions.lyz.use_utf8 to true in about:config to avoid escaping.

Problems, Ideas, Requests

Please follow these tips to find out the source of your problem:

  • Run Lyx in debugging mode from commandline by (Linux and Mac users change accordingly)

      lyx.exe -dbg lyxserver
    
  • Useful messages should appear whenever you send some command from Lyz. A useful message will contain words like ERROR, undefined etc.

  • To send a command from Lyz, you simply use one of the functions, e.g. “Cite in Lyx” or use command line, viz. http://wiki.lyx.org/LyX/LyXServer.

  • Also you can use a variant of the last version of Lyz, which has additional menu item “Test…”. This will allow you to send single commands to Lyx. Currently Lyz uses the following commands (code in the parentheses indicates usage):

      server-get-filename (server-get-filename)
      citation-insert (citation-insert:LYZ:author2010title)
      buffer-next (buffer-next)
      server-get-xy (server-get-xy)
      buffer-write (buffer-write)
      buffer-close (buffer-close)
      file-open (file-open:path, where path is the response from server-get-filename)
    
  • All functions Lyz has are patched together using these commands. The most trouble some seems to be the server-get-filename.

  • Extract useful information from Zotero’s Error Console (by starting Zotero on the command line with the --jsconsole option) and from commandline where you ran lyx.exe -dbg lyxserver.

  • Peruse the Issues opened by other users at https://github.com/wshanks/lyz. Be sure to check the closed issues as well to see if a solution has already been found for your problem. If not, open a new issue.

Common Issues

Update BibTeX does not work

Some users have found that the Update BibTeX command stops working unexpectedly. One possible solution is to edit the lyz.sqlite file in the Zotero data directory directly and to remove any bibliography entries in it that look malformed (e.g. some of their fields are empty). To edit lyz.sqlite, a SQLite editor is needed. The sqlite-manager Firefox addon is a light-weight option. If you experience this issue and have any insight on what causes it, please contact the developer via GitHub (open a new issue or comment on one of the closed issues related to Update BibTeX).

Using a non-standard lyxpipe

On Windows the lyxpipe path (\\.\pipe\lyxpipe) is a special path and not a real file. You should not try to change this path to something else.

Compatibility note

Zotero 5.0 introduced numerous API changes. Versions 3.0.0 and higher of Lyz are compatible with Zotero 5.0 and greater. Versions 2.x and lower only support Zotero version 4 and earlier.

Current state of development

The current maintainer of LyZ is not the original creator and is not intimately familiar with the source code. He plans to update LyZ as necessary to maintain functionality with the latest releases of LyX and Zotero. He will also happily accept and merge code patches submitted by other users. He will try to help with other issues that users experience, but he doesn't make any promises about being able to make things work.

How to Contribute

  1. Star the repository on GitHub. The number of stars on GitHub is one of the most visible metrics for gauging the level of interest in project.
  2. Encourage others to use the project, either directly or by writing a blog post. Besides GitHub stars, the other metric for gauging interest in the project is the total number of downloads of the xpi.

Credits

Lyz was written by Petr Šimon. It is inspired by Lytero, which Petr wanted to improve, but he ended up starting from scratch. Hence the new name. Thanks to Dan Stillman and mronkko at zotero.org forum. Justin Wood for BOM and escaping suggestions and donation! It is currently maintained on GitHub by Will Shanks. 3. Submit new features or translations. However, keep in mind that new features add to the maintenance burden of the project. So get in contact before putting a lot of time into a new feature.

lyz's People

Contributors

dominik-k avatar klubko avatar petrsimon avatar unknown-hy avatar willsalmanj avatar wshanks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lyz's Issues

LyZ not generating keys properly for Bib file

Using Zotero Standalone 4.0.29.15 on a Mac w/ OS X Yosemite 10.10.5 and LyZ 3.0.0 (updated June 16, 2016), I have the following reference:

Tao, Ran, and Jean-Claude Thill. 2016. “Spatial Cluster Detection in Spatial Flow Data.” Geographical Analysis 48 (4): 355–72. doi:10.1111/gean.12100.

Zotero shows the citation key as "Tao_2016_Spatial," but when I use "Cite in LyX, the item is created in the BibTeX file and the document with key "author_year_title2". However, if I use Edit > Copy Bibliography and then paste the reference in the BibTeX file opened in BibDesk, the correct citation key is used.

Cite key in LyZ is set to "author_year_title."

Installed Zotero extensions include: LyZ, MozRepl, Better BibTeX, Libre Office Integration, Scholar Citations, Word for Mac Integration, Zotero-to-BibDesk auto-import utility (Z2B), Zotero QuickLook, ZotFile, zotxt, and Zutilo. Suspect there may be some intereaction with Better BibTeX or Z2B.

Suggestions for debugging & fixing? I have log files if necessary.

Bibliography is not being updated

Hi,
I have a multi-document thesis and I use one .bib for all documents, everything managed through classicthesis style. I have updated name of the author in Zotero, and I can see it is not being updated in the .bib file, and Lyx still produces bibliography with the old name of the author. Of course I did Lyz-->update Bibtex. Zotero 4.0.17.1, LyZ 2.1.7.

Any help strongly appreciated.

Bib-file not being updated

I've got pretty much the same problem as ser [https://github.com//issues/4]. So multi-document file in LyX, one .bib file. When I click "Update BibTeX", LyZ shows the "You are going to update BibTeX database:" warning with the correct path/file. But when I hit okay, the .bib file is not being updated.
LyX shows the following debug messages:

15:17:08.615: D:/correct/path/to/file.lyxServer.cpp (633): LyXComm: nbytes:31, iobuf:, cmd:LYXCMD:lyz:server-get-filename
Server.cpp (1078): Server: Received: 'LYXCMD:lyz:server-get-filename'
Server.cpp (1122): Server: Client: 'lyz' Command: 'server-get-filename' Argument: ''
Server.cpp (651): LyXComm: Sending 'INFO:lyz:server-get-filename:D:/correct/path/to/file.lyx
'
Server.cpp (633): LyXComm: nbytes:31, iobuf:, cmd:LYXCMD:lyz:server-get-filename
Server.cpp (1078): Server: Received: 'LYXCMD:lyz:server-get-filename'
Server.cpp (1122): Server: Client: 'lyz' Command: 'server-get-filename' Argument: ''
Server.cpp (651): LyXComm: Sending 'INFO:lyz:server-get-filename:D:/correct/path/to/file.lyx
'

I also tried renaming the BibTeX record to no avail. Adding new references via "cite in LyX" still works. The BibTeX update worked fine with the same files just a few days ago. What may have broken it is that I tried to change the export format from BibTeX to BibLaTeX in the LyZ settings. I changed it back, but also no success.

Any ideas?

Zotero 4.0.19, LyZ 2.1.7

Where to download *.xpi for Zotero standalone?

Hello, can you provide a download link for installing Lyz within Zotero standalone? I have left Firefox, because the Zotero-add-on for Chrome has more features. (I downloaded Lyz with Firefox ESR but Im stuck, because I dont find "lyz.xpi" there). Thanks, Michael

Lyz not working with Juris-M

Hi.
Thank you for maintaining Lyz. Is there any plans for Lyz to work with Juris-M? Juris-M is more feature-rich version of Zotero with multilingual support and more. It would be nice to work with Lyx and Juris-M with the help of Lyz.

Wrong lyxpipe (Ubuntu 22.04)

Had not used LyZ/LyX for some time and ran into the the same problem reported for Windows when trying to work on an old document (with a lot of library and OS upgrades happening in between)

The specified LyXServer pipe does not exist.

Wrong path to Lyx server.
Set the path specified in Lyx preferences.

Could not contact server at: ~/.lyx/lyxpipe

Could not retrieve document name.

My LyX pipe should be correct with Reconfigure/Restart:

image

As well as the LyZ pipe

image

Fix attempts

with absolute path

The error message changes a bit when I try absolute path

image

SERVER ERROR:
[Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFileInputStream.init]"  nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: chrome://lyz/content/lyz.js :: lyxPipeInit :: line 113"  data: no]

Could not contact server at: /home/petteri/.lyx/lyxpipe

Could not retrieve document name.

Is this some permission issue then?

image

Or just some funky addon error in general? Or is it a problem with the database? Or a sync issue?

Clearing storage

No effect for hunting some read-only/locked attachments
https://forums.zotero.org/discussion/comment/54918/#Comment_54918

"Reset File Sync History"

No effect:
https://forums.zotero.org/discussion/comment/55324/#Comment_55324

Remove "translators"

No effect:
https://forums.zotero.org/discussion/comment/274629/#Comment_274629

Remove snapshots

No effect:
https://forums.zotero.org/discussion/comment/253346/#Comment_253346

System

Ubuntu 22.04 LTS
LyX Version 2.3.6
Zotero 6.0.26 (snap install, Sync of the database from my Zotero account, with previous history of keeping the db on Dropbox)
Lyz 4.1.2

Solution

Probably best then to just switch to Better BibTeX (BBT)?

Can't create or select a bib file

I just installed the latest version of LyX (2.3.3), Zotero (5.0.75) and LyZ (4.1.0) on to a mac (10.13.6) and am having trouble getting LyZ to create a new bib file.

I have the pipe properly setup. When I try to cite a paper for the first time, I get the usual dialog
image
Whether I hit OK or Cancel the dialog disappears and nothing happens. There is no file dialog and nothing happens in LyX.

We have tried installing and reinstalling, and rebooting the machine. Nothing helps. We tried looking at the Zotero error console, but no messages appear. I have LyZ running on several Macs, most with OS 10.13.6, without any problems.

Any suggestions?

Where are LyZ settings?

Where do I change the LyZ settings (?) to enter my PATH for .lyxpipe? ~/Library/Application Support/LyX-2.3/.lyxpipe.

Update Bibtex error from zid change (zotero libraryID?)

I recently encountered a failure when running Update Bibtex, and checked and did not have obviously malformed entries in lyz.sqlite.
However, I did some tests and noticed the old IDs in my .bib file (zid field in lyz.sqlite) all began with 0_, while new ones began with 1_. From browsing zotero.sqlite, my guess is these are created from the zotero items as (libraryID)_(key). My guess is that at some point, probably either when I updated zotero to version 5, or added a shared library, the libraryID of my main library changed from 0 to 1, breaking the Lyz lookups.

This may not be a common version of this error, but I'm not sure why lyz can't just use the key field alone to identify zotero items, since it should be unique even for duplicate items in different libraries.

I plan to test this out a fix in my case by editing lyz.sqlite and my .bib file directly.

(Using Zotero 5.0.30 and export through Better Bib(La)tex, but I'm pretty sure my issue is not BBT specific)

Vancouver style requires 'journal'

Hello,

Thank for this great plugin. However when I try to cite in vancouver style I get this error

journal' is a missing field, not a string, for entry avloniti2014theacute0_8 while executing---line 1865 of file vancouver.bst`

and of course in the output the reference has no journal name or pages for that matter.

http://imgur.com/a/FC54c

Please let me know what I should do.

Thanks

Variable citation formatting

I just want to help other new users waste time like myself trying to get citations to work in LyX. Just a little bit of extra help makes lyz much more accessible to users and greatly reduce the barrier to entry.

Especially finding a way to get a variable citation formatting, as in Author (2009) and as opposed to the numerical [1] style that works (almost) out of the box, was a pain: I presume many other users want seamless Zotero + LyX integration, with flexible intext citation formatting, (e.g. Author, 2009 as opposed to numerical format as in [1]). It works perfectly! It's even more powerful than the Zotero Word plugin. I cannot thank you guys enough for maintaining this plugin but it took me some extra leg work to get there:

Basically, in the FAQ point 3: "Insert the BibTeX database into LyX document. See BibTeX and LyX" could use some elaboration.

So to elaborate:

  1. in LyX go to Insert>List/TOC>BibTex Bibliography to insert a bibliography
    Out of the box, numerical citation formatting [1] works
  2. To enable Author (2009) formatting with an APA style bibliography:

Select apalike2 stlye in the BibTex Bibliography menu (I had to download it first from http://www.ctan.org/pkg/apalike2, also note apalike instead of apalike2 as mentioned in the explanation only produced errors or incorrect results when compiling the pdf)

Go to Document>Settings>Bibliography, change citation style to Natbib (Author-year). Done.

Now one can change the formatting directly by clicking the citation and selecting the desired format. LyZ updates the Bibliography like a champ, I almost gave up on a completely automised reference management solution with latex but this works at the date of writing

Zotero 7

Zotero 7 is a major overhaul of the Zotero codebase and requires extensive updates to LyZ for it to keep working. Personally, I have not written a document in TeX format in years and the last time I did I used Overleaf, so I don't see myself having much personal need for LyZ in the future. I haven't minded the occasional usage question or compatibility fix, but I don't think I can justify doing a major rework myself. I am happy to help if someone else wants to do the work either as a one off or as part of becoming a new maintainer.

If no one comes forward within a couple months of Zotero 7 being released, I will update the README to indicate that LyZ is no longer maintained.

Connecting LyZ to LyX

Hello Will,

I've been struggling to get the lyx server settings correctly. I currently have both lyz and lyx set to F:\pipe\lyxpipe for the lyx server pipe path. I've tried restarting lyx but it won't create the server files in there and lyz tells me " Wrong path to Lyx server.
Set the path specified in Lyx preferences."

How can I correct this issue? And thank you so much in advance.

Best,
barspurk

Writing Empty .bib files (Microsoft)

my Lyz extension allows the creation of the .bib files but they are totally empty. Sometimes when i click on "cite in lyx" absolutely nothing happens as well. Zotero is telling me the error is:
[JavaScript Error: "TypeError: ckre.exec(...) is null" {file: "chrome://lyz/content/lyz.js" line: 632}]

I am using Zotero 5.0.87 and the latest stable release of lyz.

Please help?

can't be installed on Firefox-98

Hello, I'm using Debian (Sid) and have Firefox-98, but when I try to install this extension Firefox does complain with:

about:addons
This addon could not be installed because it appears to be corrupt.

Any hint?

Protecting capitals in .bib output from LyZ

Is there anyway to change the .js to protect capitals in the fields in .bib by enclosing them with {}? For example if the title is "How the Indian context is different" the output into .bib should be "How the {I}ndian context is different", but instead it omits the {} so that the final output in the .pdf bibliography created by LyX is "How the indian context is different". Doing these changes by hand in the .bib file is possible, but isn't ideal.

LyZ no longer works with Zotero 5.0 (and Firefox plugin has been broken)

Firefox has dropped support for the old style of browser plugins, in favour of WebExtensions (see here: https://www.zotero.org/blog/a-unified-zotero-experience/).

Unfortunately, this has broken LyZ, as it's no longer possible to use the old Zotero Firefox plugin which LyZ was designed to work with. I'm not sure if Zotero 5.0 supports add-ins to the extent that it would be possible to port LyZ to work with the new stand-alone application.

Lyx Lyz Server error - Help please!!

Hi
First time user of GitHub - any advice greatly received.

I've been using Lyx and Lyz with Zotero for years without a problem, however, I am now trying to make some amendments to my Thesis by adding new references and am getting repeated errors regarding connecting to the server and lyxpipe compatibility.

With my LyX document open, I try to insert a citation using the 'cite in lyx' option from LyZ. I then get the following:

SERVER ERROR:
[Exception... "Component returned failure code: 0x80570018 (NS_ERROR_XPC_BAD_IID) [nsIJSCID.createInstance]" nsresult: "0x80570018 (NS_ERROR_XPC_BAD_IID)" location: "JS frame :: chrome://lyz/content/lyz.js :: lyxPipeInit :: line 148" data: no]

then:

Could not contact server at: ~/.lyxpipe

then:

Could not retrieve document name.

I have double-checked my settings in LyX - LyXServer pipe is: ~/.lyxpipe
And also my Lyx Server in LyZ is: ~/.lyxpipe

Tearing my hair out and don't know where to go next with this. Any advice much appreciated. BTW i'm a novice with code, so please be as clear as possible and assume I know nothing!!!

Best Regards

Richard

Interested in integration with BBT?

Hi, I maintain Better BibTeX for Zotero, and I think it'd be interesting to have LyZ and BBT talk to each other. I generate citation keys and do auto-export, I think that's where we overlap. but it may be nice to have the BBT-generated keys available via LyZ.

Lyz won't write to bibtex file

I've just updated to Zotero 5.0.33 and added Lyz to it on Linux Mint 18. Updating Zotero and re-adding Lyz after the update to Zotero 5 worked well on both Window 8.1 and 7. But for Linux, Lyz isn't writing to the bibtex file. It'll create a new .bib file and gives no error message, but does not add the citation to Lyx or add anything to the .bib file. The .bib file is completely blank. It also will not add to previously existing .bib files.

The following was the output for debugging the lyxserver:

Server.cpp (930): LyXComm: status:31, read_buffer_:, cmd:LYXCMD:lyz:server-get-filename Server.cpp (1079): Server: Received: 'LYXCMD:lyz:server-get-filename' Server.cpp (1123): Server: Client: 'lyz' Command: 'server-get-filename' Argument: '' Server.cpp (967): LyXComm: Sending 'INFO:lyz:server-get-filename:/home/user/newfile1.lyx ' Server.cpp (782): LyXComm: Closing connection Server.cpp (742): LyXComm: Opening connection Server.cpp (775): LyXComm: Connection established

The lyz.sqlite file has the paths for the Lyx files and the associated .bib files, but the keys section has no entries.

Lyz does not work on ubuntu 13.04

Using lyz on a ubuntu 13.04 system, one gets the following error messages when trying to insert a citation:

SERVER ERROR:
[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://lyz/content/lyz.js :: Zotero.Lyz.lyxPipeInit :: line 109" data: no]

and then:

Could not contact server at: ~.lyxpipe

and then:

Could not retrieve document name.

The lyx pipe is correctly set to ~/.lyxpipe both in lyx and in lyz.

Zotero 6.0 and LyZ

After upgrading to Zotero 6.0 LyZ does not seem to work any more. Are there any suggestions how to proceed?

Zotero standalone cannot install lyz

Hi,

I followed the instructions posted here to install Lyz with Zotero 4.0.15.29 running Mac OS X Sierra. Error:

The add-on "LyZ" could not be installed. It may be incompatible with this version of Zotero Standalone.

Is there a newer .xpi file I should be using? Or any other tips to make this work?

Thanks, Peter

bad citekeys in bibtex file

Hi,

Lyz is really great, it's really a super idea. So well, that I can use it with a strange behavior. When I add a reference with the lyz button in lyx, I got an error with for example (Benghozi, ??) : the year is replaced by ??. In the bib file, I got the key "0_XWFBWGD7" in the first line, so lyx can't compile well the bibtex file. For example:
@Article{russell1999nosignificant, 0_XWFBWGD7

I'm used to correct manually the file for every new cite. I thought that when I uncheck the "Create cite key ?" settings, it was possible to correct this behavior, but it's not the case.
But today I thought that it was possible to improve my lyz experience. So what I have not understand trying lyz plugin ?

Best,
Thibaud.

Compatibility with Firefox Quantum

Are there any plans to update LyZ for the new version of Firefox? Moving forward this is likely to be the primary issue determining whether this (incredibly handy) add-on will continue to see use

Lyz citekey is different when exported and using lyxpipe

Hi,
I pushed all my citations to Lyx using the Lyxpipe from Lyz, and then updated the bibtex file and Lyx didn't find the correct citations anymore. When I use the export function from either Lyz of Zotero, I do not get the same format of the citekey that Lyz initially used.
Any comments ore workarounds on this are very welcome.
Best,
Max

LyZ does not respond

The LYZ suddenly stops working. After creating the Lyx file, selecting one reference in Zotero, and clicking the button LYZ, the following window pops out
Capture d’écran 2021-09-05 à 1 29 00 PM

However, when I click either cancel or ok, the window disappears and there are no further reminders. Interesting, I can still insert references to my old .lyx files through LYZ as if it is normal. I understand for old .lyx files LYZ already knows it. It seems now LYZ stops recognize any new .lyx files? Does anybody have any clues about what has happened?. Thanks in advance!
Capture d’écran 2021-09-05 à 1 33 56 PM

Lyz can't add reference to Lyx

I wasn't using Zotero with Lyx about a week and now I suddenly can't insert reference with "Cite in Lyx" or "Update BibTeX" – selecting those does nothing.

I see such error:

(3)(+0000000): WARNING: Items.parseLibraryKeyHash() is deprecated -- use .parseLibraryKey() instead

(3)(+0000001): WARNING: Items.getLibraryKeyHash() is deprecated -- use .libraryKey instead

(3)(+0000000): WARNING: Items.makeLibraryKeyHash() is deprecated -- use .libraryKey instead

(3)(+0000006): {better-bibtex} +8339 worker: {"autoExportDelay":5,"avgstartup":1,"caching":true,"startup":3,"workers":{"disabled":false,"running":{},"startup":1,"total":1}}

(1)(+0000003): TypeError: A value undefined was yielded that could not be treated as a promise See http://goo.gl/MqrFmX From coroutine: module.exports/PromiseSpawn.prototype._continue@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:159:21 module.exports/PromiseSpawn.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:99:5 module.exports/Promise.coroutine/<@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:201:9 From previous event: captureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:829:23 CapturedTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:721:5 longStackTracesCaptureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:400:19 module.exports/Promise.prototype._then@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:232:9 module.exports/Promise.prototype._passThrough@resource://zotero/loader.jsm -> resource://zotero/bluebird/finally.js:94:12 module.exports/Promise.prototype.finally@resource://zotero/loader.jsm -> resource://zotero/bluebird/finally.js:103:12 PromiseSpawn@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:36:25 module.exports/Promise.coroutine/<@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:197:21 oncommand@chrome://zotero/content/standalone/standalone.xul:1:1

(3)(+0000173): {Better BibLaTeX worker 1} {better-bibtex Better BibLaTeX (worker)} +null Installed postscript: "this.inPostscript = true; if (this.item.itemType === 'manuscript' && Translator.BetterBibLaTeX) {\nif (this.item.place) { this.add({ name: 'location', value: this.item.place }); }\n if (this.item.archive) { this.add({ name: 'archive', value: this.item.archive }); }\nif (this.item.archiveLocation) { this.add({ name: 'shelf', value: this.item.archiveLocation }); }\nif (this.item.libraryCatalog) { this.add({ name: 'category', value: this.item.libraryCatalog }); }\nif (this.item.callNumber) { this.add({ name: 'box', value: this.item.callNumber }); }\nif (item.rights) { reference.add({ name: 'shortarchive', value: item.rights }); }\n{ reference.add({ name: 'pagination', value: \"folio\" }); }\n}\n if (item.itemType === 'book' && Translator.BetterBibLaTeX) {\nif (item.volumeTitle) { reference.add({ name: 'part', value: item.volumeTitle }); }\n}\n if (item.itemType === 'bookSection' && Translator.BetterBibLaTeX) {\nif (item.volumeTitle) { reference.add({ name: 'part', value: item.volumeTitle }); }\n}\n if (item.itemType === 'newspaperArticle' && Translator.BetterBibLaTeX) {\nif (item.edition) { reference.add({ name: 'number', value: item.edition }); }\n}; this.inPostscript = false;"

(3)(+0000002): Translate: Translation successful

(5)(+0000000): Translate: Running handler 0 for done

(3)(+0011442): Starting full-text content processor

Add function to check the integrity of lyz.sqlite

Issues #4 and #6 were both likely the result of empty entries in LyZ's database of bibliography data. It might be difficult to track down the root cause of this problem, but if it seems like the problem is prevalent enough it might be worth adding a function to LyZ to check for invalid database entries and to allow the user to fix them in some way without having to edit the SQLite file directly.

It will likely be a while before I have time to work on this so I am labeling it as "Help Welcome" in case anyone else is interested in trying to do this.

Wrong lyxpipe

Hey, thank you for maintaining this add-on!

I just downloaded LyZ and it doesn't seem to work because of the "wrong lyxpipe", as Zotero keeps telling me. When I try to "Cite in LyZ", a pop-up appears saying it's the wrong path and that the server couldn't be contacted. What am I doing wrong? Thanks for the support!

screenshot 2016-11-25 17 04 28
screenshot 2016-11-25 17 04 22

BibTeX keys do not match Zotero default format

Hi,

I am using Lyz with an existing BibTeX database generated by exporting my Zotero library to BibTeX. I changed the Lyz setting for the BibTeX keys to author _ title _ year to match the Zotero default format and avoid duplicates in my bibliography. The problem is that Lyz includes the first two words in the title part of the key while Zotero only includes one word. So Zotero would write the key in your example as "tichy_foundations_1988", not "tichy_thefoundations_1988". Is there a way to make Lyz print the keys exactly like Zotero does?

Thank you,
Hulda

Same labels for multiple items (webpage citation)

I am facing the problem that Zotero gives same labels to different websites when they are cited simultaneously. Here are some simple steps to reproduce the issue:

  • add following two websites to a collection in Zotero:
    http://www.who.int/csr/don/2003_03_12/en/
    http://www.who.int/ihr/about/en/
  • Change creator last name to something, e.g. WHO
  • (Is it intended that when no creator name is entered the label is empty?)
  • select both at the same time an cite in Lyx creating a new bib-File (BibFile1)
  • in a new Lyx file (hence creating a new bib-File, BibFile2) cite the websites one after another

What I get is

BibFile 1:

1_KNUQHDXE 1_GY3EXHZ7

@misc{who,
title = {{WHO} {\textbar} {About} {IHR}},
url = {http://www.who.int/ihr/about/en/},
abstract = {Through IHR, countries have agreed to build their capacities to detect, assess and report public health events. WHO plays the coordinating role in IHR and, together with its partners, helps countries to build capacities.},
urldate = {2017-10-10},
journal = {WHO},
author = {WHO},
file = {Snapshot:/Users/obaranov/Zotero/storage/7DNQHKUZ/en.html:text/html}
}
@misc{who,
title = {{WHO} {\textbar} {Acute} respiratory syndrome in {Hong} {Kong} {Special} {Administrative} {Region} of {China}/ {Viet} {Nam}},
url = {http://www.who.int/csr/don/2003_03_12/en/},
urldate = {2017-10-10},
journal = {WHO},
author = {WHO},
file = {Snapshot:/Users/obaranov/Zotero/storage/4GAXX7YI/en.html:text/html}
}

Bib-File 2:

1_GY3EXHZ7 1_KNUQHDXE

@misc{who,
title = {{WHO} {\textbar} {Acute} respiratory syndrome in {Hong} {Kong} {Special} {Administrative} {Region} of {China}/ {Viet} {Nam}},
url = {http://www.who.int/csr/don/2003_03_12/en/},
urldate = {2017-10-10},
journal = {WHO},
author = {WHO},
file = {Snapshot:/Users/obaranov/Zotero/storage/4GAXX7YI/en.html:text/html}
}

@misc{who2,
title = {{WHO} {\textbar} {About} {IHR}},
url = {http://www.who.int/ihr/about/en/},
abstract = {Through IHR, countries have agreed to build their capacities to detect, assess and report public health events. WHO plays the coordinating role in IHR and, together with its partners, helps countries to build capacities.},
urldate = {2017-10-10},
journal = {WHO},
author = {WHO},
file = {Snapshot:/Users/obaranov/Zotero/storage/7DNQHKUZ/en.html:text/html}
}

Is it a known bug? Or am I misunderstanding something?

Zotero BibTeX keys do not account for cite key collision

See discussion in #28. The Zotero cite keys are generated by running the citation through the export translator individually, so there is never any collision in the translator processing. When generating a full bibliography with the translator, it accounts for collisions and disambiguates by adding a number to the end of the duplicate key. Perhaps there is a way to distinguish the items in LyZ using the translator functions. If not, the full bibliography could be parsed to match up items to bibliography entries in order to match de-duplicated cite keys to the correct Zotero items.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.