-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support commands in paths in \addbibresource #3655
Comments
Could you explain why you use the remote libraries tool window? If you include a bib file in your main LaTeX file then you should have autocompletion. |
I have a non "standard" setup (of course):
I don't know how TeXiFy identifies and indexes the bibliography, but I assume it does not parse macros and doesn't index outside the project root anyway. This is fine. The autoimport to a local file is also nice in general, but since I sometimes edit the references in my main file (change keywords, change from submitted to published, ...). I wanted to disable this feature to avoid having outdated local entries. So my main feature request would be to have a way to specify the file the entries are imported to. |
Thanks, that makes sense. I assume In the meantime, I agree the remote libraries feature could be used as a workaround if we add a setting to disable the auto import. |
Great :) Parsing such commands/"macros" to determine the path and indexing them too would of course be ideal. But I understand/assume that this is not trivial and may become messy due to the flexibility in doing such. My
Of course I can replace my |
Added the setting in 0.9.9-alpha.1 (it is waiting for review for some reason) |
I just checked again, and the reason it doesn't work is indeed that a plain \def is used, which is hard(er) to support. With a \newcommand it works for me:
Please reopen if this does not work. |
The added config option works for me. Thank you :) |
Situation
I have multiple Bibtex libraries outside my project directory which I a) include in my Tex file and b) have added to the "Remote Libraries" tab.
In addition, I have included a
IEEEabrv.bib
file inside the project directory with journal title abbreviations in my Tex file.TeXiFy: 0.9.7
PyCharm: 2024.2.0.1 (Community Edition)
Problem
If I have a citation of a reference that is in the "remote" (outside of project directory), this is fine for pdflatex/biblatex/biber, but TeXiFy shows a warning that the reference cannot be found. This seems to be due to those files not being indexed. This is ok for me.
However:
When typing a
\cite{
command, TeXiFy offers to autocomplete the citation key from the remote libraries. If accepted, it copies that entry from the "remote" library to the "local"IEEEabrv.bib
file.This is apparently intentional:
For me, this does not make sense because the "remote" library is included in my Tex document anyway.
Proposed Feature
I would like to see maybe a config option to disable this auto-import (globally, on project basis, or even per remote library).
This would also might help with informing the user about the feature itself. It took me some time to figure out why references that I deleted would still be available in my Tex document (they were unknowingly added somewhere in the middle of my
IEEEabrv.bib
file).Alternatively or additionally, I would like to either configure the "local"
.bib
file to which the imported entries are added or have a documentation on how this file is selected by TeXiFy. I don't want myIEEEabrv.bib
modified, but rather another.If you happen to have time to implement this, that would be awesome. If not, maybe you can point me to a point to get started. I have no experience with Kotlin nor Intellij plugins, but maybe I will be able to create at least a hacky workaround.
Sidenote: Awesome plugin. PyCharm + TeXiFy is now my favorite LaTeX IDE
The text was updated successfully, but these errors were encountered: