{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)

1
vote
0answers
18 views

Why is TexStudio is rendering figure names next to my figures? [duplicate]

I am using the TeXStudio environment to write short documents, and all of my figures are rendered with part of the file name next to them. Here's an example: The code associated with this image is: ...
1
vote
0answers
32 views

Reference a picture [duplicate]

I am writing a PhD thesis. Sometimes when I reference to a figure the following problem occurs. In PDF the word Fig.[number of figure] are written in two lines (Fig. and [] are separated). How to ...
7
votes
2answers
30 views

How to put horizontal space between two side by side figures, then automatically scale the pictures to that new width?

I've been working on how to put side by side figures with captions for a book but haven't managed to find a way to put a horizontal space in between the two figures. There has been some troubles ever ...
1
vote
1answer
27 views

Frame around some figures but not all

I used this: \floatstyle{boxed} and \restylefloat{figure} to get a frame around all figures. Is there a way to switch the frame for specific figures off, but still using this two instructions in the ...
1
vote
1answer
32 views

Pause in beamer itemize environment with figures and then text

I am preparing for a presentation in beamer. Please see the following code, Ideally, I want "This is the first text line" to appear first, and then the figure to appear, and then "This is the second ...
1
vote
1answer
15 views

Need to insert a reference (right-centered) after a caption

I have a small problem. Please have a look at the Screenshot. What I need to do is to put one more empty line BEFORE (Khan et al., 2011, 30). When I try to do this, it always moves the citation back ...
2
votes
1answer
35 views

wrapfig not wrapping as required

Why isn't the text wrapping correctly here? code: \documentclass{article} \usepackage{tikz,amsmath,wrapfig,lipsum} \setlength{\parindent}{0cm} \setlength{\intextsep}{0pt} \begin{document} ...
0
votes
1answer
34 views

Strange problem of text relocating to a new page when I don't want it to [duplicate]

Best way to demonstrate this problem is with a screenshot. I've had to blank out the content for security reasons. As you can see, I have a page with some text which contains 1 complete section and ...
1
vote
1answer
44 views

Sub-figures of different sizes grid layout

I have two subfigures that I want to align as such: But what I got is this with the codes below: \documentclass{book} \usepackage{subcaption} \usepackage{pdfpages} \begin{document} ...
2
votes
0answers
41 views

Table on top or bottom [closed]

I am currently discussing with a colleague whether to put a table on top or bottom in proper documents (e.g., research paper). I once learnt to put figures on top and tables on bottom. I actually ...
3
votes
1answer
84 views

Fancy List of Figures layout/design

do you see a chance to design the "List of Figures" pages in a way such that it looks more fancy? I fiddled around for days now but could not find an example or good solution, not even with tocloft, ...
1
vote
1answer
19 views

Setting different environment setup depending on the location in two column (also considering the figure environment)

I asked about using listings environment to put the line numbers left or right side according to the location. Setting different environment setup depending on the location in two column The code ...
1
vote
0answers
30 views

\newtheoremstyle above space does nothing in beamer

I would like to change the space above and below a \newtheorem in beamer. I tried to use \newtheoremstyle, but nothing happens. Here is an example showing above space set to 3000pt which has no effect ...
5
votes
3answers
62 views

wrapfigure environment vspace above figure

I am trying to use wrapfigure to place a figure within my document and I have noticed something odd occurring. Code: \documentclass{article} \usepackage{lipsum,tikz,wrapfig} \begin{document} ...
0
votes
0answers
15 views

How to display the file name of a figure in a Latex document?

As I'm drafting a LateX document, I'd like to generate a PDF that displays somewhere the actual file names of the figures. I'm sure I saw something like that, but I cannot find it now. I know there is ...
0
votes
1answer
46 views

wrapfig followed by a list: items after the first does not wrap around correctly

When using the wrapfig environment followed by a list, the text of the first item of the list wraps around the figure. So, with the wrapfig that has a left placement, this text starts on the right of ...
3
votes
1answer
22 views

How to align text and floats on the top of text line in a two column environment

I have a LaTeX document below which generates two column text. When I insert a float environment, the top line between two column is not aligned. My question is how to align them. Thanks a lot. ...
2
votes
1answer
54 views

Avoid figure above section title [duplicate]

I am generally happy with where LaTeX puts the various figures in my document, except when it puts them on top of the title of its own section. This is particularly annoying if the section starts on a ...
2
votes
1answer
33 views

Locally put a float on a float only page on top

In this answer it is described how to place floats on a float only page on top with a global setting. However, I'm looking for a local solution which will effect only one float page. The other float ...
0
votes
1answer
35 views

how to force the image to be placed inline [duplicate]

despit i specified that the image must be place inline "among the text" using [h] command, at run time, the image is place at the end of the section how to set it right? latex: \subsection{item1 Vs ...
0
votes
0answers
17 views

How to show an image among text [duplicate]

i am trying to show an image in the middle of a section as shown in the latex code posted below. the problem now is, the image always is displayed at the top of the section "before the section starts" ...
0
votes
1answer
34 views

When a figure is on the page, a new one is moved to the next one?

Here is an example of a TeX code I use: \begin{figure}[h] \centering \begin{minipage}[b]{0.49\textwidth} \includegraphics[width=\textwidth]{a} \caption{some caption} \end{minipage} ...
1
vote
0answers
44 views

Autoscroll multipage figures, avoid jumps in overlays

I have a multipage pdf image and I want to put it into a beamer slide with an itemize environment in overlay. I want the page of the pdf image to automatically scroll each time an item appears. In ...
11
votes
2answers
229 views

Extract source code on the fly to a file?

I'm trying to create a programming text to use for my students. My goal is to have an environment (say, "code", for instance), so, if I type the following in my .tex file: \begin{code}{Sample script} ...
7
votes
3answers
178 views

Formatting figure captions overlayed with TikZ

I am using full-page figures as cover images for chapters, see Marginless full page figure with caption overlay magazine-like. However, I am unsatisfied with the format of the caption. The following ...
2
votes
2answers
94 views

Controlling the Position of Floats (Images) in a Document / Images have the Wrong Position

My LaTeX document just doesn't get the format I need. The images are floating all over the document, the /pagebreak and newpage seem to just ignore my order. I don't get what I'm doing wrong. Why it ...
1
vote
0answers
67 views

Problem with Figure [duplicate]

If I do the following: \begin{figure} \includegraphics[width=0.5\textwidth]{steiner-output.jpg} \caption{Visualisation of connected brain regions using Steiner minimal tree.} ...
2
votes
1answer
29 views

Including two graphics, first is depicted instead of second

I want to integrate two different graphics into my document. The first one works like this: some text... \begin{figure}[h!] \includegraphics[natwidth=538,natheight=540, scale=0.5]{../gfx/pic1} ...
3
votes
0answers
32 views

Float environment closes to first reference

I keep writing my text, and possibly even shuffling the content a little bit. So I might really mis where a figure is first referenced. To solve this, I put all my figures in figures.tex file (a ...
1
vote
1answer
38 views

Footnotes for a table

My question is so simple and straightforward. How to make footnote for an element of a table? \begin{table} \centering \label{priority list} \begin{footnotesize} ...
4
votes
2answers
71 views

How to make LaTeX optimize floats/tables placement if order doesn't matter

I have a bunch of tables that their order in the document doesn't matter. How can I reduce empty space to a minimum and make it more visually appealing? All the tables are in a separate chapter with ...
1
vote
0answers
27 views

Problem in referring at figures [closed]

Today I am having hard times to find why after compilation each labeled figures along the code gives always the same reference to the same figure number namely to figure (1.0.1). Surprisingly that ...
1
vote
1answer
41 views

Usage of include (graphics, section's and only)

I'm working on my master thesis in LaTex (using TexMaker). I'm a bit new but getting the hang of it. At the moment i'm making my sections in different tex documents. For example, i have an abstract, ...
3
votes
2answers
52 views

Including figures in custom environments.

In my preamble I have the following custom environment that is counted. \newtheorem{exmp}{Example}[section] When I call this in the text I always write the following piece of code, \begin{exmp} ...
2
votes
2answers
41 views

How to put some text after an algorithm?

I need to have some text place AFTER an algorithm. Here is an MVE: \documentclass[12pt,addpoints]{exam} \usepackage[section]{algorithm} \usepackage{fixltx2e} \usepackage{algpseudocode} ...
0
votes
0answers
30 views

What is the algorithm for float placement? [duplicate]

As discussed here on Meta, I wanted to know what the algorithm for placing floats is but did not find the corresponding question and answer as easily as I expected beforehand. Therefore, here I'm ...
1
vote
1answer
36 views

How to limit the size of figure+caption?

I do have my figures (and tables) sometimes with several lines long caption. I am trying to fill out my pages optimally, so I put the payload content in a \maxsizebox. In most cases it works fine, ...
0
votes
1answer
35 views

Problem integrating images with new template

I'm having problems displaying my figures in the new template in which I need to hand in my paper. All the figures are in the same folder as the tex file, and I'm not getting any error messages. ...
2
votes
2answers
38 views

Table floating between subtitle and subsubtitle

Using IEEEtran I have a table under subsubsection, which is under subsection. But the table appears between those two. Using the float package does nothing. Only if I write something after ...
0
votes
2answers
61 views

centering equation and caption in Inderscience template

Below is my minimal code..It is an inderscience single columned template. I have two problems: First is, I would like to bring the equation somewhere near to the center. In my code it is aligned to ...
3
votes
1answer
56 views

TexShop/El Capitan update: some figures not showing

So I updated to El Capitan and I reconfigured the Latex paths from /usr/bin/ to the /Library/Tex/ etc. and my document compiles fine, with no error messages in the screen output, EXCEPT certain .eps ...
0
votes
0answers
21 views

change the position of sub-figures [duplicate]

I use the following \documentclass{article} \usepackage{graphicx} \usepackage[caption=false]{subfig} \begin{document} \begin{figure}[htp] \centering \subfloat[Zeroth]{% ...
1
vote
1answer
30 views

Extended figure caption for table

I would like to extend again a bit further my extended figure caption to account for tables as well. Previous questions are Hypertarget pointing at \thefigure Automatically "protect" new ...
2
votes
1answer
38 views

Can I insert a table when I'm using overpic?

I want to do something like this: \begin{figure}[H] \centering{ \begin{overpic}[scale=0.3,grid,tics=5]{???}\label{???} \tiny{ \put(80,55){\begin{table} \centering ...
1
vote
0answers
34 views

Figures displacing text in two column layout

I have a two column layout (set in the document class) with text and a figure. I've stopped the abstract being split by using: \twocolumn[ \begin{@twocolumnfalse} \maketitle ...
3
votes
1answer
90 views

Longtable exceeds page length

Situation: I am using rmarkdown and xtable to iterate the creation of several tables, and output them in Latex to create a PDF. Given that most tables are long, Im using Longtable package. Also, i ...
1
vote
2answers
47 views

ConTeXt: Suppress figures from inclusion

Background Using pandoc to convert markdown source text into a .tex file. The .tex file is fed to ConTeXt. There are two different styles. One for a polished version and one for a manuscript ...
3
votes
1answer
36 views

Personalized floatstyle

I would like to personalize some floatstyle. Here is my MWE: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
1
vote
1answer
53 views

Side by side figures portrait landscape

I am trying to include two figures one is of portrait kind (tall) and other landscape (wide) kind. I am using the code as below \documentclass[11pt]{scrbook} \begin{document} \begin{figure}[ht] ...
2
votes
0answers
24 views

Caption below figure when using \put and \picture

I've been attempting to place the caption below using {put} and {picture} (using put is required as the pdf is larger than the textbox). However, I have not been able to make the caption appear below ...