# Why exporting when exporting bibtex with files provides twice the same pdf in the File bibtex field?

sorry if this seems trivial but I have the following situation. When I export an entry which contains some files to bibtex I've noticed that the path to the files in the File bibtex field value are added twice.

For instance:

@article{brochu,

title = {A {Tutorial} on {Bayesian} {Optimization}},

month = dec,

year = {2010},

file = {adams_a_tutorial_on_bayesian_optimization_for_machine_learning.pdf:files/1804/adams_a_tutorial_on_bayesian_optimization_for_machine_learning.pdf:application/pdf;brochu_a_tutorial_on_bayesian_optimization_of_expensive_cost_functions,_with.pdf:files/1800/brochu_a_tutorial_on_bayesian_optimization_of_expensive_cost_functions,_with.pdf:application/pdf}

As you can see the file contains the following:

1) adams_a_tutorial_on_bayesian_optimization_for_machine_learning.pdf

2)files/1804/adams_a_tutorial_on_bayesian_optimization_for_machine_learning.pdf:application/pdf;

3) brochu_a_tutorial_on_bayesian_optimization_of_expensive_cost_functions,_with.pdf

4) files/1800/brochu_a_tutorial_on_bayesian_optimization_of_expensive_cost_functions,_with.pdf:application/pdf

Also if I try to export bibtex only without the files I get the following

file = {adams_a_tutorial_on_bayesian_optimization_for_machine_learning.pdf:/home/kirk/papers/pdfs/adams_a_tutorial_on_bayesian_optimization_for_machine_learning.pdf:application/pdf;brochu_a_tutorial_on_bayesian_optimization_of_expensive_cost_functions,_with.pdf:/home/kirk/papers/pdfs/brochu_a_tutorial_on_bayesian_optimization_of_expensive_cost_functions,_with.pdf:application/pdf}

I don't understand I've set relative paths and I would like the file to contain only the following values:

file = {adams_a_tutorial_on_bayesian_optimization_for_machine_learning.pdf;brochu_a_tutorial_on_bayesian_optimization_of_expensive_cost_functions,_with.pdf}

How can I achieve that, what am I missing?

Thanks!

Why is the look of the file field important to you? What Zotero does maximizes compatibility with other software.

Only way to do this is to modify the bibtex export script (or use a postprocessing script via the better bibtex add-on).

`Include JabRef-specific metadata`

to`no`

in BBT, you get only filenames, no title/mimetype.