SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 362 forks source link

Bibliography not showing on Windows 10 #1585

Closed Giacomeeno closed 1 year ago

Giacomeeno commented 1 year ago

As the title say, when i try to compile the bibliography does not show on Windows 10, but if i try to compile the exact same file on my Mac it works without any problem.

I attached what pops up when i compile.

This is my LaTeX file.

\documentclass[12pt, a4paper]{book}

%implementazione pacchetti
\usepackage{times}
\usepackage{graphicx}
\usepackage[italian]{babel}
\usepackage[Rejne]{fncychap}
\usepackage[font=it,labelfont=bf]{caption}
\usepackage{float}
\usepackage{amsmath}
\usepackage{geometry}
\usepackage{fancyhdr}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber, style=numeric, defernumbers]{biblatex}
\usepackage{pdfpages}
\usepackage{subcaption}
\usepackage[capitalise]{cleveref}
\usepackage{emptypage}

\addbibresource{bibliography}

%opzioni impaginazione
\geometry{top = 3cm, bottom = 3cm, left = 3cm, right = 3cm, heightrounded}

\pagestyle{fancy}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter. \ #1}{}}

\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}

\setlength{\headheight}{15pt}
\fancyhead[LE]{\slshape \leftmark}
\fancyhead[RO]{\slshape \rightmark}

\fancypagestyle{plain}{%
\fancyhf{} 
\fancyfoot[LE,RO]{\thepage} 
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}

%directory immagini
\graphicspath{: .images}

%inizio documento
\begin{document}

%titolo
\includepdf{Titolo.pdf}

\frontmatter

%indice
\tableofcontents
\addcontentsline{toc}{chapter}{Introduzione}

%introduzione
\include{intro}

\mainmatter

%primo capitolo
\include{chap1}

%secondo capitolo
\include{chap2}

%terzo capitolo
\include{chap3}

%indice figure
\listoffigures

%bibliografia
\printbibliography[type = online, title = Sitografia]
\printbibliography[type = book, title = Bibliografia]
\end{document}

log.txt

ig0774 commented 1 year ago

The default builder on Macs uses latexmk, while on Windows, it defaults to using MiKTeX’s texify. texify doesn’t support biblatex, hence no bibliography if you’re relying on biblatex. You should be able to switch to using our “basic” builder which is actually more capable than texify and supports biblatex.

Giacomeeno commented 1 year ago

Thank you, I had to add \bibliography{bibliography} in the preambole and build twice before it worked but ultimately it did. Thank you very much!