# Empty Bibliography Texmaker Free

I have a general and central preamble for a lot of similar-style documents (several dozens) and most of the documents have a Bibliography at the beginning, so I call

in the central preamble to avoid a lot of duplicate code and to be able to change the bibliography style centrally. But sadly, a minority of these documents has an empty bibliography. And these give me a warning about an empty thebibliography environment. But the bigger problem is: the bibliography headline still appears in the pdf output.

Is there a way to only get the bibliography headline and no warning when there is a non-empty bibliography? What would be the correct counters or booleans to address? Or is there an easy-to-use option?

Minmal example:

Run latex, bibtex, latex, latex. Get for test.bbl

Entering the "patch" doesn't solve the problem. What I want ist: If there's no \cite{} within the document, don't display the bibliography.

Content of bbl:

bibliographiesbibtexconditionalswarnings

Some tools for generating LaTeX .bst files (bibliographic styles), such as the docstrip utility, have known compatibility issues with the package csquotes. The csquotes package is a robust quotation management tool, with support for multiple languages and advanced quotation elements of interest to those writing formal academic documents. For those writing theses, dissertations, or other formal documents where a robust quotation management package is required, it is an excellent choice.

One problem with many .bst files available online is that they attempt to define something called \enquote within the style. When used without csquotes, this is fine, but csquotes has its own defined variable called \enquote. LaTeX does not appreciate having two variables with the same name, so it will call an error, and the document will refuse to compile.

The error will look like this:

And it is resolved by redefining one of these variables. I recommend redefining the one in the .bst file to something like \enquotebst. This can be done very easily to your .bst file using find/replace. The risk of modifying csquotes is that you are tampering with a built-in package that might be updated and reset every time TeX updates are downloaded. For example, in the ajs.bst file commonly found online for sociologists, the \enquote variable appears in two places:

and

Replace "enquote" with "enquoteFILENAME" or "enquotebst" wherever it appears in the .bst file. The error will stop if \enquote was your problem. If the error continues, ensure that your .bst file is in the correct directory and that you are only calling the bibliography once.