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

1
vote
1answer
15 views

Help with Chapter Headers Left-Aligning

I'm using the following code for the top of chapters which looks pretty cool: \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont\Large\raggedleft} {\MakeUppercase{\chaptertitlename}% ...
1
vote
0answers
14 views

How can I synchronize page-breaking text across columns?

I'm trying to produce something like this: I've been using memoir. Here's an idea I had. My understanding is that \footnote creates a float that tries to place itself at the bottom of the nearest ...
3
votes
0answers
20 views

Prevent Hyphenation across lines + Enforce right margin

My first question here, so it may sound rambling. So far I've found the answers about preventing hyphenation across lines and for setting margins, but I'm having trouble putting it together. This is ...
2
votes
2answers
29 views

Move tag next to equation in align environment

It's my first time asking here but I have got so much help from this site :D My particular case is that I need order and tag Maxwell's equations but I need set the tag in a particular location, just ...
2
votes
1answer
13 views

Left margins are different for longtable and tabular

I would like to use a tabular and a longtable in my document, but the left margins are not aligned. \documentclass[letterpaper,11pt]{article} \usepackage{longtable} \begin{document} ...
4
votes
2answers
73 views

Centering sections

I would like to use titlesec to center my sections as follows (MWE): \documentclass[10pt,a4paper,twoside]{book} \usepackage[latin1]{inputenc} \usepackage{lipsum} \usepackage{titlesec} ...
2
votes
1answer
28 views

How to get rid of extra indentation before table in \extratile of class scrreprt?

If I use the following scrreprt document, the initial tabularx table is aligned with the left boundary of the text area: \documentclass[draft=true]{scrreprt} \usepackage{tabularx} ...
3
votes
3answers
75 views

Hanging brackets in an align environment

