Add a "LaTeX Citations" tab to the entry editor#5155
Conversation
[WIP] LaTeX Integration project
…a search is cancelled
Add LaTeX citations tab to the entry editor
|
Hey @davidemdot, didn't check the code yet. Have tested the feature and it seems that the directory JabRef parses is my home directory. As a result I get the following error: I guess the problem is somewhere here: |
|
Hey @LinusDietz! Firstly, it tries to get the LaTeX file directory. If you did not configure it, it will search in your working directory ( You can set the LaTeX file directory in the 'Library properties' dialog. |
Okay, didn't know that.
|
|
Thanks for your feedback! I will work on it and tell you something as soon as possible. |
* Update for adding latest changes (no final version) * Fix small issues * Update for improving code * Add localization keys * Update styles * Remove unused code and improve exceptions handling * Add latest improvements
- Change CitationViewModel to CitationsDisplay. - Improve styles and icons. - Remove unused code.
LinusDietz
left a comment
There was a problem hiding this comment.
I really like the feature now! I have very few comments. I'd say we should merge this when those are addressed 🎉
|
Good points, @LinusDietz. It is done! |
Siedlerchr
left a comment
There was a problem hiding this comment.
In general lgtm, just one question about the path in the test. Why did it change?
|
|
||
| expectedParserResult.addKey(EINSTEIN_C, Paths.get("foo/bar"), 1, 0, 21, citeString); | ||
| expectedParserResult.addKey(EINSTEIN_A, Paths.get("foo/bar"), 1, 26, 47, citeString); | ||
| expectedParserResult.addKey(EINSTEIN_C, Paths.get(""), 1, 0, 21, citeString); |
There was a problem hiding this comment.
I don't understand the change here
There was a problem hiding this comment.
I think it does not really matter.
|
To move on with this I have merged the PR. Great work! 🎉 |


This pull request adds a LaTeX Citations tab to the entry editor, to search for citations to the active entry in the LaTeX file directory (it can be configured in the Library properties dialog).
The new tab can be disabled in the preferences.
Summary of changes
An improved back-end
The new tab
A custom user interface controller for listing citations
CitationsDisplay)Miscellaneous
EntryEditorclass for injecting dependencies and fixing minor bugsThat is how it works