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
14
votes
3answers
19k views

How can I add text in the top right corner of a page _without_ using fancyhdr

I want to put a block of text into the top right corner of my document (which uses the article class). The specifications of the document's formatting are very detailed, and it has taken me about 2 ...
14
votes
2answers
2k views

How to insert “source” below image

I have to mention the source of the image that I am using in my text. How can I write the source below any image just like its shown in the above figure? I don't want to mention the source alongside ...
14
votes
1answer
25k views

Putting the integration bounds below/above the integration operator [duplicate]

Possible Duplicate: Show inline math as if it were display math Yesterday I've stumbled upon an article which covered just that, but I can't find it anymore. How can I put the integration bounds ...
14
votes
2answers
3k views

Defining a width that fills remaining horizontal space for text fields in hyperref forms environment

This code \documentclass[10pt,a4paper]{article} \usepackage[showframe,headheight=2in,headsep=0.1in,left=0.8in,right=0.8in,bottom=0.5in]{geometry} \usepackage{xcolor} \usepackage{hyperref} \begin{...
14
votes
3answers
5k views

When specifying placement of floats, is the list prioritized?

When specifying a float's placement, e.g. [htpb], is the order of the arguments specifying the priority of them? Example: \begin{figure}[htpb] \includegraphics[width=0.7\textwidth]{sampleImage} \...
14
votes
1answer
8k 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 ...
14
votes
2answers
8k views

Image next to Equation

I am trying to make my first LaTeX file and have been reading syntax for a bit and have not been able to figure one thing out yet and don't seem to find anything about it online so I thought I might ...
14
votes
1answer
2k 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
1answer
1k views

Highlight passages from the body as quotes between the paragraphs

In newspaper and magazine articles, striking messages from the main text are often highlighted in form of quotes in larger font size, sometimes also set apart by a bold rule or so. For an article I am ...
14
votes
1answer
2k views

Create a “yearbook-style” multi-page layout of photos

I would like to create a "yearbook-style" layout of photos in LaTeX. Each photo would have a caption and the objective would be to automatically layout the differently sized rectangular photos to ...
14
votes
1answer
6k views

wrapfig Positioning (Footer is overlapping figure)

I have something like the following: Long paragraph with footnote.\footnote{footnote shtuff here} Another long paragraph without a footnote. \begin{wrapfigure}{r}{.5\textwidth} % figure shtuff ...
14
votes
2answers
2k views

Drawbacks of the `H` specifier

According to the float package documentation, the H float placement specifier [...]when added to a float, tells LaTeX to “put the float HERE, period”. If there isn’t enough space left on the ...
14
votes
2answers
26k views

Align minipage to baseline of first or last line inside minipage?

The minipage environment has options for making the top, bottom, or center of the minipage box line up with the baseline of the surrounding text. Is there a way to make it line up to the baseline of ...
14
votes
1answer
4k views

Easy absolute positioning in beamer

For my presentaton slides I'd like to have list uncovered and highlighted by time and each item supported by appropriate image/graph/table. Thinking about it in wider application, I'd like to find/...
14
votes
1answer
7k 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-...
14
votes
2answers
1k 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 ...
13
votes
4answers
20k views

Controlling the exact position of objects on a page

I'm using Linux on a server (CentOS 5) to generate a one page PDF report using LaTeX. The LaTeX distribution is quite old - latex --version returns the following: pdfeTeX 3.141592-1.21a-2.2 (Web2C 7....
13
votes
2answers
1k views

How to draw 3 figures and have them side by side while they're connected

I would like to have 3 figures side by side, as in one of my previous posts. However, this time isn't the same. I would like to link my figures as below: My problem is not only how to put my figures ...
13
votes
2answers
979 views

How to change default float options for figures?

I would like to change the default float options for my figures, so that I only need to adjust one option in order to change the behavior of all figures in the document. On my previous computer (...
13
votes
3answers
2k 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 # # ...
13
votes
2answers
49k 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 ...
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. ...
13
votes
2answers
353 views

Objective: To separate text column from figures column in every page

I don't know if this has been asked before. But so far nothing has come up with my search. In some books, the figures are placed at the outer side of the page like in the picture below. Is this ...
13
votes
3answers
19k views

How can I insert a subject line in a letter?

I am writing a letter and I would like to insert a subject line above or below the \opening. How should I do this? I prefer not to use scrlttr2 or KOMA.
13
votes
1answer
29k 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]{...
13
votes
2answers
666 views

Centering text on a page

I'll try to illustrate what I want to accomplish. I want an enviroment/page style for poems that works like this -- the title (if present) is placed in the title placeholder (purple). The body of the ...
13
votes
1answer
2k 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 ...
13
votes
2answers
8k views

Extra page at beginning of appendix containing big figures

I have an appendix that contains two full-page figures. The first page of the appendix is always blank except for the title -- I suspect this is a common problem with appendices of full page figures. ...
13
votes
1answer
545 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 (...
13
votes
1answer
9k views

Fix position of picture over different slides

I have a few very simple beamer slides, which are built up this way: A short introducory text A picture, which is almost the same in all slides Unfortunately, the introducory text is ...
13
votes
1answer
15k views

How do I get the margin note to appear on the left?

I'm trying to make a left-sided margin note. As per the LaTeX wiki, I tried using \reversemarginpar but that didn't solve anything--it didn't make a margin note at all. I also tried \marginpar[left ...
13
votes
1answer
1k views

How to arrange mdframed side by side?

How to arrange mdframed side by side, like mdframed1 mdframe2 \begin{mdframed}[roundcorner=10pt] table 1 \end{mdframed} \leavevmode \hspace{2cm} \begin{mdframed}[roundcorner=10pt] table 2 \...
13
votes
1answer
337 views

Formatting floats differently based on placement

I'm interested in changing how floats are formatted depending on whether they are placed at the top, bottom, or middle of a page, or on a float page. One package I am aware of that does something like ...
12
votes
5answers
1k views

A grid of images to fill A4 -paper for economic printing with some space for scissors

I want to print a A4 paper full of the same QR image. I want more elegant way to this answer here, yes I can get it working like that but I want to leave just enough space for scissors and no space ...
12
votes
4answers
1k views

Placing node right after end of path in Tikz

I'd like to place a label (most of the times a single letter) right after the end of a line. That is, the node should be moved into the direction of the line from its endpoint, just as far that is ...
12
votes
4answers
8k views

How to label the curve of a function at any point along it in tikz?

In my example, I have to simple curves y = sqrt(x) and y = x. I would like to be able to attach a label along each curve, say at the middle of the curve. Right now, I am doing it by trial and error ...
12
votes
5answers
591 views

How to force nodes on different lines to have equal y-positioning

I have, hopefully, a very simple question. I use tikz to make a figure for confirmatory factor analysis (CFA). In the minimal example there a 6 arrows going from the circle to a fixed place. However, ...
12
votes
2answers
1k 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 ...
12
votes
1answer
7k 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{...
12
votes
3answers
2k views

pgfplots - Add offset to pins

I'm trying to make a bar plot for an optimization parameter in quantum physics. To be more informative, the graph should display the values of these parameters above the bars. So far I did \...
12
votes
2answers
4k 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 ...
12
votes
1answer
11k views

Relative positioning of nodes in TikZ

Consider this simple example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=1.5] % Draw axes \draw [<->,thick] (0,2.2) node (yaxis) [above] {$t$} ...
12
votes
2answers
7k views

How to get caption above listing with minted?

I'm using the minted package. How can I get the caption to show before the code in the document? \documentclass[a4paper]{scrartcl} \usepackage{minted} \begin{document} \begin{listing}[H] \...
12
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 ...
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,...
12
votes
3answers
984 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\...
12
votes
2answers
457 views

How to position vertically more letters according to alphabetical order in the margin of the page?

The original question with accepted answers shows how to set a letter to the margin of the page and position it vertically according to alphabetical order. There appears two issues that I need to ...
12
votes
1answer
2k views

Figures in odd pages, text in even pages; if no figures, then odd=even pages (i.e., no blank pages w/ numbering and headers…)

I'm writing my thesis using \documentclass{book}. I have plenty of figures and I want them to appear always on the right hand of my manuscript (since this is the "attraction" page when reading, and ...
12
votes
1answer
351 views

Is there a way to stop the vertical spread of multiple super- and sub-scripts?

I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$, the 2 and 6 were ...
12
votes
2answers
15k views

How to position tikz node relative to 2 other nodes

Suppose, I have this structure: Code: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{calc,shapes, positioning} \begin{document} \...