question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BibTeX can't find aux file.

See original GitHub issue

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA 2022.1.1 (Ultimate Edition)

Operating System

Windows 10

TeXiFy IDEA version

0.7.19

What I did (steps to reproduce)

  1. Create new project (MiKTeX Windows SDK (MiKTeX 21.10), Configure with BibTeX support)
  2. Project format .idea (directory-based)
  3. Add some text to the default main.tex file.
  4. Add an entry to the default main.bib file.
  5. Use the \cite{} command in the main.tex file.
  6. Run ‘main’

The result is I couldn't open file name 'main.aux' on the bibtex command, and undefined references in the produced PDF. Note that the bibtex command is bibtex -include-directory=C:/Users/User/Documents/LaTeX_Projects/bibibibib/src -include-directory=C:/Users/User/Documents/LaTeX_Projects/bibibibib/src main It seems to me that instead of including the src and auxil directory, the src is included twice, though I have tried running the command manually with the auxil directory included and I get the same result. Copying the main.aux file into the out folder makes the bibtex command work and the bibliography is printed, but the references are still undefined, copying it again after the second compilation makes the references work as well.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
sasodomacommented, Jul 16, 2022

Ok I can confirm that changing the Working directory for bibtex to auxil works. Thank you for the quick replies and help!

0reactions
PHPiratescommented, Jul 16, 2022

Oh, I see. The auto-generated working directory for bibtex is out but that should be auxil. You can change that in the bibtex run configuration under ‘Working directory for bibtex’ for now, I will make sure to change the default. Thanks for noticing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

BiBTeX: I couldn't open file name 'myBib.aux' - TeX
In my case, my latx file contains of many files. So when I tried to compile the bibliography.bib file directly without switching to...
Read more >
latex - BibTeX not finding .aux file within Texmaker's "build ...
In Texmaker go to Options -> Texmaker Configuration -> Commands (this is the first option on the left side) · Look for the...
Read more >
bib.aux error: couldn't open file name - LaTeX.org
To make bibtex find that file, you need ensure two things: 1. run latex in the first place to generate the aux-file
Read more >
bibtex couldn't open .aux file #2042 - GitHub
This is because the .aux file is located under ./Tmp directory. In bibtex args, try to use %OUTDIR%/%DOCFILE% ...
Read more >
TeXmaker won't compile .bib, can't open .aux - Help? : r/LaTeX
When I go to compile (BibTeX) my .bib file, I get the following error: *Process started I couldn't open file name `msBib.aux' Process...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found