{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
1answer
662 views

CJK package and \figurename

I'm using the cjk package to typeset a Japanese document, but somehow can't change the \figurename into CJK. I tried in the preamble, \renewcommand{\figurename}{図} but it only give me an empty ...
16
votes
1answer
33k views

Article appendix with sections and toc entries in the form “Appendix A”

I have been trying to get the appendix for my thesis done. I've read a lot about it and as always you can chose between a fiddly way and a magic package that doas the job to solve a problem (I usually ...
10
votes
2answers
10k views

Use caption and long description for figure

I want to have to following text at my figures: << FIGURE >> Figure 1: Title of my figure which is displayed in the list of figures Here in a new line a long description about the figure, ...
2
votes
2answers
3k views

Problems with alignment with landscape table

I'm writing a paper that includes a number of tables. Until now these have been in standard table* format, i.e. \begin{table*} \caption{Caption} \label{label} \begin{center} ...
7
votes
1answer
6k views

Space after float with [h]

this is my first time here, and I have this question: I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space ...
3
votes
1answer
991 views

multicols, lstlisting and float

Using the following structure, how can I get the listing to stay on the same page, be it at the top or the bottom? \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage{multicol} ...
0
votes
2answers
650 views

Table float sits at the bottom, while leaving an empty space in the middle of the page

I have trouble arranging the floats on the pages. See for example the screenshot below: Why is it happening like this? there is only this much text in this particular subsection, so why doesn't latex ...
1
vote
1answer
6k views

Subfigures placed horizontally

I want to place two or more figures on top of the two-column page next to each other (horizontally). However, for some reason I can't do this. This is the code that I use, it puts the second figure in ...
0
votes
1answer
1k views

How to fix the location of tables when they're imported with \input? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned I'm using MiKTeX and TexMaker 2.2.2. Using the latabstat command in Stata I create small tex files of some ...
3
votes
1answer
5k views

How to control figure numbering in Lyx

I have a single figure in a Lyx document, and it is part of a paragraph which itself is part of a section. It is expected that Lyx will produce a caption for it as 'Figure 1: ....', however, the ...
81
votes
1answer
7k views

How to include a picture over two pages, left part on left side, right on right (for books)?

When writing a long book (from 300 to over a 1000 pages), there is often need to include large pictures and one wishes to have them displayed over two pages, left half on the left page, right half on ...
1
vote
2answers
1k views

error in memoir: Command \newfloat already defined

Using this preamble: \documentclass[pdftex,11pt,a4paper,openany]{memoir} \usepackage[brazil]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{indentfirst} \usepackage{latexsym} ...
5
votes
1answer
2k views

Set up sidewaysfigure to have the bottom of the figure toward the spine

I am typesetting a book. There are a couple figures that are wider than they are tall, and appear too small if placed on a page in the usual fashion. I have found that using the sidewaysfigure ...
11
votes
2answers
12k views

How to insert figures in two columns?

In my case the figure disappears. \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{multicol} \usepackage{lipsum} \usepackage{tikz} \begin{document} \begin{multicols}{2} ...
14
votes
2answers
13k views

Table numbering mismatch in caption and in text

I have created 2 tables in my LaTeX document \begin{table}[hb] \centering \begin{tabular}{|c|c|r|} \hline ... not important... \end{tabular} \label{tab:2} \caption{Določanje prioritet mojstrov ...
14
votes
3answers
12k views

How to refer a figure as a table?

I have a question regarding LaTeX .. I have a table from an excel file which I print screened and posted as a figure in LaTeX. However, I want to make it a table. Problem is, the particular table has ...
5
votes
3answers
2k views

How to patch a floating environment so that the patched command floats

I'm using etoolbox to patch some environments. I want to use \AtBeginEnvironment{table}{\marginpar{foo}} to put something in the margin by the float. But the marginpar is typeset where the environment ...
24
votes
2answers
30k views

How can I reduce padding after figure?

\documentclass{mwrep} \usepackage[draft]{graphicx} \usepackage{hyperref} \usepackage[all]{hypcap} \makeatletter \g@addto@macro\@floatboxreset\centering \makeatother I use figures with captions. ...
1
vote
1answer
629 views

Renew command begin figure? [duplicate]

Possible Duplicate: Macro for figure position? Is it possible to make change that changes all instances of \begin{figure} into \begin{figure}[h] ?
11
votes
2answers
5k views

Wrapping text around multiple figures

I am a beginner in LaTex, but I have to to do this in a hurry: I need to write a macro to handle 2 cases (or one macro for both). 1st case: i have 1 - 3 pictures on the right side, and the left ...
23
votes
5answers
15k views

How can I automatically center an image?

I use: \documentclss{mwrep} ... \begin{figure} \includegraphics{a.jpg} \caption[Long caption]{Caption} \label{pic-a} \end{figure} How can I make images to be always visible on the center of page? ...
12
votes
3answers
742 views

Extended draft mode which includes source information for manual print-out to source synchronisation

I'm looking for a kind of extended draft mode which places the source code position of paragraphs, sectioning commands and figures etc. as marginpars or similar in the PDF, so that they appear on a ...
24
votes
2answers
42k views

How to force table caption on top?

I have a table which works ok...as per example below. But in the thesis, the right column is centered and caption forced to below table. Is there a way I can make it look like? ...
3
votes
3answers
2k views

Create caption without float *and* without caption package?

In the appendix of my thesis, there is a large number of tables and longtables which does not need to float, as they shall appear one after the other just how they fit on the pages (and it is no ...
4
votes
1answer
6k views

sidewaystable vs landscape environment (pdflscape-package) for landscape tables spanning double pages

As explained in several other posts, I'm currently trying to create wide tables. The document is in portrait format A4, but the tables shall be typeset in landscape format. As the tables have more ...
16
votes
4answers
26k views

Forcing a figure strictly on a separate page

How can a figure be forced to appear alone on a separate page? \begin{figure}[p!] forces it to a separate page, but it does not guarantee that some other small figures (which I'd like to be included ...
19
votes
2answers
31k views

How to remove figure label?

I'm using floatrow package to organise my figures, but then would like to add an image in the preliminary chapters which should NOT contain figure label e.g. Figure 1, but only the caption To my ...
5
votes
1answer
2k views

\small wrapped around table doesn't work

Nothing happens, even though I've applied \small around the table. No observable change in font size. Howcome? \documentclass{article} \usepackage{booktabs} \usepackage[T1]{fontenc} ...
4
votes
1answer
520 views

Creating an environment able to span over multiple pages or columns

I'm trying to create an environment able to understand when it's on a single/two columns layout and to span over multiple pages or columns having different style for the two cases. I would want to ...
5
votes
1answer
227 views

Getting floating objects in multicol environments

I am using multicol with 2 columns, and I would love to have my figures and tables to float, so that I don't have to manually mess around with the positioning anymore. I am aware of figure*, but I ...
6
votes
1answer
409 views

Rotate a placetable/placefigure plus caption in ConTeXt?

I've a large table, which I want to rotate to fit onto one page. My current solution looks like: \placetable{some text} {\rotate[rotation=90]{ \starttable[...] .... \stoptable}} But ...
8
votes
2answers
7k views

Listing and Tabular in Multicols enviornment

I want to use the multicols environment to display a listing beneath a table: \begin{multicols}{2} \begin{lstlisting}[] ..... \end{lstlisting} \columnbreak \begin{table} \centering ...
5
votes
2answers
535 views

Centered, wide float [duplicate]

Possible Duplicate: Balancing figure that is wider than document's width I have a table which is just too wide for the page. I'd like to be able to float it, centered across the text, ...
0
votes
0answers
110 views

How can I restrict the placement of images? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned It is there any chance to stop the auto-inversion of the images from a pdf (generated with MiKTeX 2.9) file? ...
4
votes
2answers
419 views

Commutative Diagrams in Table of Figures

Should one treat commutative diagrams as figures within the figure environment? If not, is there a way to add a label/caption and have the page number and caption show in the Table of Figures (without ...
6
votes
1answer
11k views

How to bind figure (table) to a section? [duplicate]

Possible Duplicates: How to avoid splitting tables between sections How do I ensure that figures appear in the section they're associated with? I have the following problem: when I ...
2
votes
1answer
607 views

sidesubfloats… why does this errored code work and my “correct” code doesnt?

I use the following code to get a 3 x 3 figures with automated labels that range from a-i. As you can see there is an error in the code, I use sufloatrow instead of 'subfloatrow' a few times. ...
14
votes
1answer
3k views

Adding word 'Table' before each entry in list of tables

I need to prefix each entry in list of tables and figures with appropriate text - table or figure for each. Also I need to remove chapter numbers from list, because tables are numbered consequently ...
2
votes
0answers
1k views

Figure not properly placed overlaps text [closed]

I am having problems inserting a figure in my LaTeX file. Here is the code that I use \begin{figure}[hbp] \centering \includegraphics[width=20mm, height=20mm]{Wheatstone.jpg} \caption{Wheatstone's ...
1
vote
1answer
4k views

Figure inside leftbar environment generates error “Not in outer par mode”

! LaTeX Error: Not in outer par mode. I seek a solution to be able to make this figure inside leftbar environment work: \documentclass[12pt]{article} \usepackage{graphicx} \usepackage{framed} ...
20
votes
1answer
38k views

How to control the position of floating images? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned I want to make it like this: text image text image But even if I put [h!] to the position the figures, the ...
3
votes
1answer
212 views

Reduce vertical space at the bottom of a 'ruled' 'newfloat'

I have defined a custom float using the newfloat command from the float package. My custom float uses the ruled style, defined in the same package. This is a minimal example of what I'm doing: ...
3
votes
2answers
318 views

How can I place tables after first \autoref when tables are all defined in one place or contained in a separate file called by \input?

Background I have a set of tables that can be automatically generated (specifically, a set of database table descriptions generated by phpmyadmin). I would like to include each tables in the ...
8
votes
1answer
3k views

How to change “Listing 1. Caption” to “Figure 1. Caption”?

I have a listing like so: \lstset{language=Python,caption={Caption}} \begin{lstlisting} some Python code goes here \end{lstlisting} In the PDF this appears as Listing 1. Caption. How can I make it ...
16
votes
1answer
6k views

Reference to a figure uses the section's number

One of my sections seems to be using the section number rather than the appropriate figure number for \ref's that point to figures. (Theorems and the like work fine.) As far as I can tell, there's ...
1
vote
2answers
7k views

Text floats over figure in latex

I just need to insert a figure in the latex document I am writing -nothing big.Problem is the text keeps floating over the figure and the figure is not centered.Here is my code \begin{figure}[h!] ...
8
votes
1answer
385 views

How do I create a new command \listofcodes in latex?

In addition to tables and figures, I have a bunch of code pieces. Just like follows: \begin{figure} \lstinputlisting[ language=C++, breaklines=true, keywordstyle=\color{blue}, ...
6
votes
4answers
1k views

How to get a big table on a page with pagestyle empty?

In my document I have a table that is quite big. I would like to have this table on a page with no header and no page number. How can I get this table on a \thispagestyle{empty}? Using it withing the ...
3
votes
1answer
4k views

How to place the figures in LaTeX document?

Although I am putting the figures after some subsection, they do not appear in which I am putting in them.
2
votes
1answer
133 views

Overhead captions with short final line in combination with a relativly thin float look unpleasant

I'm using the caption package and have a relatively small table with a caption above with a short final line. In the the case of the equation environment, it will spot this and move the equation up if ...