Tagged Questions

{floats} is about the floating environments figure, table and other, custom-defined floats, and concerns issues such as positioning, labelling, captioning, indexing and listing of said floats. For questions specifically about formatting a float caption, consider using {captions}.

learn more… | top users | synonyms (2)

13
votes
1answer
269 views

How to make figure and listing share their counter

I'm using the "listings" package to write pieces of code (XML, RDF, Java, etc) and I want them to have the same counter of the Figure environment. For example, Listing 1: blablabla Listing 2: ...
0
votes
1answer
47 views

Inserted image is at the top of the page [duplicate]

I'm trying to insert an image into my paper however it's being inserted at the very top and not where I want it, my .tex file looks something like this: % Bunch of text here, \begin{figure} ...
4
votes
2answers
115 views

Temporarily resetting figure counters within a chapter

The code below works perfectly in an article (permitting me to put two captions in the same figure and have one of them called Table, picking up the table counter—there’s a sensible reason for doing ...
2
votes
1answer
76 views

Figbib not working?

I'm new to TeX and didn't find my answer anywhere else. I use TeXmaker and I want to use figbib for managing my figures. Unfortunately, I don't even get the sample file working. I followed the steps ...
0
votes
0answers
92 views

Line break in the caption of subfigure

I would like to add a line break in the caption of a subfigure: \begin{figure} \subfigure[a long line]{% \includegraphics[width=0.23\textwidth]{figures/cells_time.eps} } \end{figure} So I ...
3
votes
1answer
75 views

Is there a list of <float> in ConTeXt?

In LaTeX we have \listoftables, \listoffigures, and so on (at least thats the name as far as I remember). Is there something to achive similar in ConTeXt? My first thought was to define a register ...
4
votes
1answer
530 views

Caption below boxed algorithm2e when used as a figure?

My desired output is similar to the example given in this answer, in that I want the caption below the algorithm and outside the box, except I want the algorithm included as a figure (so I use ...
0
votes
0answers
44 views

Increase the gap above table

I am aware that this might be a duplicate of: How to change the spacing between figures/tables and text? I've tried the methods described there but none of them increases the gap before the table for ...
1
vote
1answer
221 views

Figure caption missing

I have this LaTeX document: \section{header} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ...
0
votes
1answer
202 views

.svg included incorrectly in two-column IEEE conference template

Unlike other figures, my .svg figure is never in the middle of the column and its right part is out of the page. Here is my MWE: \documentclass[conference]{IEEEtran} \usepackage{natbib} % for the ...
2
votes
4answers
352 views

Align pictures in subfigure

I'm having troubles with the subfigure package and proper alignment of figures. I'm inexperienced with Latex so please apologize obvious mistakes. The top-left figure is not properly aligned with the ...
2
votes
0answers
178 views

Reduce gap between a figure and a paragraph

I put 2 figures side by side as follows: \begin{figure} \centering \subfigure[a long sentence a]{% \includegraphics[width=0.23\textwidth]{figures/cells_time_23h29.eps}} \subfigure[a long ...
3
votes
1answer
55 views

Add \centering to all subfigures in subcaption using \g@addto@macro

I'm trying to center subcaption subfigures as outlined this answer. However, compilation fails with ! Argument of \subcaption@minipage has an extra }. <inserted text> \par ...
2
votes
1answer
521 views

Rotating: Sideways figure with Section title

Is there any way I can fit a sideways figure using the rotating package onto the same page as the title of the section? \documentclass[a4paper,12pt]{article} \usepackage[applemac]{inputenc} ...
21
votes
2answers
14k views

subfigure and subfig packages deprecated

I was using the subfigure package to align multiple small images in a document. However, WikiBooks states that "the subfigure and subfig packages are deprecated and shouldn't be used any more" ...
1
vote
1answer
218 views

How to modify the label output in cleveref and varioref?

EDIT: The mentioned solution on the bottom of this page works perfectly for the label output. But now I am struggling with the distance of the \crefname and the counter. Instead of a space I would ...
8
votes
1answer
112 views

Changing Figure Numbering depending on how many occur in an \item

While trying to typeset examination papers in LaTeX, I've become the victim of shifting figure numbering standards laid down by my institution. The old way required figures to be numbered like this: ...
1
vote
0answers
576 views

latex figure (or table) in a new page

I'm curious what's the best way to get the table of figure to appear on the next page in your document. I've tried the \newpage command, which works but is a hassle as I basically need to declare it ...
1
vote
0answers
121 views

How to avoid pagebreak in two-column article [closed]

I'm having some problems writing an 2-columns article with IEEEtrans document class. After compiling my file, I keep finding a page break without it being completed (check figure). It starts a new ...
5
votes
2answers
73 views

Float right aligned text around a text snippet in first line of a paragraph

I have right-aligned paragraphs and want to float text around a little text snipped, which should be placed in the first line of the paragraph at the right side. How can I achieve this? The LaTeX ...
2
votes
2answers
75 views

How to: put definition of figures together, then generate picture at different places

A little explanation: For better writing experience, I want to organize all definition (I mean \begin{figure}... stuff) of figures into one file, and \input it to my main .tex, then generate the ...
0
votes
0answers
88 views

Figure not printing

I have about 20 figures in my document. All of them compile and I get a nice pdf output but when I print a paper copy of my document, only the pages containing the first couple of figures print and ...
5
votes
1answer
86 views

dpfloat isn't obeying my leftfullpage and fullpage directives

I'm using dpfloat for figures which are large (or have large captions) so I can have the caption on the left-hand side and the illustration on the right. It works until about page 50 of my ...
2
votes
1answer
76 views

suppressing captions of figures but keeping list of figure captions?

I have very long figure captions in a book. I use: \listoffigures to create a listing of these captions right after the table of contents. The figures themselves are given in each chapter. Is there ...
1
vote
1answer
93 views

Figure placement [duplicate]

How does one make a figure appear precisely where it is placed in the coding, as opposed to the top of the next page? This is an issue for me currently.
3
votes
1answer
86 views

subfig reference layout

I have the following working example \documentclass{article} \usepackage[subrefformat=parens,labelformat=parens]{subfig} \begin{document} \textbf{Error} This should say Fig. 1\textbf{a}, not ...
7
votes
1answer
83 views

Numbering figures and tables in a problem set

A standard problem set from a physics textbook is divided into sections, with problems numbered sequentially from start to finish (i.e., not resetting in every section). Tables and figures are ...
4
votes
1answer
204 views

Resize figures that are too high or too wide in LyX?

I would like to know how to define a preamble in Lyx to resize the width and the height if the figure is too wide or high. I've already tried this: \usepackage{graphicx} % Determine if the image is ...
0
votes
1answer
125 views

How to fit a table of figures with various sizes into a page

I'm trying to fit four figures with various sizes into a table on one page. I started with the following code, but couldn't figure out how to get it work. How can I achieve that? begin{figure} ...
5
votes
1answer
62 views

List of floats with the number of pages

A big issue is how to control float placement. I don't want to stress this problem but I would like to get an automatic overview over problem. What I mean: Is there the possibility to get a list with ...
5
votes
2answers
374 views

Error : Too many unprocesssed floats, multiple figures single page

I am trying to include 3 figures on a single page. I tried the following code: \begin{figure}[t!] \begin{center} \includegraphics[scale=0.5]{images/Figure1.pdf} \caption{Figure 1.} \label{fig1} ...
1
vote
1answer
797 views

Caption below lstinputlisting in multicols + redefining lstlisting caption format

I have 2 problems with caption for lstlisting. I can't get the caption of lstlisting to go below the list when it's in a multicols environment. Although I've added ...
4
votes
1answer
91 views

In apa.cls [man] mode, how do you get the table to go with text?

My table consistently skips to the very last page! Is this simply a function of the doc mode? I have tried various float controlling methods like \FloatBarrier, etc., but nothing has been successful ...
1
vote
1answer
135 views

increasing margins for a single page in KOMA class

I am using the following KOMA document class \documentclass[12pt,captions=nooneline,DIV=14, parskip=half]{scrartcl} everything is fine except that at one point I include 4 pictures in one single ...
5
votes
2answers
145 views

Is there any way to shift two \includegraphics images? Having trouble with \begin{figure}

I am trying to put two images into my latex document. I want the format to be 2 (a) Text text Image Image Text text When I do the following %2a \item Here are the histograms of M and A values. ...
0
votes
1answer
95 views

How to keep figures before the references in a paper in LaTeX? [duplicate]

I have a paper with 30 figures. I added all the figures before conclusion section. But after compiling the document, 10 figures are placed into the middle of the document and after the references. I ...
4
votes
1answer
160 views

split longtable over even and odd pages (2)

I am a first-time user of LaTeX, trying to typeset my thesis. My problem is that some of my tables are large and do not fit on a single page; both in length (many rows) but some also in width (many ...
4
votes
1answer
2k views

Using \footnotemark / \footnotetext trick for \footnote in \caption removes footnote number

I had the issue of having two footnotes appear in \caption in a figure-environment. Fortunately, this answer (Using \footnote in a figure's \caption) provided a solution. My code is as follows: ...
0
votes
1answer
68 views

Image positioning in new page [duplicate]

If i use the following code, my image is placed in the center of the page, horizontal as vertical. I think this happens, because the section above ended on the page before. I want it to go to the top ...
3
votes
2answers
96 views

Stacking floats vertically

How do I stack say three floats on top of each other vertically such that the height of each plot is approximately the third of the text height of the page? (i.e. so they all fit including captions ...
5
votes
2answers
1k views

Figure caption alignment screwed when using line break

I am having trouble with figure captions when I need a manual line break. \documentclass[A4]{book} \usepackage{subfig} \usepackage[top=35mm, bottom=38mm, inner=40mm, outer=24mm]{geometry} ...
3
votes
1answer
168 views

ConTeXt figure placement

For years I've used a LaTeX macro that allowed me to embed figures into my text with relatively little fuss. I could type something like: A typological comparison (see Figure \Fig[Caption ...
2
votes
2answers
118 views

Table way out of margin

I have a really long table and it is out of margin. I read other post about this issue but I still cannot figure it out: \begin{table}[htbp] \begin{center} ...
6
votes
1answer
1k views

How to keep multiple figure together

I have 6 graphs that I have to keep together while showing. I have to make them almost same width as text width, otherwise the graphs will not be properly seen. So I cannot add them side by side but I ...
0
votes
0answers
22 views

Cleveref breakup on figure references [duplicate]

Consider this MWE: \documentclass[a4paper]{article} \usepackage{graphicx} \usepackage[dvips]{hyperref} \usepackage[noabbrev,nameinlink]{cleveref} \begin{document} \section{Abc} \begin{figure} ...
2
votes
1answer
74 views

About the distance between the caption and the main body

I found that there is too much space between the caption of the figure and the main body. (The caption is below the figure). I don't know how to reduce the distance among them? the code I use now is ...
2
votes
1answer
89 views

Moving equations and aligns into outer margin

I have rather narrow text width, so sometimes I have to move floats to the outer margin. In case of drawings and tables I use command \widefloat defined below \documentclass[11pt]{scrbook} ...
11
votes
3answers
2k views

Generating a separate pdf file of tables and figures from a latex file?

Is it possible to generate a pdf of figures and tables of a paper from latex itself? I saw Journals and Conferences asking for a separate file of tables and figures. In this question, questioner ...
6
votes
2answers
159 views

Problems with \ifthispageodd

I am using KOMA script for my document. Occasionally, I have a float that is wider than text width, and I want the float to be pushed into the outer margin. This is why I defined \widefloat command, ...
3
votes
0answers
47 views

Duplicate captions problem with figure [duplicate]

I am a beginner in LaTeX. I used the LaTeX example to insert a figure in my thesis. Here is the code: \begin{figure}[ht] \centering \includegraphics[width=\textwidth]{figs/#####.jpg} \vspace{0in} ...