{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
2answers
23 views

How can I align my enumeration?

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
84 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 ...
3
votes
2answers
64 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 ...
1
vote
1answer
24 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
37 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
36 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
33 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
48 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
21 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
42 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
32 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
30 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
22 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
22 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
52 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
29 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
66 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
102 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
29 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
52 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
118 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. ...
1
vote
1answer
47 views

Placing the blocks in their exact place

I am trying to create a title page. I create this sample with the help of this site. But i have a problem. In my sample my measurement is not real. When i print it the blocks are not in their place. ...
1
vote
1answer
46 views

How to align 2 tikzpictures, functions in 1 line with captions?

I need to place both of these funcionts in 1 line, side by side with caption beneith, I tried all options, and to combine them, nothing worked. When I try to use minipage to divide 1 line to two ...
3
votes
1answer
31 views

Different alignment of labels in enumerate

Consider the following: Code \documentclass{article} \usepackage{multicol} \usepackage{enumitem} % found somewhere on TeX.SX (can't remember where) \makeatletter ...
1
vote
2answers
36 views

Align centered wiith dcolumn when \multicolumn used

When \multicolumn is used in dcolumn, then there is misalignment in text and the heading. See the figure for more details. \documentclass[12pt,oneside]{report} \usepackage{amsmath} ...
3
votes
1answer
24 views

Centering text in aligned environment

How can I center the text between the inequalities? ATM it seems that they are right-aligned. \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{aligned} 15 ...
3
votes
1answer
36 views

Spacing in 2x2 images

I'm trying to embed 4 images as a 2x2-grid in my LaTeX-Document. The insertion works so far, here's a minimum working example and it's result: \documentclass[oneside,12pt,pointednumbers]{scrartcl} ...
1
vote
0answers
34 views

How set margins to print when pdf files are inserted?

I am using book style to prepare a meterial(which has to be printed and binded) which contains so many pdf files.. To include the pdf files I am using \includepdf options by using the package ...
4
votes
3answers
116 views

Need \qedhere to be flush with the right margin in cases environment

How can I do this? When I put \qedhere in cases environment, the square is between the margins somewhere. It is not where the square appears in the usual proof environment, at the right margin. ...
4
votes
1answer
38 views

Center caption in standalone documentclass

I would like to know how I can go about automatically centering the plots subcaptions in the standalone environment. This is what I would like: Here is my code: ...
3
votes
1answer
50 views

Aligning node with respect to two other nodes in tikz block diagram

I use left of and below of arguments to horizontally and vertically align blocks/nodes in Tikz. How do I align a node/block both vertically and horizontally with respect to two already defined ...
1
vote
1answer
43 views

How to number and centralize the heading “reference”

In line with journal format, I want my "Reference" heading numbered as a section on its own. The number should follow that of "Acknowledgement" which I have numbered as 8. Now it remains to number ...