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

learn more… | top users | synonyms (2)

5
votes
2answers
798 views

Tone marks above Chinese characters in latex

My aim is to put tone marks above Chinese characters in latex. I have tried \v{好}, but this puts the carron accent (3rd tone) in the space left of the character rather than above it. I have also ...
5
votes
2answers
141 views

Putting text at the side of a tikzpicture

I've just completed a tikz diagram. I need the text In the following diagram, what can you say about $\angle F$, $\angle B$ and$\angle E$? to go to the right of the diagram to save space on ...
5
votes
1answer
143 views

tikz picture inside of an enumerate environment

Is there a way I can make sure that the number of the enumerate environment stays in the top left of the tikzpicture? I'm using a custom environment that just wraps around the enumerate environment... ...
5
votes
2answers
75 views

alignment mark inside box can't be seen from outside this box

I didn't really know how to write the title, hope it's clear enough (I'm willing to change it if anyone suggests anything better). My problem is the following: I want to align different items with ...
5
votes
2answers
647 views

centering vertically the abstract element

How can I put at the center of the page the element abstract?I put it in a blank page but it is at the top. I would center it vertically.any idea?
5
votes
3answers
9k views

how to vertically align a cell in a table?

I have a table that I define \begin{tabular}{lllllllllllll} \includegraphics[width=7.3in]{img1.pdf} & \includegraphics[width=7.3in]{img2.pdf} & \includegraphics[width=7.3in]{img3.pdf} & ...
5
votes
2answers
125 views

(How) can I manually specify the axis of a (horizontal) box in math mode?

This question led to a new package: underoverlap I've been using the \overunderbrace macro provided in this answer. It works fine for simple examples, but since the original definition uses ...
5
votes
2answers
140 views

Setting the vertical distance in \overline

I want to overline a piece of text, but the line is too close to the number, which is not nice, so I want to add some kind of padding between the overline and the text. This is what I've made up so ...
5
votes
3answers
134 views

Equation numbering

Suppose that when we write an equation in the align environment and we break the equation in two lines. There is only one equation number. How can I place this number not in the last equation line, ...
5
votes
2answers
308 views

Shift page up slightly. Cant get \enlargethispage*{-2\baselineskip} to work

How would I shift up my 2nd page to the 1st page? There seems to be alot of space left on the 1st page but I cant get the 2nd page to move up to the 1st page. I tried using ...
5
votes
1answer
377 views

Equations inside enumerate aligned on item's number

If I type \begin{enumerate} \item \begin{align*} eqn 1 eqn 2 \end{align*} \end{enumerate} the label will appear on the first lines and the equations will ...
5
votes
3answers
389 views

Vertically align the cell of a table with the baseline of surrounding text

I have a table like this: \begin{tabular}[b]{c} A \\ B \\ C \\ D \\ \end{tabular}E The code above places "D" and "E" on the same baseline, no matter what size any of the letters are. Without ...
5
votes
1answer
186 views

Greek letter in math mode appears lower than the rest of the statement

This is my first time using the math mode. My problem is visible in the following screen capture. I find that the lower-case chi letter is rendered lower than the latin characters. Is that normal? ...
5
votes
3answers
159 views

Vertically aligning images in beamer

I have a sequence of images I would like to animate in beamer. In each frame, I would like to have two images, say A and B, aligned vertically and centred on the page. All images are the same size. ...
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
3answers
416 views

Placing Subfigures vertically

I want to use subfigures to place three figures like this: The following is the code I used: \begin{figure} \begin{tabular}{|c|c|} \hline \multirow{2}{*}{ ...
5
votes
1answer
308 views

How to make {multicols}{2} the same as \twocolumn ?

Using \begin{multicols}{2} gives me unexpected results. It seems like if I write 8 lines, then it divides by 2, then puts 4 lines in the left column and then the other 4 in the right column (see ...
5
votes
1answer
437 views

Can I insert a vertically centered image in math mode?

In Mikael Öhman's answer to this question, he provides some code for placing an image in math mode as a symbol using the \mathord declaration. I can define a new command in the preamble using this, ...
5
votes
2answers
993 views

Problems with pictures in multicol

I am writing a short article for a magazin and want to have a two-column text. Since the header is supposed to be centered, I decided to use the multicol-package. This is my header: ...
5
votes
2answers
454 views

Vertical aligning text and vertical height of rows in longtable environment

I have now been working on fixing this problem for some time and I have read through some forums on the Internet and tried different things, but I can't solve this problem. I am looking to have some ...
5
votes
1answer
3k views

aligning a multiline formula with the bullet of itemize

I would like to use a multiline equation into an itemized list, but such that the bullet of the list is aligned with the first line of my equation. The current code I use is like this: ...
5
votes
2answers
75 views

How to put the text at the top in fancyhdr

I made a document with 2 pages and headers: Can I put "Page 2 of 2" at the top of the 2-nd page, so it was vertically aligned with "Commercial invoice"? How can I manage the padding between the ...
5
votes
2answers
48 views

Managing checkbox representation

I tried to create a checkbox, analogous to Creating Boxed Check Mark This woks correctly: \documentclass{article} \usepackage{amssymb} \begin{document} ...
5
votes
1answer
76 views

Vertically aligning text after baseline changed

\documentclass{article} \usepackage{tabularx} \usepackage{tikz} \begin{document} \begin{tabularx}{\linewidth}{c|X} \begin{tikzpicture}[ scale=.6, every node/.style={scale=.6} ] ...
5
votes
2answers
166 views

\pbox vertical alignment

What's going on here, why are the TEXTs not aligned? \documentclass{article} \usepackage{pbox} \begin{document} \hrule \pbox[c][20pt][b]{\textwidth}{TEXT\\ Short} ...
5
votes
1answer
132 views

badness messages when changing from report to book class

When I change the documentclass from report to book I suddenly get a lot of messages like this: Underfull \vbox (badness 10000) has occurred while \output is active [] Does anyone have an ...
5
votes
3answers
255 views

Make different font sizes in a table align at top, not bottom

I have a situation similar as to this MWE: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{table} \begin{tiny} \begin{tabularx}{\textwidth}{|>{\normalsize}X|X|X|} \hline Foo ...
5
votes
1answer
350 views

How can I align text, on my title slide, from two different boxes?

I'm trying to match a PowerPoint template, because, well, does anybody here like PowerPoint? Swapping the images out for those that are in the public domain, it looks something like this: No, I did ...
5
votes
1answer
221 views

How to retain the double-column formatting of the previous page after \clearpage?

I'd like to have some additional material after a paper, starting on a new page. For this purpose I'm using \clearpage or \cleardoublepage (\newpage doesn't work the way I want). Unfortunately, while ...
5
votes
1answer
893 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 ...
5
votes
1answer
652 views

A vertical alignment problem in tabu environment with X[m]

I learned tabu for a while and I can not solve a problem about vertical alignment with X[m]. Here is the minimal working example below. \documentclass{article} ...
5
votes
1answer
536 views

TIKZ: writing text top downwards

My simple question is how to set some text using tikz in a column e.g. +---+ | A | | B | | C | +---+ I do not want to rotate the text so I can not use the rotate option or the set text along path ...
5
votes
1answer
332 views

Automatically make footnote-carrying pages vertically stretchable

My thesis use a page size that is exactly 34 line of text tall. (10pt text + 33 * 18pt \baselineskip = 9in plus 2pt, which looks like 1in margins on an 8.5x11" page). Some pages contain pretty much ...
5
votes
1answer
2k views

Vertical Alignment of Minipage

I have a question, I'm using the following setup for a title page: \begin{titlepage} \begin{center} \textsc{\LARGE University Name}\\[1.5cm] \textsc{\Large Bachelor thesis}\\[2cm] { \huge \bfseries ...
5
votes
1answer
1k views

lstlisting, tt fonts, and alignment.

I (mostly) love the listings package, which I have started migrated to from verbatim for code listings. I prefer to continue to use teletype for code, and so I changed my default listing configuration ...
5
votes
2answers
749 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 ...
5
votes
1answer
581 views

Vertically align two boxes based on their top borders, not on baseline

I have two boxes which to shows text to the left and right of a document. \begin{minipage}[t][1in][t]{2in} {\Huge First line box 1}\\ {\footnotesize Second line box 1} \end{minipage} \hfill ...
5
votes
2answers
1k views

Combined header cell in a table

This question is closely related to at least two other ones; namely, Tables of numbers, and slashbox alternative. What I'm after, is the horizontal- and vertical-alignment of row- and column-headers ...
5
votes
1answer
39 views

flush bottom an environment

Suppose, I have defined an environment called myenvironment which typesets multiple lines of text using various formats. So, the height of the environment depends on the text that it has which is ...
5
votes
1answer
337 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 ...
5
votes
1answer
940 views

Understanding titletoc example (and vertical alignment on line)

EDIT: TLDR summary (as I wrote in comments): What I want from this question (and couple of others referenced herein) is: -- section number (label) to be top-aligned with the title + AND I want the ...
5
votes
1answer
83 views

How to fix diferent position of the line (space between the line and a page number and paragraphs) in the header using \pagestyle{uheadings}

I have noticed that in the document I am working on the line in the header is changing position page to page. Basically there are two slightly (but notably) different vertical spaces between the line ...
5
votes
1answer
546 views

Within table, vertically align top of a list and normal text in horizontally adjacent cells

I am making a table where two of the columns constitute a pros/ cons list. I have created a custom list environment with minimal white space around it for this purpose. However, I still find that the ...
5
votes
3answers
3k views

Centering mutirow text in a table whose cells contain several lines of text

I'd appreciate advise in centering a multirow text. In the MWE below the multirow text "spring" is NOT centered over the three rows that it spans. ...
5
votes
1answer
753 views

How to vertical align a text and an tikzpicture?

I am using a TikZ picture followed by a text. How do I create a picture that aligns with the top of the text? \begin{minipage}[t]{0.45\textwidth} \tikz[baseline=(current bounding box.north)] { ...
5
votes
3answers
2k views

Vertical space of \includegraphics[height=2cm]

I am trying to place an image on the right of some individual lines of text that do not stretch over the entire \textwidth. The image will go higher than the first line and I have to be able to ...
5
votes
4answers
116 views

Why can I not vertically align the text in the 3rd table column?

I'm trying to make a table which lists some math functions. I've been searching the net on how to center the equations in the cells both vertically and horizontally. And I think I've found an answer ...
5
votes
1answer
162 views

Using a table: alignment issues and cell labels

I'm using tables with the tabular environment, with cells containing tikzpicture. I would like to center the contents of the cells both vertically and horizontally, and have little labels in the top ...
5
votes
1answer
341 views

Table rotated text alignment

I have a code that produces a table. The three last columns have rotated text. I would like to align them to the bottom (not top as in the code below). In addition I would like to center the "nr" and ...
5
votes
1answer
66 views

How does one vertically center the heading for a 'part' in ConTeXt?

My best effort thus far has been to simply add a big blank as a before perameter: \setuphead[part][placehead=yes, alternative=middle,before={\blank[12*big,force]}, header=empty] Obviously, this ...

1 3 4 5 6 7 13