{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
1k views

KOMA-Script unequal left/right margin

I'm using the following header \documentclass[fontsize=11pt]{scrbook} \usepackage{amsmath,amssymb,amsfonts,hyperref} \begin{document} \large %%% Header %%% \title{My Title} \author{John J. Johnson} ...
2
votes
1answer
4k views

Multicolumn misplaced \omit problem

Okay, I know there are a few questions already about this but I looked at them and tried to get it to work but couldn't, I'm kinda new at this so I dont really have a clue what I'm doing. Anyway ...
1
vote
1answer
409 views

\hat over italic letters is not centered horizontally

When using $\hat{a}$ in LaTeX, the hat is actually aligned slightly left of the a's true head… Is there any common way to fix this? As I think that this is a common issue, I didn't screenshot ...
15
votes
1answer
853 views

Align numbers and separated uncertainties in tables with S columns

If I have a table like this \documentclass{article} \usepackage{booktabs} \usepackage[separate-uncertainty=true]{siunitx} \begin{document} \begin{table} \centering \begin{tabular}{ ...
9
votes
5answers
607 views

centering a part of an equation

I am using \vdots in my equation, and I need it to be centered. As shown in the figure it is automatically left indented. I am not able to bring the dots to the center. I am providing MWE also. ...
4
votes
3answers
714 views

Problem with fraction and align environment - “&” symbol

I am new in LaTeX, thus I need your help. I want to align the \leq symbol under the + symbol. The problem is that the + symbol is contained inside a fraction, therefore, the ...
4
votes
1answer
179 views

Table columns with widths set by m{} appear to be incorrect

I am using R and Sweave to produce tables for a report, and one of the generated tables is not playing nicely with the m{} definition of column width. The .tex file produced by R/Sweave has the ...
5
votes
1answer
578 views

automatic flushleft/flushright for section headings (book class)

I'm preparing a large document using the book class. I want my chapter, section, subsection, etc headings to appear either flushed left or right depending on whether they appear on an even or odd ...
9
votes
1answer
5k views

How to center a lstlisting

I have the following problem. I want to center a listing, I tried this approach: How to center a listing? It works but when I try to set frame or numbers specifically for each listing I get errors. ...
2
votes
1answer
86 views

Justification issue with underscored words

I have a problem with justification in one line: Similarly to CUDA, OpenACC benchmarks define TILE\_DIM as 32 and BLOCK\_ROWS as 8. This line on my document has justification issues, as can be seen ...
4
votes
1answer
14k views

Left align abstract, title and authors

I would like to re-align my title, authors and abstract to the left of the document. The example in this question is basically the output I want, but I do not want to use the memoir environment. MWE: ...
3
votes
2answers
399 views

Align columns in multiple subfigure tables in figure environment

Here's my code: \documentclass{article} \usepackage{booktabs,caption,subcaption} \begin{document} \begin{table}[h!] \caption{Main figure} \begin{subfigure}{\linewidth} \caption{Table 1} %Table 1 ...
6
votes
1answer
578 views

Subequations inside align result in too wide equation

I want to create subequations and allign them such that nice 'inquality constraints' arise. My current code: \begin{subequations} \begin{align} a & \le b & \le c \label{eq:constr1}\\ d & ...
1
vote
0answers
143 views

Continue alignment to new page when using enumerate [closed]

I would like to keep the sentence starting in Let w to be inline with the (ii). It is a continuation of the (ii). However it gets aligned with 2(b) instead. I am using enumerate to get 2b and ...
1
vote
1answer
1k views

Horizontally align figures using parbox

I have 6 images and I need to align them in a 2x3 matrix with 3 images on 1 line and 3 on the other. This is the code so far which vertically aligns all 6 images. How do I change it? ...
1
vote
1answer
2k views

Aligning figures using subfigure Error: Not in outer par mode

I am soooo lost! have no idea why I keep getting this error. I have tried almost every combination of subfigure, float, centering but I keep getting "Not in outer par mode" error \begin{figure}[htp] ...
2
votes
3answers
130 views

Align raggedleft set of tables to middle and vertical line

Hello everybody out there, Consider the following minimal example: \documentclass{article} \begin{document} Introductive text \dots\par \begin{tabular}{cc|cc} A & B123 & C & D\\ E ...
8
votes
1answer
692 views

How to keep the alignment of equation array on a new page?

I have a very long equations inside \begin{eqnarray} long equation go over 2 pages... \end{eqnarray} I can't break into two by \begin{eqnarray} 1/n of long \end{eqnarray} ...
3
votes
1answer
474 views

List item text alignment

I have nested enumeration with a long labels. As a result, the text in items becomes very shifted to the right. I want that this text in items won't be moved at all (the same horizontal offset as the ...
3
votes
1answer
428 views

Enumerate numbering is out of page

I have nested enumerations in my article. The numbering of enumeration is modified. \renewcommand{\labelenumi}{\bfseries\thesubsection.\arabic{enumi}} ...
1
vote
2answers
3k views

Smarter latex justification to avoid large spaces

The default format in latex for paragraphs is fully justified, where the first word of a line touches the left margin and the last word of a line is flush with the right margin. This is nice for ...
12
votes
2answers
14k views

Include centered full page figure with no margins

I have a big figure that takes up a full page. I'd like to include it in my latex document on a separate page, centered horizontally and vertically. I managed to put it on a separate page (or it is ...
6
votes
3answers
2k views

Misalignment of \vrule

I have been writing my thesis and there is this one problem that I cant seem to figure out why it happens: The following is a segment of the code from my thesis style sheet. This defines the first ...
9
votes
2answers
176 views

\raggedyleft in memoir?

In memoir instead of \raggedright, you can use \raggedyright[<space>] which is much more beautiful in narrow columns. However what I also need is \raggedyleft which does not exist and I don't ...
12
votes
4answers
585 views

How do I get this strange alignment?

I would like to get a nonstandard alignment in the following code: \begin{align} \text{First left hand side} & = \text{First right hand side} \\ \text{Second left hand side} & = ...
10
votes
1answer
507 views

Misaligned month label in TikZ calendar

I'm putting together a multi-month calendar in TikZ and am seeing some awkward and undesired alignment in the month labels despite using the month label above centered style. In particular, the month ...
11
votes
4answers
1k views

Align denominator of fraction to left

The highlighted part has the equation centred, which looks rather imbalance with the top equation, is it possible to align the highlighted part to the left? Below is the code I am using. ...
6
votes
1answer
3k views

Center image in landscape mode

I've used the \usepackage{pdflscape} instruction and the following code for inserting an image in a landscape oriented page. \begin{landscape} \begin{figure}[p!] \centering ...
3
votes
1answer
202 views

Aligning three small box together with a text

I made through creating the boxes inside a box with help of an expert by this link Is three boxes inside a box posibble in latex Now im being troubled on how will i put into command to align this ...
4
votes
1answer
289 views

How to move a phrase in a resume template?

Here is some template CV in LaTeX: http://www.rpi.edu/dept/arc/training/latex/resumes/ Consider template number 9a (source). I want to move the name to the left, write "Resume" in the middle, and put ...
1
vote
2answers
862 views

epigraph using \textit

I have created epigraph in my book using the latex command \epigraph. I would use \textit style but I got an epigraph that not follow the margin. when I use \textit it became squeezer This is what I ...
1
vote
0answers
65 views

How to left align any LaTeX code? [duplicate]

Possible Duplicate: How to move the whole block of {align*} to the left? How can I make this simple code to appear left aligned? \begin{align} \frac{cos2A}{1-sin2A}=cot(45^o-A) \end{align} ...
6
votes
2answers
604 views

Keeping the distance between mathematical symbols consistent?

In order to make text flushed both left and right, latex adjusts the distance between words, and to a lesser extent, the distance between characters within a word. This is good, however it also ...
6
votes
2answers
139 views

left justifcation only similar to the LaTeX3 newsletter

How does one gets a layout similar to the LaTeX3 newsletter? Specifically, the text is left justified only and I cannot figure out how. I have tried raggedright/raggedleft commands without success.
0
votes
1answer
89 views

Creating custom tabularx

I am trying to create a new environment in order to change the layout for tabularx, since the original is not looking like it should. I want the picture to be on the right side wrapped by the text. My ...
11
votes
3answers
383 views

Aligning complex numbers in centre of table with siunitx

I'm trying to align complex numbers in the middle of a table column using the siunitx package for nicer alignment, but the numbers are centring based on where the decimal point would be on the real ...
4
votes
1answer
707 views

Extra spacing and right align

I am working on a list of courses that I have taken. The following code: Math 100--Trivialities \hfill Professor Jane Doe \begin{flushright} Grade: A \end{flushright} produces Notice that there ...
4
votes
2answers
5k views

Align comments in algorithm with package algorithm2e

I am using the package algorithm2e. When using comments like this \documentclass[11pt,a4paper,twoside,openright]{book} \usepackage[algochapter,linesnumbered,ruled,lined,boxed]{algorithm2e} ...
18
votes
3answers
9k views

\hfill in math mode

Is there any easy way of declaring a new command which emulates \hfill in math mode. I don't want flalign or something similar. I want to use the command in the same way (and with the same freedom) I ...
3
votes
2answers
1k views

Aligning subfigures both horizontally and vertically with memoir

I'm trying to place 4 subfigures of different sizes aligned. Here the box-k.pdf files contain boxes with marks at the midsides. The result has box-1 and box-3 aligned at the left margin, not centered ...
4
votes
2answers
917 views

How and when does hyphenation in beamer slides work?

I don't understand how beamer handles hyphenation. Consider the following example: \documentclass{beamer} \begin{document} \begin{frame} \frametitle{Without hyphenation} Latex is the stable ...
4
votes
1answer
239 views

How to align caption description to the left in KOMA article?

I would like to know how to align the caption to the left as in the article class, instead of aligned like shown on this picture in scartcl ?
5
votes
2answers
768 views

Center long column title

MWE of my table: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{multirow} \usepackage{array} \begin{document} \begin{table} \hspace{-3cm} ...
2
votes
0answers
26 views

flushing lines in gather environment [duplicate]

Possible Duplicate: How can I add left aligned text to an equation? I need to write a system with sub-items looking like this: \begin{subequations} \begin{gather} \text{ {\textit{First ...
2
votes
2answers
2k views

table too wide for twocolumn-mode document

I have a table which comes outside the text column width into the margin of the paper. How do I make the text in the table align to left ? \documentclass[a4paper,10pt]{article} ...
7
votes
1answer
2k views

Tikz flowchart: center text + math in node

I'm trying to draw a flowchart with TikZ. In one of the decision "diamonds", I have both text and a bit of math between $. \node [decision, below of=buildbid, node distance=1.8cm, aspect=8, minimum ...
4
votes
1answer
283 views

how to right-align on a page a block of multi-lined text which is itself left-aligned within the block?

I am trying to re-create the letter format using just regular LaTex commands since the letter packages do not give me the desired effect. In a standard US letter, my (the sender) address would be on ...
3
votes
2answers
284 views

Multilines aligned to describe a set notation

I'm trying to write a set notation in multiple lines, for example: This is my code to get it. \usepackage{amsmath} \begin{document} ... \begin{align*} Lookup &= \{\, \langle C, A.m, B.m ...
8
votes
2answers
727 views

Drawing a venn diagram with two nodes using Tikz?

How do I create a Venn Diagram with entities no larger than below, but with text scaled to fit; and circles in alignment horizontally? \documentclass[a4paper, 14pt]{article} \usepackage{tikz} ...
2
votes
2answers
519 views

How to align equations in the equation environment?

I have been looking on how to align equations and I have seen numerous examples with \align and \flalign, however whenever I try to use these in the equation environment, I get an error. I would like ...