Generalpackage biblatex error: command smartcite undefined

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rrlangly
Posts: 1
Joined: Mon Oct 12, 2015 3:48 am

package biblatex error: command smartcite undefined

Post by rrlangly »

Just starting out with Latex and having issues, so I made the following minimum test. Below is my test.tex doc, then the .bib file, then below that is what I receive when running latex on the file.

I think something has to do with the fact that I don't have biber installed, and yet I thought by telling the backend to be bibtex, that this would work. (Gentoo has lots of masked packages just to get biber installed.)

Code: Select all

\documentclass[a4paper, 12pt]{article}
\title{My Paper}
\author{Me}
\date{2015-10-11}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[backend=bibtex,style=historian]{biblatex}
\bibliography{test}
\usepackage{setspace}

\begin{document}
\pagenumbering{gobble}
\maketitle
\newpage
\pagenumbering{arabic}
\newpage

\paragraph{Introdution}
Trying to work a biblatex example here \autocite[1]{Author:1}.

\printbibliography

\end{document}
The test.bib file.

Code: Select all

@book{Author:1,
    author = {Doe, John},
    title = {Book Title},
    publisher = {Mr. Publisher},
    address = {SomeplaceWhere},
    year = {2007}
    pages = {2}
}
And when I run latex on this test.tex file, I am receiving the following errors and can't get rid of the warnings.

Code: Select all

 $ latex test
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 2 languages loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/share/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/share/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.sty
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(/usr/share/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.def)
(/usr/share/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(/usr/share/texmf-site/tex/latex/biblatex/biblatex.sty
(/usr/share/texmf-site/tex/latex/biblatex/biblatex1.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-site/tex/latex/biblatex/blx-compat.def)
(/usr/share/texmf-site/tex/latex/biblatex/biblatex.def)
(/usr/share/texmf-dist/tex/latex/biblatex-historian/historian.bbx
(/usr/share/texmf-site/tex/latex/biblatex/bbx/standard.bbx))
(/usr/share/texmf-dist/tex/latex/biblatex-historian/historian.cbx

Package biblatex Warning: Macro 'footcite:shorthand' already defined.
(biblatex)                Using \renewbibmacro.


Package biblatex Warning: Macro 'footcite:ibid' already defined.
(biblatex)                Using \renewbibmacro.

) (/usr/share/texmf-site/tex/latex/biblatex/biblatex.cfg)))
(/usr/share/texmf-dist/tex/latex/setspace/setspace.sty)
(/usr/share/texmf-dist/tex/latex/biblatex-historian/historian.lbx
(/usr/share/texmf-site/tex/latex/biblatex/lbx/american.lbx
(/usr/share/texmf-site/tex/latex/biblatex/lbx/english.lbx))) (./test.aux)

Package biblatex Warning: Data encoding is 'utf8'.
(biblatex)                Use backend=biber.

(./test.bbl) [1]

! Package biblatex Error: Command '\smartcite' undefined.

See the biblatex package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.21 ...ex example here \autocite[1]{Author:1}.
                                                  
? 

LaTeX Warning: Empty bibliography on input line 23.

[1] (./test.aux) )
Output written on test.dvi (2 pages, 568 bytes).
Transcript written on test.log.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

package biblatex error: command smartcite undefined

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

Running biber is a recommendation, since biber is utf8 capable, BibTeX is not. And you operating system file encoding is utf8. This does not need to matter, as long as you use just ASCII characters in the bibliography.

However, you need to run BibTeX, like "bibtex test" on your file (no file name extension).

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: package biblatex error: command smartcite undefined

Post by Johannes_B »

Welcome,

is it possible that your biblatex version is just freakishly old?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: package biblatex error: command smartcite undefined

Post by Stefan Kottwitz »

TeX Live 2014 (from the log file) sounds not very old. Btw. if you would add the command \listfiles, then you would see all package versions in the log file.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

package biblatex error: command smartcite undefined

Post by Johannes_B »

biblatex is loaded from /usr/share/texmf-site/tex/latex/biblatex/biblatex.sty, but the rest comes from /usr/share/texmf-dist/. Might be a version not maintained by tlmgr.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply