BibTeX, biblatex and biberUndefined control sequence when I try to use citet and citep

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
prince_2018
Posts: 4
Joined: Sun Dec 17, 2017 2:31 am

Undefined control sequence when I try to use citet and citep

Post by prince_2018 »

Hello
I am working on the template below for a conference paper and whenever I try to use \citet or \citep, it says "underfind control sequence"

http://www.complexis.org/Templates.aspx

I would very much appreciate your help as I have a submission deadline.
Thanks a bunch

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Undefined control sequence when I try to use citet and citep

Post by Stefan Kottwitz »

I guess you did not load the natbib package.

\usepackage{natbib}

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

Undefined control sequence when I try to use citet and citep

Post by Johannes_B »

The template uses the bibiography packae apalike. You should replace that by natbib, as only natbib provides the commands you want to use.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
prince_2018
Posts: 4
Joined: Sun Dec 17, 2017 2:31 am

Undefined control sequence when I try to use citet and citep

Post by prince_2018 »

I used natbib, however when I compile I get the following:
Command \bibhang already defined. \newlength{\bibhang}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Undefined control sequence when I try to use citet and citep

Post by Johannes_B »

Replace apalike in the example code with natbib.

Sidenote: A conference for future information systems ships a file that is distributed with every TeX distribution in an updated manner. That file is from 2000, and many updates have been done to not only for the article class. Package subfigure is deprecated for over a decade, epsfig should only be used for compatibility to documents pre 1994.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
prince_2018
Posts: 4
Joined: Sun Dec 17, 2017 2:31 am

Undefined control sequence when I try to use citet and citep

Post by prince_2018 »

I replaced it and got the following

\bibhang already defined. \newlength{\bibhang}
Suggestions?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Undefined control sequence when I try to use citet and citep

Post by Stefan Kottwitz »

Quick fix: disable \bibhang before loading natbib:

Code: Select all

\usepackage{apalike}
\let\bibhang\relax
\usepackage{natbib}
To make full use of natbib, you could check out options and possibilities in the natbib manual.

Stefan
LaTeX.org admin
prince_2018
Posts: 4
Joined: Sun Dec 17, 2017 2:31 am

Undefined control sequence when I try to use citet and citep

Post by prince_2018 »

Thanks a bunch. I really appreciate it.
It worked!
Post Reply