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

2
votes
3answers
235 views

Is there a way to center align chapter titles?

I tried using \begin{\centerline{Chapter Title}} but using this causes the index/table of contents \tableofcontents's entries for chapters to be center aligned as well. Is there a better way to ...
5
votes
1answer
89 views

What does `\centering` do?

Not specific question: What does \centering command specifically do? MWE: \documentclass[onecolumn]{IEEEtran} \usepackage{graphicx,subcaption} \begin{document} \begin{figure} %\centering \begin{...
3
votes
2answers
81 views

How to align tikz node text vertically centered and horizontally left

Assume a tikzpicture consisting of three nodes with node text. \documentclass[border=5mm]{standalone} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{calc, shapes, fit, positioning} \...
2
votes
1answer
29 views

Matrix Multiple Alignment

The following code generates: You can see that the first and the second line are centered on the right side of the left brace. How can I stick to the current code implementing "\begin{matrix}" ...
3
votes
2answers
49 views

How to align to the left

I'm using this converter of latex to png. When I write the following: 0.625\cdot2=1 + 0.25 \\ 0.25\cdot2=0 + 0.5 \\ 0.5\cdot2=1 It aligns lines to the right: How can I align it to the left?
1
vote
2answers
81 views

Page numbers in Table of contents should be aligned left

I'm writing my thesis, but unfortunately I'm having a problem. In our thesis template, the page numbers in table of contents should be aligned left (default=right) as shown in the figure. When I look ...
1
vote
1answer
35 views

How to make ( \section ) flushleft like on article or report? [duplicate]

I'm using \docummentclass{amsart}and when using \section it prints it out in the center of the line how to make it on left I used \begin{flushleft} \section \end{flushlef} but it didn't work.
1
vote
1answer
54 views

Sectioning chapter, section, subsection formatting

I'd like some help with the formatting of chapter, section and subsections. I am using the report document class and I'd like to generate the following chapter, section and subsection formatting in ...
3
votes
2answers
36 views

Center Subfigure Based on Included Graphics

I have a figure in my dissertation in which I am including a picture that has a bunch of labels identifying different aspects of the picture, some are long and some are short. The problem is that some ...
3
votes
1answer
38 views

How can I align a minipage of text to a minipage of figure?

I'm writing a poster so I'm using a two column structure. On the left column I want to have some text side-by-side with a figure. For that I use two minipages that one contains the text and the other -...
2
votes
1answer
111 views

Align numbers on decimal point in tabular

I am trying to align numbers on decimal in tabular. I have found some information here:align to decimal point in the table. However, when I adopt that code into my table, it gives an error: ! ...
0
votes
0answers
18 views

Icon alignment with respect to figure page

I am creating a figure which has an icon on the side. I am using minipage within the figure environment for this purpose. \begin{figure}[!hbt] \marginnote{\includegraphics[scale=1]{icon.png}} ...
0
votes
1answer
19 views

How to align an expression in an amsmath environment

If I write \begin{align} A = <long string of variables> \\ =& <another long string of variables> \end{align} This works and aligns the equal signs and makes the total block of two-...
1
vote
1answer
23 views

Position subfloats (subfig package) of different types one besides two

I would like to make a table with one tabular top aligned left of two tikz figures. The problem seems somehow related to the floatrow package as without the result is, still not good, but better. ...
0
votes
0answers
14 views

Problem with justication in Texmaker

Can anybody tell me how to fully justify my paragraph. I am preparing my thesis but my previous paragraphs were justified and other paragraph were not. I have sent a snapshot of the given page. I ...
0
votes
1answer
49 views

How do I finish Horizontal space in the line next the heading line?

A horizontal space is inserted in next line of using \myheading command.(i.e before 1: in the below example). How do I finish this space? \newcommand\myheading\[1]{\par \bigskip \hrule ...
1
vote
0answers
23 views

Subfigures aligned like table

There are several posts about using par, minipage, hfill and other approaches to align subfigures like tables. Is there any package that optimizes the space (as if the main figure is a table and you ...
2
votes
1answer
76 views

Latex figure next to text and text align right

In my LaTeX document I would like to align a figure on the bottom-left-hand side of page while, at the same height, some text aligned to the right side of the page. Code below is what I got so far.. ...
1
vote
1answer
35 views

How working position label longtable?

2 problem: How align "continued table" and \caption text in left? \raggedright not working in this situation. How delete empty line before enumerator? Source code: \documentclass{article} \...
2
votes
1answer
49 views

\flushleft flushes whole document after use

I have an article document and I use \flushleft after equations to have the next line start on the left. It seems to then do that for all new lines after the command though, which is not what I want. ...
1
vote
1answer
32 views

Custom horizontal alignment in multicols environment

If I utilize the two columns of multicols for my Kurdish sequence of numbers, it arranges the items in column like the following figure: But I want to arrange the items in rows splitted by some ...
6
votes
2answers
108 views

Can two \vtop boxes exist side by side?

So I am trying to see if I can put two \vtop boxes side by side. The below is the closest I have gotten. This is a kind of a "plain-tex in latex" example. \documentclass[fontsize=13pt,letterpaper,]{...
3
votes
2answers
77 views

Writing regression results in latex

I'm trying to write a regression results in Latex as follows: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} y_t = &...
0
votes
0answers
20 views

Fix subpicture placement

I know this kind of thing has been asked here before, but I have a question about this post. I copied the code from there and only changed the filenames to have my pictures. \begin{figure*} \...
39
votes
4answers
2k views

How to create nonbreaking arbitrary length snakes for full-width justification?

This is a follow-up to the recent xkcd comic: Here is a simple version without justification: \documentclass{article} \usepackage[text={1.2in,3in}]{geometry} \raggedright \begin{document} \...
0
votes
1answer
22 views

Centered tabular column, with narrow columns?

I'm trying to make a table in which most columns have the same width, and text in them is centered. However, the columns are very narrow, and the typical answer (make a new column type using \...
2
votes
1answer
23 views

Align \boxed{} equation inside systeme*

I would like to know how can I align a *systeme** environment with only a \boxed{} equation belonging to it. The code I have produces the right system of equations, but the boxed equation is ...
12
votes
4answers
465 views

How do diacritical marks impact centering and overshooting?

I am creating a table containing several foreign names with diacritical marks in them, and it seems to me that they ruin the vertical alignment, as they are too close to the top horizontal line. How ...
3
votes
1answer
57 views

Redeclared Section formatting - Centering

I would be grateful if someone could explain how the following could be centered instead of indented? Perhaps a MWE is not required for this? \RedeclareSectionCommand[ indent=1.25in, font=\...
0
votes
0answers
19 views

Alignment algorithm text

I have two troubles in algorithm alignments. 1- Overflow from column in input part, the other one text alignment in loops. Many Thanks.
0
votes
0answers
27 views

Alignment is algorithm

I have two major problems in alignment algorithm. As it can be seen, one overflowing from column another text alignment in for and while loop. Look forward to your answer.
3
votes
1answer
55 views

Automatically setting the label width in a description environment, for each page

There are a couple of questions asking for a description environment where the width of the label-portion is the width of the widest label: Label: Text text text text text text ...
2
votes
3answers
65 views

Center tabular env around middle column?

I have a tabular environment with three columns aligned as {rcl} such that text in the middle column is centered internally within the column. I want the whole table to be positioned in the page such ...
0
votes
0answers
12 views

Caption and References Text Alignment Help needed

I am trying to text-align in latex but having some problems.I want my text alignment to be like, for example, Figure 3: Data Mapping Diagram [3] Instead of this: Figure 3: Data Mapping Diagram ...
0
votes
1answer
104 views

Text at right side of slide

I am trying to include some text at the right side of a beamer slide/frame, like so \documentclass{beamer} \usetheme{default} \begin{document} \begin{frame} \hfill \begin{description} \item[item1]...
1
vote
1answer
46 views

Place tables in the middle of the page

I have two tables, table1 and table 2. I want table 1 in the middle of page 1, table 2 in the middle of page 2. First, I tried, \begin{table}[htbp] \input{table1} \end{table} \begin{table}[htbp]...
4
votes
1answer
44 views

Graph shifts position when adding plot

If I compile this code without the Gaussian function at the end everything is allright, but if I try with it the whole figure shifts to the right. In this example it is not a very big problem, but ...
3
votes
2answers
45 views

How can I get a TABLE to respect the narrower environment in ConTeXt?

The narrower environment in ConTeXt is very useful, but TABLEs misbehave inside of it. I would expect a TABLE in a narrower environment to align with the new margin, but instead, the TABLE is aligned ...
6
votes
3answers
226 views

How to do the linear program in format

How to get this format? I want to get this strictly. Thanks for the answer in advance. Here it is my code \begin{alignat*}{9} \hspace{30 mm}\text{maximize } & \sum_{i=1}^N d_i U_i ...
5
votes
4answers
165 views

How to align the equations?

I hope to align equations as shown here: I used this code: \begin{align*} \displaystyle {eq1} &\Longleftrightarrow& \displaystyle {eq2} \\\\ \displaystyle {eq3} &\...
2
votes
1answer
29 views

How to get proper spacing with \documentclass{scrartcl}

I would really like to use this cv template, but the problem it has is that the sentences don't fill up the entire space as illustred by this screenshot To clarify, the middle sentence clearly doesn'...
3
votes
1answer
39 views

Large multiline equation alignment

I have the following latex code: \begin{equation*} \begin{split} Vect =& (\frac{1}{55},0,\frac{2}{113},-\frac{3}{46}-\frac{5i}{67},-\frac{1}{50},0,0,\frac{3}{107},-\frac{7}{41},\frac{1}{113}-\...
4
votes
2answers
119 views

Aligning combination of numbers and parentheses in siunitx table

I have this table and would like to align the columns by the parentheses. Note that I want to have both the number and the percentages (in parentheses) in one column. Input \documentclass[12pt]{...
0
votes
1answer
27 views

How to write in proper format of this code

I want to get the right hand side portion in a format. Here the format. Table[i, j] <-maximum { Table[i-1, j] AND Values[i] + Table[i-1, j – ...
1
vote
1answer
185 views

Beamer frame title manually change vertical and horizontal position

I am trying to change the vertical and horizontal positions of my frame titles and subtitles. So far I am using \setbeamertemplate{frametitle}[default][center] but I would like more control. Is it ...
3
votes
1answer
32 views

List of authors to the right, as a signature

I am currently making the last adjustments to my groups BSc thesis and I am writing the acknowledgement. Currently it looks like: Title A lot of text. ...
3
votes
3answers
150 views

Align Matrix (Vector) on latex

I am trying to align the entries of this vector to the left. Could you help me please? Below is my code and next the result. P=\left(\begin{matrix} p^{(1)}(x_1,x_2,\cdots,x_{r_1}) \\ \vdots\\ p^{(...
2
votes
1answer
35 views

TOC - Horizontal Alignment

My currente TOC is looking like this: And here is a code sample: \documentclass[]{article} \usepackage[latin1]{inputenc} \usepackage{tocloft} %pacote para editar ToC \usepackage{titlesec} %pacote ...
1
vote
0answers
38 views

Horizontal placement of superscripts (Math mode, LaTeX)

Is there any way to adjust the horizontal placement of a superscripted character? In particular, whenever I have a character that also has a subscript, the superscript ends up directly above the ...
3
votes
1answer
60 views

Justify main caption in figure

I have two figures that I am putting vertically in my text. The two figures are located in the same column, on top of each other. I am trying to left justify the main caption of this figure (by ...