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

3
votes
2answers
26 views

Partial center in environment

I'm writing a lab manual with step by step directions. Some directions include screenshots. To keep the screenshot with the line of direction, I use samepage. I am exploring an environment I can use ...
4
votes
1answer
38 views

Titlesec & titles extending into margin

I would like to use titlesec to have gradient shaded section titles that extend into the left margin. I would like the section number and the gradient to extend into the left margin, but would like ...
0
votes
1answer
37 views

Alignment for equality sign

I solved a question and I wrote it in Latex, but the equality sign is not aligned, I searched google, but none of the ways there worked with me. How do I get the equality signs aligned in the below? ...
2
votes
1answer
61 views

Separation of two authors using the amsart document class

I want to achieve a similar result to this one (see answer). However, I am using the amsart document class and the result for that code is this: The problem I believe is with the \and command that ...
1
vote
0answers
22 views

Caption alignment of grid subfigures

I have 5 images and I would like to display them in 2 rows (3x2). This is what I've done so far, \begin{figure}[h] \begin{tabular}{ccc} \subfloat[caption]{\includegraphics[width = 1.8in]{figures/...
8
votes
2answers
267 views

Stackengine centering problem

I have a problem centering text with stackengine stacks. My MWE is: \documentclass{article} \usepackage{stackengine} \begin{document} \Shortstack[c]{Cognicion abstractiva} \end{document} The result ...
2
votes
1answer
19 views

Horizontally align minipages from different boxes

I have defined the following command: \newcommand{\listOfYears}[3]{ \mbox{ \begin{minipage}{0.08\textwidth} #1 \end{minipage} \begin{minipage}{0.30\textwidth} ...
2
votes
1answer
33 views

Aligning material of two or more cases environment

The following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a=& \begin{cases} b,&\ \text{if}\ c\,;\\ d,&\ \text{if}\ e\,;\\ f,&\ \...
1
vote
0answers
39 views

How to correct alignment in exam class page layout?

I'm creating MCQ paper using EXAM class. \begin{center} Section II \newline Multiple Correct Answer Type \newline This section contains 10 Multiple Choice questions. Each question has four choices (...
6
votes
3answers
99 views

Text alignment in minipage

I am writing my exam paper in LaTeX. I have just a small enquiry. The code I am using is: \documentclass[12pt,paper=a4,answers, addpoints]{exam} \usepackage{graphicx,lastpage} \usepackage{upgreek} \...
4
votes
1answer
35 views

Tikz-Feynman: Multiple arrows on one fermion line and alignment (0vββ)

I'm trying to align the quark arrows in my 0vββ diagram: So I'd like to have 2 arrows on each of the 4 'unmodified' quark lines: the first arrow should be horizontally aligned with the arrow from ...
1
vote
1answer
56 views

Horizontal alignment of subfigures in PGFplots

I have 4 subfigures in a 2x2 grid. The figures are made in Matlab by using matlab2tikz, and hence the TikZ files are inputted. The problem is, that the y-ticks are different and therefore the ...
2
votes
1answer
22 views

How to put left aligned equation inside algorithmic

I have a one-line equation that I want to use just like a statement in algorithmic. I tried with flalign and the equation still goes into the center. Could you please tell me how to fix that? Here is ...
1
vote
1answer
30 views

Left aligned equations in multiple lines

Normally I use the align tag and everything is aligned properly. But now for some reason the text isn't left aligned. The following is the code I normally use (code #1): \begin{align*} V[1] = A[1] &...
2
votes
3answers
213 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
87 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
59 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
28 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
47 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
76 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
33 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
45 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
35 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
26 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
106 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
18 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
19 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
61 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
34 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
48 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
22 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
98 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
69 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
16 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
21 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
21 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
463 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
55 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
18 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
51 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
11 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
78 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
43 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]...