{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
1answer
144 views

Problem with a table

I have a table that I would like to adjust: the text is floatting; I wanna have it centred in every cell. \documentclass[12pt,a4paper,oneside]{book} \usepackage{tensor} \usepackage{graphicx} ...
5
votes
2answers
7k views

How to center text in tabularx? [duplicate]

Possible Duplicate: Centering in tabularx and X columns I was using \begin{tabular} to insert a table in my article. The titles for columns were long which caused the table to extend out ...
4
votes
1answer
234 views

ctable decimal alignment

I'm trying to replicate siunitx's decimal alignmnent in tables, using ctables. \documentclass{article} \usepackage{ctable} \begin{document} \ctable[] {rc} {}{ \FL \textbf{Data} & ...
3
votes
1answer
979 views

Tables: Automatic adjustment of columnwidth to its content gives error “Misplaced \noalign” at \toprule

I am trying to put two tables next to each other, vertically aligned top, with some below listed adjustments I unfortunately can't get together. First, I'd like to know if/how I can avoid the error ...
1
vote
1answer
1k views

Bad formatting of Bibliography

I tried two ways to format a bibliography with lots of URL's: Without 'RaggedRight' With 'RaggedRight' In the first case, there are wide spaces between words in some items, that a really not ...
15
votes
3answers
11k views

How can one set full justification within left-justified (\raggedright) text?

How can one set full justification within left-justified ({\raggedright [...]}) text? An example of where I need full justification is here: \documentclass{memoir} \begin{document} Document body. ...
3
votes
1answer
2k views

Why doesn't the \closing center in my letter?

If I pdflatex the below Latex, then "Kind regards," and "Sandra" doesn't get centred. If the letter is two pages long, then it does. Question How do I get this centred when my letter is just one ...
4
votes
1answer
250 views

Enforcing writing across full width of page whilst using the res document class

I am using \documentclass[margin]{res} to display the section titles of my document to the left of the body text and the section{Section_name} command works fine. However, I would like for some ...
4
votes
1answer
226 views

How would I typeset a two-column layout, where the headings are on the left side and the contents are on the right?

I'm trying to typeset my resume using TeX. I'll start off by showing an approximation of what I want to do with this picture: Note the red lines in the picture are only for illustrative purposes. ...
6
votes
0answers
304 views

Plots not perfectly aligned vertically [closed]

I created this two plots using pgfplots package and put in the page using subfig package. This is a part of the code I used to create it. \begin{figure}[htp] \centering ...
3
votes
1answer
373 views

algorithmicx, broken left align with custom numbering

I am trying to use the algorithmic package with Step1. Step2. instead of 1, 2, ... line numbering and I have numberless lines. An example: \documentclass[11 pt]{report} \usepackage{algorithm} ...
3
votes
0answers
54 views

Subfigures not appearing on a same line [duplicate]

Possible Duplicate: Multiple subfigures not appearing on the same line I have tried this code to put two images with together under a same caption. The subfigures do not appear on the same ...
2
votes
1answer
614 views

Can't Left Align Date with newlfm.cls [duplicate]

Possible Duplicate: Tex Cover Letter Doesn’t Display “Sincerely, My Name” Here is what my current output looks like: I can't get the date on top to align with the text, that date is ...
2
votes
1answer
260 views

Flushing right the pagebackrefs in the bibliography with hyperref

I'd like to flush the back references to pages in my bibliography to the right. I have a solution for the citeref package, see the MWE. But how can I achieve this when using hyperref? ...
18
votes
3answers
10k views

Centering in tabularx and X columns

How can I center the column when using X in tabularx environment like in this example? \begin{tabularx}{\textwidth}{@{}lXXXXX@{}} 1 & 2 & 3 & 4 & 5 \\ \end{tabularx}
8
votes
2answers
2k views

Alignment of chemical equations

I would like to align some chemical reactions in my document. This is an example of what I did: \begin{equation} \nuclide[14][7]{N} + n \to \nuclide[14][6]{C} + p \end{equation} <Some text> ...
3
votes
1answer
519 views

Aligning two text boxes with a few lines

Here are the two text boxes: \begin{tabular}{l@{}} Date: 3 Jan. 2500 \\ Place: Moon \\ \end{tabular} \null\hfill\begin{tabular}{l@{}} Prof. Neil Armstrong \\ Department of Moon ...
8
votes
1answer
1k views

Make numbers in table bold w/o changing width

I want to highlight some numbers in a table using \bf{}. However, the bold numbers also get wider but I want them to neatly line up with the rest. How can I avoid this?
27
votes
2answers
457 views

Align nodes containing numbers on the decimal separators

In a plot, I have several vertically distributed nodes containing numbers with different numbers of digits before and after the decimal separator, and a trailing percent sign. I would like to align ...
1
vote
0answers
89 views

How to make the title centered with respect to the header line? [closed]

I have the following code for some document: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{..} \rhead{..} \begin{document} \begin{center} \Large{..} \newline \newline ...
6
votes
1answer
1k views

Alignment of Margin caption with floatrow and caption

I want my captions in marginpar to be left aligned. I am using raggedright option in caption package along with floatrow package. The captions are left aligned only for long captions. MWE ...
8
votes
1answer
331 views

Weird Alignment in TOC

I want to align my TOC, so that the appendices and other appendix type chapters are aligned by the numbers, rather than the start of the chapter headings. So in the situation below, case A is the ...
3
votes
1answer
896 views

Centering \vdots in a system of many equations and aligning the equations to the opening brace

I have a problem similar to this question. I want to typeset k equations with the horizontal \dots and the \vdots aligned. The problem is that I want the equations to be aligned to the opening brace. ...
3
votes
1answer
480 views

Table right of TikZ image

I created a tree using TikZ and would like to add tabular explanation data to the right of it. The figure definition currently looks like this: \begin{figure*}[h!] \input{tikz/praefixeigenschaft} ...
6
votes
1answer
344 views

Alignment of margin floats

I am using the code from margin-floats-and-hyperlinks. It works nicely, however the figure generated is not left aligned in the margin as the caption below it is. I also tried \raggedright as ...
6
votes
2answers
626 views

Centered Footnotes

I would like my footnotes to be centered but couldn't find any literature on this. Here is a MWE. \documentclass[lettersize,14pt,twoside,openright]{memoir} \usepackage[symbol,perpage]{footmisc} ...
7
votes
2answers
139 views

strange behavior with \centering

Based on what I had read here, I had expected that the use of \centering would be the right tool for the what I am doing in this code: \begin{equation*} \left( \frac{1}{1 \cdot 2} + \frac{1}{2 ...
2
votes
1answer
259 views

LyX forbids horizontal centering of tables inside a theorem environment!

How can I center a table in a, say, theorem environment in LyX ? When I have a centered table in the standart LR-mode writing mode everythings ok. But when I select the whole table and try to turn it ...
11
votes
2answers
1k views

Center caption in listing

I want to put the caption of my listing in the center but I can't do that. Do you have any idea how I could achieve this? The code: \documentclass{report} \usepackage{color} \usepackage{xcolor} ...
4
votes
1answer
163 views

How can I justify without making a new line in mdframed?

\begin{mdframed}[backgroundcolor=green] \textbf{Theorem:} \begin{center} A set $E$ is {\bf open} $\iff E^c$ is {\bf closed} \end{center} \centerline{or equivalently,} ...
6
votes
1answer
2k views

Alignment at the center of two multicolumn

I would center 10e-1 and 10e-3 at the center of the 4 multicolumn. How can I do? \usepackage{siunitx} \usepackage{multirow} \usepackage{booktabs} \begin{table}[htp] \centering ...
6
votes
1answer
423 views

Biblatex raggedright bibliography with polyglossia hebrew

The xelatex with biblatex can generate raggedright bibliography by means of \raggedright\printbibliography but adding hebrew to polyglossia: \setotherlanguage{hebrew} disables this ...
5
votes
2answers
230 views

How to indent the whole text and float environment?

Using http://www.latex-community.org/viewtopic.php?f=4&t=251&start=10 I can indent the text, but how to center the figures and table like the image as follow? My code ...
7
votes
2answers
12k views

Alignment of horizontal subfigures

I have three images as subfigures. Two images are aligned happily, the first one doesn't line up. All images are the same size (519x346 pixels). This is what it looks like: I'd like to line up ...
12
votes
3answers
920 views

Enumerate list not showing when using parallel package

I want to divide a paragraph with enumerate. First I use package "parallel": \documentclass{article} \usepackage{color} \usepackage{parallel} \begin{document} ...
4
votes
1answer
117 views

Left aligning without extra space between words in tables

Here is the illustrating code: \documentclass[letterpaper, 10pt]{article} \usepackage[margin=1in]{geometry} \usepackage{array} \usepackage[none]{hyphenat} \begin{document} \begin{center} ...
6
votes
1answer
4k views

Aligning equations with using fleqn

I use fleqn as a document class, but now I solve problem, how to align few equations to the center and few to the right. I've tried \setlength{\mathindent}{1cm} but after that is the problem that I ...
2
votes
1answer
216 views

Very simple left align document class

Is this document class an article? I can't get it left aligned. Haldane.pdf How can I achieve this simple style?
4
votes
1answer
5k views

How to left align a set of equations in LyX

How can I left align an AMS flalign block in LyX? The answers in Use flalign or alignat or align or similar environment to align to the left say that to left align a set of equations one should use ...
7
votes
1answer
3k views

How to place personal informations on the left of header in moderncv with classic style

I found how to customize my CV created with the moderncv and the classic style, but I can't found how to put my name a little bit higher and put my personal informations on the left, just below my ...
4
votes
2answers
81 views

Labelling three-column array

I got this code: $$\begin{array}{lcr} a_{11}\cdot x_1+a_{12}\cdot x_2 &+ … + &a_{1n}\cdot x_n=\alpha_1 \\ a_{21}\cdot x_1+a_{22}\cdot x_2 &+…+&a_{2n}\cdot x_n=\alpha_2 \\ &\vdots ...
6
votes
2answers
281 views

Centering \vdots in a sparse matrix with an even number of rows

I am trying to define only the non-zeros elements in a sparse matrix, thus using some \vdots where the entries are zeros and specifying the row when needed (using the blockarray command, with ...
9
votes
3answers
3k views

Justify a text inside a figure environment

I insert several figures in my document, but I am unable so far to fully justify the text just below the caption: "BLA BLA BLA" \begin{figure} \centering \caption{NICE TITLE}\label{graph:p} ...
1
vote
0answers
43 views

How to center a text in a table? [duplicate]

Possible Duplicate: Center column with specifying width in table (tabular enviroment)? I want to fix this code, the last column aren't center in the cell. How can I center the text of all ...
2
votes
1answer
269 views

issues after verbatim section

I'm havin an issue which I cannot solve. If I have a subsubsection containing text with a verbatim section in between, the first line after the verbatim section is not aligned properly. If I put a ...
4
votes
2answers
368 views

Need some help with perfecting the layout

\documentclass{article} \usepackage{amsmath} \setlength{\parindent}{0pt} \newcommand{\fac}{n!} \newcommand\test[3]{\left(\begin{array}{@{\,}c@{\,}} #1 \\ #2 \end{array}\middle|\ \ #3 ...
3
votes
1answer
1k views

Centering Table with Column Width in Two-column layout

I have the following table which I want to put in the center of the two-column manuscript. But it failed although I already put the asterisk in the \begin{table*} command. \begin{table*} ...
1
vote
2answers
283 views

Change matrix figure layout

I have a figure where I am writing som matrices I want something like but I am getting this, How to change it? I have \begin {figure}[h] \centering \small \textbf{X} \[\left( ...
13
votes
4answers
756 views

Position margin notes relative to left margin in plain TeX

I want to add margin notes in the Tufte style to my Plain TeX document. (I'm using eplain, if that matters.) I know that if I were using LaTeX I could just use tufte-latex, but as a thorough ...
1
vote
1answer
388 views

How can I write a long equation in multi line scaled to text width?

I want to write a long equation over several lines, but result looks highly irregular. How can write this equation better, preferably with all equation occupying the same wide? ...