![]() Produces captions like the one shown below: endash: The caption label and the text will be separated by an en-dash (which is obtained in LaTeX writing –) surrounded by spaces.Īnd you can also define your own separator with the command:.newline: The caption label and the text will be separated by a line break (although this will not work with all caption formats, for instance, it will not work with hang).quad: The caption label and the text will be separated by a \quad.space: The caption label will be separated with a single space.period: The separator is a period and a space.colon: The separator is a colon and a space.The built in options for this command are: The symbols #1 and #2 are provided, which represent the name (Figure, Table,…) and the reference number, respectively.Īnother customization option is labelsep, which let’s you determine which caption separator will be used (although if the caption label or the caption text is empty, no separator will be used). ![]() We can also create a new caption label format using the command: parens: The number of the caption label will be typeset in parentheses.brace: The caption label will be closed with a single right brace.simple: The caption label will be typeset as a name and a number.empty: The caption label will be empty.original: The caption label will be typeset as specified by the document class (usually this means the name and the number, although in beamer, for example, it just means the name).There are five standard built-in caption label formats: The label format can also be changed: by setting the labelformat option you can specify how the caption label will be typeset. You can use indention in any format (including plain and hang) and set it to a valid TeX dimension (positive or negative). There is a separate option to set a custom indentation. hang, which indents the caption text, so it will “hang” under the first line of the text (you can see how it looks in the next illustration.plain, which typesets captions as a normal paragraph (the default LaTeX behaviour) and.With the caption package come two predefined caption formats: The caption format is what determines how this information will be presented, and it is specified with the option format, which can be set to a format name. The caption separator that determines the separation between the text and the label.The caption text itself, which is nothing but a short description of the contents, and.The caption label, which says what kind of object are we talking about (Figure, Table, Listing, …) and what number is associated with it,. ![]() ![]() FormattingĪ floating object caption mainly consists of three parts: This declaration has an effect on the current environment only this means that if we use it in our preamble, it will affect the whole document, but if we use it inside a figure or subfigure environment, it will only affect the current environment’s caption. This package provides several customization options for our captions, and to specify them we will always use the command: To do so, we will use the caption package, written by Axel Sommerfeldt. In this tutorial, we are going to see how to customize the appearance of captions in our document: their formatting, justification, the font used, the spacing, and many more aspects. Inside a LaTeX document, every floating environment (usually figures or tables) is usually followed by a caption, that is, by a small paragraph that specifies the floating object (if it is a Figure, a Table, a Listing, etc.) followed by its corresponding number (which depends on the numbering system specified for the document) and a brief description of the element.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |