4
votes
1answer
32 views

Splitting a caption and cross-referencing

I'm currently writing my thesis and I'm struggling with my redefinition of the caption command. I've got large captions which I don't want to show up in my list of figures. Of each caption I want ...
5
votes
1answer
62 views

How to get caption of figure/table using table reference?

How can I get the caption of figures and tables using their references? Something along the lines of \refcaption{tab:mytable} would print This is a pretty table., which is the caption of the table ...
2
votes
3answers
48 views

Detect misplaced label in figure

I realized that I sometimes write : \begin{figure} ... \label{fig:foo} \caption{Bla} \end{figure} instead of: \begin{figure} ... \caption{Bla} \label{fig:foo} \end{figure} ...
1
vote
1answer
53 views

How to customize the chapter in front of figure page in listoffigures?

I am using the the packages \usepackage{url} \usepackage{graphicx} \usepackage{rotating} \usepackage[hypcap]{caption} \usepackage{hyperref} to include referencable graphics in my work. The ...
2
votes
1answer
62 views

Insert a reference in a caption?

After visiting wiki on labels and cross-referencing, a couple of tex sites (1,2), and a stackexchange solution, the following reference will not appear in the caption. I'm using pdflatex on ubuntu. ...
6
votes
1answer
68 views

caption+autonum+{a certain structure}=freeze

PDFLaTeX'ing this results in a freeze: \documentclass[12pt]{book} \usepackage{caption} \usepackage{autonum} \begin{document} \begin{figure}[ht] \begin{align} x=y \end{align} \caption{Caption} ...
0
votes
0answers
79 views

No caption label using minted with caption and hyperref

I'm trying to use the caption and hyperref with the listing environment and the minted package. If you compile the MWE, the listing will only show a number but no name. hyperref inserts a link, ...
3
votes
1answer
67 views

How do I refer in the text to a molecule drawn with chemfig?

I just found chemfig fantastic for drawing even difficult molecules. Now, I have a question: how can I put under the molecule a line with a caption like "Figure #: captiontext" and, even more ...
2
votes
0answers
45 views

Referencing figures when compiling with pdfLaTeX [duplicate]

