The fulltext search (magnifier glas in the General tab of an entry) will download the pdf into a unique directory to the entry. I want to change this behaviour together with the pdf naming convention.
I would like to have all my pdfs in one directory and named as <citation_key>.pdf. How can I achieve this?
The fulltext download adhers to the file directoy and filename pattern from the options.
If you have a general file directory specified in the preferences all files will be downloaded to that folder,
I was aware of that help page, but even after reading it again, I do not find where can I specify the downloaded filename. I’ve found only an option to select the download directory and there is an option for automatic linking an existing file based on a pattern.
You mentioned “filename pattern”, but I did not spotted it in the help. In which paragraph is it described? Is there any way I can define the downloaded filename?
Yeah, seems missing in the help.
It’s located under imporrt in the setitngs.
The file name format pattern defines how the file name for linked files is build. The pattern follows the cite key syntax. It’s then calulated for each entry. The sane for the fiel directory pattern, e.g. you could have a file directory pattern entrytpye and JabRef would then download articles in the
/article/ directory and so on.
And the files itself will be named according to the other patten. Sounds compicated but is actually pretty fleible for adapting https://docs.jabref.org/setup/bibtexkeypatterns#key-patterns
Great, thanks! That answers the filename part, but I do not know how to put all the downloaded pdfs into one directory. I want a simple, flat hierarchy without additional directories. In the import tab I can only define a pattern for the directory, but I can not disable it. If I leave the “file directory pattern” empty, then jabref uses a predefined default setting. Can I overcome this somehow?
I am not able to figure it out. I set the File directory pattern empty, because I do not want any sub-directory, and I want all files to be downloaded into the File --> Main file directory (right under External file links). The fulltext is now <citation_key>/<citation_key>.pdf with this configuration.
Could you please give a concrete example. e.g how your folder configuration looks like (e.g. library/user specific folder and how the general file directory configurations look like (preferences) and also how the patterns you used and the bibtex entry.