{horizontal-alignment} is about aligning document elements horizontally, e.g. typesetting paragraphs using \centering or \raggedright or adjusting the horizontal position of several equation or table components. If your question is generally about (horizontal) white space, use {spacing} instead.

learn more… | top users | synonyms (6)

1
vote
0answers
16 views

Some items in bibliography are not aligned

I am adding some items to my bibliography: \bibitem{ibm2}vander Meûlen, R. J. (2006). The immersed boundary method for the (2d) incompressible Navier--Stokes equations. Modelling, Analysis and ...
2
votes
1answer
33 views

Positioning tikzpicture and determining range for axis

In another question I got great help creating this picture: Actually it looks how it should but there are two further things I would like to clarify: Firstly, I get this warning: Axis range for ...
1
vote
1answer
30 views

Making colorbox left align

I am using same template for resume as was written about here, Latex - width of the colorbox. I am trying to align the words in the black boxes to the left. They seem to be aligned to right as ...
0
votes
0answers
24 views

Centering of watermark at front page

I'm trying to use this script and it's all working very well, except from one thing - I can't seem to get it centred. My coding is: \documentclass[12pt]{article} ...
7
votes
2answers
114 views

Minimize hyphenations with ragged2e

Nearly every guide to LaTeX recommends \RaggedRight from the ragged2e package over the built-in \raggedright. But I've always been frustrated by too many hyphenated words with \RaggedRight. I ...
1
vote
2answers
35 views

Adding some horizontal space to an itemize environment where \tab is used

I would like to add some horizontal space to this itemize environment. (Note that I use \tab). I tried using [itemindent=4cm] and \addtolength{\itemindent}{4cm} but the result is this: How can I ...
3
votes
3answers
94 views

Centering symbol displaced by underbraced text and broken underbrace

I have the following code: $$ \underbrace{ \{\varphi\}\cup\Delta_M\cup\{p_M\} }_{\text{Finito e instasifacible.} } \subseteq \underbrace{\Gamma\cup\Delta_{M+1}}_{\text{Finitamente satisfacible.}} $$ ...
6
votes
1answer
88 views

Balance ragged and hyphenation

From Beautiful Evidence: Each paragraph is left-justified but neither excessively hyphenated nor ragged on the right side. The tufte-book class seems to be too ragged. How can I configure the ...
1
vote
1answer
21 views

siunitx: Hortizonal alignment for S columns

I am trying to present tabular groups of means and standard deviations in the format M (SD). In the MWE how can I "tighten up" the horizontal alignment of each "M (SD)" group? I would like them to be ...
2
votes
2answers
52 views

How can I align my enumeration? [duplicate]

This is my code \begin{enumerate}[(i)] \item $\frac{1}{2}$ \text{VS} \displaystyle \frac{1}{2}\\ \item $\sum_{k=0}^{n} f(k)$ \text{ VS } \displaystyle \sum_{k=0}^{n} f(k) \\ \item $\int_{1}^{2} ...
3
votes
5answers
87 views

Help with horizontal alignment

Can you help me move the text closer to the left like: \documentclass[11pt,fleqn]{book} \usepackage{amsmath,amsfonts,amssymb,amsthm} \begin{document} \noindent where \begin{flalign*} &\Delta ...
1
vote
1answer
53 views

Beamer: how to justify the whole text?

How can I justify the text in the whole document in beamer without using \usepackage{ragged2e} and \justifying at the beginning of each frame? \documentclass[8pt,handout,t]{beamer} ...
3
votes
2answers
65 views

Aligning the comments in align mode

I was trying eqnarray to align inequalities but I kept getting the error of missing $ inserts, so I am trying now align, but now I would like to align the comments This is the code ...
1
vote
1answer
23 views

align list items content at the same level [duplicate]

What this the best way to accomplish the following? using tabular ? i dont want to use \hfill and pushing them to the end of the line. • list-item i want this • longggg-item and ...
4
votes
2answers
22 views

How to center title in custom title?

Right now my title looks like this As you can see, the centering is a bit off. What I really would like it to look like is not have element 1 & element 3 and have "CS 2800" & "Homework 1" ...
1
vote
1answer
28 views

Align figure inside a bulleted list

