I'm using TexStudio for my Final Study Project. I've tried so hard and in many different ways to compile my bibliography and the acronyms, but without success.
I'm using XeLaTeX, and BibTeX for the bibliography document. The PDF compiles and everything is OK except the bibliography and the acronyms, which don't appear.
The document Estilo.tex is a .tex document that contains all the packages used. Its code is included at the end.
The document Capitulos.tex is a .tex document that includes all the chapters. This document is OK, there are no errors.
The Bib.bib document that contains all the bibliography is called "Bib".
Main .tex document code
\documentclass[a4paper,openany,10pt,twoside]{report}
\usepackage{Estilo}
\newacronym{ahv}{AHV}{Análisis de Hidrocarburos Volátiles}
\newacronym{ccah}{CCAH}{Comité Científico de la Alimentación Humana}
\newacronym{cee}{CEE}{Comunidad Económica Europea}
\newacronym{cv}{CV}{Cuarzo Verde}
\newacronym{cc}{CC}{Calcita}
\newacronym{din}{DIN}{Departamento de Ingeniería Nuclear}
\begin{document}
\begin{titlepage}
blablabla
\end{titlepage}
\tableofcontents
\listoffigures
\listoftables
\printglossary[type=\acronymtype,title=Acr'{o}nimos]
\include{Capitulos}
\newpage
\bibliographystyle{plainnat}
\addcontentsline{toc}{chapter}{Bibliografia}
\bibliography{Bib}
\end{document}
When compiling the code above I get an error message in the sentence
\bibliographystyle{plainnat}
saying
Package biblatex Error: '\bibliographystyle' invalid. \bibliographystyle
I also get an error message in the sentence
\bibliography{Bib}
saying
Error: can be used only in preamble. \bibliography
For the references citations I've tried both \cite and \citep functions but no one works.
For the acronyms I don't get any error message but the list is not created. In the chapters, I have tried both \acrfull and \gls functions but no one seems to work.
"Estilo" code
\usepackage[spanish, es-tabla]{babel}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{amsmath, amsthm,amssymb}
\usepackage{lmodern}
\usepackage{rotating}
\usepackage{textcomp}
\usepackage{url}
\usepackage[square,sort&compress]{natbib}
%\usepackage[maxbibnames=99, backend=bibtex, sorting=none]{biblatex}
%\addbibresource{Bib.bib}
\usepackage[export]{adjustbox}
\usepackage{pdfpages}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.png,.eps,.jpg}
\usepackage{sidecap}
\usepackage{stfloats}
\usepackage{subfig}
\usepackage{epstopdf}
\usepackage{array} %for parragraphs tables
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{fixltx2e}
\usepackage{fixmath}%\textsubscript
\usepackage{siunitx}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage{verbatim}
\usepackage[acronym,automake]{glossaries}
\makeglossaries
%\glossarystyle{altlistgroup}
\newif\ifabbreviation
\pretocmd{\thebibliography}{\abbreviationfalse}{}{}
\AtBeginDocument{\abbreviationtrue}
\DeclareRobustCommand\acroauthor[2]{%
\ifabbreviation #2\else #1 (\mbox{#2})\fi}
\newcommand*\NewPage{\newpage\null\thispagestyle{empty}\newpage}
In the last page of the PDF document created there is the word Bib, which is the name of my .bib bibliography document. I don't know what that can mean. I attach a picture of this page.
I would be very thankful if you could help me.
Thank you very much.


