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

12
votes
1answer
392 views

Is there an “endproof” package?

You may be familiar with the endfloat package, which moves all figures and tables to the end of your document. Is there a similar package for achieving that kind of results with proof environments (...
12
votes
2answers
638 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
946 views

Golden Ratio for vertical poem positioning

On a single page, is it possible to vertically position a poem in the Golden Ratio? Look at the sketch to know what I mean. The vertical red line is dived by the Golden Ratio. The vertical centre of ...
12
votes
1answer
186 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 ...
11
votes
3answers
3k views

Two-lined text (text over text)

Is it possible to have some words written over each other in normal text? The use case is that it should be used instead of slashes where a sentence talks about two similar options. A short example: ...
11
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 ...
11
votes
3answers
375 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
2answers
2k views

Position a node a certain distance away from another node at a certain angle in TikZ?

Like the title says, is it possible to position a node a certain distance away from another node at a certain angle from that node?
11
votes
2answers
6k views

How can I get textpos to respect beamer overlays?

I'm using textpos to position text blocks in a beamer frame. However, the textblock environment does not seem to respect overlay commands. In the following example, I want "some more text" to be ...
11
votes
1answer
2k 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
8k views

How do I write something at the end of the slide in beamer? [duplicate]

I have an image, I want to write its source in a very small font size on the last possible line of the slide, ignoring the available space after image \section{SCS} \subsection{SCS} \begin{frame} \...
11
votes
3answers
648 views

How can I make LaTeX ignore height of underbrace?

I have created this matrix: With this LaTeX-Code: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{amsmath,array} \renewcommand\...
11
votes
2answers
11k views

Forcing a figure to appear on the next page

I have a figure which takes up an entire page of space. When I use \includegraphics to put it in my document, instead of appearing on the next page, it appears at the end of the section. However, I ...
11
votes
2answers
2k views

Marginpar appearing on the wrong side (using memoir)

The subject line pretty much says it all: some marginal notes (beginning of the second page) do not appear on the correct side. (The question is: how can I fix this automatically?) Below is a MWE that ...
11
votes
1answer
23k views

tables side-by-side using minipage

I'm trying to get three tables side by side using minipage. In spite of my horrific efforts my tables keep stacking on top of each other instead of standing beside what drives me mad. Can anybody spot ...
11
votes
2answers
227 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
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) ...
11
votes
1answer
793 views

How to compute xslant and yslant

There must be an easy way to compute the required values of xslant and yslant to obtain the text in the "correct plane". Below I have guessed at then, but that is a very tedious process. The desired ...
11
votes
2answers
1k 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
2answers
470 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
1k 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
6k 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 ...
11
votes
1answer
4k views

Undesired Placement of Footnotes in Blocks

Depending on the theme of a beamer-document, footnotes will either be placed inside or outside of a block-environment. It would like to do combine a style, which places the footnotes inside a block-...
11
votes
1answer
819 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
1answer
2k views

Tikz callout: positioning start of pointer

The pointers of my Tikz callout rectangles always start in the middle of the rectangle. But that kind of pointer sometimes gets in the way of other objects (e.g. the pointer start should be more to ...
10
votes
4answers
22k views

side-by-side equations, with equation numbers for each

The align command from amsmath allows me to put two equations side-by-side: \begin{align} x = y && a = b \end{align} Unfortunately for my purposes, this shows both equations under one ...
10
votes
2answers
2k 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
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 ...
10
votes
3answers
558 views

Is the following layout possible with the subfigure package?

Is it possible to achieve the following layout with the subfigure package (and any other package/command I don't know about): ############# ############## # # # # # pic1 # # ...
10
votes
3answers
402 views

Accented Character in ornamental drop-caps using Zallman Caps

I'm looking to use an ornamental drop-caps using Zallman Caps and the lettrine package. However Zallman Caps doesn't have all characters I'm interested. In particular, I'm interested in placing ...
10
votes
2answers
208 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
560 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
643 views

Format a tutorial with screenshots in LaTeX

I want to format a step-by-step tutorial in LaTeX in a way that each step shows one screenshot and a small piece of text for that step. I could think of a formatting where in each step the screenshot ...
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
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 ...
10
votes
2answers
2k views

Writing the Existential Quantifier with Lower and Upper Limits

When I write $$\sum_{i=1}^{n} x_{i}$$ I obtain indices which are below and above the symbol. I want to write the existential quantifier with this same formatting, but when I try to do so, it appears ...
10
votes
1answer
4k views

Edge nodes, auto and node distance

Consider the following MWE \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(1,1) node[auto,midway] {$A$} -- (2,0) node[auto,midway] {$B$}; \end{...
10
votes
2answers
635 views

How can I insert a paragraph or image into the same spot on every page of a memoir doc?

How can I duplicate one feature of this layout from 'House of Leaves' in a 100ish-page book using LaTeX? (I'm presently using memoir for document formatting/structure.) The specific feature I want ...
10
votes
2answers
5k 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.
10
votes
2answers
6k 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.} \...
10
votes
1answer
1k views

How to create roller coaster text?

I want to specify a curved base line (rising and falling like a roller coaster), then to have the text positioned such that it flows along that line. Is there a way to achieve this?
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, ...
10
votes
2answers
481 views

How can I align captions with each level of a tree drawn with tikz-qtree?

I have drawn a binary tree using the TikZ-qtree package. 1) I now would like to align captions on the right of tree with each of its level---and I would like the placement to be automatic (ideally I ...
10
votes
1answer
8k 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 ...
10
votes
1answer
1k 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 |...
10
votes
2answers
850 views

Page numbers vertically centered in the outer page margin

Even though it seems to be a non-standard position, I'd like to place my document's page numbers vertically centered in the outer page margin – i.e. where you usually have your thumb when you skim ...
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
2answers
570 views

Subscript. Superscript. Middlescript?

What's the best way to vertically center inline text for both math and text modes? Is there something similar to \textsuperscript for non-math mode?
10
votes
2answers
520 views

Anchors badly positioned

I am trying to overlay some transparent boxes over a picture using TikZ within a Beamer frame. The code I use is the following: \documentclass{beamer} \usepackage[spanish]{babel} \usepackage[T1]{...
10
votes
1answer
496 views

Can I calculate the difference between two relatively positioned nodes with TikZ using calc?

I have a chart with relatively positioned nodes. How do I calculate the horizontal distance x, between node "sub3" and node "key" and multiply that value by 2 and use it for the positioning of node "...