{positioning} is about positioning document elements. Use this tag in addition to other tags specifying what should be positioned.

learn more… | top users | synonyms (1)

317
votes
2answers
123k 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
161
votes
2answers
299k 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] ...
155
votes
9answers
106k 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?
89
votes
3answers
23k 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 ...
77
votes
1answer
6k 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 ...
73
votes
5answers
28k 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 ...
66
votes
1answer
10k 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 ...
65
votes
4answers
297k 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 could ...
62
votes
4answers
75k 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?
56
votes
5answers
3k 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 ...
54
votes
5answers
3k 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 ...
49
votes
5answers
26k views

Rotate node text and use relative positioning in TikZ?

In TikZ, I sometimes want to rotate the text within a node and then position the node relative to another. However, the approach below doesn't work as expected: \documentclass{standalone} ...
48
votes
1answer
1k views

Toward a Stamper Package

Imagine that you want to simulate a hand stamp on every page in some large documents. It must be an imperfect print, with random page-to-page variations in ink intensity, fading, rotation and blur. ...
46
votes
2answers
72k views

What does [t] and [ht] mean?

I would appreciate if someone could tell me difference between [t] and [ht] in the following example? I don't see a difference in the output pdf file. \begin{figure}[ht] ... \end{figure} and ...
43
votes
5answers
3k views

Automated Newspaper Layout (with TeX and abroad)

Update: I'd like to revive (and revise) this question a bit because there have been some recent developments, and furthermore I would be happy to encourage some up-to-date discussion. I'm thinking ...
41
votes
4answers
5k 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 ...
40
votes
4answers
86k views

Force LaTeX image to appear in the section in which it's declared [duplicate]

Possible Duplicates: How do I ensure that figures appear in the section they're associated with? Keeping tables/figures close to where they are mentioned How can I force an image in a ...
40
votes
4answers
20k 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 ...
39
votes
5answers
34k 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 ...
33
votes
2answers
45k 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 | ...
33
votes
3answers
77k views

How to use the placement options [t], [h] with figures? [duplicate]

I want to control the placement of figures. The paper that I am currently writing contains a lot of figures, resulting in some figures ending up in the bibliography section. Therefore I want to ...
32
votes
7answers
23k 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 ...
31
votes
4answers
570 views

Where do I place floats in the source?

I realize that this is an embarrassing simple question. Shall I put the floats, e.g. \begin{figure} . . \end{figure} in the source immediately after first reference? or wait until the end of the ...
31
votes
1answer
3k 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 ...
29
votes
6answers
39k 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?
29
votes
1answer
9k 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 ...
28
votes
2answers
219 views

Overlapping figures on underfull page

The following example gives me overlapping figures (figures overlapping themselves and figures overlapping the text) as can be seen in the image below. I can work around this if I change the ...
27
votes
7answers
38k views

Inserting a small vertical space in a table

Is there a way that I can insert a small space in a table? When I use a superscript, the number touches the \hline. \documentclass[9pt,letterpaper]{article} \usepackage{helvet} ...
25
votes
4answers
3k 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 ...
25
votes
4answers
2k 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 ...
25
votes
3answers
4k 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 ...
25
votes
1answer
961 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} ...
24
votes
3answers
8k 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 ...
24
votes
4answers
35k views

Reduce space between enumerated items

Background A book with lots of images. All of the images are set to "here definitely" (as they must come after the text that introduces them). Problem The list types (enumerated and bullet) have ...
24
votes
3answers
803 views

What are the ways to position things absolutely on the page?

I know that there is tikz, but also eso-pic and textpos. I'd like to see a list of possible ways (not necessarily packages) for absolute positioning of things (which I believe amounts to "boxes") on ...
24
votes
2answers
17k views

How to place a table on a new page with landscape orientation without clearing the current page?

I'd like to place a table on a new page with landscape orientation. To do so, I use \usepackage{pdflscape} ... \pagestyle{empty} \begin{landscape} \begin{table}[htbp] \begin{center} ...
23
votes
4answers
8k 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 ...
22
votes
2answers
7k views

Tikz: Arrowheads in the center

For arrows I have gone through options like ->, ->>, <-, <<- but havent found one for making the arrowhead appear in the center of the line of the curve (something like ->-) How do I do it in ...
22
votes
2answers
81k 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 ...
22
votes
3answers
1k views

TikZ Nodes not exactly centered

In my solution to draw a plot with point, it was pointed out that the nodes containing \textbullet and $\circ$ were not placed exactly centered at the specified point. I found this hard to believe ...
22
votes
4answers
793 views

Send (and stack) \marginpar to the top or the bottom of the page

I'm looking to define something like \topmarginpar{<text>}, which would essentially create a \marginpar{<text>} and align its top with the top of the current page. I would also like ...
21
votes
2answers
33k 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? ...
21
votes
2answers
2k 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 ...
21
votes
2answers
18k views

Reproducing an official letterhead

My university, just like many other institutions, isn't really aware of something called LaTeX. Therefore, the letterhead comes only in MS Word. The following (low quality) image is the best guide I ...
20
votes
2answers
7k 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? ...
20
votes
9answers
4k 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 ...
20
votes
2answers
14k views

How do I use a circle as a math accent (larger than \mathring)?

To denote the interior of a set, I'd like to have a command \interior. Now, as one can learn from this post, one possibility is to use \mathring. This is a neat command, but it produces a circle that ...
20
votes
2answers
3k 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 ...
19
votes
6answers
5k views

Skip to absolute position on line

Is there a way to skip to a fixed position on a line? (a specific tab position) Example: The quick \skiptoposition{1.5cm} brown \skiptoposition{2.5cm}fox which would put "brown" 1.5cm and "fox" ...
19
votes
2answers
1k views

High level digital design in TikZ

I am very new to TikZ and I have trouble making a diagram similar to the one here: My problems are specifically making MUX to get to inputs which would be on 1/3 and 2/3 of the width. Taking sigma ...