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

Aligning Tuples of Decimals with PgfplotsTable

In this question, Jake gave an awesome answer that shows how PgfplotsTable can be used to read tab-delimited data from a file, and typeset the parsed decimals in scientific notation such that all of ...
2
votes
1answer
870 views

Center just one line of code (e.g. comment)

In my lstlisting I want to place a comment in the form of /*====== some section ====== */ but having it centered and not like the rest of the lines of code which are left aligned. Using the escape ...
3
votes
0answers
104 views

TikZ: centre drawing at origin [duplicate]

Possible Duplicate: Centering a TikZ picture around an area I'm drawing 3 circles within each other with the same centre point, each circle represents a region for the project I'm doing. ...
3
votes
1answer
3k views

Using the res.cls LaTeX file, how do I centre the address?

Right now, it would look something like this for the address area: Obviously the last line is not centred, but I'd like it to be. Here's the code so far: % LaTeX resume using res.cls ...
5
votes
1answer
517 views

How to typeset multiple equations center aligned but with single eq. number?

I want to typeset several equations with only one equation number vertically centered, and every equation horizontally center. I know two options. One is aligned environment within equation, which ...
8
votes
1answer
781 views

eledmac and two column footnotes

I like dblfnote and have been working with it for a good while. Now my footnotes are just getting too long and the typesetting results accordingly undesirable, they would be way better if footnotes ...
3
votes
2answers
335 views

Properly align text in description

I need to illustrate cases, that is why I am using the description environment: \begin{description} \item[Caso 1] Esiste una computazione $s_1, s_2, \ldots, s_k$ di $\mathcal P$ che comincia con ...
36
votes
3answers
110k views

Syntax similar to \centering for right and left?

For images we can use \centering is there anything to position the image to right side or left side of the page.
11
votes
5answers
426 views

Bump right-aligned text to next line iff no room

I a chat discussion it was suggested that \hspace*{\fill} (with a space before it to allow for a line break) was sufficient to always get the text following aligned to the right. And indeed, it is ...
3
votes
1answer
163 views

Problems with url alignment

I would like to align some urls: \documentclass[12pt,a4paper,oneside]{book} \usepackage{url} \begin{document} Figure 1:\; \url{my first url} \url{my second url} \end{document} How ...
3
votes
2answers
1k views

Algorithm caption should be on top and and flushed left

I want the caption of my algorithm to be on top and flushed left: \documentclass{article} \usepackage[plain]{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm} \caption{Sketch ...
1
vote
0answers
7k views

Placing two figures side by side [duplicate]

Possible Duplicate: Two figures side by side Subfigures placed horizontally I want to place two figures side by side in my document. I am using the subcaption package and my code is as ...
2
votes
1answer
256 views

capmargin for multiline captions but centered for oneline

The koma class scrbook centers oneline captions if not given captions=nooneline. However, settings setcapmargin (\setcapmargin{0.05\textwidth}), also one line captions are left aligned with the ...
2
votes
1answer
145 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} ...
6
votes
2answers
9k 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
257 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
1k 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 ...
19
votes
3answers
15k 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
295 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
248 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
344 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
440 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
56 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
722 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
285 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? ...
26
votes
3answers
16k 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}
9
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
681 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
2k 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
480 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
93 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
358 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
1k 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
606 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
390 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
815 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
145 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
274 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
2k 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
188 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
3k 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
492 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
243 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 ...
10
votes
3answers
18k 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
1k 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
128 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
6k 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 ...