I have two formulas in an align environment, and the second one starts with a bracket (this particular example is simplified): \begin{align} & x_\alpha(s) x_\alpha(t) \\ & \left[ x_\alpha(s), ...
3
votes
1answer
20 views

Source of figure below caption is not centered when there are too many characters

I want my figure source to be part of the caption but in an new line, everything located below the figure and both of the lines should be centered. This works out perfectly as long as the caption ...
3
votes
1answer
29 views

Stairs-like multline

The multline environment alignes the first line to the left, the last one to the right, while all the lines in between are simply centered. The result sometimes looks not satisfying, for example, when ...
5
votes
2answers
94 views

How to align a listing like itemize on the left and some graphics on the right in latex?

I have an itemized list like this: \begin{itemize} \item[\Square] 1 \item[\Square] 2 \item[\Square] 3 \item[\Square] 4 \item[\Square] 5 \item[\Square] 6 \end{itemize} and a graphics like this: ...
2
votes
2answers
34 views

Create fancyhdr footer with something like: \lfoot{\centering{Centered to the left}}

How can I create a footer like this one? It appears to be text centered in the left half of the page, and in the right half of the page. I tried, eg., using fancyhdr with: \lfoot{\centering{some ...
1
vote
1answer
37 views

How to get subfigure alignment

I have a 3 figures and I am trying to put them on one line but I can't achieve that. Any help would be great. Here is my code: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{caption} ...
2
votes
1answer
40 views

Column in horizontal middle of page

I want to write a table with 3 columns. The second should be in the middle (horizontally) of the page. Thanks, Adrian.
1
vote
2answers
43 views

Right align using tabulary

I have the following table: \documentclass[a4paper,twoside,11pt,openany]{book} \usepackage[utf8]{inputenc} \usepackage[spanish,english]{babel} \usepackage{tabulary} \begin{document} \begin{table} ...
1
vote
0answers
22 views

Insert negative of \widthof into \hspace without defining a newlength

Following MWE does not work: \documentclass{article} \usepackage{calc} \newlength{\charwidth} \setlength{\charwidth}{\widthof{$-$}} \begin{document} \centering $\infty$ \centering ...
3
votes
2answers
35 views

How to have a figure with multiple groups of image and each image with individual name?

I have several images and I must put their names below them. Moreover, I need to give the name of the group of that images too (for example, "first layer", "second layer" ect as show below). I need to ...
0
votes
0answers
9 views

Text Prior to Subsubsection affecting alignment of text following it

Following are two snippets of code along with what they compile into. The issue is with the alignment of the text that follows the subsubsection. It should align with the subsubsection's heading, ...
0
votes
1answer
26 views

centering within a table cell not working in one cell only [duplicate]

I'm trying to create a table using custom columns as explained here. For some reason in the last row of my table the very left column is not centered horizontally and I don't know why. Here is the ...
6
votes
2answers
444 views

Using arrays to align parallel equations: Why isn't $|z|$ centered?

There was an earlier question about aligning different parts of two parallel equations in a multiple line environment, and I'm trying to adapt Werner's answer that used an array for my own use. ...
3
votes
1answer
73 views

Center plot created with pgfplot from matlab

If I have a nice plot in matlab, then I save it as a tikz standalone file matlab2tikz('myimage.tikz','standalone',true) and I create a pdf in my terminal with pdflatex myimage.tikz to include ...
3
votes
1answer
31 views

Right alignment of a single line

I have some pieces of metrical text, set in quoting environments, in which some verse halves are longer than a line. The standard verse environment would just break automatically and indent the second ...
2
votes
2answers
28 views

The list in an alignat environment is pushed to the right

How do I get this list centered horizontally? \documentclass{amsart} \usepackage{amsmath} \usepackage{amsfonts} \begin{document} \noindent {\bf Example} \vskip1.25mm \noindent \hspace*{1em} ...
2
votes
1answer
94 views

How can I align this table with another way?

I tried to align this table. My code \documentclass[border=2]{standalone} \usepackage{amsmath} \begin{document} \begin{tabular}{c c c} 1 & $=$ & 1 \\ $2 + 3 +4$ & $=$ & $1+8$ \\ ...
6
votes
1answer
162 views

How can I correctly align the nodes of this TikZ picture?

I have the following TikZ picture: and I would like to have my nodes aligned in the way indicated in red. How can this be done? What I have so far is pretty messy and I don’t see how to achieve ...
4
votes
2answers
81 views

Center table in the page

Having this example (note the use of tufte-handout document class): \documentclass[12pt,english,nohyper]{tufte-handout} \usepackage[]{color} \usepackage{lipsum} \usepackage{graphicx} ...
2
votes
1answer
25 views

How to disable right justification in the entire document including tabularx environment?

I am trying to disable right justification of text in Latex because it leads to too many hyphens which turn out to be distracting. I tried \raggedright as shown below. \documentclass{article} ...
0
votes
0answers
33 views

Why is \centering{}aligning text above it?? (basic question) [duplicate]

I am new to LaTeX and am trying to get used to the features of the language. I have typed \indent Like all languages mathematics has a few basic rules upon which its complexity is built. The first, ...
2
votes
1answer
92 views

How to align the left edge of text in table with the section heading?

I am trying to make a table as follows. \documentclass{article} \begin{document} \section*{Foo} \begin{tabular}{l l l} Date & : & 2015-01-01 \\ Time & : & 20:30 \\ Place ...
1
vote
2answers
40 views

horizontal adjustment of side caption after tikz arrow addition

I have a figure with side caption and I added an arrow to the image but now everything is not centered anymore since I added the arrow, is there a way to force the centering to accommodate the added ...
1
vote
0answers
35 views

different text alignment on even/odd pages (like raggedouter but for text)

For a poetry book I would like to typeset all text on even pages \raggedleft and all text on odd pages \raggedright, including headings. Poems can span across multiple pages, so the change of text ...
3
votes
1answer
29 views

How do I center the title names of List of Figures and List of Tables?

I know for centring the Table of contents, the following code is used: \usepackage{tocloft} \renewcommand{\cfttoctitlefont}{\hspace*{\fill}\Huge\bfseries} But what do we use for the List of Figures ...
2
votes
1answer
36 views

Combined Tables Not Centering Correctly with ACM

I'm trying to put two tables together, so that they sit immediately, with ACM's template and I'm having a problem. The tables will sit next to once another, but the first table will be too far to the ...
3
votes
1answer
31 views

How to center two figures heighthwise

I have two figures A and B, and A is larger than B. What can I do so that the center of the two figures is at the same height ? \begin{figure}[] \begin{center} ...
4
votes
1answer
130 views

Centering a wide table

I can't seem to center this table. Here's the code I have. I've tried using \centering too. There is a big indent and the table goes all the way to the right edge of the page. \documentclass{article} ...
3
votes
1answer
40 views

Horizontal alignment of ytick labels

I am working on a population pyramid. With some sort of hard-code I managed to overlap the ytick-labels of the age in the middle of the graph (but not properly). My question is, how to 1.) suppress ...
4
votes
2answers
38 views

Alignment of TOC with exotic numbering

While answering this question : French section numbering using bis, ter, etc, I realized that when you add (using \addcontentsline) some content to ToC with "non conventionnal numbering" (in my case 2 ...
4
votes
1answer
161 views

Why is the picture not centered in the frame?

Using the following code: \documentclass[12pt]{beamer} \usepackage{ctex} \usepackage{graphicx} \begin{document} \begin{frame}{PSA分析级别和实施程序} \begin{figure}[htbp] \centering ...
3
votes
1answer
36 views

Reproduce lhs2tex’s code indentation in LaTeX

The preprocessor lhs2tex has a very neat way of aligning code. Consider this snippet: let t1 = foo x in let g x = if x > 10 then t1 else let t2 = bar x ...
2
votes
1answer
27 views

flush align equations to left margin

In the attached MWE: \documentclass[11pt,fleqn]{book} % Default font size and left-justified equations \usepackage{etex} \reserveinserts{28} \usepackage[svgnames]{xcolor} % Required for specifying ...
0
votes
1answer
17 views

Tabular Alignment and Centering around Decimal Point [duplicate]

I'm trying to align numbers by a decimal point in LaTex. I know this has already been answered, but what I can't figure out is how to center justify the labels around the decimal point. ...
0
votes
0answers
19 views

Specify horizontal position of xtable output in LaTeX

I originally posted about this on StackOverflow (http://stackoverflow.com/questions/31359737/table-environment-from-xtable), but it was recommended for me to post it here instead. I am using the ...
2
votes
1answer
40 views

How to left-align a table in LaTeX with nonstandard document class

I need to align my table with the left margin of my page. The adjustbox package looks to be the solution, but I'm having difficulty implementing it. I realize my question is potentially a duplicate to ...
2
votes
1answer
61 views

Horizontal alignment of tikzpicure in an equation

In this minimal working example, \documentclass{article} \usepackage{tikz} \begin{document} \begin{equation} \lambda = \begin{tikzpicture} \draw(1cm,0) -- (2cm,0); \draw(2cm,0) -- (3cm,0); ...
3
votes
2answers
46 views

Right aligning atom in chemfig

I'm using chemfig (perhaps improperly) for relational algebra graphs. Here, for example, is a simple one: \documentclass{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} ...
3
votes
1answer
33 views

Centered lineheaders with classicthesis package

I began to use the classicthesis package which is very close to a word theme I used to work with before. The package is configured like that : ...
1
vote
3answers
53 views

Align table horizontally - rescale

I would like to align horizontally two tables, if necessary rescaling them, to put them on the same line. Obviously even the caption must be scaled, remaining aligned with the center of the table. ...
4
votes
1answer
70 views

How to make vertical alignment of columns different in Beamer?

I try to make a frame in which I indicate a figure on the right side and add a description about it on the left side. I want the description top-aligned and the figure center-aligned, but I have ...
1
vote
0answers
40 views

Caption settings before and after loading caption package

Why do captions look so different after the mere loading of the caption package? What are the default settings for a caption BEFORE loading the caption package? I would prefer to be able to load most ...
3
votes
2answers
34 views

how to force alignment of text with itemize

I have two similar looking sentences and I would like to "push" certain pieces of text to the same x coordinate. \documentclass[12pt]{article} \usepackage{amsmath, amsfonts} \begin{document} ...