{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
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
40 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
41 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
38 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 ...
4
votes
1answer
72 views

Center last line of the paragraph; but I don't like small lines

Attention: This is an advanced TeX problem. I usually dislike lines that are too small, and so I tend to add \parfilskip=2em plus 0.6\textwidth to my documents (apart from small lines, this also ...
1
vote
0answers
53 views

How to make the fully justified code at line-breaks?

I have a problem for using algorithm2e package. I am writing a algorithm just like \begin{algorithm} \caption{RM-MEDA} \label{alg1} Initial a population $Pop(0)$ and compute the $F$ ...
1
vote
1answer
110 views

Two figures side by side - Alignment & Size Problem

There are some ways to put the figures side by side such as subfig (which is not recommended), subfigure, subcaption, subcaptionbox and minipage. I tried minipage and subcaption and here the codes and ...
2
votes
0answers
34 views

How to align something to the paper diagonal

I drew a very large proof tree using bussproofs. Now, it does not fit on the page in either horizontal or vertical alignment, but it would fit on the page if I could align it to the diagonal of the ...
5
votes
2answers
121 views

Signature field with centred content underneath it

I am using \documentclass[a4paper,12pt,openany,leqno,footinclude=true]{memoir} and want some signature lines that have dotted lines; plus a designation below the line I have: ...
3
votes
2answers
76 views

Horizontal alignment in enumerate environment

I wanted to align two enumerated item lists horizontally like in the post shown here, however, my alignment is skewed from one item to the other. Bascially, I wanted help to get both items aligned at ...
1
vote
0answers
13 views

Strange behavior in tabular environment [duplicate]

Can someone explain why "B1" cell is not vertically centered and how to figure this out ? \documentclass{article} \usepackage{array} \usepackage{amsmath} \begin{document} ...
1
vote
1answer
41 views

Alignment within the equation environment

This is the state of affairs: The goal is to horizontally center the symbols over their expressions within an equation environment. So A is centered over the first matrix, x centered over the first ...
2
votes
1answer
39 views

Flushleft align text in in align environment

I wanted to flushleft align the text in my align environment. Basically, I wanted to get this effect: Here is my code: \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,amsthm, bm} ...
10
votes
3answers
244 views

Aligning matrices

Sorry if this might be a very banal question. I am fairly new to LaTeX and I am having issues with matrices alignment. I am trying to achieve pretty much what is shown in this picture, I have tried ...
3
votes
2answers
71 views

Center last line of shapepar paragraph

I have a paragraph of text inside \shapepar to make it flow tightly around a custom shape (background image). The text itself is justified to both ends, however I would like to center the last line. ...
1
vote
3answers
49 views

Title of Section in Center (thesis writing)

For writing thesis, I am using \documentclass[a4paper,oneside, 12pt]{book} In it, sectioning was coming at left. I want them in center. This has been considered before (see this). But, I tried ...
1
vote
5answers
146 views

Left align labels in itemize

I want my itemize environment to output something like Email: my@email.com Address: Street name City Country Phone: My phone number I have tried using ...
0
votes
0answers
14 views

Horizontal bibliography listing

Using the following commands I'm able to get the bibliography being displayed vertically as usual (this case in a poster): \nocite{*} % Insert publications even if they are not cited in the poster ...
1
vote
1answer
60 views

Shifting basic footnotes to the right side of a Latex presentation

I'm using the "Modern Beamer Theme", by Matthias Vogelgesang for a presentation. Trying to shift the footnotes to the right side of the slide. I'd like for the footnotes to read left to right as ...
1
vote
1answer
17 views

Add centered text to a figure

I'm trying to add some text to a tikz figure using the \put command, something like: \put(-175,25){This text is too long} Yet, if the text is too long, I would like to add it in several lines and ...
2
votes
2answers
45 views

Justify text in labelitemi

I have used the below command to change the size of the bullet \renewcommand{\labelitemi}{{\tiny$\bullet$}} The text inside the bullet is not justified. How can I justify the text within the ...
2
votes
2answers
37 views

Alignment of an image

Is it possible to align a point of an image against a marker outside of the image environment? Suppose I have an image and then a paragraph. Is it possible to have a marker X in the paragraph and ...
2
votes
1answer
88 views

Center Equation [duplicate]

Does anyone know how to center this equation? \begin{align} r(P_i)=\sum\limits_{P_j \in B_{P_i}} \frac{r(P_j)}{|P_j|} \label{eq:sum} \end{align} Thanks in advance
2
votes
1answer
43 views

Help with centering Table header in pgfplotstable

I would like some guidance to get my table's header to look like this: Here is my code: \documentclass{book} \usepackage{pgfplotstable} \usepackage{longtable} \usepackage{booktabs} ...
1
vote
1answer
27 views

Common x-axis label in different rows of pgfplots mult

I am trying to get this effect in my code: Bascially I want to move the titles and x-axis label to the center between the two plots in each row. Can you direct me as to how I can accomplish this? ...
2
votes
2answers
61 views

Merge table rows vertically and align text vertically

I want to create a table that looks like this: So this is what I already got: \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage{booktabs} \usepackage{multirow} \usepackage{graphicx} ...
3
votes
2answers
98 views

left alignment of multicolumn inserts extra space

how do I get \multicolumn to align left? I always get a small space at the beginning of the row. Here's a code \documentclass[12pt]{article} \usepackage{booktabs} \usepackage{dcolumn} ...
3
votes
3answers
40 views

Align Header and Math in Tabular

I am trying to align math in a tabular on the = sign. This works fine but I would like to have a header centered above that math. So far I have this which does not look good: \documentclass{article} ...
3
votes
1answer
58 views

Leftalign authors with Elsevier class

I'd like to re-align my title, authors and abstract to the left of the document. I failed with "flushleft". I can use "leftlline" with 'adress', but I dont't know how to leftalign authors. Here's what ...
6
votes
1answer
105 views

chemfig: how to align the arrows of different schemes?

I am trying to get the arrows of three different schemes aligned but would like to have text in between them, as you can see below. Despite searching for hours, i haven't found a solution.. ...
8
votes
2answers
122 views

makebox with minimum width

I use makebox to create padded texts, however when the text in the box overflows, it overlaps with the following content. To demonstrate, The thing I want is a box that when the text is shorter than ...
3
votes
2answers
111 views

How to center a circuitikz figure

I want to center the following code: \documentclass{article} \usepackage[european]{circuitikz} \usepackage{amsmath} \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ...
0
votes
0answers
65 views

Arrange three figures using subcaption in two rows, horizontally centered with a caption for each figure

I want to place three subfigures in one figure using the subcaption package. All three are equal in dimensions, and for each figure an own caption is required. In the first row there should be two ...
4
votes
1answer
23 views

Framed mini pages with shared inside border?

So I have been trying to get two mini pages, side by side, in one box with a shared center border. The best I have gotten is \documentclass[12pt]{report} \usepackage[paperwidth = 8.5in, ...
1
vote
0answers
46 views

hfill in math mode redux

This is a followup to an old thread hfill in math mode I'm starting a new one because it's hard to write all this in a comment. In the original thread, @egreg proposed the following commands ...
6
votes
4answers
191 views

How to use `\phantom` to align equations along a sum operator?

The following MWE shows the following bogus optimization problem with objective and constraints. I'm trying to achieve a visual alignment of the contraints in lines 2 and 3. However, a simple \phantom ...
3
votes
1answer
46 views

Geometry and Equation centering: strange behavior

I have found a strange "bug", where my equations do not seem to be aligned correctly when using the geometry package. I try to explain this behavior in more detail using this MWE: \documentclass[ ...
4
votes
2answers
256 views

How to Make My Equation Look Better With Text

I am creating a calculus study guide with LaTeX. I want my equations to be left aligned, but with the added text everything sort of looks terrible (not really left aligned and quite jagged in my ...
6
votes
1answer
80 views

Prevent second line hanging in questions

How do I prevent the second line to be indented as in the following example? \documentclass{exam} \begin{document} \begin{questions} \setcounter{question}{100} \question This is a ...
3
votes
4answers
194 views

How to move math symbols vertically and horizontally

How do I move the double arrow horizontally to the right? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{tabular}{p{5cm}p{5cm}} {\begin{align} \underset{u(t), \eta(t), ...
3
votes
2answers
82 views

Align Caption to the left

I am trying to align caption to the left but its coming centered. Please see the figure. The code is \begin{figure}[!t] \includegraphics[scale=0.22]{Figure 1.pdf} \caption{The caption is coming to ...
6
votes
2answers
150 views

\underbrace spacing

I am currently using the \underbrace command and would like to center \cdot between the two terms. How can I better format this dot product and also line up the underprice text to the same heights? ...
2
votes
1answer
89 views

Left-align numbers in ToC

How do I lelft-align the chapter and section, number in the ToC? My code is: \documentclass[12pt]{report} \usepackage{tocloft} \makeatletter \renewcommand{\numberline}[1]{#1~} \begin{document} ...
6
votes
2answers
86 views

How to (best) align this list?

The desired result: My attempt: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,enumerate} \usepackage{tablists} \usepackage{multicol} \title{Extension Multiplication of Algebra} ...
3
votes
1answer
25 views

Marking single table values with dot alignment

I have a table with multiple columns that I have aligned with the S column type from siuntx. In each column I want to mark some special values in a clear and subtle way, I've used the * symbol for ...
2
votes
1answer
72 views

How to left adjust a linear program?

\documentclass[11pt,a4paper]{article} \usepackage{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} \begin{alignat*}{2} \text{minimize } & \sum_{i=1}^m c_i x_i ...