{captions} is about captions for figures, tables and other, custom-defined floats or non-floating illustrations which are formatted to look identical to these floats. A popular package is caption.

learn more… | top users | synonyms

2
votes
1answer
1k views

Setting position of figure, captions using sidecap

I have a poster with 2 sidecaped graphics: one in the lower-left corner (LLC) and another in the lower-right (LRC). Problems include both have their captions on the left. I'd prefer the LLC graphic ...
1
vote
1answer
280 views

How to make graphic caption rotate?

I have a large graph that has to fit the paper in the landscape mode, therefore I have to rotate the graph using includegraphics[angle=-90]. However, the usual \caption{} statement remains the same as ...
11
votes
2answers
578 views

Conditional figure environment (sideways, bottom captions)

For my phd dissertation I would like to have a new environment for figures that gives me the possibility to either place the caption sideways if there is enough space (say the figure width is < 0.6 ...
4
votes
1answer
272 views

A fancy box for non-verb text, but like that of Fancyvrb

How can I create, without a verbatim environment, these nice boxes that the Fancyvrb package produces: The sibling package Fancybox (by the same author) doesn't allow for the caption being placed ...
2
votes
1answer
1k views

Using endfloat and caption packages to remove caption from figures

In the current example: \documentclass[12pt]{article} \usepackage[textwidth=6.7in,textheight=9.125in]{geometry} % alter dimensions of document \usepackage{graphicx} % include graphics i.e. figures ...
7
votes
1answer
641 views

How to localize label using algorithm and algorithmic packages

I am writing a paper in Italian and I need to include pseudo code in my latex document so I am currently using the algorithm and algorithmic packages. At the top of every algorithm the label Algorithm ...
5
votes
2answers
455 views

Phantom malfunction in algorithm caption

I am trying to use \phantom in the context of an algorithm caption. I am using the algorithm and algorithmic packages. \phantom will work properly in normal text in my document, but not in a caption. ...
1
vote
1answer
148 views

journal specification for figures and figure captions

I am submitting some work to a journal and the format of the article has to follow some specific guidelines. One of which is that following the main text, the figure captions are then required ...
4
votes
2answers
3k views

Changing vertical position of a figure caption with sidecap/SCFigure

I use the sidecap package to add small graphics with captions on the inner side of a page with the following options in the preamble: \usepackage[innercaption]{sidecap} \sidecaptionvpos{figure}{t} ...
3
votes
2answers
5k views

Insert figure in a multicol article

I am trying to insert a figure with a caption into a multicol article. When the figure was inserted on its own, it was fine: includegraphics[width=0.5cm]{image} However, when I tried to insert the ...
9
votes
3answers
368 views

Uppercase until end of group

In LaTeX, all font commands have two versions, one requires an argument (\textbf, \textit, \textsc etc), other changes the font until the end of group (\bfseries, \itshape, \scshape etc). The latter ...
7
votes
1answer
1k views

How to layout four figures with floatrow, two of them vertically?

how can I get a layout like the one below in my document? _____________ _____________ _______________ |Big Picture1| |Big Picture2| |Small Picture1| | | | | |______________| | ...
6
votes
2answers
1k views

Indenting the first line of figure captions

I want to create a small indentation in the first line of figure captions, similar to the way LaTeX indents the first line of paragraphs. The caption package does not seem to support this. Is it ...
2
votes
1answer
2k views

Swedish characters, but english captions

I am writing thesis in english but I want to be able to use swedish letters. I use \usepackage[swedish]{babel} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} This works fine, I thought, ...
2
votes
1answer
123 views

How shoud I manage captions and sub captions with float and non float items?

I am currently writing my PhD thesis and I am using this code to put some figures or tables on the left page. So, I have two kinds of figures, some are in a float, some are not. In both cases, I often ...
4
votes
1answer
156 views

Use float counter in a section title

