{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
1answer
53 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 ...
1
vote
1answer
57 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
95 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
36 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
38 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
45 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
35 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
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
42 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
112 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
122 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
40 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
245 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
50 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
163 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
65 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
47 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
89 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
44 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
99 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
108 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
123 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
118 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
67 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 ...