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

4
votes
4answers
118 views

Center the text in whole page

I have just a single line on one page. I want to bring it on the center of page both through length and breadth. How can it be done?
3
votes
2answers
45 views

Centering table and its catption as well as justifying caption which spans multiple lines

I wonder how to center table and its catption as well as justifying caption which spans multiple lines. Below is MWE. Any help will be highly appreciated. Thanks \documentclass{article} ...
1
vote
0answers
46 views

Centering of equations in classicthesis style [closed]

I'm using the classicthesis package. Unlike math in $$, an equation is not centered: \begin{equation} mod(\zeta, G) := \sum_{C \in \zeta} \left ( \frac{\omega(C)}{\omega(E)} - \frac{vol(C)^2}{4 ...
0
votes
0answers
33 views

Centering of footer with custom margins

The problem I encouter is that whenever I change the margins of my tex document, the footer does not remain centered. My tex code is the following: \documentclass[11pt]{article} ...
2
votes
1answer
38 views

How to horizontally center a vbox

I am using the MIT Thesis templates to write my thesis. I have created my own document class (that reflects the needs of the university I'm studying at) based on the mitthesis.cls version. Since it ...
2
votes
1answer
111 views

How to correctly indent a paragraph

I want to indent a paragraph so that each new line of it starts from the same position as shown below: line 1 line 2 line 3 The LaTeX code below generates paragraph indented as follows: line ...
6
votes
1answer
68 views

Align text using align* environment

I would like to align text using the align* environment. What I would like to do in the example below is to align the different elements inside the braces after # meaning. So, I would like to have ...
8
votes
2answers
83 views

Changing tabularx column alignment partway through table

I have some very large and very small numbers being displayed in decimal notation (for a non-scientific audience). Normally—for small magnitude ranges—I would align on the decimal point ...
0
votes
1answer
23 views

Left-aligned text on same line as numbered equation [duplicate]

I currently have this: With the following code and preamble: \documentclass{article} \usepackage{amsmath} \begin{document} $\backslash c_{t}$ \begin{equation} {C_{t}: \pi ...
2
votes
0answers
41 views

Flush items to the right in enumerate, itemize, etc

is there some way to make the items in enumerate, itemize, and similar environments right aligned instead of left aligned. I'm thinking sort of like what the equation environment does automatically ...
3
votes
2answers
41 views

Text too long for the cell?

I am doing this table, but my the phrases are out of the limits of the cells. How can I adjust them in two or three lines instead of one? \documentclass[12pt,a4paper]{article} ...
0
votes
1answer
47 views

Do not use TAB (clear tab) at every new line -> flush both

Code .... \makeatletter \def\flushboth{% \let\\\@normalcr \@rightskip\z@skip \rightskip\@rightskip \leftskip\z@skip \parindent 1.5em\relax} \makeatother .... ...
1
vote
1answer
44 views

Custom align specific part of tabularx

I have a tabularx environment with 3 columns and 5 rows. How can I align first row and first column right to left, while the rest of the table are aligned left to right? P.S. that currently my ...
2
votes
1answer
61 views

Align first row in a table

I try to align my first row in a table. Only the first row needs another alignment. %-----TABLE-----% \begin{table}[H] \begin{tcolorbox} [ tabularx={|Y|Y|Y|Y|Y|Y|Y|Y|}, ...
4
votes
1answer
67 views

Left align TOC items when using \tableofcontents

I have Table of Contents in which most items are typeset very well. However, in some cases, some items, specifically part items seem to be fully justified, creating awful spacing. In my document it ...
1
vote
0answers
30 views

Left alignment of equation arrays - [fleq] doesn't work!

please could someone tell me how to get my eqnarrays to align left? I have copied the top of my document, then I put \begin{eqnarray*} \end{eqnarray*} and everything goes straight to the right of ...
2
votes
1answer
60 views

Create a table with tabu

I am trying to create a table which has a header with the text centred horizontally and vertically. The text in the first column (except for the header row) should be written vertically. So far I have ...
5
votes
3answers
124 views

Split equation using alignat*

Consider the following MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} (b_{t+1}) &:\quad & \left(\frac{\beta}{1 + \gamma}\right) ...
4
votes
1answer
56 views

Why isn't my table properly aligned?

The \dots doesn't seem to align properly in my table. Can anyone explain what's going on and how I can resolve this? MWE below. \documentclass{article} \begin{document} \begin{tabular}{c} 0 \\ ...
1
vote
0answers
30 views

Put footnotes in a column

i have a two columns text in an a4 article. In one column i want to have the text and in the other (left) column i want to have the footnotes for that text. Is there a way to do it? thanks
3
votes
2answers
44 views

Align rows elements in the tabular form

I have a problem with the the aligning of a tabular. I used the code \begin{center} \begin{tabular}{|m{1.5cm}|m{1.5cm}||m{1.5cm}|m{1.5cm}|} \hline 1& 2 & 7 & 8 \\ 0 & 89 & 100 ...
2
votes
1answer
44 views

Equations not properly centered when using \tag in gather* environment

Consider the following MWE: three boxes, all the same width, in a gather* environment. I expect that all boxes will be centered around the same vertical line. However, the length of the tags messes ...
3
votes
1answer
48 views

How do I understand the horizontal spacing of enumitem's enumerate list?

\documentclass{article} \usepackage{microtype} \usepackage[T1]{fontenc} \usepackage{enumitem} \newcommand{\currentsection}{3.5} \setlist[enumerate,1]{label=\currentsection.\arabic*.} ...
4
votes
1answer
42 views

Alignment of environment inside enumeration

I defined an environment to add notes, i.e. pieces of text that are not strictly relevant to the question at hand but perhaps still interesting to read, via \usepackage[framemethod=tikz]{mdframed} ...
1
vote
1answer
63 views

gb4e tabbing problem

I am using gb4e to align examples. But when elements within [] are complex, sentences cannot be aligned. For example, in the picture attached, two 'which' are not aligned. How can I align sentences ...
2
votes
1answer
43 views

Missing $ inserted - trying to center within align

\documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{textcomp} \begin{document} \begin{align*} \begin{center} \theta = ( \pi_0, \beta_0, \beta_1 )\\ ...
3
votes
1answer
35 views

Align part of formula

I would like to align to the left the first part of a formula inside a set. I tried using align, but it does not work well with the big paranthesis. Here is my code \documentclass{report} ...
3
votes
3answers
63 views

Align environment with optional columns

I'm working with formal grammar in LaTeX and would like to write some of the shorter rules in the same row in order to save space. The rules are aligned using the array environment and I'd like to ...
2
votes
1answer
42 views

How do I remove the left margin of enumerate in the second level?

\documentclass{article} \usepackage{microtype} \usepackage[T1]{fontenc} \usepackage{enumitem} \newcommand{\currentsection}{3.5} \setlist[enumerate,1]{label=\currentsection.\arabic*} \begin{document} ...
4
votes
2answers
77 views

Connoisseur of tables: better header alignment across columns?

Many of you may feel the need to make tables look beautiful, as do I. However, I am having trouble with formatting. Is there a good way to format column headings across multiple columns? First, as ...
5
votes
1answer
53 views

Title, author and email flush-left alignment

I need to edit a document (not written by me, so I'd like to keep tinkering to a minimum), and want to left-align the title, and both authors and their details. It currently appears centred. I've ...
4
votes
1answer
52 views

Aligning text on two separate lines

How do I recreate the following? I've tried a few things including \documentclass[english 9pt]{extarticle} \usepackage[letterpaper, margin=.1in]{geometry} %% Set up the margins ...
0
votes
1answer
54 views

Is there a way to switch columns in paracol without introducing a paragraph break in the pre-switch column?

(M)WE: \documentclass{memoir} \usepackage[margin=1in]{geometry} \usepackage{paracol} \begin{document} \newcommand{\switchtoleft}{\switchcolumn[0]} ...
4
votes
5answers
92 views

How do I center a \Large equation in display mode?

I have an equation in display mode and would like to make it bigger using \Large, but the equation runs off the right side of the page while there is much room on the left side of the page. The ...
3
votes
1answer
35 views

Misaligned “Aboxed” block and incorrect text size

In the code below, my aboxed block is misaligned and also of a different size font than the normal text. Can you help me re-align the aboxed block with the above line and also correct the size of the ...
1
vote
0answers
36 views

Centering a tikzpicture in beamer

I am using beamer and including many tikzpictures. If my picture is not too large, it is centered, but if it is a bit too large, then it does not work anymore. The following frame \begin{frame} ...
1
vote
2answers
35 views

Align abstract to the left

I have the following two issues. For a university paper, I'd like to realign the abstract to fit with the rest of the page as well as putting the abstract title ("Abstract") on the same level as the ...
3
votes
1answer
37 views

How to make a lilypond snippet fully justified (according to surrounding text)?

My issue I have a lilypond snippet (i.e. some music staffs) embedded within a document containing text. My question: How to make the snippet justified, i.e. that its size matches the \textwidth? ...
0
votes
1answer
25 views

Question about paragraph with arguments for left aligned, centered and right aligned text

Consider the following minimal but working example. \documentclass[landscape]{article} \usepackage[a3paper, textwidth=7.5cm, margin=1cm,landscape]{geometry} \usepackage{titlesec} \usepackage{xcolor} ...
1
vote
1answer
36 views

Left-aligned title page in Beamer (Boadilla Usetheme)

I would like the title of my title page to be left-aligned. \flush{left} does not work. Any other commands which can do the trick? \documentclass{beamer} \usetheme{Boadilla} \makeatother ...
2
votes
1answer
34 views

Stretch \columnsep with left-flushed text

My document is mainly made up of justified text, but with sections made of two column & left flushed text (actually verses). Below is a MWE. As in Flush a left-flushed box right, I want the text ...
3
votes
1answer
91 views

Arrows from equation causing equation to look untidy

in the code below, when I place the arrow to the equation, it messes with the alignment of the elements of the equation that the arrows are referring to. Is it possible to maintain the alignment of ...
2
votes
3answers
119 views

How can I align similar equations with different variables?

For example: \begin{align} \begin{cases} & x = X/Z = 1\\ & y = Y/Z = 1\\ \end{cases} \end{align} Any way to have the spacing for the X and Y be the same so that the ...
1
vote
1answer
39 views

how to center enumerate environment in tabu?

The following code \usepackage{tabu} \usepackage{array} {\setlength{\tabulinesep}{3pt} \begin{tabu} to \textwidth { | m{2cm} | X[c,m] | } \hline item & item ...
0
votes
0answers
20 views

Code is shifted to the right when we run the output

I'm writing a LaTeX document and I want to add my code to the document, but the output appears shifted to the right and some of the data do not appear this is the implementation: \begin{verbatim} ...
2
votes
3answers
60 views

How can I align such equation?

This is my code, but I'm failing to achieve the same result as in the picture. \begin{eqnarray*} ...
1
vote
0answers
26 views

How can I center my whole document while using the Memoir class?

The Memoir class by default does the left/right page difference in centering. How can I use the memoir class while making the whole thing centered? All I've found was this thread Vertically center ...
1
vote
0answers
40 views

typearea package and address positioning in scrlttr2 [closed]

I'm trying to create a template for formal letters using document class scrlttr2, but am running into some questions. First, how does one use the typearea package correctly? I've been fiddling with ...
0
votes
1answer
37 views

Horizontally center DFA

How can I horizontally center the following tikzpicture (which includes a DFA) on the whole page without changing the distance between the nodes? \documentclass{article} \usepackage[english]{babel} ...
1
vote
2answers
45 views

Error during creation of a sidwaystable in LaTeX

When I create the sidewaystable I have a persistent error. The table is always on top where this is an error on table position. I would like to position the table at the page centre. Below is the ...