Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vertical-alignment]

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

2
votes
0answers
13 views

Vertical Alignment of Matrices with spalign Package

I am using the spalign package (http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/spalign/spalign.pdf) to typeset matrices and systems of equations. Basically it just lets you use ...
0
votes
2answers
14 views

side by side tables latex - without \floatrow

I have the following simplified document (): \documentclass[10pt]{book} \usepackage{float} \let\origfigure\figure \let\endorigfigure\endfigure \renewenvironment{figure}[1][2] { \expandafter\...
5
votes
2answers
97 views

Including default parameter into \def

I'm using the classic thesis style with the \graffito command (example here). How can I modify the command below to add some vertical spacing before the text which is set to a standard value by ...
0
votes
1answer
30 views

Table, Tikz picture in the left, text in the right: how to vertically align?

I would like a table with tikzpictures in the left column and explanatory notes in the right column. What can I do improve the vertical alignment of the row contents in the following example? ...
0
votes
0answers
28 views

huge space between two paragraphs in latex double column

Actually, I am writing a paper in a journal format, which is a double column, I have finished writing, but there is a lot of things which are not aligned properly, how to overcome this. And also the ...
4
votes
2answers
28 views

Creating equally spaced quote & header

I want to create a heading for worksheets I will make. I want space for their name, the course, etc. in the upper leftmost space of the page (based on the page dimensions) and a TV/Movie quote in the ...
0
votes
1answer
13 views

fleqn modifies vertical spacing in document

I am almost done writing an article, and wanted to change the alignment of figures and equations using the fleqn option in the documentclass environment. However, after implementing the change, the ...
2
votes
1answer
30 views

top alignment of a figure in beamer columns not working

I have the problem that the figure is differently placed regarding the top space in dependance on whether I put it into a column or not. What I try to achive is that the figure starts at the same ...
2
votes
1answer
106 views

What is the vertical spacing caused by the \intertext or \shortintertext command?

\documentclass[letterpaper,10pt]{article} \usepackage{amsmath} \usepackage{nccmath} \begin{document} \begin{align*} \intertext{what is the vertical spacing here?} \\[-30pt] 1+2 \\ =3 \end{align*} \...
0
votes
0answers
54 views

How to align the contents in longtable?

I would like all the three lines of texts displayed by the pdf document generated by the following code to be aligned to the second line of text. \documentclass[a4paper, pdftex, english, 10.25pt]{...
3
votes
3answers
173 views

Integral with fraction and square root produces wrong vertical alignment

This code produces an ankward vertical alignment which involves the integral symbol and the fraction with the square root at the denominator. Why? How can I fix this? \documentclass[a4paper]{article} ...
10
votes
1answer
155 views

Improving alignment of signed fractions in table

I would like to find a way to better align signed fractions in a table. Take the following example: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \begin{document} \begin{table}...
4
votes
1answer
60 views

Vertical centering in tabularx

I am trying to get a text to center vertically within a tabularx. For centered and bottom text it works, but it fails for top text. What am I missing here? \begin{tabularx}{\textwidth}{ | X | ...
0
votes
2answers
54 views

Table - centering

How to center data in table when the first cell is split to two rows with \\. Other values are printing to the second rows. I tried multirow, but it doesn't work. \documentclass[12pt,a4paper]{report} ...
0
votes
1answer
32 views

Robust command for tikz yshift

I created a robust command declared in preamble to include a small figure in the text. \DeclareRobustCommand\mytikzcell{\tikz \tikzset{b2block/.style = {rectangle split, rectangle split parts=1, ...
0
votes
0answers
15 views

align followed by pagebreak causes align in the middle of the page [duplicate]

MWE \documentclass[12pt,a4paper,twoside]{article} \usepackage[a4paper,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=2cm,twoside]{geometry} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[...
5
votes
1answer
80 views

cases environment with material to the left rotated to vertical

Say, I have this MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \text{ three equations} \begin{cases} a &= b + c \\ d &= e + f + g \\ h &= i +...
7
votes
1answer
179 views

Overhead brace in tikz

I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2. Here is a template: \documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} \usepackage{...
2
votes
2answers
62 views

Vertically align two side-by-side minipages at the bottom of the page

MWE: % !TeX program = xelatex \documentclass[paper=A4,fontsize=12pt,titlepage]{scrartcl} \usepackage{showframe} \begin{document} \begin{titlepage} \raggedright { Some text } ...
3
votes
3answers
45 views

Center text vertically in a table with minimum row height

How can I center a text vertically in a table? I've looked into the documentation that suggests to use tabular m{} or b{} tag, but it doesn't work for me. MWE: \documentclass[a4paper]{article} \...
4
votes
1answer
45 views

Text in TikZ nodes: controlling the box variables of characters/string

I remember that there were different commands in TikZ that allow modifying how the characters in a node are placed but I'm not able to find all of them in TikZ manual. Probably I'm looking for the ...
0
votes
1answer
33 views

Vertically wobbly figure in Beamer over slides

I have successive slides where one column is text and the other column is just an image. The image stays the same, so I simply kept the exact same code in a new frame. However, at my surprise, when I ...
0
votes
2answers
37 views

Write implications between texts written on more than one line

I am trying to write something like: \begin{center} Proposition A $\implies$ Proposition B $\implies$ Proposition C \end{center} The only problem is those propositions should be written in two ...
0
votes
1answer
75 views

ConTeXt: uniform handling of whitespace in margin and text

Why does whitespace handle differently in the margins than the text body? \setuppapersize[letter] \setupwhitespace[medium] \setuplayout [backspace=4.375in, width=3.625in, leftmargin=3....
1
vote
3answers
77 views

How to specify variable padding for tikz node text?

I have a custom tikz node with a design along the top and left side, and would like to center its text in the bottom-right section of the node. For example, I would like to center the text in section ...
18
votes
1answer
331 views

Spacing difference when using boxes

On the left (obtained from the MWE below), I do not use boxes for the title nor the body text and the title and the text appears to be in the correct spot. However, when I attempt to use \...
1
vote
1answer
21 views

Place subscript below math operator and its following symbols

I'm dealing with equations from statistics that include expectations over quite long expressions. To display those without too many line breaks, I'd like to place the subscript below the operator and ...
0
votes
0answers
39 views

The counterpart of “adjustwidth” as “adjustheight”

Is there a counterpart/similar function like "adjustwidth" to width, as the "adjustheight" to height? What I hope to see is something like shifting a whole table upward above the top margin, since ...
3
votes
1answer
41 views

how to align dotfill in a wrapped line

how to align dotfill and square symbol in a longtable with wrapped lines? I wrote this mwe: \documentclass{report} \usepackage{longtable} \usepackage{booktabs} \usepackage{multicol} \usepackage{...
1
vote
1answer
53 views

Multiple Line Text Box

Given the many similar questions on TeX.SE, my desired answer may be somewhere else on this site, but I have not been able to find it -- apologies if this is a duplicate! I am writing the following ...
2
votes
1answer
63 views

Drawing grid lines to show vertical position of text [closed]

I have text where I want to adjust the space above the first line. I want to overlay grid lines to show where the vertical position of the text is. The MWE below with the following line commented is ...
13
votes
2answers
310 views

Tikzpicture with remember picture and overlay inserting vertical space

I am trying to insert additional vertical space at the top, but instead this vertical space is inserted after the first title line: However, if I comment out \TikzDecorations[2], I obtain the ...
1
vote
2answers
42 views

How to Vertically Centre an Image in a Vertically Merged Cell

I am trying to centre an image within a table so that it is centered vertically within the table between two rows. Here is an image of what it looks like at the moment: But I want it for the ...
2
votes
1answer
39 views

Section Rotation

How to type the part where the chapter is rotated with or without the shaded box, and then there is text right beside it? What I have so far \begin{document} \section*{\rotatebox{90}{Chapter 1}} \...
0
votes
0answers
20 views

Centring characters and, if needed, enlarging parenthesis to contain accented characters in them

I would like to centre characters and, if needed, enlarge parenthesis, in such a way that they fully contain accented characters and characters with symbols upon them, like a vector arrow for example. ...
2
votes
0answers
37 views

Centering not working on pdf/tikz plot! [closed]

I have looked at other posts regarding how to center a "figure." To be clear, I want to center the plot in the center of the document. I have followed the advice of many to use "\centering." However, ...
2
votes
2answers
55 views

Problem with table cell borders and vertical centering of text

I have been formatting the table on the first picture for a long time and still can not achieve a desirable result shown in the second picture. I am trying to solve 2 problems: I can't get why my ...
0
votes
0answers
24 views

Inline function definition under domain and codomain

It often happens that in mathematics one writes a function definition (i.e. where an element x is sent in the codomain) under the domain and codomain. I try to do it with an aligned environment but I ...
0
votes
0answers
33 views

Top Vertical alignment for all images in either Tex or Pandoc

I am using the following pandoc header: output: rmarkdown::html_document: theme: lumen fig_caption: yes All images are being marked as figures and moved to the end of the document (...
2
votes
1answer
65 views

vertically center all slides in ConTeXt with minimal setups

I would like to emulate beamer's centred framed behaviour in my ConTeXt presentation. Thanks to this post, I figured out how to have my (sub)section titles centred. I am also using a makeup for my ...
1
vote
2answers
58 views

vertically center image in longtable

I have a longtable with \cline borders. Unfortunately, the image in the second column is not vertically centered. I even fail in changing the vertical position any way. I found this similar question: ...
2
votes
1answer
40 views

Vertical alignment of *all* cells when multirow is used to join some cells

I'm trying to achieve a good vertical alignment for a table whose cells contain alternatively an image or text, but I'm confused by the interaction of adjustbox with multirow. The MWE is the ...
1
vote
2answers
40 views

How to make equation spacing consistent in minipage regardless of horizontal alignment

Under ordinary circumstances with amsmath, when I wrap display equations in a minipage, they appear without any \abovedisplayskip spacing if the equation appears first in the minipage but with the ...
0
votes
1answer
30 views

How can Text be vertically centered, but horizontally aligned to the right?

This is my example: ignore the German text. \documentclass[a4paper,11pt]{article} \usepackage[left=3cm, right=4cm, top=2cm, bottom=2cm]{geometry} \usepackage{array} \usepackage{tabularx} \usepackage{...
0
votes
3answers
90 views

Block Diagram drawing with Tikz - misplaced dot and other

I am trying to generate this table: I have two questions regarding the generation: When I position the dot to try to match up row 3 on the block diagram, I get the dot being offset from the line ...
0
votes
2answers
32 views

Title formatting

I have the following code: \title{ \begin{center} CLAXXX Homework X \newline Prof. Professor \newline First Last \newline Day, Month XX, Year \end{center}} \begin{document} \centering \maketitle \...
5
votes
2answers
201 views

How to have equation number at top with intertext in split environment

I have some split equations with intertext, like this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} y_j &= \frac{1}{35}\left(-3y_{j-2}+12y_{j-...
1
vote
2answers
54 views

Line Break in Equation Using empheq

I have an equation that overspills into the margins; I am using (and would like to continue using) empheq for it. Let me give a MWE. Note that it's not what I've actually got in my document, just an ...
2
votes
2answers
62 views

chemfig: lewis structure

Currently working on corrosion of CaCO3: \documentclass[a4paper]{article} \usepackage{chemfig} \begin{document} \[ [Ca^{2+}; \chemfig{O - C (=[6]O) (-[8]O) }] + 2 \chemfig{H-Cl|} \hspace{4em}|\...
0
votes
1answer
36 views

Placing a float just under the text

I'm trying to place the chart (picture) higher, just under the text. However, even though I use: \begin{figure}[ht] the float stays at the bottom of the page. What should I do?