TransWikia.com

Setting a path to a bibliography file in windows

TeX - LaTeX Asked by MathBug on July 20, 2021

Creating a new bib file to save it in the same folder as my tex file is a mess, therefore I would like to have a permanent general bib file and be able to set a path to it when I am making a new tex file. (I am working with Windows 10).

I have tried:

  1. Use something like bibliography{"C:/Program Files/MiKTeX 2.9/bibtex/bib/FullBib.bib"} (and without the .bib) but there is a problem with spaces (I would prefer to put the bib file in another folder, something like blabla/documents/math texts/FullBib.bib).
  2. Use something like bibliography{../../FullBib.bib"}.
  3. Add as a root in Miktex C:/Program Files/MiKTeX 2.9/bibtex/bib/, refresh FNDB and try to use bibliography{FullBib.bib} but I get an error in the aux file in the line bibdata{FullBib.bib} and neither trying (1) works.

Point 1 was trying to follow How to have access to (or manage) bib files in MiKTeX?

Can you explain like I was a toddler how to set a unique bib file and use it forever after? Also, I believe I am using Bibtex but I am not sure.

I am working with windows 10, Jabref 5.2, Texniccenter 2.02 and Miktex 2.9. My MnotWE is

documentclass[a4paper,11pt]{amsart}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{amsmath,amsthm,amsfonts}
%More packages
begin{document}

cite{something}


bibliographystyle{plain}
bibliography{FullBib.bib}%or bibliography{FullBib} or bibliography{"C:/Program Files/MiKTeX 2.9/bibtex/bib/FullBib.bib"} etc.

end{document}

One Answer

  • Create a folder mylocaltexmf somewhere outside the texsystem. Your documents folder is a good place.
  • in this folder create the subfolders bibtexbibmybibs
  • Move your bib into the mybibs folder
  • Go to the miktex console, settings, tab "directories" and add mylocaltexmf as a new root.

You can add more subfolders (e.g. texlatex) and files to mylocaltexmf, when you do this you will have to update the filename database in the tasks menu of the console.

Correct answer by Ulrike Fischer on July 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP