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

4
votes
3answers
67 views

Horizontal placement of a framebox

I would like to horizontally offset a framed paragraph of text so that the sides of the frame coincide precisely with left and right margins of 2em on a page with a text-width of 6.5 inches. ...
2
votes
1answer
23 views

Problems with centering a border matrix

I have the following code: \begin{figure}[h!] \centering \bordermatrix{~& \ket{\Phi_{0}} & \ket{S} & \ket{D} & \ket{T} & \ket{Q} & \dots \cr \bra{\Phi_{0}} & E_{0} & ...
4
votes
3answers
77 views

Put centered text in bottom of image using overpic?

I have a graph for which I want a centered x-label at the bottom. The idea is to use overpic and then insert som text at the bottom using \put(50,1){some x-label}. The problem is that \put places the ...
5
votes
2answers
107 views

Chapter and Section format

I want my chapter titles to look as they would with the code below. \documentclass[12pt]{book} \pagestyle{plain} \usepackage{amssymb,latexsym} \usepackage{amsmath} \usepackage{amsthm} ...
4
votes
1answer
46 views

fp alignment in tables

Can anyone explain why the output from these two entries is different? Does anyone know how to make the second one match the first? \documentclass{article} \include{fp} \newcommand\entryOne[1]{ ...
3
votes
2answers
24 views

minipage caption overrides

I am using two mini pages side by side. The caption of both the figures are too long, that the caption of both the figures merges each other. I would like them to be separated by some space. *edited ...
2
votes
0answers
31 views

Centering bibliography title in biblatex - tried every suggestion on Google

I know this question has answers on this site already, but none of them worked! I am using biblatex with the historian style for my history day paper. My teacher requires the bibliography heading be ...
3
votes
3answers
96 views

Labels in the left margin

I would like to produce a text with labels in the left margin, like a reference list. Labels may have different lengths. One way to do this is to define a negative \parindent, as follows: ...
5
votes
4answers
102 views

Problem with horizontal alignment in align environment

My MWE, \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{empheq} \begin{document} \begin{align} \left(\frac{4}{2 \cdot 2 ...
6
votes
1answer
102 views

Fully Customized Table in Latex

Is it possible to have a customized table in LaTeX that has the following features? Be able to define Width and/or Height for specific row/column Be able to highlight/color a specific row or column ...
3
votes
1answer
37 views

Center 3 text elements on one line in latex

I am new to LaTeX and trying to write my first resume. I want to list my contact info and right now I am doing this by using \hfill. The problem is that \hfill equalizes the spacing but I want the ...
1
vote
1answer
31 views

Polyglossia's nohyphenation breaks justified alignment in endnotes

I am using XeLaTeX to typeset a multilingual book with the help of polyglossia. I have footnotes as well as endnotes in multiple languages, and I need to turn-off hyphenation for the entire book. I ...
2
votes
1answer
31 views

Left aligned labels in descripton

I have a description in a latex beamer file. Inside it, I use description with custom labels. My Problem is, that one point (the penultimate) is longer than the others. The labels are right aligned. ...
2
votes
0answers
44 views

Multiple Table Horizontal Alignment

I am trying to put up multiple tables together. (Scroll down for MWE). I can not figure out why the last table is misaligned. I tried the solution here but it did not work for me as I am not using the ...
2
votes
2answers
121 views

Is it possible to align a caption to a centered float?

So if I use a caption in following example: \documentclass{article} \begin{document} \begin{table} \caption{test} \centering \begin{tabular}{ll} \hline Name: & Baggins \\ First Name: & ...
2
votes
1answer
37 views

aligning plots in pgf plots and a couple other associated questions

I am fumbling my way through pgfplots. I have 3 plots on a page. I have a few issues: The bars in the plots are floating above the axes to various degrees. How do I anchor the bars down to the axis? ...
7
votes
1answer
73 views

Switching from equation to align changes horizontal width

I am puzzled by why changing from an equation environment to an align environment should change the horizontal width of my equation. Below I provide an example. Sorry, it is not a minimal working ...
3
votes
1answer
29 views

Center a table's caption using apa6 with man mode

There are several questions that are related, yet not quite the answer to this question: Centering tables in document class apa6 How do force center-alignment in a caption in a figure? The ...
4
votes
2answers
74 views

Proper left alignment in math environment

I've seen this http://stackoverflow.com/questions/2632628/left-align-block-of-equations answer as well as a handful of others, but none of them gives a satisfactory solution. The problem Two ...
2
votes
1answer
25 views

Using a custom enumeration is aligned differently than a default enumerate environment

\documentclass{article} \usepackage{enumerate} \begin{document} \begin{enumerate} \item First Item \item Second Item \end{enumerate} \begin{enumerate}[a.] \item First Item \item Second Item ...
8
votes
3answers
241 views

Typesetting a long exact sequence

I am trying to typeset the Mayer-Vietoris sequence (concisely - without the map names above the arrows). Currently I am simply using the AMS align environment with a bunch of \rightarrow, \cdots and a ...
0
votes
1answer
40 views

Aligning Species of a Reaction Horizontally

how do you align the following horizontally: \begin{center} \schemestart \chembelow[3ex]{\chemfig{*6(=-=-(-[,.65]OH)=-)}} \chemsign{+} \chembelow[8ex]{\chemfig{CH_2O}}{Formaldehyde} \arrow{->} ...
4
votes
1answer
37 views

LaTeX elsarticle \cline for array mode

I am making a matrix like this one: \documentclass[preprint,11pt,3p]{elsarticle} \usepackage{amsmath,epsfig,amsfonts,amssymb,subfig} \usepackage{amsfonts,mathdots} \usepackage[ngerman]{babel} ...
2
votes
1answer
46 views

How to scale algorithm to fit in one frame and centered in the frame at same time?

Originally, the algorithm is too long to fit in the frame. If I use the \scalebox{0.8}{}, it can fit in the frame but doesn't look like to be centered in the frame. Here is the code and output. First ...
1
vote
1answer
42 views

How to align the image and algorithm in the frame?

The following is the code and its output. The output doesn't look well. If they are both aligned horizontally by their left and then centered in the frame, it will looks better. But how? (The image is ...
0
votes
0answers
28 views

Changing specific 'properties' of a longtable

I want to set some general properties for my longtable so that their top row is always dark grey and so that they're always horizontally-centred on my pages. I've found some documentation on ...
1
vote
1answer
64 views

right-alignment with enumitem

I have the following list with the enumitem package, \begin{flushright} \begin{description}[font=\color{black},before=\color{blue},nosep] \item[Item:] some text some text some text \item[Another ...
3
votes
1answer
40 views

How to align a pspicture to the center of page?

I have a pspicture inside a figure: \begin{pspicture}(40,25) \psframe(0,0)(30,20) \end{pspicture} The frame is displayed at the top-left of the page. Is it possible to automatically move it to the ...
3
votes
1answer
63 views

Chapter number aligned with text

I have a two side book and this is a new chapter. And this is the code I have to made this title. \documentclass[a4paper,10pt,twoside]{book} \usepackage{titlesec} \usepackage{xcolor,lipsum} ...
2
votes
1answer
32 views

Align an array horizontally to the center of the page

I am trying to make an array align to the center of the page. My search for the answer was fruitless as all of the questions (that I have find) refer to the alignment of the array elements and not ...
1
vote
1answer
28 views

Using array inside alignat to create equation legend

I want to describe the parameters in used in the equation in two columns below the equations. Something like this **** = ******* *** = ********** - - | A: ...
9
votes
2answers
115 views

How to left align the section title in latex?

I am using the \documentclass{ctexart}, and this document class centers the section title by default. How could I left align the section title?
2
votes
1answer
48 views

Aligning the rightarrows in latex [duplicate]

How to align all the $\rightarrow$s so that that all come in a line and not in a zig zag manner? The MWE: \documentclass{article} \usepackage[english]{babel} \begin{document} \begin{enumerate} \item ...
4
votes
1answer
59 views

Headings with a hanging subhead

I use this piece of code to add a subhead (usually a quick reference) in my notes: \newcommand{\mysection}[2]{\section[#1]{#1\\*[.6ex]\normalsize\textit{#2}}} I'd like to make the subtitle hanging ...
5
votes
5answers
216 views

How to align decimal points when using cases statement

I have a statement like \begin{equations*} \begin{cases} {\zeta}_{A} = -10.1234567 \cdots, \\ {\zeta}_{B} = 1{,}001.2345678 \cdots. \end{cases} \end{equations*} How do I align the decimal points ...
2
votes
1answer
38 views

LaTeX Multiple Table Alignment Horizontally and Vertically

I am trying to align multiple table and tried in several different ways, unfortunately none of them works. Here i have attached a sample code for your perusal. Will you please suggest me how to get ...
2
votes
2answers
110 views

When I type the following code, the table comes above the question. How can I make it appear below the question?

\begin{question} Calculate the reverberation time of hall of 1500 \si{m^3} volume having a seating capacity for 120 persons when \\ (i) when the hall is empty \\ (ii) with full capacity audience \\ ...
2
votes
1answer
58 views

Aligning header to the right in ConTeXt

I am typesetting a novel in ConTeXt and one of the things I was in need was a way of typesetting headers for scenes. A scene as I understand it, is simply a couple of lines which separate paragraphs, ...
3
votes
2answers
57 views

Error \centering with \multicolumn

\documentclass[a4paper,10pt]{report} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{multirow} \begin{document} \begin{table}[ht!] \caption[Structural properties of $5$ networks ...
2
votes
2answers
45 views

tikzpicture and array side by side in subfigure won't align

I am trying to align side by side a tikzpicture (an image of a network) and an array (a matrix) but no matter what I do they wont align properly. Two arrays side by side and two tikzpictures side by ...
3
votes
2answers
139 views

Two logos and text in the footer

I'm trying to put two images and some text in my document footer, all aligned side by side with the page number, something like this: I could get to the basics using fancyhdr, but it obviously ...
2
votes
1answer
62 views

Can't center or “enter” (in the right column) inside a two- (or more-) column translation-tabular

This article is a follow-up of my old post: Drawing a vertical line inside a tabular or inside the parallel package (and how to expand parallel to have more than 2 columns. Still, it seems impossible ...
5
votes
1answer
91 views

Logarithmic bar plot

I'm currently trying to create a diagram, with a logarithmic scale on y axis. This mostly works, except that the value of nodes near coords is wrong. Without ymode=log it shows e.g. 20551 as label. ...
2
votes
2answers
70 views

Insert a picture of my signature right under my name to the right

I have the following document as follows. I need two adjustments. I need signature in print and signature as a picture on the right hand side of the page (which is on the left as it stands now). ...
3
votes
1answer
40 views

Removing extra space in alignat

I have two little problems with the alignment here: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{6} \Phi \left(\sum\limits_{m\in M}r_m\delta _m + \sum\limits_{m\in ...
7
votes
3answers
132 views

Reposition Text around Images

So I'm trying to work on a visual layout for a kind of Xmas card. The idea is to have a pictures in the upper left and lower right corners with the family name and date centered in the upper right ...
6
votes
3answers
133 views

No hyphenation in TOC entries, please

I have some very long section titles and do not want their entries in the TOC to be hyphenated. \documentclass{scrreprt} %\usepackage[ngerman]{babel} \usepackage{tocloft} ...
1
vote
1answer
31 views

Missing } inserted \end{center} i got this error while running following code

\documentclass[a4paper,12pt]{report} \usepackage{graphicx} \begin{document} \begin{center} {\normalsize{A Dissertation on}}\\ \renewcommand{\baselinestretch}{1.1} \vspace{5mm} {\Large\bf ...
5
votes
3answers
53 views

Array environment cell over two rows keeping alignment

I am trying to span braces over two rows while keeping the aligment in the following example correct alignment in this case the alignment is correct. I think I am nearly there, any help would be ...
0
votes
0answers
14 views

Flush left equations in beamer column [duplicate]

When I do this in beamer: \begin{column}[T]{0.6\textwidth} \begin{equation} F = m a \end{equation} This is Newton's law. \end{column} the equation sits in the center of the column while the text ...