Graphics, Figures & TablesChange caption name

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Change caption name

Post by svend_tveskaeg »

Hi (La)TeX friends.

In a figure environment, I would like to change the 'caption type' from

Code: Select all

Figure~<n>: <Something>
to, say,

Code: Select all

Fish: <Something>.
How do I do that?

Thanks in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

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

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

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

Change caption name

Post by gmedina »

Hi,

use the \captionsetup command provided by the caption package. For further information, please refer to the package documentation.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change caption name

Post by localghost »

The caption package that gmedina mentioned also allows to declare new float environments. Just in case you want it numbered independently from the other floats.


Best regards
Thorsten
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Change caption name

Post by svend_tveskaeg »

Thanks to both of you!

I forgot to write that I have looked through the caption manual already. I was not able to find anything so I would be very greatful if one of you would either

(1) tell me exactly where to look in the manual, or
(2) write a fully-working example here.

Again, thanks in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change caption name

Post by localghost »

svend_tveskaeg wrote:[...](1) tell me exactly where to look in the manual, [...]
Every PDF viewer has a search function that you can use to search for the \captionsetup command. Regarding my suggestion read Section 4 (Own enhancements, p. 25ff) of the package manual or search for the \DeclareCaptionType command.
svend_tveskaeg wrote:[...](2) write a fully-working example here. [...]
Try to translate the above suggestions and start a first approach on your own. Feel free to ask further questions by presenting your efforts in form of a minimal working example (MWE).
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Change caption name

Post by svend_tveskaeg »

Thanks once again!

After taking another a look at part 4 in the manual, I suspect that my question was not specific enough at first. Here is what I really want:

I would like to remove the preset 'caption name' entirely, i.e., something like

Code: Select all

Figure 1: A beaver and a horse.
should be

Code: Select all

A beaver and a horse.
I apologise!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change caption name

Post by localghost »

For suppressing the caption label just use the \caption* command provided by the mentioned package.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Change caption name

Post by svend_tveskaeg »

Thank you very much!

Once again, I apologise for the 'stupid' first question.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply