{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
2answers
49 views

Multiple columns in table, problem with alignment

The following code generates a table: \begin{table}[!t] % increase table row spacing, adjust to taste \renewcommand{\arraystretch}{1.3} \caption{An Example of a Table} \label{table_example} ...
0
votes
1answer
45 views

Alignment across multiple equations

Right now, my document looks like this: Or, like this: It bothers me a lot that the equations are scattered all over the place and are not evenly aligned. I want, for example, each line be ...
1
vote
1answer
29 views

equation in enumerate environment to long

I have kind of a long math term in an enumerate environment. The problem is, it is too long, so it doesn't fit on the right side of the paper. Is there any opportunity to move it more to the left? As ...
3
votes
2answers
65 views

Vertical and Horizontal aligment with several figures and tikz figures

I've been having some trouble aligning multiple figures. The problem is present with png figures and tikz figures, so I guess I am missing something. tikz figures not properly aligned: the ...
1
vote
0answers
21 views

subcaption package changing algorithm2e caption position

I have a project which makes use of the subcaption and algorithm2e packages. For whatever reason, the subcaption package is causing the captions in the algorithms to be misplaced. Here we have a MWE ...
1
vote
2answers
36 views

Caption position

I am writing a latex code where I include a graphic using \includegraphics[]{}. The caption is always at the center below the figure. How to change its location to the very left (below the figure) ? ...
1
vote
0answers
18 views

ConTeXt: Flushed right formula numbers in cases environment

I would like to have the formula numbers of the cases environment flushed on the right of the page like for regular formulas (not at a fixed distant from the cases like it is by default with ...
7
votes
3answers
137 views

Aligning polynomials rightshifted by x

I am trying to align some generating functions, to give a visual indication of how they represent recurrences. When I try to do this the natural-seeming way with aligned, it puts an obnoxiously large ...
3
votes
2answers
45 views

German date notation in paragraphs

According to the DIN ISO 8601 a German date needs to be formated without a linebreak between in it. So LaTeX have to break before or after the date. Instead sometimes a date exceeds the linewidth. ...
5
votes
2answers
42 views

Center-align multicols with equal horizontal spacing

I use multicols within an enumerate environment to make sub-questions; however, I've encountered annoying default: for some reason the spacing between the elements is not even, nor does it appear to ...
2
votes
3answers
93 views

why is this equation not left aligned?

I wonder why all the multilines of the equation are not left aligned? I tried to use align instead but the equation got too long and I could not manage to break it. ...
4
votes
1answer
34 views

fancyhdr: Footer not centered after changing page geometry

MWE \documentclass{article} \usepackage{lipsum} \usepackage[showframe]{geometry} \usepackage{fancyhdr} \fancyhf{} \cfoot{something centered in footer} \lhead{\rule{\textwidth}{3pt}} \pagestyle{fancy} ...
0
votes
0answers
73 views

How to center a image [closed]

I am trying the given code to center image but its not working. \begin{figure}[ht] \centering \includegraphics[trim=0cm 0cm 0cm 0cm, clip=true,width=\linewidth]{twsd.jpg} \caption{Types of WSD} ...
1
vote
1answer
33 views

Making author names parallel and aligned in article document class

In the article document class, how to make author names parallel and aligned like we align inequalities and equations? Is there a default command to do so? I have tried \and but that just made author ...
1
vote
1answer
39 views

Headerbox alignment

How is it possible to customize alignment (in my case align to center) of title in headerbox using baposter? Trying this: \begin{poster}{headerfont=\Large\sf\centering} or ...
3
votes
3answers
130 views

Tikz-Create a Picture Legend

I am trying to create a legend inside a tikzpicture. The picture shows an accelerator and I would like to make a legend that will explain each part. My code is \documentclass{standalone} ...
0
votes
0answers
27 views

I am not getting justified while using {Warsaw,Antibes} theme. Can anyone please help me in this regard

\documentclass{beamer} \usepackage{ragged2e} %new code \usetheme{Warsaw,Antibes} \addtobeamertemplate{block begin}{}{\justifying} %new code \begin{document} \begin{frame}{Test} ...
2
votes
4answers
65 views

multi-column row in align environment

I would like to be able to use multicolumn inside an align environment, much like we can do in a tabular environment MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} ...
0
votes
0answers
34 views

Centering defined width columns with long table [duplicate]

I have been trying to get a long table with specified column widths and centered text. I found away to do this (>{\centering}p{1cm}) which works until I apply centering to the last column, at which ...
2
votes
0answers
32 views

Centering title in bibliography with abntex2cite

i need some help. I'd like to change the title of my bibliography (Referências Bibliográficas), align left to centering, i'm using package abntex2cite to make my citations. My document class is a ...
6
votes
1answer
482 views

Align decimal marker with thousands separator using siunitx

My table consists of two groups of rows. The first group contains large values (X,XXX). The second groups contains smaller values (0.XXX). Siunitx aligns all numbers based on the position of the ...
6
votes
1answer
1k views

How to place personal informations on the left of header in moderncv with classic style

I found how to customize my CV created with the moderncv and the classic style, but I can't found how to put my name a little bit higher and put my personal informations on the left, just below my ...
4
votes
1answer
38 views

Center text in color box

I wanto to center a text in a colorbox which is scaled horicontal over the complete site. How is this possible? \documentclass[ ]{scrreprt} \usepackage[ ]{scrpage2} \usepackage[ngerman]{babel} ...
2
votes
2answers
83 views

Comic book or graphic novel style panels in LaTeX

I have heard that LaTeX is not necessarily suited to make panels. That even two-column is difficult to get the text to align. I would like to draw stuff like this: --------------------------- ...
3
votes
1answer
124 views

siunitx table alignment

I want to align both the numbers and the text to the left using siunitx' S column type. I tried: \documentclass[ngerman]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
19
votes
2answers
2k views

Aligning inside tabular environment, specific cell

I'm trying to align a specific content of a single cell. For example, \begin{tabular}{|r|r|} \hline 1 & 2 \hline right & to_the_left \hline 1 & 2 \hline ...
1
vote
1answer
20 views

How to align address block and date with signature?

I need to have the address and date aligned with the signature headers, like with the semi-block header type, but the address block is located all the way to the right of the page while the signature ...
3
votes
1answer
32 views

Horizontally centering three images on the middle one

Often, in the title page of a beamer presentation, I have to show three logos and some of them are not square images. I would like for the middle one to be centered horizontally and the other two to ...
5
votes
5answers
102 views

Place a list in the middle of the page

I have an itemized list: \begin{itemize} \item First item \item Second item \end{itemize} I'd like to place this list somewhere near the center of the page. But, I still want the bullet ...
5
votes
1answer
70 views

How may I left-align the following array?

I would not like it to be centred. \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \begin{document} \[a^{'}_{ij}=\left\{\begin{array}{lr} a_{ij}&\: ...
2
votes
1answer
31 views

Period Padding with Price [duplicate]

I'm looking for a way to have automated period padding for some items I'm discussing in my proposal. For example: Pneumatic Drill.......................$450.12 Drill ...
13
votes
3answers
15k views

How to format the chapter heading?

How can I change the chapter heading of the book class to typeset centered chapter names as shown in the image above?
5
votes
1answer
636 views

Nested columns in beamer

I would like to make an A0 poster using the beamerposter package. The poster content should appear in block environments, for which I need a flexible and clean layout handling. In particular, I need ...
1
vote
1answer
106 views

Why can't I vertically align these two matrices?

Why won't these matrices become left-aligned? \documentclass[11pt,a4paper,oneside]{report} \usepackage[pdftex]{graphicx} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} ...
1
vote
1answer
38 views

fitting a wide table in centre of a page

I want to fit this table in the centre of a page. I couldn't find any way to fit this table on the page. Can anyone suggest a solution? \documentclass{article} \usepackage{booktabs} ...
1
vote
1answer
34 views

Colored mark in margin notes in the middle of the \marginparsep

It's code, thanks for @Harish Kumar, \documentclass{book} \usepackage{mathtools} \usepackage{xcolor} \definecolor{background}{RGB}{255,255,170} \usepackage{empheq} \newcommand*\mybox[1]{% ...
2
votes
1answer
55 views

Alignment margin note with equation in pages

It's my problem, I am not writing margin note in \equation and \align. It's an error. But it's working in text. My aim, margin note with equation must be aligned. ...
1
vote
1answer
52 views

cannot figure out how to produce some tikz pictures next to each other

Ideally I would like to have the tikzpictures be in one line centered horizontally with its caption each preserving its node size and line strength and vertically aligned to a common bottom line. I am ...
6
votes
1answer
68 views

Relationship of \\, \newline, \raggedright, \RaggedRight, and parindent

I'm trying to understand if there is anyway to get \\, when in \raggedright or \RaggedRight, to produce a new line that is not indented, while \parindent or \RaggedRightParindent are set in order to ...
7
votes
3answers
48 views

Vertically align at operator, but keep default horizontal spacing

This is a follow up to «How can I align limits at “lim”?». What is the best approach to achieve the following alignment? Namely, I would like the two \prod to be aligned, but each line should remain ...
5
votes
1answer
69 views

How can I align the first row of these equations?

\documentclass[ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} ...
3
votes
1answer
90 views

Variable \hspace value in relation to outside margin (Two-sided Memoir)

So I have received a great deal of help on this. I myself did not create the code, but I have an additional need. As you can see from my MWE, I have a long two-sided memoir document that has a ...
3
votes
2answers
56 views

Alignment inside the \align enviroment-horizontally and vertically

Is it possible to make both expressions for omega's aligned with one another and do the same for the coefficients a,b,r and d,c,t? I tried to align them manually by using center but it does not work. ...
1
vote
0answers
19 views

Line break after \hfill [duplicate]

I hope this question is not a trivial one, but I was not able to find any answer to that. I found out that sometimes when I put an \hfill command in order to align some text to the right, there is a ...
5
votes
3answers
78 views

Shift Verbatim environment to the left using \hspace

I pasted some code into a document in a Verbatim environment from fancyvrb. Because it is within two nested enumerate environments, the code is indented quite far over. As a result, one long line of ...
1
vote
1answer
50 views

Overlapping ticks and figure not centered with matlab2tikz

See the printscreen. What I want is that the figure is centered, now that is not the case with using \setlength\figurewidth{1.0\textwidth}. Besides that the ticks with negative signs on the x-axis are ...
3
votes
1answer
36 views

misplaced & in equation using non-ams format

the following code works with ams environment, however I am trying to use it using aip conference template found here: http://scitation.aip.org/content/aip/proceeding/aipcp/info/authors and it is ...
9
votes
4answers
119 views

Align text to right-hand edge of centered image?

I am including an image in a beamer presentation, centred, and want to give an unintrusive attribution link, just under the picture, right-aligned to the right-hand edge of the image. In other words, ...
4
votes
2answers
215 views

Align the text in flushright block

I had two different lines into a block flushright.it is so: Foo Hello Everyone I would align these two lines in this way: Foo Hello Everyone Edit: \begin{flushright} Foo Hello ...
0
votes
0answers
24 views

Centering of Multiple affiliations

I have to centrally alligned the affiliation inforamtion but it is not appearing on center of the page.(appearing right side of the page) Here is the source code: \author{ ...