Home > subfloats > Subfig package: Undefined control sequence \includegraphics

# Subfig package: Undefined control sequence \includegraphics

June 4Hits:21

I want to use subfig to put multiple pictures under one caption. However, the error mentioned in the title occurs.



Add \usepackage{graphicx} to your preamble. You also have a stray } after your \end{figure}. Fix those two things and you'll be on your way!

Tags:subfloats

## Related Articles

• ### Subfig package: Undefined control sequence \includegraphicsJune 4

I want to use subfig to put multiple pictures under one caption. However, the error mentioned in the title occurs. \documentclass[conference]{IEEEtran} \usepackage{cite} %\usepackage[caption=false]{caption} %\usepackage[font=footnotesize]{subfig} \us

• ### undefined control sequence \includegraphicsAugust 14

I write my text in Mac OS X and every thing was fine but when I want compile my code with Winedt in Windows 7 Environment I got this error: undefined control sequence \includegraphics[width=0.30/textwidth]{Hypercube} I change \ to / but Still got the

• ### minted package: Undefined control sequenceAugust 8

I just installed the minted package to type prettier code in my university reports, I'm trying it out but I keep getting the same messages when compiling: This is the source: \documentclass{report} \usepackage{minted} \begin{document} \begin{minted}{

• ### Issues with APACite package undefined control sequence \bibitemApril 26

I get the following errors when I try to cite with apacite Undefined control sequence \bibitem{GDP:2012} You can't use \relax' after \the \bibitem{GDP:2012} Citation GDP:2012' undefined There were undefined references. Here is the MWE: \documentcla

• ### when using hyperref package undefined control sequence \chapter errorAugust 18

I am using a custom class provided by my university for writing my thesis. Recently, I included the hyperref package and immediately I got a host of erros related to the \addtocontents command. I used the solution provided at this link. That removed

• ### LaTeX algorithmic package: Undefined Control Sequence in for-LoopOctober 17

I'm trying to specify an algorithm in pseudocode in a LaTeX document, but I'm having trouble with the for-Loop. My statement: \for{$bin=0 to binCount$} \item blablabla \endfor keeps on generating the error "Undefined Control Sequence". I also tr

• ### Undefined Control Sequence \For, \state, or \EndForJuly 3

I want to write this algorithm but the error Undefined Control Sequence \For, \state, or \EndFor pops up. \documentclass[titlepage,oneside,12pt]{article} \usepackage[]{algorithm2e,algpseudocode} \begin{document} \begin{algorithmic}[H] \KwData{Given t

• ### Undefined control sequence with Color Package in Custom LaTeX document classMarch 17

I have the following class file shown here: % \NeedsTeXFormat{LaTeX2e} \ProvidesClass{puseniorthesis} [2008/05/02 v1.4.1 Princeton University Thesis class] \RequirePackage{setspace} \RequirePackage{zref-totpages} %report type option \newif\[email protected]

• ### Undefined control sequence in algorithm packageMay 26

I am using Ubuntu 11.04 with TeXmaker and TeX Live. There is a \newenvironment definition in my LaTeX file: \newenvironment{algo}[1]{% \begin{algorithm}[#1] \SetTitleSty{textsc}{normalsize} \SetInd{0.25em}{0.25em} \SetAlgoVlined \SetNlSty{normal}{}{}

• ### Undefined control sequence error for \pgfkeys when using pgfmath package July 11

Update Oct 30th 2011 This has now been fixed in the CVS repository of PGF due to my bug report. With this version \usepackage{pgfmath} should work. I would like to use pgfmath in one of my packages to do math, but don't like to load the whole pgf pac

• ### Why does the tableau package raise the error "undefined control sequence" for \newpsstyle?September 1

I'm running ubuntu 11.04, and trying tableau to draw logic diagrams for the first time. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{ifsym} \usepackage{amstext} \usepackage{amssymb} \usepackage{t

• ### Undefined control sequence with pgfgantt package when creating Gantt chartNovember 21

I'm attempting to make a Gantt chart in my LaTeX document with the pgfgantt package. However, when I try to compile, it gives me undefined control sequence at the first \gantttitle between the {7} and \\: \begin{ganttchart}{7} \gantttitle{2012}{7} \\

• ### Undefined control sequence \equal in section title while using packages hyperref and ifthenDecember 15

I have a command that uses package ifthen. I use the command in section titles. I have to protect the command because otherwise I obtained the error Undefined control sequence \equal. So far, so good. Now I started using package hyperref, and the err

• ### Package listings: Error "Undefined control sequence." because of single-quote-symbol?May 9

I'm using the package listings and came across a problem displaying an SQL statement within an java environment. This is the MWE. \documentclass[]{report} \usepackage{listings} \definecolor{listinggray}{gray}{0.9} \definecolor{lbcolor}{rgb}{0.9,0.9,0

• ### Using 'caption' package with 'thesis' class - undefined control sequence March 31

I am trying to compile my PhD thesis. It worked a while ago (a few months or so) but something has somehow changes since then because I get an undefined control sequence error relating to the caption package. I have stripped it all down to a minimal

• ### SF298 package giving undefined control sequence errorDecember 3

I am trying to use the SF298 package for latex and it gives an undefined control sequence error. The error is as follows: ! Undefined control sequence. \ExecuteOptions ...[email protected] \CurrentOption \@nil l.104 \ExecuteOptions{config,nofloatlongboxes} T

• ### How should I fix the "Option clash for package babel" connected with "undefined control sequence" with hyperref? July 23

I have these two problems using the German documentclass "DissOnlineLatex" (Manual see:http://www.dnb.de/SharedDocs/Downloads/DE/DNB/wir/dissonlineAnleitungLatex.pdf;‌​jsessionid=E59481F1782EF811F84EB598A0593BD9.prod-worker3?__blob=publicationFi

• ### Undefined control sequence when including pdfpages packageSeptember 2

Problem: I try to include the following packages in my .tex file: \usepackage{graphicx} \usepackage{pdfpages} For this I get the following errors: thesis.tex (line 186) Undefined control sequence (\mainmatterSU ...) I Google a bit and find this: http

• ### Undefined control sequence makecvtitle in moderncv packageSeptember 3

I am using moderncv package in a tex document. I am compiling with pdflatex, and full texlive package downloaded from CTAN. The error I'm getting is: line 7: Undefined control sequence \makecvtitle Here is a minimum working example: \documentclass[11

• ### Usage of library advnodes of the tikz-timing package causes "Undefined control sequence"-errorJanuary 7

I have a problem with the "advnodes" library of the "tikz-timing" package. The sample code below generates following error message and points to the ".sty"-file of the advnodes-library: Package: tikz-timing-advnodes 2011/01/0