I had a problem in referencing figures, which now I solved, thanks to an old answer by Werner. To be precise, in my case the reference was working properly (the hyperlink was pointing to the correct ...
3
votes
1answer
34 views

Preventing caption stoppers from appearing in references in ConTeXt

I would like to prevent caption stoppers from appearing in references in ConTeXt. Here is a minimal example: \starttext \setupcaptions[numberstopper=.~---~, distance=0em] \placefigure[][cow]{A ...
3
votes
1answer
81 views

Why does hyperref break the labels of subfigures with ContinuedFload?

This is a follow up to here: http://tex.stackexchange.com/a/130629/32245 When I insert \usepackage{hyperref} as last line of the preamble. The main figure (or the two continued figures) are labeled ...
4
votes
2answers
114 views

Referencing to subfigures in main caption

I'm trying to reference to subfigures in the main caption of my figure. Unfortunately I'm only getting blanks, not even undefined referencing ??. What's going on? \documentclass{report} ...
0
votes
1answer
314 views

figure numbering (via `\ref{fig-label-name}`) when using user defined `myCaption`

I want to change the font of Figure, and the caption text. I tried caption package. But \usepackage[labelfont=bf,font=it]{caption} raises an error Command \caption@ContinuedFloat already defined.. ...
5
votes
1answer
138 views

Change ref format for subfigures

I am using the captionand subcaption package with floatrow and would like to change how references with \ref are formated. First here is my captionsetup so far: \DeclareCaptionSubType[alph]{figure} ...
3
votes
1answer
292 views

Manually change caption label in subfig

In the example: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[h] \centering \subfloat[]{\label{first} ...
4
votes
1answer
304 views

custom sub-caption and refs format for subfigures

I've just read questions: Changing the subfigure caption by removing brackets & font of the subcaption Adding parentheses around subfig references How to put two images next to each other with ...
1
vote
2answers
298 views

Use \label and cross-references in xymatrix

Whenever I am trying to use \caption, \label and cross-references in xymatrix, it is not working. An MWE : \documentclass{book} \usepackage[a4paper,margin=.45in]{geometry} \usepackage{xypic} ...
0
votes
0answers
17 views

Different number in image caption and in ref to figure [duplicate]

I have figure with image like this: \begin{figure}[h!] \centering \label{fig:controlsOpacity} \includegraphics[width=120mm]{img/image_01.png} \caption{some text} \end{figure} then I am referencing ...
5
votes
1answer
151 views

Referring to function name in an algorithm

I have a LaTeX code which looks similar to the following example. \documentclass{article} \usepackage{amsmath,algorithm,algpseudocode} \begin{document} \begin{algorithm} \caption{My Algo.} ...
4
votes
1answer
129 views

1.a numbering of subfigures within a figure without a caption

I am using the subcaption package and write a caption for each of my subfigures. In order to get a reference to "Fig. 1a", I also have to write a "big caption" below all subfigures. But I don't want ...
2
votes
2answers
552 views

Get a table and figure on the same page with captions & labels

Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
1
vote
1answer
130 views

Captioning a figure with multiple subfigures all at once

I want to create a figure with subfigures, and then reference them from the caption of the main figure: \begin{figure} \begin{subfigure} A figure \caption{} \label{a} ...
6
votes
1answer
159 views

\autoref doesn't work correctly when used in tufte-book

i want to use the \autoref command (from the hyperref package) in the document-class tufte-book. mini-example: \documentclass{tufte-book} \usepackage{hyperref} \begin{document} ...
6
votes
1answer
568 views

Change caption of figure for references

I changed the caption of my figures running the following command (I'm using the babel package): \addto\captionsngerman{\renewcommand{\figurename}{Abb.}} If I use \autoref{$LABEL} to reference to ...
12
votes
1answer
2k views

Change format of reference to a subfigure

In my current document, I'm working with many subfigures. Normally, I like to refer to them using a style like Figure 1 b) where the space should be a halfspace, hence \, in the code. That's nice not ...
3
votes
3answers
526 views

Memoir sub table numbering wrong

I am using sub tables and it seems because I but the table caption above I get the wrong number in the sub table references. How can I fix this? I am pretty sure it is related to the package float ...
1
vote
1answer
130 views

Table number in ref inconsistent with actual table caption [duplicate]

Possible Duplicate: Why does an environment’s label have to appear after the caption? For convenience of readers, Table~\ref{table_abbreviation} lists the abbreviations and their full ...
2
votes
1answer
114 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 ...
6
votes
1answer
376 views

Legend referencing in caption *and* externalization

I am trying to make a reference to a plot inside a figure's caption while using the externalize library. The issue of plot reference using externalization has already been raised in this question. I ...
0
votes
1answer
54 views

More than one table per subsubsection is referred to by section number [duplicate]

Possible Duplicate: Table reference Why does an environment's label have to appear after the caption? If you compile the LaTeX below, you get section numbers for some references ...
6
votes
2answers
378 views

Two labels in one caption possible?

In a lot of journals it is common to have single digit figure numbers and denote parts in the figures as (a), (b), and so on. I wanted to use a similar style. After reading the documentation to the ...
0
votes
0answers
101 views

Wrong reference for figures? [duplicate]

Possible Duplicate: Why does an environment's label have to appear after the caption? Where to put the \label on a figure environment? I use \documentclass{llncs}, when I reference an ...
8
votes
1answer
846 views

eqref in captions with mathtools

I've now tried mathtools for the first time, for the sake of showonlyrefs. It works fine, except if I put an \eqref command into a figure caption, in which case I get: ! Argument of \@caption has an ...
9
votes
1answer
194 views

Numbering a figure with a symbol in a way that is compatible with \label and \ref

In a long paper, full of figures labeled as usual, there are two figures which I would like to single out and label with symbols. For instance, I would like to have them labeled Figure $\dag$ and ...
3
votes
1answer
2k views

Table and Figure Caption Citation Problem

When I build a LaTeX code, the references to figures and tables labels are not recognized, so latex builder prints "?" in the place. And simplifying the entire text I found out that even the simple ...
5
votes
1answer
7k views

cannot use \caption under minipage

I am using following code to import two images next to each other. When \caption{} is used, LaTeX gives me error caption outside float. \begin{minipage}{.5\textwidth} \centering ...
4
votes
1answer
358 views

Reference a table by caption created by ctable

Fixed in the new version of ctable ctan-ann: CTAN Update: ctable 26 May 2012 Might be a stupid question, but is there a way to reference, that means print, the caption of a ctable? hyperref ...
3
votes
1answer
4k views

\usepackage{caption} breaks references to tables

I'm formatting the listings captions as follows: \usepackage{caption} \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}} ...
4
votes
2answers
1k views

Hypcap not working with custom figure environment

I'm trying to use caption with hypcap=true so that cross-reference hyperlinks will go to the figure instead of the figure caption. However, I'm using a multicol environment with a custom figure ...
4
votes
2answers
707 views

Hyperlink to figure (reference) in PDF links to incorrect figure

I have a document with a few sections, I'm new to LaTeX so I'm just using the article class. I want the figure numbers to restart in each section. I did this with \setcounter{figure}{0} at the start ...
6
votes
1answer
297 views

Centered captions containing \vref may not always appear as expected

I've noticed that when centered captions contains \vref to some reference, the captions may sometimes not become entirely centered. I see this especially in my document where there are two figures on ...
3
votes
0answers
436 views

Incompatibility of caption and cleveref package [closed]

The following code produced a TeX capacity exceeded error \documentclass{scrbook} \usepackage{caption} \usepackage{cleveref} \begin{document} \begin{figure} Text \label{fig:figures:1} ...
3
votes
1answer
2k views

References won't resolve even after repeated compilation

I have the following lines: \begin{figure}[htbp] \label{fig:sampleconfig} \begin{center} \begin{tikzpicture}[level distance=1.5cm, grow=down, every node/.style={minimum ...
11
votes
1answer
552 views

Where to put the \label on a figure environment? [duplicate]

Possible Duplicate: Why does an environment’s label have to appear after the caption? I noticed that when I put the \label command before the \caption command in a figure environment, I get ...
7
votes
3answers
494 views

How does one create, caption, label and refer to a subfigure?

So its a fairly simple question to a problem people normally experience. I have a rough idea of what to do, but I am looking for the correct way of doing things. So in the solution I will include what ...
32
votes
2answers
2k views

Why does an environment's label have to appear after the caption?

\documentclass{article} \usepackage{algorithm} \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label ...
10
votes
4answers
12k views

How to reference subfigure in caption

I used to have code like this: \caption{In \subref{fig:foo:a} you can see...}. Now I switched to using memoirs subtop/subbottom command instead of \subfigure. How can I refer to that subfigure? As a ...
5
votes
1answer
587 views

How to \ref to subcaption numbers (a, b) when using memoirs subcaptions?

How can I get references to subcaption numbers when using memoir? In this example: \documentclass{memoir} \newsubfloat{figure} \begin{document} \chapter{Lorem} \section{ipsum} \begin{figure}[b] ...
2
votes
1answer
2k views

Multiple captions for a single figure

How do I get subfig-like captions for a single figure? I've got images that have multiple panels each, and I'd like to make a caption for all the sub-panels, as well as be able to reference each ...
2
votes
2answers
608 views

Where to add a caption and a reference to a tabbing&fbox&minipage

I put some texts enclosed within tabbing, embedded in fbox and minipage: \fbox{% \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} \quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= ...