Graphics, Figures & Tablescaption package error: figurewithin

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tdc
Posts: 34
Joined: Fri Sep 12, 2008 1:52 am

caption package error: figurewithin

Post by tdc »

hi there,

I've recently had to move over to a linux based OS and I'm using Kile to edit tex files.

I think i have all the packages installed, but the following bit of code throws up an error...

Code: Select all

\usepackage{caption}
	\captionsetup{
		figurewithin=chapter,
%  		tablewithin=chapter
  						 }

Code: Select all

[PDFLaTeX] Main.tex => Main.pdf (pdflatex)
[PDFLaTeX] finished with exit status 1
./Main.tex:17:Package caption Error: figurewithin undefined. }
[PDFLaTeX] 1 error, 0 warnings, 0 badboxes
Thanks for any help

Tim

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

caption package error: figurewithin

Post by gmedina »

Hi,

make sure that you are using a recent version of the caption package, preferably, version 3.1j
1,1,2,3,5,8,13,21,34,55,89,144,233,...
tdc
Posts: 34
Joined: Fri Sep 12, 2008 1:52 am

Re: caption package error: figurewithin

Post by tdc »

how do i check the package version?

Cheers,

Tim
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

caption package error: figurewithin

Post by Stefan Kottwitz »

Hi Tim,

have a look at the log file (Main.log), it contains error messages, warnings and information. There you can find a line like

Code: Select all

Package: caption 2008/08/24 v3.1j Customizing captions
if it's v3.1j or similar, containing the version number.

Stefan
LaTeX.org admin
tdc
Posts: 34
Joined: Fri Sep 12, 2008 1:52 am

Re: caption package error: figurewithin

Post by tdc »

cheers, it's version 3.0

is there a quick way of updating all the packages to the most recent version. (i'm running gOS 3.1 if thats relevant (which is a modified ubuntu hardy heron if i remember correctly ) )

Cheers, Tim
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

caption package error: figurewithin

Post by Stefan Kottwitz »

Hi Tim,

if you're only using the system's tools, like apt-get, Synaptic etc. then you have to depend on its repositories. At the moment Ubuntu provides TeX Live 2007.

I'm using Ubuntu Linux too, and when I wanted to update the TeX Live packages, I've chosen the MiKTeX package manager at first. After its installation it's been working very well. I've used this combination MiKTeX/TeX Live/Ubuntu for a long time without problems.

Later after installation of a newer version of Ubuntu Linux I decided to install TeX Live 2008 on Ubuntu using equivs instead of the version 2007. While I'm still usig TL2008 on my netbook with Eeebuntu I've recently installed the TeX Live 2009 test version on my other Ubuntu 9.04 system.

I've included some links in this posting to where I had made some notes concerning those subjects, perhaps some of the information or links there could be useful for you.

Stefan
LaTeX.org admin
Post Reply