{vertical-alignment} is about aligning document elements vertically, e.g. using \raggedbottom or \flushbottom or adjusting the vertical position of several equation or table components. If your question is generally about (vertical) white space, use {spacing} instead.
19
votes
2answers
2k views
How to define a figure size so that it consumes the rest of a page?
Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
14
votes
3answers
1k views
Vertically asymmetric size variation for parentheses
One of the difficulties I have with writing formulas in LaTeX is that the standard sizing tools for the variable-size operators (parentheses, etc.) do not account for "high" symbols and "low" symbols ...
74
votes
3answers
6k views
\pagebreak vs \newpage
What's the difference? I know that \pagebreak can take an optional argument that specifies how much a page break is desired, but is there any difference if the optional argument is not used?
23
votes
3answers
21k views
How to vertically-center the text of the cells?
I have a simple table as follows:
\begin{table*}
\centering
\begin{tabular}{|l|c|c|c|c|p{2in}|}
...
...
\end{tabular}
\caption{The factors the camera solver depends on to ...
20
votes
3answers
4k views
How to get only one vertically centered equation number in align environment with two equations
sorry if this has been answered before, I couldn't find anything through search. I'm sure its a common problem though.
What I have are two equations with align and I want one single equation number ...
13
votes
2answers
674 views
Aligning enumerate labels to top of image?
I asked a question a while ago about vertically aligning enumerate labels to the top of table. Now I am having the same problem, but with images. Since my problem was solved in my previous thread, I ...
8
votes
3answers
7k views
Problem with Table Vertical Alignment
I want a table whose first column is aligned top, second column is aligned middle, and third column is aligned bottom; like this:
I wrote the following code:
\documentclass{article}
...
7
votes
2answers
1k views
Centering a TikZ picture around an area
I often find myself in the following situation: A tikzpicture of mine consists of a main area and some outer material like text labels which are hardly symmetric around the main area. If such a ...
29
votes
5answers
12k views
How to vertically center two images next to each other?
How can I vertically center two images next to one another? Here is some example code:
\begin{minipage}[h]{6in}
\centering
\vspace*{.3in}~\\
\includegraphics[height=1.25in]{fig1.pdf}
...
16
votes
4answers
844 views
Sharing alignment between equations in two different items
In the following minimal example, I have two equations inside an itemize environment, with an item per equations. Each equation is defined in its own equation environment.
\documentclass{article}
...
12
votes
3answers
3k views
How to balance last page of two-column layout?
I create a document in two-column-layout with LaTeX (and Koma-Script, if that is relevant). The two-column-layout is defined in documentclass. The last page of an chapter fills the left column first - ...
13
votes
2answers
7k views
Aligning image and text on top, with minipages
I have an image (on the left) and a block of text (on the right), and I would like both to be aligned on their top. I am trying to use minipages for that:
\documentclass{article}
\begin{document}
...
17
votes
1answer
4k views
How to modify columns/column environments so they resize automatically to the largest column ?
This question was originally a duplicate of How can I add vertical space to a beamercolorbox to make it align with another one?. The response to that question was to add a vertical space according to ...
9
votes
3answers
2k views
Vertically align subfloats at the top while having subcaptions vertically aligned below the subfloats
I have a float with two subfloats:
I want the circles to be vertically aligned from their top such as in the following figure. But I don't want the subcaptions to be placed above the subfloats but ...
10
votes
5answers
2k views
Vertical alignment of align* in enumerate
Related (but not the same):
Align number from enumerate with equation
Displaying an equation in a list
Earlier today I asked a question about aligning equations in an enumerate environment ...
3
votes
2answers
3k views
Set table position to top
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 ...
8
votes
1answer
739 views
How to align picture top left in a table?
is there a way to create a table with 2 columns,
in the left column should be some text,
in the right column should be a picture.
The problem is - to align both to the left, top corner. The image ...
4
votes
1answer
760 views
How to prevent the paragraphs to spread out over the page?
I have a problem. I have several large equations within the text. And when LaTeX does not manage to put the equation on the same page and moves it to the next one, he spreads the paragraphs of the ...
42
votes
4answers
3k views
What is the difference between 'fil' and 'fill'?
TeX provides the commands \vfil and \vfill (and their corresponding horizontal versions \hfil and \hfill).
These commands are actually defined as:
\vskip 0cm plus 1fil
\vskip 0cm plus 1fill
where ...
11
votes
2answers
2k views
How to make an exact vertically centered object in a page?
Note: the red lines have the same length.
\documentclass{minimal}
\usepackage[showframe,paperwidth=4cm,paperheight=4cm,margin=1cm]{geometry}
\begin{document}
%
\vspace*{\fill}%
\fbox{test}%
...
19
votes
2answers
14k views
14
votes
3answers
8k views
Shift title and author text up?
What is the best way to shift the title text 'up' in a LaTeX document compiled with pdftex? When I do this:
\documentclass[12pt,letterpaper, onecolumn]{article}
\setlength{\topmargin}{0in}
...
6
votes
1answer
180 views
Setting the same distance from the top of the page for chapter and index titles
I noticed that the distance from the top of the page to the chapter title differs from the table of contents and list of <> ones. I can see why, as these elements have specific purposes and ...
5
votes
2answers
748 views
Alignment of item number in list containing a minipage
I would like to have the list number at the beginning of the item, and not centered as is the case for item (b) the example below. If I comment out the \usepackage{nccmath}, I get this, but then the ...
6
votes
2answers
678 views
Stretching a framebox over the whole page
Does anyone know how to stretch a (framed) box down to the end of the page? In effect something like
\documentclass{scrartcl}
\begin{document}
sometext
...
11
votes
1answer
980 views
Align marginpar with beginning of paragraph
Is there a way to align a marginpar with the beginning of a paragraph, without cluttering the text of the paragraph?
If I do the following, the marginpar lines up with the last line of the first ...
10
votes
5answers
2k views
How to make a tikz node, top-aligned with the rest of the text?
If I write
before-text \begin{minipage}[t]{5cm} line1\\line2\\line3\\ \end{minipage} after-text
I get a box, whose top is aligned to the top of "before text". I would like to have the same, when ...
9
votes
4answers
983 views
Aligning an enumeration item to the top of a tikzpicture
I've drawn a tree using pgf/tikz and am trying to place it in an enumerated list. A snippet of my complete code is as follows:
\subsection*{Problem 2}
\begin{enumerate}[1)]
\item Max heap
\item
...
12
votes
4answers
2k views
In beamer class, how do I remove the additional vertical space before an itemize environment?
On a beamer slide, I want to produce something like
I use the following LaTeX code, which works well in LaTeX with the article class.
\begin{minipage}[t]{1.4cm}
Questions:
\end{minipage}\nobreak
...
5
votes
1answer
336 views
Vertical alignment in multicol
In the following code the horizontal rules on the right don't line up in all cases with the horizontal rules on the left. It seems to be related to the text content. How can I fix this in such a way ...
11
votes
2answers
719 views
How do I force TeX to completely use the 1st column?
How do I force TeX to completely use the 1st column before writing to the second column?
Right now I dont have enough content to fill one whole page. So the left and right columns are equally filled, ...
6
votes
2answers
607 views
Repeating a block of text until it fills a page
Might I please have some help with writing a loop that repeats a block of text as many times as there is remaining space for it on the page?
I would like to produce an notebook in TeX which is ...
5
votes
1answer
126 views
How to split and align equations when they are inside an enumerate environment?
How to make the first line of aligned equations sit in the same baseline as the bullet and make the equation left justified?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
...
5
votes
1answer
890 views
How to vertically and horizontally centre text and images in (different) table cells?
I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and ...
4
votes
2answers
199 views
multiple pairs of columns
Consider this example code which creates a 2x6 table where the 6 columns are formed from three name/value pairs:
\documentclass{article}
\usepackage[svgnames,table]{xcolor}
\usepackage{tabu}
...
2
votes
2answers
306 views
How to align across ordinary text; as in breaking matrices, sets of equations, tables
In my case I need to break a multi-line object, as in a matrix, aligned equations, or table, and enter them one row/line at a time. There will be plain text between such rows. There should be NO ...
2
votes
2answers
2k views
Vertical alignment with subfig and pstricks
I'm working with pstricks to add illustrations to a paper, as I found that it allows me to save much time compared to editing files with dia/xfig/visio/etc. and including pngs.
But I'm having a few ...
17
votes
3answers
3k views
Understanding minipages - aligning at top
I would like to be able to align two minipage at the top, without worrying about what is in the minipage. I am aware of the optional [t] parameter, but still have some confusion as to how this all ...
12
votes
1answer
2k views
Why does \vspace*{0pt} add vertical space?
I'm trying to format the title of the table of contents using the tocloft package. It inserts code that looks like the following.
\par
\vspace*{\cftbeforetoctitleskip}%
% code to typeset ...
15
votes
4answers
14k views
Stable vertical alignment of columns in Beamer
In Beamer, I often use a two-column slide layout, picture on the left and text on the right. Sometimes the same picture is used on multiple slides, with the text on the right changing. I use the ...
21
votes
1answer
9k views
Positioning content at the top of a beamer slide (by default)
When I create beamer frame, the content is centred in the slide. How do I make the content move to the top of the slide by default?
15
votes
2answers
372 views
How to center a typewriter (ttfamily) '+'
I would like to draw a circular TikZ node with + in its center, but font=\ttfamily moves it up. Why? How to solve it?
\documentclass[border=3mm]{standalone}
\usepackage{tikz}
\begin{document}
...
5
votes
3answers
2k views
Problem with TikZ and vertical alignment of text inside nodes
I have a problem in TikZ with the vertical alignment of text inside nodes.
With a very minimal example like this:
\usetikzlibrary{arrows,positioning,shapes.geometric}
\begin{tikzpicture}[%
->,
...
19
votes
3answers
20k views
tabular vertical alignment to top?
I'm trying to create a simple tabular with two cells of text and two images below them like so:
\begin{tabular}[h]{ c | c}
\emph{Normal} & \emph{Cone} \\
...
15
votes
2answers
9k views
Vertically center cells of a table?
What is the easiest way to center align each row of table? I have a table column that contains an image and other cells in the same row contain text. I would like to know how to vertically center ...
12
votes
1answer
2k views
Vertical alignment of inline images
Images appearing inline aren't always ideally placed relative to the baseline and risers of the text itself, so I frequently find myself doing manual adjustment, by eye, using \raisebox{}{} with a ...
6
votes
4answers
752 views
Vertically centered horizontal rule filling the rest of a line?
I'd like to have a horizontal line extending from the end of the text on a line to the right margin. So far I've found \hrulefill and \leaders\hrule\hfill, but these draw a line that's flush with the ...
4
votes
2answers
2k views
Automatic vertical alignment of a single float on a dedicated page
In my large latex document, I have some figures which take a considerable height of the page (80-95%). Latex puts each of these figures alone on a page, aligned on top. I would like to have each ...
12
votes
2answers
800 views
\addvspace can't replace \vspace
I want to replace \vspace with \addvspace in a command. When so doing, I get obtuse "something's wrong--perhaps a missing \item." errors. I'd appreciate an explanation of why this happens and how ...
10
votes
2answers
871 views
Uneven text distribution with two-column layout
I am comfortable with creating basic LaTeX documents and making minor modifications to templates I can find online, but not much more. The Oxford Bioinformatics journal has an awesome template here ...

