Text Formattingproblem with caption.sty

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
zozio32
Posts: 3
Joined: Mon May 17, 2010 3:04 pm

problem with caption.sty

Post by zozio32 »

Hi

I am new here, so let me know if I should post this somewhere else.
I am using texmaker 1.9.9, with texlive 2009-7 on Ubuntu 10.4.

I have been using latex for a while now, and I have a big bit of my thesis already written.

Well, the problem: my thesis file will not compile any more with pdftex. Here is the error I am getting:

Code: Select all

! Undefined control sequence.
<argument> ...o }{}\caption@clearsubcontentslines
\g@addto@macro \caption@ty...
l.774 ...Document{\caption@checksubcontentslines}}
%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
This is suppose to happen at line 774 of caption.sty

I've checked my caption.sty file, and I am using 3.1k.


Now, checking the list of packages that are obsolete in one of the sticky thread, I've realised that I am using at least 2 of them: subfigure and units.

I'll be glad to solve this problem, and if that could be done without having to rewrite part of it (moving to non-obsolete packages), that will be brilliant.

thanks in advance

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problem with caption.sty

Post by localghost »

zozio32 wrote:[...] I am new here, so let me know if I should post this somewhere else. [...]
You have to narrow down the problem by building a minimal working example (MWE) [1]. This is necessary to get closer to a solution. The source of error can be everywhere in your document. But help isn't possible until there is a minimal example present to us. Follow the instruction on how to build a MWE very careful.

[1] View topic: Avoidable mistakes


Best regards and welcome to the board
Thorsten
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

problem with caption.sty

Post by sommerfee »

zozio32 wrote:

Code: Select all

! Undefined control sequence.
<argument> ...o }{}\caption@clearsubcontentslines[/quote]

\caption@clearsubcontentslines is part of caption3.sty so it could be that you do have an inconsistent installation of the caption package bundle. If you update the caption package please make sure that you update [b]all[/b] packages of the caption package bundle, i.e. caption.sty, caption3.sty, ltcaption.sty and subcaption.sty.

If you have version 3.1k of the caption.sty, you should also have version 3.1k of caption3.sty, version 1.2 of ltcaption.sty and version 1.0b of subcaption.sty. Please check this in your documents log file.

Furthermore check for warnings as well. If the caption package finds a caption3.sty which is too old to fit it should issue a warning about this.

Regards,
Axel
zozio32
Posts: 3
Joined: Mon May 17, 2010 3:04 pm

Re: problem with caption.sty

Post by zozio32 »

thanks, I'll try that as soon as possible.

I'll make up an example if it's not an issue with caption3.sty.
zozio32
Posts: 3
Joined: Mon May 17, 2010 3:04 pm

Re: problem with caption.sty

Post by zozio32 »

Hi

well, I have just checked caption3.sty, and I have the same version (v3.1k)

I'll do an example in the coming day, but i am off tomorrow for a while, so I don't know when I'll have it ready
Thanks for the rapid answers
Post Reply