Questions tagged [positioning]

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

6
votes
2answers
2k views

How can I inhibit LaTeX to float a table across a section boundary? [duplicate]

Possible Duplicates: Keeping tables/figures close to where they are mentioned How to avoid splitting tables between sections. How do I ensure that figures appear in the section they&#...
17
votes
2answers
8k views

How can I place a double-wide figure float (ie, figure*) on the bottom on the first page of a two-column document

In what I would like to be a two-page, two-column document with two wide (figure*) figures, I need one to be on the bottom of the first page, and one to be on the top or bottom of the second. ...
106
votes
7answers
118k 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 ...
10
votes
3answers
2k views

Macro for figure position?

Why is the following minimal example not working? I.e., what do I need to do, in order to define the float placement specifier of a figure within a macro? (I know that I should use \newcommand, but ...
7
votes
2answers
3k views

Create layout avoiding overlapping floating wrapfigures

I'm writing companion notes for some beamer presentations. For each slide in a presentation, the document has a small picture of the slide, along with a text explaining the slide. For some slides, the ...
4
votes
2answers
797 views

Positioning footnotes before the bibliography

I don't want a separate page for my bibliography, so the references simply follow after the end of the actual document. However, there happens to be a footnote on the last page which is then displayed ...
6
votes
1answer
9k views

Latex : algorithm not display under correct section

I'm using the algorithm2e package to put algorithm in my Latex documents. In my document, I have something like this : \section My algorithms \subsection Algo 1 code for first algorithm ... \...
6
votes
3answers
3k views

Display certain objects in a document side by side

What is the standard way in latex to display certain objects (e.g. pictures, tables, etc.) side by side, instead of one below the other? I thought about using the tabular environment for this, but I'm ...
10
votes
2answers
3k views

Fill the left 1/3 of the title page with color?

This is my first time to try and write documentation by using LaTeX. The generated PDF is quite impressive, but there is one thing I have no idea of how to do it: I would like to have the left 1/3 of ...
12
votes
3answers
2k views

Determining the position of a box (e.g.) on a page

Suppose I have some .tex code like this ... bla bla \framebox{Hello World} bla bla ... I want to read out the position (left and top or bottom, in pts) of the framebox on the page, and store in, say,...
7
votes
2answers
1k 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 & ...
3
votes
3answers
2k views

Changing side of line numbering in two columns documents

I'm trying to type some report and I have a small problem with the twocolums document class and the line numbering in listings. The document is on two columns : \documentclass[8pt,[...],a4paper,...
75
votes
2answers
322k 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 ...
111
votes
1answer
25k 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 ...
5
votes
2answers
5k views

How to put 4 tikzfigures, in a 2x2 layout?

I have 4 things drawn with tikz. It's working fine but now I want to layout them in a grid 2x2, each one with its own caption. EDIT: I have rewritten my question since It was not clear. Below code ...
11
votes
2answers
14k views

How to place subfigure caption on the side?

Is there some way to tell subfig package to place subfigure captions to the left or to the right of subfigures? There is sidecap package which does it for the main captions, but it does not affect ...
5
votes
2answers
4k views

Position of superscript when superscriptd item has \hat over it

I am trying to typeset he following inline math for a camera-ready document: $\hat{\boldsymbol \Sigma}_{P}^{-1} \hat{\boldsymbol \Sigma}_{G}$ It appears that the superscript -1 is aligned ...
5
votes
1answer
1k views

TikZ: Creating stack with variable width

I am new to TikZ and want to draw a simple stack Diagram. The Diagram should look like: [a] [b] [c] [d] |-| |j| [f ] | | | | [g ] | | ...
13
votes
2answers
24k views

Add a textbox overtop an image in a beamer slide

I have a slide with a figure in it. I want show a vertically and horizontally centered (relative to the image if possible) text box overtop of it as an overlay which will contain a few lines of text. ...
103
votes
2answers
240k 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 \begin{...
430
votes
4answers
1.1m 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] \...
11
votes
1answer
10k views

How to draw an arrow in the middle of the line of a circle and how to position the arrow?

My problem is related to TikZ: How to draw an arrow in the middle of the line?: My Example: I like to have two circles - I want to position the arrow of circle no. 1 at south.south west of circle no. ...
6
votes
3answers
6k views

Correctly skipping pages for page numbering

I have a book I'm laying out in pdflatex. The page numbers are on the outer corners of the pages (along with some other header and footer stuff.) Occasionally, the document has a full-page image ...
2
votes
1answer
159 views

How can I position some text on the same place on multiple pages with partly different content?

I am creating the first pages of a book and I want one page with just the title and the next page to have title plus the authors and some other stuff. However LaTeX places the title differently on the ...
83
votes
2answers
138k 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 | ...
35
votes
1answer
13k 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 ...
17
votes
1answer
19k views

Table captions are always placed below

I have a problem with table captions in LaTeX. They appear always below the tables instead of above as required by my editor. I've read lots of documentation and everybody says that if you place the \...
20
votes
2answers
2k views

Set a global policy for floats positioning

I have a document with many floats (figures, specifically). I want to be able to change the global floats positioning policy from htbp to just h (or even H with the floats package). For my-own ...
31
votes
2answers
18k 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 ...
110
votes
5answers
168k views

Reduce space between enumerated items

Background All book figures are set to "here definitely" (as they must come after the text that introduces them). Problem The list types (enumerated and bullet) have too much space between them. ...
9
votes
2answers
1k views

Hyperlink's bad navigation of sub-figures on click

I am using hyperref package to have hyperlinks automatically generated for figures, equations, table of contents, etc... My problem is if I have a big figure consisting of sub-figures and then have a ...
23
votes
3answers
16k 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 ...
6
votes
1answer
2k views

Tikz with positioning does not work with DVI

I have the following Tikz picture: \begin{tikzpicture} \node (a) {A}; \node [below=2cm of a] (b) {B}; \end{tikzpicture} When I compile this code with PDF-LaTeX, I get the expected result: "B" ...
16
votes
1answer
5k views

Scaling “node distance” in tikz

Well, here's another TikZ question; this time, I have no idea how to find an answer. I would like to give all my nodes with relative coordinates: \node (A) {A}; \node (B) [right = of A] {B}; using ...
25
votes
2answers
14k views

Why is my footnote “glued” to the text?

This is the document: \documentclass[12pt]{article} \usepackage[top=3in, bottom=3in, left=3in, right=3in]{geometry} \usepackage{lipsum} \interlinepenalty=10000 \begin{document} This is first short ...
22
votes
1answer
27k views

Floats - how to restrict floating to subsection only in one section of the document?

I have concluded that the package float allows figures to float within the section they belong to. However for one particular section I need to restrict the floating to the subsection (without forcing ...
28
votes
5answers
16k 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 ...
16
votes
2answers
5k views

Absolute positioning of wrapfig

In Microsoft Word, it is common to create a floating text box, separate from the normal body text, that can be placed anywhere on the page. The body text will then wrap around this text box so ...
7
votes
2answers
2k views

How to make an appendix with only tables without “too many unprocessed floats” errors?

I'm often writing reports containing over 50 tables and over 200 figures that have to be included in appendices. The problem is obvious: if you just make an appendix \chapter{Tables} \begin{table} ....
17
votes
2answers
3k 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 not ...
27
votes
2answers
36k views

Put a table* at the bottom of a page?

In a two column document in LaTeX, is there any way to put a table* (a table spanning both columns) at the bottom of the page? The obvious doesn't work: \begin{table*}[b] % b!, hb, hb!, etc. doesn'...
8
votes
4answers
1k views

Override tendency to avoid filling entire page with floats

I'm working on a two column document, and on one of the pages, I want to fill an entire column with three different floats. But when I use, for instance, h!, ht!, b, b!, t!, etc., on all three of ...
34
votes
2answers
41k 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 ...
139
votes
6answers
88k 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 ...
5
votes
2answers
2k views

What is the right way to place a box at a specific location?

I have a box \mybox that contains a letterhead. The dimensions of the box are 7" by 1" (and depth 0pt). The box is going to be used only inside my letterhead macro: \DeclareRobustCommand\letterhead{% ...
139
votes
6answers
264k 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?
23
votes
2answers
4k 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 ...
18
votes
2answers
3k 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 ...
314
votes
9answers
322k 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?
16
votes
4answers
10k views

LaTeX letter with address field in the right place for a “C5 envelope with window”

Does anybody know of a good way to write simple paper letters in LaTeX, so that the formatting shows the receiver's address in the right place, to show it in the window of those C5 envelopes with an "...