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

10
votes
4answers
2k views

Tikz labels are shifted dependent on the letters size

General description of the intrinsic behavior The labels in a tikz picture are shifted (e.g. by above) exactly to the extreme of the letters in the labels, i.e. it takes the descender (see Wikipedia'...
10
votes
1answer
6k 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. ...
10
votes
3answers
1k 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, ...
9
votes
2answers
12k views

How to locate figures with x,y specified location in a presentation

I want to fix my figure in slide (latex frame) as per my wish with x,y position specification. Kindly someone help me to do it.
6
votes
2answers
2k views

How to get element position in LaTeX?

I have a test with check boxes made in LaTeX for result recognition in queXF. This works fine, but if I change something in source boxes are being relocated and queXF recognition boxes are becoming ...
5
votes
1answer
841 views

place floating tables and figures in order of appearance

In my document I number tables and figures with the same counter, using the answer to http://stackoverflow.com/questions/3865036/using-a-single-count-for-figures-and-tables-in-latex/7771554#7771554. ...
3
votes
1answer
6k views

Add an equation at the bottom of a two-column article

How can I place a two-column equation (a large equation that does not fit in one column) at the bottom of a page?
10
votes
3answers
4k views

Centered box, text inside it flushed right?

I have some text (like a title), that needs to be centered, and some notes to it (multiline - note 1 \\ note 2), which should be directly underneath it and on the left side of it: Some ...
8
votes
2answers
7k views

Position an exampleblock in front of content

I need to position an example block: \begin{exampleblock}{} Proposed and implemented \end{exampleblock} Without disturbing other frame content. Something like: -------------------- -------------...
8
votes
1answer
1k views

Difference between [h] and [H] in float position

I'm trying to choose the positions of my tables but I can't figure out the difference between [H] and [h]. I've seen both advised over my search. If I use [h] the row spacing is different than [H] use....
6
votes
1answer
1k views

How to stack two subfigures next to a third subfigure?

I'm using the subfigure environment to show 3 graphics in one figure environment. However, I'd like to arrange them in the following order (subfig1 is larger than the other two): | SUBFIG1 | SUBFIG2 |...
6
votes
3answers
4k views

Align text and image on the same line?

According to the two-column example document below, how can you put text and image on the same line? I'm interested in how to insert text at Some text here and more text here with the image right ...
6
votes
1answer
1k views

\answerline to the right of a question

using exam class. I want the answerline on the same line as the question, to be used in mid-sentence actually. I have this: \documentclass[a4paper]{exam} \begin{document} \begin{questions} \...
5
votes
1answer
3k views

put two algorithm side by side

I want to put two algorithm side by side to gain place in the document, but when I use \documentclass{llncs} instead of \documentclass{article}, the following code does not work (errors): \...
5
votes
1answer
328 views

An overview of node positioning?

I've been making tikz pictures for a while now, and there seem to be a number of different ways to position nodes within a diagram. Absolute coordinates, east/west, left/right, the $ $ things, minimum ...
4
votes
2answers
100 views

Change location of increasing text length

I have a very specific question and I hope someone can give me the benefit of their experience. I have around 17000 lines of text. I am printing this text onto somewhere around 80 double sided pages, ...
4
votes
2answers
486 views

How can I add size of Tikz drawing into size of equation?

This is slightly modified code from Frédéric's answer to How can I add clips above matrix? \documentclass{mwrep} \usepackage{amsmath} \usepackage{tikz} \newcommand{\tikzmark}[2]{\tikz[overlay,...
2
votes
4answers
1k views

How to place a program and a text side by side?

My first question is how you write a program in LaTeX, with and without a line number for each line. The second question is, because often my program is not too large, I want to save some space for ...
15
votes
1answer
232 views

Why positioning “above” is at a different height than “above right”?

Trying to answer to How to improve this picture? Or have a better idea?, I had a behavior I do not understand. Please consider the following MWE: \documentclass{standalone} \usepackage{tikz} \...
14
votes
3answers
2k views

Placing text and footnotes on separate pages

How can I place the main text of a document on only verso (left) pages and the footnotes on recto (right) pages (or vice versa)? Update: The expected appearance is not unlike moving the whole ...
14
votes
1answer
4k 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 ...
11
votes
2answers
2k views

How can I put the empty subfloat subcaptions to the right?

I'm putting two figures above each other with \subfloat from the subfig package. Their captions are empty as I just want to describe the figures with the main caption, but I still want the (a) and (b) ...
10
votes
2answers
3k views

How to position nodes around another node in TiKZ?

I'd like to position some nodes in TiKZ around a given node. I could do that manually, by setting each node position, but why not looking for an easier way that looks better? I thought about using a ...
8
votes
1answer
730 views

How to add text into a QR-Code?

I want to add a text to the QR-Code. I want a small numbers in one of the four black squares. \documentclass[a4paper, 12pt, parskip]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{pst-barcode} \...
8
votes
2answers
278 views

Extending figures into the margin on even vs. odd pages

I am using KOMA script for my document. Occasionally, I have a float that is wider than text width, and I want the float to be pushed into the outer margin. This is why I defined \widefloat command, ...
7
votes
1answer
11k views

How do I put an image on the left of right-aligned text

I'm trying to add an image to the top left corner of a page (inside the margins) in LaTeX. Across from the image I want a set of right-aligned text. I tried using two columns but the image is smaller ...
7
votes
2answers
4k views

Force position of full page sized figure

I'd like to have text that is placed after a figure which occupies a whole page also to be placed after that page in the produces PDF file. Imagine this (pseudo latex, not necessarily a working ...
6
votes
1answer
13k views

IEEEtran: Placing a two-column figure on desired page

Using the IEEEtran class, I have problems positioning a two-column figure on the desired page: The figure is always plotted on the next page. Here my minimal code: \documentclass[conference]{...
6
votes
2answers
2k views

Tikz-Connecting nodes with multiple lines

I am trying to reproduce the following image I made in "Power point". Although, there is no difficulty in designing the boxes, I find it rather hard to properly position the red and black lines. ...
5
votes
2answers
2k views

Horizontal lines touching the multicol column separator rule

Is there a possibility to put a horizontal line above and below a multicolumn output (using the multicol package) such that the horizontal lines touch the multicol column separator exactly at its ...
4
votes
4answers
1k views

tabular side-by-side

I am trying to get two tabular constructs side-by-side with a tikz figure in between and can't seem to get what I want using the minipage construct. Here is the code I have \documentclass[twocolumn]{...
3
votes
2answers
143 views

How to print addresses

I have a list of addresses. How can I print those such that I can print those and glue to envelopes? I mean, I would like that every page has three addresses in every row and eight addresses in every ...
3
votes
1answer
6k views

Insert image in latex [duplicate]

Possible Duplicate: Force figure placement in text Hi! I'm trying to insert an image in latex with some text around: Here is our image: \begin{figure}[h!] \centering \...
3
votes
2answers
265 views

Placing a table next to figure (align table vertically centre)

I would like to place a table and figure side by side in my document. I have achieved this with the following code \documentclass[a4paper,10pt]{article} \usepackage{floatrow} \usepackage{color} \...
2
votes
1answer
794 views

Positioning the address in a Letter

I need to place the right-side address differently in my .tex file but I can not figure out how to do. What I would like is to have the last line from the right-placed address at the same line as the ...
18
votes
2answers
17k views

How to tell LaTeX to place all figures at the end of pdf file?

Well, I search through the SE site but it seems everyone else was asking how to avoid appending figure and their accidents are not quite an elegant solution to my problem --- I'm looking for a way (...
17
votes
1answer
14k views

Two minipages with 0.5\textwidth each get placed one below another

This happens in the beamer class only. Does anyone know the reason behind this? I fix it by just setting both widths to 0.49\textwidth and this works but I'm still curious why this happens and if I ...
8
votes
1answer
506 views

Include figure on the same page above \chapter

In a book, with the book documentclass, I'm typesetting I want to include a figure above the \chapter title. This however has turned out to be hard. With the following code: \chapter{Uppväxt} \begin{...
7
votes
1answer
327 views

Why is my prime symbol too low? And: Why are my subscripts not scaled accordingly when I use \scriptsize?

I have two (maybe simple) questions concerning the following LaTeX document \documentclass{scrartcl} \usepackage[ansinew]{inputenc} \usepackage[T1]{fontenc} \...
7
votes
2answers
3k views

angled fraction like superscript [duplicate]

I would like to draw a fraction like symbol that looks similar to \frac{a}{b} BUT is angled so that the a is higher than the b and the slash is angled. Sort of like a % sign but not as drastic. Not ...
7
votes
1answer
159 views

Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} \...
6
votes
1answer
2k views

How can I add offsets to coordinates in tikz?

I’m trying to add offsets to two coordinates with tikz like this: \draw[line width=4] (coorda) ++(0.3pt,0) -- (coordb) ++(-0.3pt,0); The first ++ instruction works just fine, but the second one has ...
6
votes
2answers
2k views

How can I inhibit LaTeX to float a table across a section boundary? [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 a couple of tables that are ...
5
votes
2answers
2k 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
2answers
182 views

Figure placed on a separate page is centered and not on top

I have multiple figures placed in my document (all of which are using [htbp], [ht] etc. and are placed correctly). The last figure receives a separate page (which is alright) but it's centered on this ...
4
votes
2answers
2k views

Make tikz picture floating

I'm inserting a tikz picture in my section headings with \titleformat (see this question) and I would like it to not affect the spaces in the headings. Right now, what I do is that I compensate the ...
4
votes
0answers
2k views

Two-columns wide figure at the bottom of a page with Revtex [duplicate]

The problem is simple: how to place a two-columns wide figure at the bottom of a page with the revtex document class? For those unfamiliar with revtex, it is a two-column style guide used by a number ...
4
votes
3answers
388 views

Make TikZ compute the x-coordinate of the margin

The command \hrulefill prints a line that fills all empty horizontal space with a line. I would like to do something similar with TikZ. What I would like to know is can I do something similar like \...
4
votes
1answer
427 views

How to prevent figures from floating 'into' listings [closed]

I have a problem with floats and listings. Sometimes it happens that a listing is split over two pages and when a figure is near the listing it happens that the listing starts on the first page, on ...
4
votes
1answer
241 views

{Tikz}{Tree} How to reduce leaves placement

Hello (and sorry for bad English...) I am working on a Tex document to produce algorithmic diagrams : it is quite good for me except that I would like to be able to reduce space used by leaves (it ...