captions • tables • Add tags Information and discussion about graphics, figures & tables in LaTeX documents.
10 posts • Page 1 of 1
I'd like to change the caption prefix of a table, e.g. like this.
This results in something like this.
And I'd like to change it to this.
I tried using the
I also have tried it with
How could this be made? Thank you,
There are some smarter alternatives (in order of priority).
Neither listings (which I already tried) nor minted seem to apply in this case. I tried newfloat, but unfortunately the document doesn't compile if add the package command. As for floatrow its manual has over 100 pages and so far I haven't found an example where the float element prefix is changed.
Thanks for answering in any case.
What do you mean by "doesn't compile"? Do you get an error message? If yes, which one? (What document class do you use?)
Why? Give a minimal example where these packages fail.
Same questions as sommerfee already asked.
So you should read Section 4 of its manual (which can be found in the ToC).
Hi localghot and sommerfee, thank you for replying. My comments go below.
I don't know where they fail, but I couldn't find examples where these packages are used to substitute a table caption prefix.
I get this error:
Section 4 of the manual I have focus on new float types, not on captions. With this particular package I tried this set up:
But it has not effect on the caption prefix.
Any other hints are welcome. Thank you,
Then you simply do not have the newfloat package installed. Updating your TeX system (or at least the caption package bundle) should help.
As an alternative you could give the floatrow or the float package a try.
Please give us a minimal example.
Of course they don't alter table captions. They offer new environments that are labeled as listings. At the moment I can't comprehend why you insist on altering the table caption prefix. Obviously you need something that you can label as listing. So it would be much smarter to create a new floating object or use a package that allows you to typeset listings. The corresponding tools have been mentioned. Perhaps you can elaborate what you want to put into the
The package allows to create a new float that you can label according to your needs. And Section 4 describes how to get one that is labeled e.g. as listing.
Hello everyone, thank you for the replies.
First on this comment:
And I don't understand why you insist on me doing something different from what I initially presented. Again, the use case is very simple: I have a
Regarding the newfloat package I have no idea why is it missing, I regularly run the updates on this system.
On defining a new floating environment, while I am able to change the prefix with floatrow, the caption is wrongly placed and seems to miss some of the presets of the
Reading the floatrow manual the only example that seems to exactly fit the use case I'm presenting is using
If someone can tell me why
Thanks once more,
Because what localghost suggests is the "natural" way. The floating environments
This approach may have some unwanted side-effects, but this is what you want, so this is what you get.
The newfloat package was introduced November 2011, so no, your TeX system is not up-to-date.
What caption placement do you want? Using the floatrow package you can adjust the placement by options of
What presets are you missing?
10 posts • Page 1 of 1
Topic Tagscaptions • tables
Users browsing this forum: No registered users and 5 guests