{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
104 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
86 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
421 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 \includegraphics[scale=0.4]{...
4
votes
1answer
54 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
60 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
39 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. \begin{...
0
votes
0answers
100 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
92 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 ...
3
votes
1answer
90 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); \draw(...
3
votes
2answers
119 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} \usepackage[...
3
votes
1answer
77 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 : \usepackage[linedheaders,parts,pdfspacing]{...
1
vote
3answers
83 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
430 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
64 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
51 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
118 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. \...
1
vote
0answers
42 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
207 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
1k 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
659 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
58 views

Unexpected center alignment of the text after the remark block [closed]

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
58 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 don'...
3
votes
4answers
189 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 \...
5
votes
4answers
155 views

How can I align the < signs in my array (piecewise function) in TeX?

I don't know how to use align with an array, any suggestions? I'd like the first < sign in each line to match up while retaining the alignment that I currently have. Here is my code: \be \frac{M_{...
1
vote
1answer
43 views

Trouble aligning table on landscape page

I am trying to print a large amount of data onto pdf files using LaTeX. I have tabulated this data (a selection of which is in my example below). In order to fit all these data onto the page I have to ...
2
votes
1answer
151 views

Centering two line caption in memoir

I'm struggling to center my two line captions. I'm using memoir and I want the second line to be the reference to where I got the figure from. I'm using the following code for the figure: \begin{...
3
votes
1answer
130 views

Horizontal alignment - two tabulars in minipages

I originally had a list in itemize that I wanted on the left and a "legend" created by tabular I wanted on the bottom right of a slide in a presentation. Then, I learned that wraptable doesn't work ...
2
votes
2answers
69 views

How to align column names in the second row?

Here are my example and the code. \begin{table}[H] \begin{tabular}{lrrrr} \toprule \multirow{2}[3]{*}{Method} & \multicolumn{2}{c}{group} & \multicolumn{2}{c}{variable} \\ \cmidrule(l){2-...
3
votes
2answers
43 views

Item list inside multicolumns not correctly centered

I have a table with item list inside multicolumns which are not behaving as expected (vertically and horizontally centered): \newcolumntype{C}{>{\centering\arraybackslash} m{2.3cm}} \begin{table} \...
0
votes
1answer
101 views

! Missing number, treated as zero. \let \centering

\section{Azimuthal Angle} \begin{figure} \centering \begin{subfigure}[b][0.3\textwidth] \centering \includegraphics[width=\textwidth]{D:/Project/Documentation/Images/muon_phi} \caption{The azimuthal ...
2
votes
1answer
94 views

How to fix the space between “Figure” and “5” in “Figure 5:” in figure caption?

I use this solution to get captions for my figures at the side, which works really fine. But sometimes, if the word behind "Figure xyz:" is too long for the line, I get something like this: How can ...
4
votes
1answer
341 views

Alignment of minted line numbers

I'm using the minted package for code highlighting. The below is just a minimal example. What I find annoying about this package is that line numbers appear in the margin. This causes several ...
2
votes
2answers
57 views

Center in a table if the result has at maximum two lines, otherwise try harder to squeze it on two lines (and then maybe center)

This has the second cell span over three lines: \documentclass[12pt,landscape,a4paper]{article} \usepackage{microtype} \usepackage{multirow} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{...
1
vote
2answers
189 views

Justification (both right and left) and page-break for margin enumeration

I am including an enumeration in the margin. I am able to get this to work, but noticed two problems. First, I am trying to justify the text. Currently, it is justified on the left, but not on the ...
2
votes
1answer
110 views

Centering a figure with caption (\centering not working)

I am having problems with centering my picture in a LaTeX document. I want to center the following picture: \documentclass[10pt]{article} \usepackage{pgf,tikz,geometry} \geometry{a4paper} \usepackage{...
2
votes
1answer
91 views

Format title for \chapter*{}

I have formatted Chapter titles using the package titlesec, but the formatting is unsuccessful in applying to my chapters with an asterisk *, (those chapters which I do not want appearing in my table ...
2
votes
2answers
33 views

Putting a letter between minipages

I'm using: \begin{minipage}[t]{0.4\columnwidth} \begin{eqnarray*} x&=&{{x}_{0}} \\ y&=&{{y}_{0}}+t\\ z&=&{{z}_{0}}+{{x}_{0}}t \end{eqnarray*} \end{minipage} \begin{...
3
votes
2answers
104 views

item tabulator same line

I want to put the item in the same line as the tab. Please have a look on my screenshot, how i actually want it to have. \item Bewertung: \begin{tabular}{l l c } & TestTest: & Test \\ &...
1
vote
1answer
74 views

Centering numprint-formatted table columns

Consider the code \documentclass{standalone} \usepackage{array, numprint} \npstyleenglish \begin{document} \begin{tabular}{n{3}{0} n{3}{0} >{{\npunit{\%}}}n{2}{1}} {{\# successful}} & {{\# ...
1
vote
1answer
62 views

How to center the numbers?

\begin{table}[h] \resizebox{\columnwidth}{!}{ \begin{tabular}{lcccccccc} & $U^{MMM}$ & $U^{MMB}$ & $U^{MBM}$ & $U^{MBB}$ & $U^{BBB}$ & $U^{BBM}$ & $U^{BMB}$ & $U^{...
0
votes
0answers
27 views

Latest MiKTeX update breaks XeLaTeX + fleqn [duplicate]

I updated the MiKTeX on my system two days ago. After that, compiling my codes using XeLaTeX gives the following error: ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fleqn.clo" File: fleqn.clo 2015/03/...
2
votes
1answer
131 views

Centering in a table

\documentclass{article} \begin{document} \begin{center} \begin{tabular}{ | p{5cm} | p{5cm} | p{7cm} |}\hline \centering{A} & \centering{B} & \centering{C} \\ \hline \end{...
0
votes
1answer
101 views

Flushright, Allignment

I want to align text as in the picture above. Starting from supervisor till Patiala. I used flushright but it aligned the text from the right hand side as in the picture below. How can I correct this?
1
vote
1answer
99 views

Two column document, 2X1 figure placement

I need to place 3 figures in a two-column document, wherein the 3rd figure at the bottom needs to be centred! How can I do this? I want something like this: To do the same for 4 figures I have ...
0
votes
1answer
54 views

How to aligned text in graffito to the left?

I'm using graffito for sidenotes in my thesis, is there a way to align all text to the left? (currently a comment on the left side of the page is aligned to the right for some reason...) Graffito is ...
4
votes
4answers
2k views

How to center horizontally tikzpicture in beamer frame using a specific node?

The following MWE centers my tikzpicture into the frame: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \setbeamertemplate{frametitle}[default][center] \begin{document} \...
2
votes
1answer
34 views

How to NOT report overfull hboxes from a personal command?

I create a command to display some symbol in the right margins in a twoside document. The point is that they always bring an overfull hbox warning in my logs whereas it obfuscates the real overfull ...
4
votes
3answers
256 views

Multiple alignment in math mode - a math equivalent to `\multicolumn`?

I have some quite long lines of maths I have to put into a two-colum document format, so the maths often needs to be split between multiple lines. In the example below, I'd like to align the open ...
1
vote
1answer
88 views

Glossary like Two column supertabular problem

First thing first, my code, \documentclass[11pt,a4paper]{article} \usepackage{supertabular} \usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.2in, bottom=0.15in, ...
6
votes
2answers
162 views

Put hyphen on the margin, not in the text

Normally Latex puts hyphens inside the text: ------------------------------------ Lorem ipsum dolor sit amet, consec- tetuer adipiscing elit. Aenean com- modo ligula eget dolor. Aenean mas- sa. ...