aminmkhan / Awesome-CV

Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
28 stars 26 forks source link

Unable to compile bibliography with BibLaTeX #21

Open ktavabi opened 2 years ago

ktavabi commented 2 years ago

I've managed to compile my PDF without major errors and the resulting PDF looks good with the exception of publications.tex file. For some reason, the section is rendered...

image

references.bib is formatted as such:

@article{appelhoff2019,
  title   = {{{MNE-BIDS}}: {{Organizing}} Electrophysiological Data into the {{BIDS}} Format and Facilitating Their Analysis},
  author  = {Appelhoff, Stefan and Sanderson, Matthew and Brooks, Teon and {van Vliet}, Marijn and Quentin, Romain and Holdgraf, Chris and Chaumon, Maximilien and Mikulan, Ezequiel and Tavabi, Kambiz and H{\"o}chenberger, Richard and Welke, Dominik and Brunner, Clemens and Rockhill, Alexander and Larson, Eric and Gramfort, Alexandre and Jas, Mainak},
  year    = {2019},
  month   = dec,
  journal = {JOSS},
  volume  = {4},
  number  = {44},
  pages   = {1896},
  issn    = {2475-9066},
  doi     = {10/gmjqdh}
}

publications.tex looks like...

\cvsubsection{Journal Articles}

\begin{refsection}
    \nocite{appelhoff2019}

    \printbibliography[
    heading=none, 
    sorting=ydnt
    ]
\end{refsection}

Log for ./cv/publications.tex complains about undefined line items and empty bibliography, and BibTex warnings I don't understand:

LaTeX Warning: Citation 'appelhoff2019' undefined on input line 12.
LaTeX Warning: Citation 'Khan2014Incentive' undefined on input line 13.
Package biblatex Warning: 'sorting' option to '\printbibliography' is no longer
 supported.
(biblatex)                Please use 'sorting' option to '\newrefcontext'.
LaTeX Warning: Empty bibliography on input line 15.
LaTeX Warning: Citation 'yury2009' undefined on input line 27.
Package biblatex Warning: 'sorting' option to '\printbibliography' is no longer
 supported.
(biblatex)                Please use 'sorting' option to '\newrefcontext'.
LaTeX Warning: Empty bibliography on input line 29.
) (./cv/presentation.tex) (./cv/committees.tex) [2] (./cv.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Package rerunfilecheck Warning: File `cv.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.
Package biblatex Warning: Please (re)run BibTeX on the file(s):
(biblatex)                cv1-blx
(biblatex)                cv2-blx
(biblatex)                cv
(biblatex)                and rerun LaTeX afterwards.
samsdolphin commented 1 year ago

Hi @ktavabi did you manage to solve this? I got the same issue here.

ktavabi commented 1 year ago

Hi @samsdolphin Solved, No. In the IDE (vsCode + Latex Workshop extension) I never managed to work around this Biber error:

Biber error: [129] Utils.pm:410> ERROR - Error: Found biblatex control file version 3.8, expected version 3.9.

I only managed to build the document and bibliography section by using TexShop on my M1 MBP using the following sequence of operations: (i) Typeset resume.tex using the appropriate engine; I am using LuaLatex (ii) Typeset resume.tex with the Bibtex engine using biber. Note you will need to change the default BibTex engine from bibtex to biber in the TexShop Preferences > Engine setting. (iii) Typeset resume.tex AGAIN using the appropriate engine.

What's going on here is that (i) generates the necessary AUX files for BibTex to generate the correct biblatex auxiliary file for Tex to include your reference section in the second build.

PS there are issues regarding this on GH, but I haven't found a useful solution https://github.com/James-Yu/LaTeX-Workshop/discussions/3301#discussion-4092825 https://github.com/James-Yu/LaTeX-Workshop/issues/2489

HTH