{positioning} is about positioning document elements. Use this tag in addition to other tags specifying what should be positioned.
111
votes
2answers
12k views
How to influence the position of float environments like figure and table in LaTeX?
How to influence the position of float environments like figure and table in LaTeX?
This is a general question and should collect useful answers for all users. I hope we can use this as a reference
78
votes
7answers
29k views
Keeping tables/figures close to where they are mentioned
Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?
39
votes
2answers
3k views
How do I ensure that figures appear in the section they're associated with?
Often floats may land quite a bit later in the document than the point they are created, sometimes after a section break.
Is there a way to force a new section to start on a new page, after any ...
52
votes
2answers
71k views
Force figure placement in text
I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:
\begin{figure}[ht]
...
17
votes
4answers
3k views
How to avoid splitting tables between sections
I have 5 tables and a section after them. After creation of an output file I have two tables on one page, then a section and last 3 tables on next page.
What I want to achieve is to put tables and ...
57
votes
1answer
3k 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 ...
21
votes
2answers
876 views
tikzmark to have different behaviour if first run (and mark locations not yet available)
The macro \tikzmark has been incredibly useful to me, but do not like the default behavior upon first run.
So, I would like to be able to determine if this is a first run (where there coordinates of ...
37
votes
3answers
7k views
Why should a table caption be placed above the table?
In the papers I read the caption in figure floats is placed below the figure and in table floats the caption is placed above the table.
I recognize that this is a common style that a lot of people ...
17
votes
2answers
14k views
Table and Figure side-by-side with independent captions
Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch
------------ -----------------
TABLE
| a | b | ...
34
votes
1answer
3k views
Difference between “right of=” and “right=of” in PGF/TikZ
In the PGF/TikZ manual, sometimes I see the option right of=somenode instead of right=of somenode. They look very similar, but the effects are different. The distance between nodes positioned with ...
25
votes
1answer
3k views
Insert graphic at precise place on a page
I would like to put a small graphic in the bottom right corner of a the title page of an article. Is there a way to specify a precise location for a graphic on a page (that has text on it)?
I've ...
15
votes
2answers
2k views
How do I add an image in the upper, left-hand corner using TikZ and graphicx
This is perhaps a simple question with a simple answer, but I'm stumped as a tikz novice. What would be the best method to add an image (logo) file to the upper left-hand corner of my document?
...
9
votes
3answers
8k views
beamer: footnote text collides with navigation symbols
Footnotes in presentations are "usually not a good idea" (beamer manual, p. 130). Suppose, however, I have a valid reason to use the \footnote command in a beamer document (e.g., for printing a full ...
12
votes
2answers
1k views
How do I lower the \widetilde accent, i.e., move it closer to the variable?
I sometimes find that the \widetilde accents sits too high above the math letter it is applied to. An example:
To me it looks as if the first tilde is sitting just in between the two lines; it is ...
8
votes
1answer
549 views
How to protect text from being split by a float?
Given following situation:
\begin{figure}[ht!]
...
\end{figure}
\begin{equation}
...
\end{equation}
Some one-line text.
\begin{eqnarray}
...
...
\end{eqnarray}
how can I make ...
43
votes
5answers
1k views
How do you create pull quotes?
Does anyone know a package for pull quotes?
Failing that, is anyone interested in writing a command to create one? I'm thinking of something that would have optional and configurable separators ...
31
votes
3answers
1k views
Avoiding jumping frames in beamer
Sometimes I want an element on a frame to change in steps.
I do this by
\only<2>{
...
}
\only<3>{
...
}
etc.
But this causes the frame to jump due to different sizes of the ...
13
votes
1answer
4k views
Absolute positioning in beamer
It's easy to absolute position something using remember picture with TikZ, but it only works with pdfLaTeX.
I can get something working by using negative vskip and hskips (trial and error), but that ...
24
votes
1answer
10k views
How can I position an image in an arbitrary position in beamer?
I am making a presentation using beamer, and I want to be able to position a certain image the way I want in a frame. I am not sure how to do that.
Is there some way you can specify coordinates in the ...
13
votes
6answers
5k views
How can I crop included PDF documents?
I've got a PDF that is automatically generated from a certain piece of software, that I want to include in the report I'm writing. I'm using pdfpages which gets the job done elegantly, but the problem ...
10
votes
3answers
9k views
How can I get the figures not to be pushed to the end of the document?
For some reason, my figures get pushed to the end of the document. I tried begin{figure}[t], [h] and other options, but none helped. Any ideas how to get the figures to appear much earlier in the ...
19
votes
1answer
443 views
href to an image label - how to jump to the image instead of the caption below the image?
I'm using the following command to embed images in my LaTeX document (which is then rendered as PDF)
\newcommand{\img}[4]{
\begin{figure}[!hbt]
\centering
\vspace{1ex}
...
14
votes
2answers
23k views
How to fix table position
Table does not show up at the same position it was inserted in the TeX file. I got the understanding through bit of reading on this forum that they are floats and they pick the best place on the ...
14
votes
2answers
1k views
Figures on left pages, text on right ones with class book, numbering only on right pages
My problem is that I would like to have either blank or figures on the left pages, and text on the right ones, with the numbering of the right pages to be 1,2,3,4,5 and not 1,3,5,7.
It means, in a ...
12
votes
1answer
289 views
Force floats to be typeset after their occurrence in the source text?
AFAIK a figure or table should always be placed after the first reference to it in the text.
So I always place the code for my figures and tables after the paragraph which contains the first ...
46
votes
5answers
2k views
Is there no easier way to float objects and set margins?
I come from a HTML / CSS background and am used to a particular way of setting margins, floats, etc. As a beginner in TeX, I am having a hard time positioning elements, probably because my mindset is ...
14
votes
3answers
1k views
How to draw text-anchored tikz line below text instead of above?
I wish to mark several pairs of from/to anchor locations in text, and use tikz to draw lines between these. The anchors are not in absolute page locations; the text determines where the endpoints of ...
19
votes
9answers
2k views
Is there a way to get two pages in one with LaTeX?
I would like to have my document compiled with two pages in one using LaTeX, like what you see when you choose to print two pages in one. As my pages are "portrait", I need the page to be shown in ...
28
votes
4answers
21k views
How can I have two tables side by side?
Suppose I have two tables that don't have many columns (3, for example). How can I position them side by side?
13
votes
5answers
10k views
Caption on the side of a figure
Can anyone tell me how to get my caption on side of my figure, and at the same time aligned with the top of my figure?
12
votes
2answers
585 views
How to align a series of TikZ pictures at the baseline
I am trying to align a series of pictures made up of letters, using TikZ. Having tried almost all combinations of the baseline key it is obvious I am missing something. Here is a MWE
(currently ...
7
votes
3answers
2k views
How to put algorithm and figure(s) side by side?
How can I put an algorithm and figure(s) side by side?
Say,
XXXXXXXXXXX FIG ONE
XXXXXXXXXXX FIG ONE
XXXXXXXXXXX FIG ONE
XALGORITHMX FIG TWO
XXXXXXXXXXX FIG TWO
Please, only post working solution ...
21
votes
3answers
1k views
Tables below footnotes, is this a good output routine algorithm or a bug?
Consider the minimal code below, which produces two different layouts depending on the table position marks.
The first layout uses
\begin{table}
which results in the table ending below the ...
7
votes
1answer
486 views
How to place a float at the top of a floats-only page?
I just got a short algorithm on my page, and it keeps getting aligned at the center of the page. But I want to have it aligned at the top, what do I have to do?
3
votes
2answers
3k views
Set table position to top [duplicate]
some content
\begin{table}[t]
\begin{tabular}{c c c}
tabular content
\end{tabular}
\end{table}
\chapter{new chapter}
The output is:
First page:
some content
Second page:
table centered ...
17
votes
2answers
2k views
Margin Figures/Captions
I have two figure/caption related questions.
Firstly, in many textbooks, it is customary to put thin figures (along with their captions) entirely in the outer margin of the page. What is the most ...
10
votes
4answers
45k views
LaTeX figures side by side [duplicate]
Possible Duplicate:
Two figures side by side
I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but ...
17
votes
3answers
331 views
How can I set the TikZ label anchor explicitly?
I want to add a label to a node, but "inside" the node. Something like this:
The manual seems to indicate it might be possible, although no actual key is named.
The ... anchor point for the ...
14
votes
2answers
389 views
Image inside another image
I currently have some LaTeX code to have multiple images side by side:
\begin{figure*}
\begin{center}
\includegraphics[height=2cm]{foo11.jpg}
\includegraphics[height=2cm]{foo12.jpg}\\
...
6
votes
1answer
335 views
Margin floats and hyperlinks
I read Margin Figures/captions and the answers within. I have stripped the definition of the marginfloats from the tufte documentclass into the MWE below.
Can the definition of ...
9
votes
1answer
456 views
Theorem Name/Numbering in Margin
I have seen the previous discussion on this same issue before (see Theorem name and number in margin, note in text), however this did not resolve anything as clearly as I had hoped.
Basically, I ...
6
votes
2answers
586 views
Help aligning tables.
I need to align 1 table to the right and two to the left,
the layout I want to achieve is something like this:
\begin{figure}
\centering
\subfloat[]{%
\begin{tabular}[b]{cc}
\hline
0 ...
1
vote
1answer
2k views
Put a figure with a table side by side
I have a table and a figure, I want to align them one next to the other (not one under the other):
\documentclass{llncs}
\usepackage{capt-of}
\usepackage[demo]{graphicx}
\begin{document}
...
17
votes
4answers
671 views
How to set a letter to the margin of the page and position it vertically according to alphabetical order?
I would like to place a letter (that indicates which letter in the dictionary is shown) on the outer side of the book, set it for example in a darker box and position that letter vertically. Users of ...
21
votes
1answer
1k views
How to place all proofs automatically in appendix?
Can I place all proofs to theorems in appendix automatically? Usually proofs are written in the LaTeX codes immediately after the theorems. Without physically moving proofs to appendix, how can I ...
22
votes
4answers
1k views
Placing footnotes or endnotes at the end of the current paragraph
This question led to a new package:
parnotes
How can I get footnote or endnote text to appear right after the paragraph in which it was mentioned?
Update:
As my question lacks sufficient ...
12
votes
4answers
2k views
How to make a grid of images?
Is it possible to place 4 images in an 2x2 grid? I don't want to float them, I don't want any captions. Each image should have the same width.
Edit:
Thanks for all the answers. After trying it out, ...
9
votes
2answers
8k 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?
...
7
votes
1answer
463 views
Three-columns text with figures of 2\columnwidth
Although in multicol environment (not the twocolumn option in document class) is problematic to place floats, there are some ways to put figures within a single column or occupying the entire width of ...
12
votes
3answers
563 views
Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used
The problem
I'm writing a document where all of my equations are labeled, not by numbers, but by names, which I provide with amsmath's \tag command. I also use cleveref for ease of ...