SET UP: I am running Arch Linux, vim is my text editor, I downloaded all of the basic TeX Live programs listed in the Arch wiki, and I don't use any auto-compilers, just commands from the terminal.
ISSUE: I'm able to make the default citation style just fine, but whenever I try to add anything in square brackets to the \usepackage{biblatex} command, the text comes up in red on vim, and the pdf will unformat all citations made in the text to just be the author name.
This code will result in a document with functional citation:
Code: Select all
\documentclass{article}
\usepackage{biblatex}
\title{EXAMPLE}
\addbibresource{bib.bib}
\begin{document}
\maketitle
This is a citation \textcite{example2008}.
\printbibliography
\end{document
EXAMPLE
This is a citation Example [1].
References
[1] Example Author. "An Example". In: vol. 1(2). Example Quarterly, 2008, pp. 1-234.
This code will not cite properly, and anything in the square brackets will be red no matter what:
Code: Select all
\documentclass{article}
\usepackage[backend=biber,style=apa]{biblatex}
\title{EXAMPLE}
\addbibresource{bib.bib}
\begin{document}
\maketitle
This is a citation \textcite{example2008}.
\printbibliography
\end{document
EXAMPLE
This is a citation Example.
%\printbibliography will not run
I'm still rather new to Linux and working with computers directly in general, so I'm not really sure what I'm supposed to be looking for in an error report and how to debug, but here's what is displayed in my terminal when I run biber and pdflatex to compile the document:
Code: Select all
[conchobhar@archlinux ~/Work]$ biber latex
INFO - This is Biber 2.19
INFO - Logfile is 'latex.blg'
INFO - Reading 'latex.bcf'
INFO - Found 5 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex file 'unicitation.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'unicitation.bib'
INFO - Overriding locale 'en-US' defaults 'normalization =
NFD' with 'normalization = prenormalized'
INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US'
INFO - No sort tailoring available for locale 'en-US'
INFO - Writing 'latex.bbl' with encoding 'UTF-8'
INFO - Output to latex.bbl
[conchobhar@archlinux ~/Work]$ pdflatex latex
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Arch Linux) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./latex.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/biblatex/biblatex.sty
(/usr/share/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/share/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/share/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(/usr/share/texmf-dist/tex/latex/logreq/logreq.sty
(/usr/share/texmf-dist/tex/latex/logreq/logreq.def))
(/usr/share/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/share/texmf-dist/tex/latex/url/url.sty)
(/usr/share/texmf-dist/tex/latex/biblatex/blx-dm.def)
(/usr/share/texmf-dist/tex/latex/biblatex-apa/apa.dbx)
(/usr/share/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/usr/share/texmf-dist/tex/latex/biblatex/biblatex.def)
(/usr/share/texmf-dist/tex/latex/biblatex-apa/apa.bbx
(/usr/share/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))
(/usr/share/texmf-dist/tex/latex/biblatex-apa/apa.cbx)
(/usr/share/texmf-dist/tex/latex/biblatex/biblatex.cfg)
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def))
(/usr/share/texmf-dist/tex/latex/biblatex/blx-case-expl3.sty
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)))
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def))) (./latex.aux)
(/usr/share/texmf-dist/tex/latex/biblatex-apa/english-apa.lbx
(/usr/share/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
(/usr/share/texmf-dist/tex/latex/biblatex-apa/american-apa.lbx
(/usr/share/texmf-dist/tex/latex/biblatex/lbx/american.lbx
(/usr/share/texmf-dist/tex/latex/biblatex/lbx/english.lbx)))) (./latex.bbl)
(/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{/var/lib/tex
mf/fonts/map/pdftex/updmap/pdftex.map}]
LaTeX Warning: Empty bibliography on input line 60.
[2] (./latex.aux)
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) latex
(biblatex) and rerun LaTeX afterwards.
)</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/
texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texmf-dist/font
s/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texmf-dist/fonts/type1/public/
amsfonts/cm/cmr17.pfb>
Output written on latex.pdf (2 pages, 64119 bytes).
Transcript written on latex.log.
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Cheers!