Take the 2-minute tour ×

As said, I have a problem when I create new float type with float.

My preamble contains


Now, my document contains some protocols, and some "fonctions". But when I use the \listof command, a strange thing happens.

If I use \listof{fonction}{Liste des fonctionnalités}, it will look like this:

enter image description here

Same thing happens if I use \listof{protocol}{Liste des protocoles}.

I have no idea where to look at to correct that :/

share|improve this question
@PeterGrill My bad, I'll provide a MWE next time. –  Heinz Fiedler Jun 4 '12 at 14:48
add comment

1 Answer

You have specified lop as the file extension for storing the respective listings for both protocol and fonction. \listof is not smart enough to recognize and ignore entries for the wrong type of table, so you need to specify different file extensions in your \newfloat commands.

share|improve this answer
It works like a charm now, thanks! –  Heinz Fiedler Jun 4 '12 at 14:49
@znieh: If this answer solved your problem, consider accepting it. This is done separate from up-voting. –  Werner Jun 5 '12 at 6:23
Actually, "is not smart enough" is a euphemism. If the intent was not to have mixed files, there would have been no point writing different commands for different float types to the file. Obviously the "other" commands should be ignored including their arguments. The way to do that is have \newfloat define the respective listing command to just discard its arguments, and then have \listof enable just the right command locally (currently it is done globally). About 5 changed lines, and stuff would work as expected without needing a separate file for each float type. –  user9588 Jun 5 '12 at 13:04
add comment

Your Answer


