Questions tagged [positioning]

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

Filter by
Sorted by
Tagged with
12
votes
1answer
3k views

Tikz tree and position of single leaf in binary tree

I am constructing a binary tree which looks as follows: \begin{tikzpicture} \node {root} child { node {left} } child { node {right} child { node {rightmost} } ...
12
votes
2answers
1k views

PDF bookmark going to the bottom of the previous page in case when caption header is on the top of a page

\documentclass[12pt,a4paper]{mwrep} \usepackage{lipsum} \usepackage[nodisplayskipstretch]{setspace} \setstretch{1.3} \usepackage[hidelinks,unicode,pdfencoding=auto]{hyperref} \usepackage[all]{hypcap} \...
12
votes
2answers
1k views

A theorem and its proof in different places

I have a couple of theorems, proofs of which are quite boring and longish. I would like to place theorem formulations in a usual place and stack up the proofs at the end of the chapter. How to do this?...
12
votes
2answers
11k views

Wrapping text around multiple figures

I am a beginner in LaTex, but I have to to do this in a hurry: I need to write a macro to handle 2 cases (or one macro for both). 1st case: i have 1 - 3 pictures on the right side, and the left text ...
12
votes
1answer
1k views

Label automatically positioned so that it doesn't overlap anything

I produce automatically generated LaTeX-files with nodes and links. Is it possible to put the label of the node outside of the node and it is automatically positioned somewhere, such that there is no ...
11
votes
4answers
9k views

How to get an exponent hat

I would like to use a hat in exponent for a notation, and I have found no satisfactory way of doing this. If I go for $f^{\hat{\null}}$, the hat is far too high, while $f^\wedge$ gives to big and too ...
11
votes
2answers
55k 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 vertically ...
11
votes
2answers
4k 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 ...
11
votes
3answers
7k views

Beamer - specify logo position in title page

I placed the logo in my title page but I'm not happy with the positioning, I would like it to be at the bottom right, next to author and date. \documentclass{beamer} \usetheme[sectionpage=none, ...
11
votes
3answers
11k views

Tikz: Placing a node relative to the (rectangular) coordinates of another

How do I place one node relative to the coordinates of another? In theory: \begin{tikzpicture} \node (source) {X}; \node (destn) {Y} at source.coordinates +(2,1); \end{tikzpicture} would ...
11
votes
2answers
21k views

How to define the default vertical distance between nodes?

Use positioning can control the individual vertical position of nodes. But is there any way to control the default vertical spacing? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
11
votes
1answer
11k views

Space after float with [h]

this is my first time here, and I have this question: I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space ...
11
votes
3answers
3k views

position of the slash in hatted \slashed

So I want to denote the Dirac operator with a hat, and I tried both \hat{\slashed{D}} and \slashed{\hat{D}}: the first one has the $^$ rather distant to the $\slashed{D}$, while the second one has the ...
11
votes
1answer
3k 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 ...
11
votes
2answers
6k views

TikZ: How to rotate and then shift?

I'm trying to rotate a node and then shift it along the X axis. If I do [rotate=90, xshift=-20pt], the node will first shift and then rotate.
11
votes
2answers
22k views

Fixing the location of the appearance in algorithmicx environment

I'm trying to force an algorithm to stay between two paragraphs, but after compilation, it shows up in the next page. My algorithm takes more than half a page and is something like: \begin{algorithm}...
11
votes
1answer
30k views

How to force caption below figure

I find captions appearing above figures in the PDF output of a latex thesis file using the code below: \includegraphics{chapter2/fig5.pdf} \begin{figure} \label{Fig. 5} \caption{Time responses ...
11
votes
3answers
27k views

Set position for \maketitle in article

I want to create a handout to support a speech I have to give. Since I am only familiar with the \documentclass{article}, I wrote the following code: \documentclass[12pt,a4paper]{article} \...
11
votes
2answers
12k views

How to insert text between two figures?

How to insert text between two figures or images in LaTeX? I have this code \begin{figure}[htbp] \centering \includegraphics[width=0.5\textwidth]{1.jpg} \caption{Resala's Donation Page.} \...
11
votes
2answers
2k views

How to number atoms using chemfig?

I need to number atoms using chemfig. I thought I could use \chembelow and \chemabove to place numbers above and below but adding these commands changes the look of the drawing and does not simply ...
11
votes
3answers
7k 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 - ...
11
votes
1answer
5k 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 |...
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. ...
11
votes
1answer
27k views

How to position TikZ nodes

How can I shift the system node right of control1 but vertically centered between control1 and control2? \tikzstyle{controller} = [draw, fill=blue!20, rectangle, minimum height=3em, minimum ...
11
votes
2answers
15k views

Add Logo to LaTeX poster

I'm using this template to create a poster. I would like to add a logo to the top right corner of the poster, next to the tittle of the poster. Is this possible? How?
11
votes
2answers
263 views

Typeset credits at the very end of a document automatically

I want to print some graphics on the very last page of a document (containing some credits etc.). I don't know the length of the final document since it serves as a template and therefore I need a ...
11
votes
1answer
10k views

Positioning TikZ pictures in beamer slide

I am trying to position a TikZ picture on a beamer slide but some nodes (well, not all?) get pushed to the right. I have tried to add % wherever it seemed fitting as mentioned in Tikz figure in ...
11
votes
1answer
4k 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 ...
11
votes
1answer
2k views

How to create a 'fact box' or pull quote that is tied to the margins of your page?

I'd like to accomplish the following: Ut convallis libero in ------------------- urna ultrices accumsan. | | Donec sed odio eros. | "an important | Donec viverra mi quis |...
11
votes
2answers
3k 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) ...
11
votes
1answer
34k views

How to fix the width of a minipage?

I put 2 minipages containing tikzpicture side by side: one on the left, the other one on the right. And I hope each minipage, surrounded by \fbox, occupies almost half side of the page, and leave some ...
11
votes
1answer
38k views

Figure in Beamer

I want to make slide using beamer. Is it possible figure is in the top left side and quote is in the top right side of the figure? Is there any special environment for quote? \begin{frame}[t]{...
11
votes
1answer
3k views

Zooming images out to specific locations in beamer

I want to: Show an image full width On click, make a small sized image placed at a particular location starting from top left and show another image full width Repeat the process till all four images ...
11
votes
2answers
2k views

Can TeX/LaTeX draw lines at precise positions?

I need to draw lines at specific distances (in mm). For example: ---- line 0 ---- line 1 at 35.64 mm below line 0 ---- line 2 at 33.64 mm below line 1 The macro I'm using is as follows (I don't ...
11
votes
3answers
40k views

How do I put some text in specific position on a page horizontally with the prosper class?

Is there anyway to put text in a page horizontally at a specific position with LaTeX using the prosper class? After googling, I found that the textpos package can be used to put text in a specific ...
11
votes
2answers
874 views

Access loop variable outside loop

Here's what I have created, but how could I access the loop variable \n outside the foreach loop so that I could write sth like this: \n = \n + 1 % this is definitely not right, and it seems I couldn'...
11
votes
2answers
8k views

TikZ full page with absolute node positioning

I am new to tikz and trying to learn how to use it to draw a full page cover page for a report I am writing. I have successfully changed the margins and can render to the full page, but I am ...
11
votes
2answers
790 views

Problem with subcaption spacing

When using the subcaption package to place tables1 side-by-side, the spacing between a table and its subtable caption is too small if the table caption is placed above the tables and the subtable ...
11
votes
2answers
2k views

Fractions in superscripts are placed too low

I have noticed that "tall" superscripts seem to be placed awkwardly low in math mode; their baseline is so close to the main baseline that confusion has happened. \documentclass{article} \begin{...
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 ...
11
votes
1answer
261 views

How to understand LaTeX styling when coming from a CSS background?

I come from a web development background and I am used to apply CSS styles to HTML tags in order to position and shape them. In LaTeX I constantly find myself trying to think in terms of CSS and of ...
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 ...
10
votes
3answers
12k views

How can you position a node relatively to another in TikZ

I would like to place a node 'B' 60 degrees of an arbitrary node 'A' between which there is a distance of 2cm. I can do this if node 'A' is at (0, 0), so 'B' would just be (60 : 2) from 'A', but what ...
10
votes
3answers
625 views

How to simplify a basic diagram

I am a beginner in Latex, trying to use it for an industrial document. I have tried to add a simple electrical diagram using the following code. However it is not easy for me to adjust the location of ...
10
votes
2answers
234 views

How to make different caption placement for figures on odd and even pages?

For small figures, I want for captions to go on the right or on the left depending on the page number, whether it is odd or even. To do that I define the command \row as follows: \newcommand{\row}[2]{...
10
votes
3answers
1k views

How can I place a displaymath environment and an align* environment side by side?

I have a displaymath environment and an align* environment I would like to display next to each other. My idea was to wrap them in a tabular environment: \begin{tabular}{c c} \[ %math stuff ...
10
votes
2answers
790 views

TikZ inside TikZ-node with given text width does wrong positioning

This code \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[text width = 3cm]{ a a a a a a a a a a a a a a a a a a a a\\ \tikz{\draw (0,0) node ...
10
votes
3answers
6k 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 ...
10
votes
1answer
18k views

Properly Positioning text in beamer using textpos

I am using textpos to control the position of text in a beamer frame. What I want to do, is to place some text on top of an image. I am using the package in absolute mode and I want to place the text ...
10
votes
2answers
22k views

Tikz coordinate calculation

Consider the followinting tikz picture. I need to place the segment re-D so that its measure will be 8/9ths the measure of the segment ut-C. Now I just placed it at a random distance of 8/9 between ut ...