I defined a new float environment for examples \usepackage{float \newfloat{example}{htp}{example} \floatname{example}{Example} that I the use throughout the document \begin{example} ... ...
3
votes
1answer
402 views

How to suppress caption numbering in a figwindow

\documentclass[a4paper]{article} \usepackage{picinpar} \usepackage{graphicx} \begin{document} \begin{figwindow}[1,l,{\mbox{% \includegraphics[width=80pt]{g/tiger.png}}},{\label{fig:leadfield}\TeX{} ...
2
votes
1answer
222 views

Using (redefined) macro in \caption doesn't work, but it works in another environment

My problem is strange behavior my command \vec{} in \caption. I used this construction: \renewcommand{\vec}[1]{\accentset{\rightarrow}{#1}} See my code: \documentclass[12pt, a4paper, czech, ...
4
votes
1answer
450 views

Caption formatting with babel French

I have a problem override the default formatting of float captions when using babel’s French option. When babel’s francais setting is chosen, captions are formatted with the label (“Figure X”) in ...
3
votes
1answer
433 views

Combining the caption and fltpage package when using twopage setting in book class

I have run into a strange problem when using the caption package and the fltpage package in the book documentclass with the twoside setting. After eliminating all kinds of variable it turned out that ...
5
votes
1answer
139 views

indent of custom float

In my preamble I defined a custom float to use it for my equations like this \newfloat{formula}{ht}{frm} \floatname{formula}{Formel} then I use it like this \begin{formula} \begin{equation} ...
4
votes
3answers
311 views

Center table and align caption over table

I have a small table that I want to center in a document. I can do this but the caption then is left justified rather than aligning with the centered table. I'd like to center the table and make the ...
1
vote
1answer
474 views

Left/Center/Right references to subfigures

I have a figure with three subfigures shown in the code sample below. How can I change the reference to a subfigure so that I have Figure 1 (left), Figure 1 (center), and Figure 1 (right) instead of ...
5
votes
1answer
2k views

Error using subcaption

I've used the subcaption package in the past without any problem. But now, i can't use it, which makes it impossible to compile some important documents. If i try to compile \documentclass{article} ...
2
votes
0answers
240 views

\caption* does not work properly [closed]

I have a problem with using the command \caption* (from the caption package) together with the algorithm environment. Instead of parsing the \caption* as a single command, it is parsed like \caption ...
2
votes
1answer
1k views

How can I repeat the header but not the caption with longtable?

I am trying to set up a longtable where the header is repeated on every new page but the caption only appears once at the top of the page. The table is defined as follows: \begin{longtable}{|l|l|l|} ...
4
votes
1answer
2k views

Extending the width of caption for subfigure

The caption of the subfigure follows the size of the figure/table. Is it possible to stretch the width so that it does not follow the size. \documentclass[11pt,a4paper]{report} \usepackage{ ...
6
votes
1answer
708 views

using [] in the caption of the subfigure

The subfigure caption uses []. Because of that, I am unable to use [] in its caption. \subfigure[ This [] is important] How do I use the brackets in the caption of the subfigure?
4
votes
1answer
2k views

elsarticle table and figure caption

I want to change the caption of elsarticle in LyX for table to be and for figures to be Mine is the following: I use the caption package in document preamble ...
7
votes
1answer
842 views

How not to show a label under a graph using subfloat — restart numbering of labels

I have this code: \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[caption=false]{subfig} \graphicspath{{/folder/images/}} \title{} ...
2
votes
2answers
708 views

How to decrease space height (margin) between equations

I want to decrease spaces(margin) height before and after equations because I found big space when text end and display formula appears or between equations each in separate line. Also I want to do ...
2
votes
1answer
956 views

Writing Pseudocode in LaTeX

I cannot seem to get any of the LaTeX pseudocode packages to work correctly on my computer. For example, if I run this block of code: \documentclass{article} \usepackage{algorithm}% ...
4
votes
1answer
994 views

achemso single-column-abstract and Helvetica captions

I am currently writing a paper with the achemso style package, as required by the American Chemical Society. I can produce the very nice two-column format by just doing ...
2
votes
0answers
241 views

Page break before caption in lstlisting [closed]

I have the following settings for a lstlisting: \lstset{ language=XML, numbers=left, numberstyle=\tiny\color{gray}, stepnumber=1, numbersep=5pt, ...
3
votes
1answer
513 views

Two Captions for the table

I got tables working based on MWE. It was provided by @Yiannis Lazarides How to create new table environment How can I create two captions one on the top and one on the bottom. ...
4
votes
1answer
158 views

Special Command and Caption

I use the following code excessivle, \makeatletter \def\ifinstr#1#2{% \def\@ifinstr##1#2##2\@nil{% \ifstrempty{##2}{\@secondoftwo}{\@firstoftwo}}% \@ifinstr#1\@@nil#2\@nil } ...
5
votes
1answer
418 views

autonum does not like \ref in a \caption

The following is a minimal non-working example of a reference to some label within a caption while using the autonum package. \documentclass{article} \usepackage{autonum} \begin{document} ...
9
votes
2answers
483 views

Why are my Images not correctly centered?

First of all this is my first posting here on tex.stackexchange.com. I'm new to the tex world and I need a little bit of your help. I am trying to align text relative to a figure. How it should look ...
0
votes
1answer
824 views

Threeparttable and longtabu with consistent topskip

I am trying to have a big table (break across pages) with footnotes and a column with adjustable width. The MWE is the following. \documentclass{scrartcl} \usepackage{blindtext} ...
2
votes
1answer
2k views

Subfigure float - caption above, and how to break figure over two pages

Firstly, thanks a lot in advance for your help with this problem. I've looked long and hard but not found a solution anywhere. I am writing my PhD thesis in Lyx and love how it makes the formatting ...
3
votes
1answer
2k views

Strange problem with `longtabu`

I would like to share with you a quite simple example LaTeX is not able to compile. I use the longtabu environment provided by tabu package. I am using commands from booktabs as recommended in the ...
4
votes
1answer
221 views

Different type of captions

I have four tables. The first table has a caption of Table A: Title. The other three tables have captions of Table 1: Title, Table 2: Title, and Table 3: Title. When I use \caption{Title} it ...
5
votes
1answer
1k views

\spacedlowsmallcaps in caption label

How i can make the labelfont also in \spacedlowsmallcaps in addition to sans serif and small ? \documentclass{article} \usepackage{microtype} \usepackage{caption} ...
3
votes
1answer
789 views

Beamer footcite citation appears twice if used in long caption

I noticed strange behaviour of the \footcite command when used in captions within beamer. In the working example provided the first frame has a \footcite on an itemize item, this works as expected. ...
0
votes
1answer
1k views

Cite in caption beamer

\documentclass{beamer} \usepackage[latin1]{inputenc} \usepackage{graphicx} \usepackage{tikz} \usepackage{wasysym} \usetheme{CambridgeUS} \title{Beamer o Beamer} \author{mishr} \begin{document} ...
2
votes
1answer
738 views

Figure style with memoir class

I'm trying to modify the defaut figure style with the memoir class. More precisely, I would like to have the Figure X.Y part in bold. To get X.Y in bold isn't a problem, as the ...
1
vote
1answer
158 views

Making figure captions wider

I have the working sample below: \documentclass[a4paper,11pt,twoside]{report} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{amsmath, graphicx, ...
7
votes
4answers
6k views

Table with foot note

I have a table and some of the number inside has some symbol like * and ** which should be explianed as footer ( at the end of the table not the page) I dont know how to do that and I dont want to ...
1
vote
1answer
662 views

footnotesize not working with longtable and landscape

I can get \footnotesize to work when I'm using landscape & longtable. However, my table is landscape with table-->longtable in the environment, and when I do this I can't get the \footnotesize ...
1
vote
1answer
108 views

Order of `float` and `caption` packages in preamble

I am using float and caption packages in my document, and also packages like tabularx, listings, algorithm... that (as far as I know) define floating elements or elements that have captions ...