I'm using lyx, and I have a figure float inside a bulleted list. I'd like the figure and especially the figure caption to align to the bulleted list, so that it's clear that the image belongs to the ...
1
vote
1answer
38 views

How to center the first half of AMS equation-line on the left side of the screen while its second half is centered on the right side of the screen?

For the sake of example, how can I construct (line by line) two Pascal triangles that are next to each other? Here is an example of how I need to position parts of AMS equation (either multiline or ...
4
votes
2answers
38 views

How to fully center a \Shapepar?

I'm adding a colophon at the end of my document inside a \shapepar, however it appears at the top left of the page, and I can't manage to center it, both horizontally and vertically. I've loaded the ...
3
votes
2answers
37 views

Horizontal line \hline inconsistent behaviour

Trying to make a table with the following code \begin{table}[h] \caption{Different scans conducted with the Catphan.} \begin{tabularx}{\linewidth}{|l|X|X|c|X|} \hline \rowcolor{slightgray} \T ...
3
votes
2answers
50 views

Align text in a list/two columns

I am listing things with descriptions and some descriptions don't quite fit in the line, making the list look less pretty. What I've currently got is just an itemize environment and it looks kinda ...
0
votes
1answer
29 views

Changing the page number/footnote number font?

I think I've been using this code: \renewcommand{\footnotesize}{\fontfamily{phv}\selectfont\scriptsize} It changes the font of the footnote but not the number of the footnote itself. Any way to ...
2
votes
1answer
22 views

how to give horizontal offset to the section heading and align multiple tabs

I am a beginner in latex and trying to prepare my CV. the output of the following code \documentclass[11pt]{article} \usepackage{sectsty} \usepackage{amsmath} ...
2
votes
1answer
44 views

siunitx: Appended currency symbol mispositioned with aligned negative values

I'm trying to do some LaTeX-table-magic for a friend, and I've run into a strange issue I haven't been able to find a solution for. I'm using siunitx (along with booktabs) to align some values in a ...
2
votes
1answer
33 views

Table is not centering

I'm having some problems creating the following table: \begin{table}[h] \begin{tabularx}{\textwidth}{X X} \textbf{Advantages} & \textbf{Disadvantages} \\ \begin{itemize} \item ...
1
vote
0answers
33 views

Text alignment in moderncv

I am making my cv with moderncv class. I have two questions: 1- How to align first and second column of "Programming Languages" vertically? So that, the text "Programming Languages" would be ...
1
vote
2answers
24 views

How can I align lines to the right except the first in a multiple line equation?

I have always tried to achieve this but after a few tries decided to skip and concentrate on writing instead of solving it. I am using align environment and trying to align the multiple lined ...
2
votes
1answer
23 views

Left-align equations not working

I am trying to left-align some equations so they line up nicely. I'm using align with [fleqn] per this question and setlength per this question. But it doesn't seem to have worked. I tried the fleqn ...
0
votes
1answer
20 views

How to center text not including hyphen?

The title of the book placed on the spine needs to be centered. The title includes hyphen - according to Czech standards, the hyphen should be placed also in front of the second word (f.e. in ...
4
votes
1answer
53 views

If figures are placed left, left-aligned captions are unwantedly centered (ConTeXt)

What I try to do: I want to place figures left so that text wraps around them if they have less width than \textwidth. The figure captions should be aligned left (flushleft). What happens: The ...
3
votes
2answers
31 views

How to make a caption (table and figure) left justified

How do I make my captions both for table and figures left aligned. I tried using \usepackage[justification=justified,singlelinecheck=false]{caption}. But the caption is aligned with the page and not ...
1
vote
1answer
31 views

Centering images in lyx

I am having some trouble in centering images in lyx and have read a number of questions on the topic. However, when attempting to apply the solutions from the answers the images are still not ...
4
votes
1answer
70 views

Column alignment in tikzcd

I am not sure whether this is possible or not. I would like to have some control on the horizontal alignment of columns in tikzcd. In particular I would like to be able to mimic (on some of my ...
1
vote
1answer
19 views

How to right-align section numbering in a memoir Table of Contents?

I'd like to right-align the section numbers in the Table of Contents of a memoir document. I'm already using some tocloft features and figured it would have this feature, but I can't seem to find it. ...
3
votes
2answers
103 views

How to get a horizontal line that is aligned at the bottom of a fraction?

$\frac{18e-12}{10}=\rule{5cm}{1pt}$ gives How do I get something that likes this Thanks.
3
votes
2answers
29 views

Subfigures are right aligned

If I use subfigures to align two images side-by-side, these are right aligned. I tried several things but doesn't change anything. My current markup looks like this: \usepackage{subfigure} ... ...
2
votes
1answer
39 views

Fraction As Power: Alignment Problem (With Subscript)

I am trying to write an equation with the following code: \begin{align} p_{e,i}(k)=\frac{4}{b_{i}(k)} \left(1-2^-\frac{b_{i}(k)}{2}\right)Q \left( \sqrt{\frac{3\ ...
2
votes
1answer
28 views

Hphantom of minus sign in math mode

I would like to align the parenthesis in following two equations using \hphantom \documentclass[varwidth]{standalone} \begin{document} \noindent $d\cdot i\hphantom{j}\qquad\hphantom{-}\;(\ldots)$\\ ...
0
votes
2answers
22 views

How to center section when using \titleformat{\section}?

I decided to use \usepackage[center]{titlesec} in order to center my sections, but I don't want them displaying the chapter/section numbering in the chapter/section headings so I applied the ...
3
votes
1answer
29 views

Is it possible to insert a non-aligned line in gb4e?

I'm using gb4e for my linguistics examples. Is there any way to have one line that is not vertically aligned before the \gll or \glll line? I'd like to write a line of phonetic transcription (i.e. ...
4
votes
1answer
44 views

Breaking equations with different alignments

Suppose I have an equation which is too long for one line and I would like to split it over two lines. However, I would like the first line to be left-aligned and the second to be right-aligned w.r.t. ...
1
vote
1answer
42 views

How to patch a starred environment

I would like to translate my approach to center all figure environments to figure* environments. How? \documentclass[peerreview]{ieeetran} \usepackage{xpatch} % ...
4
votes
1answer
91 views

Remove jumping of equation between slides

How can i remove jumping of equation between slides? I would like that the \leq, \geq are on both slides at the same position even if the variables change. \documentclass{beamer} ...
1
vote
1answer
34 views

How to left-align captions when table is centred?

I found here on stack exchange some ideas how to do this. However, there is something wrong with my approach. I did the following: \usepackage{caption} ...
2
votes
1answer
31 views

Alignment of \dotfill or \(c/x)leaders to page numbers wtih different amount of digits

I need to create something similar to Table of Contents manually. For that I need dot leaders to go from text of the "chapter" to page number of this "chapter". I tried to use either \dotfill, ...
1
vote
0answers
53 views

PGFPlots generates extra margin with restricted x axis and two y coordinates in standalone class

I noticed that there are cases where pgfplots package makes undesirable (to me at least) margins. The conditions I've found is as follows: use standalone class use y coordinate on the right side ...
4
votes
1answer
38 views

Align equal sign in algorithm in vertical line

The Code described in [1] produces the following output : For the description of my algorithm I need the equal signs to be perfectly aligned in one vertical line but currently there is still a ...
2
votes
3answers
119 views

How can I align TikZ nodes of a commutativity diagram?

I have a TikZ picture: \begin{tikzpicture} \matrix (m) [matrix of math nodes,row sep=0em,column sep=3em,minimum width=2em] { E_1 & H^+ \\ E_1^\perp & H^- \\ ...
7
votes
2answers
29 views

How to put horizontal space between two side by side figures, then automatically scale the pictures to that new width?

I've been working on how to put side by side figures with captions for a book but haven't managed to find a way to put a horizontal space in between the two figures. There has been some troubles ever ...
4
votes
0answers
52 views

Cannot center pdf image [duplicate]

I'm using sharelatex and pdflatex as a compiler. I am using the memoir class. (It's for a book.) At first I used .png images but the compiler always took too long so I converted all my image files to ...
3
votes
1answer
32 views

Right align a line in align-environment

Searching the website I found plenty of similarly related questions, such as this, this or this one. Nevertheless none of the answers to the questions I found so far addressed precisely this issue. ...