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

190
votes
2answers
29k 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
112
votes
9answers
55k 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?
93
votes
2answers
152k 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] ...
65
votes
1answer
4k 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 ...
56
votes
2answers
8k 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 ...
51
votes
5answers
2k 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 ...
50
votes
4answers
14k 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 ...
48
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 ...
46
votes
1answer
5k 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 ...
45
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. ...
42
votes
5answers
2k 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 ...
39
votes
4answers
39k 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?
34
votes
2answers
39k 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 ...
34
votes
3answers
3k 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 ...
33
votes
5answers
14k 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} ...
30
votes
1answer
14k 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 ...
28
votes
4answers
505 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 ...
27
votes
1answer
6k 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 ...
26
votes
2answers
24k 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 | ...
26
votes
1answer
2k 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 ...
25
votes
3answers
2k 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
4answers
43k 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 ...
23
votes
6answers
11k 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 ...
23
votes
4answers
2k 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 ...
23
votes
3answers
18k 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 ...
22
votes
4answers
129k 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 ...
22
votes
6answers
20k 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?
22
votes
4answers
1k 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 ...
22
votes
3answers
266 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 ...
21
votes
3answers
806 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 ...
21
votes
2answers
1k 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
1answer
673 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} ...
20
votes
3answers
3k 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 ...
20
votes
4answers
4k 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 ...
20
votes
9answers
3k 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
4answers
543 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 ...
19
votes
6answers
3k 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
3answers
22k 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 ...
19
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 ...
19
votes
2answers
7k 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} ...
17
votes
2answers
4k 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? ...
17
votes
2answers
765 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 ...
17
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 ...
17
votes
2answers
2k views

Sentence alignment for dual-line bilingual paragraph translation in LaTeX

I would like to make a translation of entire paragraphs at a time for a large document, with the start of the new sentences aligning. The following is almost what I want done, though it doesn't yet ...
17
votes
1answer
140 views

Floats shortly after they have been \ref-erenced; Warn otherwise

In my thesis I have a many floating figures which I then reference using \ref. I use flafter to ensure that they do not appear before they are defined in the source code (See Force floats to be ...
16
votes
3answers
1k views

How to wrap text around a figure? (revised)

This question has been asked before (and in fact I stole the diagram below from that question) but the answers are not sufficient for my needs (at least near as I can tell). What I want is the ...
16
votes
1answer
253 views

How to write any text in the others orientation

How to turn text orientation in the four diferent positions? Any text.
16
votes
2answers
8k 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 ...
16
votes
1answer
838 views

LaTeX3 and pauper's coffins

Frank Mittelbach in this answer said: "I would be interested who would attempt to do that in the plain TeX box model approach. In the MWE below is my approach which I will from now onwards call it for ...
16
votes
1answer
1k views

Automatic newspaper creation in LaTeX

This is a very general question about LaTeX, asked by a 100% newbie! I'm trying to figure out if it's feasible to build an automatic newspaper creation engine, and if LaTeX can help in this field. ...