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

3
votes
1answer
19 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
18 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
80 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
30 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
34 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
41 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
21 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
442 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
72 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
160 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
89 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
39 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
34 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
28 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
37 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
15 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
18 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
32 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
69 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} ...
2
votes
2answers
49 views

insert a scaled picture on the right side of the page on an existing picture in latex

I am new user of latex. Can I insert a scaled image on the right side of the page?While, I have already full size image on the same page. There is no text on this page. Thanks in advance. ...
0
votes
0answers
35 views

Centering left justified

I would like to combine left justification and centering for a figure with multiple panels created using sidesubfloat. I.e. the entire block should be centered on the page, but with the left side of ...
2
votes
2answers
136 views

Displaying formula with a star

I want to display a centered formula to which can be referred as (*). Now, I have the following: But I want the formula to be more centered and the star to be right aligned. The code is now: $$ ...
3
votes
3answers
179 views

How can I only make table headers center and bold?

I would like to center and bold the table header. Here are codes. \begin{center} \begin{table} \caption{table decription} \label{t_sim} \begin{tabular}{|l|l|} \hline Key & Value \\ \hline $x$ ...
4
votes
4answers
70 views

Spreading letters evenly across a line from margin to margin

I wish to achieve something that can be easily accomplished by simply pressing this button in Microsoft Word: So that I could make something like this: What I've seen so far on this forum either ...
1
vote
1answer
20 views

Unexpected center alignment of the text after the remark block

I am working on a draft within an ieeetran template. There are a couple of definitions and remarks within the text, have which been embedded, deservedly. But the odd thing is that, as I try to ...
1
vote
1answer
41 views

Centering a column in align or alignat with desired spacing

Initially, I had the code \begin{align*} |a_d|_p & = 1 \\ |a_i|_p & \leq 1 \end{align*} which produced the result below: This is undesirable because the vertical bars | on the left ...
3
votes
4answers
129 views

How to align the the numbers horizontally?

Here are my example and the output. \begin{center} \begin{tabular}{lp{.8\linewidth}} Group ID: & $1 \quad 2 \quad 3 \quad 4 \quad 5 \quad 6 \quad 7 \quad 8 \quad 9 \quad 10 \quad 11 \quad 12 ...