{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
858 views

“Negative offset” chapter title

I need my chapter titles to be offset 2cm to the left of everything else (or my section headings and paragraphs to be offset right, depending on what you call the reference point). I got the chapter ...
2
votes
1answer
399 views

Align text and use indent

I want to align my text and also use indent at each paragraph.But it seems i can use only one of them (either alignment or indent). \usepackage{indentfirst} \begin{flushleft} \section {Heading} ...
4
votes
2answers
457 views

Aligned columns in qtree?

I am currently taking a sentential logic class and we've just begun the chapter on truth-trees, so I've been looking into how to generate truth-trees with the qtree package. I think I've been able to ...
36
votes
4answers
49k views

How to make text aligned left/center/right in the same line?

I am trying to align some text to left/center/right in the same line. For example, I want to put my phone number on the left, my name in the center, and my email on the right, how do I do that?
1
vote
1answer
120 views

Force title break in apa6e

Apologies in advance: this is not minimal in the example but I am afraid my lack of knowledge about what packages control what could lead me to leave out packages that have an effect on the output. I ...
7
votes
2answers
1k views

Framezoom artifact when image is centered

When using the framezoom command, while centering the image;\ \documentclass{beamer} \mode<presentation>{\usetheme{Warsaw}} \begin{document} \begin{frame} \begin{center} ...
3
votes
1answer
783 views

Align cell height of the tabularx rows

The following latex code prints rows one at a time. However all the cells of the rows don't come out aligned. How can I fix it. \documentclass{beamer} \usepackage{tabularx} \begin{document} ...
4
votes
2answers
923 views

Header of the table must be centered, all other rows aligned to left

I have this MWE: \documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[here] \begin{center} \begin{tabular}{|l|l|c|} \hline ...
6
votes
1answer
138 views

Centring a heading, including the numbering

I've got a problem that should be simple to fix. I'm using the fontspec to layout my chapter headings like so %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode ...
4
votes
2answers
1k views

Two images are not on the same level

I am using the following code to put two figures next to each other (I am not providing a minimal example right away, because maybe the problem is obvious from the code. However, I will, if someone ...
6
votes
1answer
18k views

centering caption of a figure

I want to put the caption of my figure in the center but I can't do that. when I put my figure in the center the caption is also in the center but when the caption is too long and there is a return to ...
2
votes
2answers
276 views

last column of multicols has excessive whitespace

The last column of a multicols has extra whitespace that is not needed (as visually the margin will do): \begin{multicols}{3} \begin{description} \item[asdf] - fdasdf \item[asdf] - fdasdf \item[asdf] ...
1
vote
1answer
555 views

\twocolumn undefined control sequence }] [closed]

I am trying to add a figure (a center environment) two a \twocolumn command. I tried this: \documentclass[10pt,twocolumn]{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} ...
10
votes
1answer
6k views

tikz nodes: centering with small font

I am trying to create tikz nodes with centered text, but changing fontsize. Unfortunately, while normally-sized text is nicely centered inside the nodes, the smaller text is not centered, but shifted ...
9
votes
3answers
8k views

Beamer: How text wrapping around a graphic right aligned?

I want to include a graphic in beamer presentation with right alignment and this graphic should be wrapping by text. I tried three packages but non of them works correct (minimal example below). ...
1
vote
1answer
668 views

Span columns with a 'center' environment

For the question How to place a "banner image" at the top of a paper the solution was to use a center environment to create a non-floating figure: \documentclass{acmtog} ...
14
votes
6answers
32k views

How do I align an image to centre?

How do I align an image to centre? In a beamer presentation I have a 2-3 items on a slide followed by an image. The image is not wide enough to cover whole slide, so it leaves around 30% space from ...
7
votes
3answers
770 views

An environment for writing regular-font pseudocode

I want to create a pseudocode environment that looks like this: Basically, the font doesn't change - it's just the same as that of the surrounding text. It allows mathmode. And there is a box ...
9
votes
1answer
10k views

Left align (to the page) displayed math

How can I left align the display math environment (either $$ or \[)? I keep running into people asking about the align environment; but I just want to change displayed math from center to left align ...
1
vote
1answer
766 views

\hrule screws up minipage right indent

\documentclass[12pt]{article} \usepackage[ top=0.75in, bottom=0.75in, left=0.75in, right=0.75in, textheight=8.75in ]{geometry} \setlength{\parindent}{0pt} \setlength{\parskip}{0pt} ...
2
votes
0answers
64 views

Centering all images [duplicate]

Possible Duplicate: How can I automatically center image? How can I align center all picture : \begin{figure}‎ ‎‎\centering‎ % I want do not use this line for every images ...
6
votes
1answer
737 views

right-justified column and bold-face rows

I'm new to latex but I'm trying to learn and am piecing together various pieces of code from different postings, so I apologize if this code is "messy". In a table, I would like to have the widths of ...
4
votes
1answer
283 views

Incorrect line spacing when using \Large in a center environment

When I enclose text with line breaks within a center environment, there is extra space after the first line, but only if the font size has been changed. The following working example prints the same ...
9
votes
3answers
2k views

Centered box, text inside it flushed right?

I have some text (like a title), that needs to be centered, and some notes to it (multiline - note 1 \\ note 2), which should be directly underneath it and on the left side of it: Some ...
6
votes
1answer
527 views

How to align equations when some inside are gathered

I have a set of equations where some are coupled with a brace and some text. I want all the equations aligned. Something like the following ASCII art: S = LR L = Ls \ | for s in {a, b} ...
7
votes
1answer
656 views

How to set Table of Contents page numbers ragged right?

First post and certainly a tyro at LaTeX. Thanks to all those who have made this site such a helpful resource. I'm using the memoir class to typeset a novel, and would like to have the Table of ...
6
votes
1answer
337 views

Adjusting \underbrace “cursor” at horizontal axis

Given is following formula: \[ \begin{split} \sum\limits_{k=-n}^k c_ke^{ikx}=\frac{a_0}{2}+&\underbrace{\sum\limits_{k=1}^n\left(c_ke^{ikx}+c_{-k}e^{-ikx}\right)}\\ ...
7
votes
1answer
672 views

How to align decimal separator inside a specific table?

The table comes from the excellent answer of Philippe Goutet about this question : \documentclass[a4paper,12pt]{article} \usepackage{array,booktabs} % I add booktabs AM ...
12
votes
1answer
6k views

Place label in middle of line with TikZ

What is the best way to place a label in the middle of a line with TikZ? I mean smack dab in the middle of the line, not above or below it. The following is close \begin{tikzpicture} \draw[|->, ...
6
votes
1answer
299 views

How to align mdframed inside another frame?

I tried to create a child frame inside a parent frame by mdframed as \documentclass{article} \usepackage{mdframed} \usepackage{lipsum} \begin{document} ...
5
votes
1answer
247 views

How to center twocell arrows

I'm using 2cell (as in this previous question of mine: Natural transformation arrow ). I'd like to know how to center not just the twocell double arrow, but arrow with its name too. A picture is ...
2
votes
1answer
276 views

Lining pictures up with Margins

I am adding photos into my documents with \begin{wrapfigure}{r}{0.25\textwidth} \includegraphics[scale=0.5]{uofw} \caption{U of Windsor} \end{wrapfigure} but the only way I have found to line ...
7
votes
2answers
1k views

How to put the url centered under the caption of a figure?

I would like to put a source under the caption of my figure. The only thing that is not working is when I put the URL, the caption and the URL don't stay in the middle. Also \url{...} didn't work by ...
4
votes
1answer
694 views

2 SCfigure next to each other

I want to place 2 SideCaption Figures next to each other but having real trouble with it. I tried to place them in a minipage and tabular environment but nothing worked. Always got a while bunch of ...
10
votes
2answers
955 views

Properly align numbers with units in table

I need to typeset a table comparing, among other things, the temporal resolution of certain datasets. Ordinarily, I would put the common unit into the table header, and only list the values in the ...
12
votes
2answers
5k views

How can I left-justify a paragraph cell in a table?

I have a table of maths as below, where I've used the p{} attribute to allow the list of partitions to wrap inside the cell. The problem is that it also justifies the column, which looks very strange ...
3
votes
1answer
263 views

How can I horizontally align an image created with psmatrix?

I've got an image created with psmatrix code and I would like to put it at 1/4 of the text width. Using \centering in the image environment it gets too far to the right. I'm sorry but my code is a ...
2
votes
1answer
789 views

glossaries, glossary-longragged: problem with redefining \glossaryentryfield

I'm encountering a weird problem when changing my list of acronyms from the long to the longragged style. This is an example for illustration: \documentclass{article} ...
10
votes
2answers
2k views

alignment of multicolumn cell

Consider this table \begin{tabular}{lr@{}l} Bla & \multicolumn{2}{c}{A $\to$ B} \\ \hline X & 23.1&* \\ Y & 7.5& \end{tabular} which produces The second column ...
10
votes
3answers
2k views

Centering table column titles above comma-aligned numbers

I am trying to make the following table look nice. With that I want the title to be centered horizontally, and the numbers to be alligned at comma. Here is how it looks now: And my code. ...
1
vote
1answer
435 views

Horizontal and vertical alignment of a picture in a table

I want to align a picture in a cell of a table. Following works as I want for the text in the top left cell and the picture is already vertically aligned, but not horizontally: ...
9
votes
3answers
1k views

Leftalign labels with enumitem

I'm using the enumitem package to define a legal list: \usepackage{enumitem} \newlist{legal}{enumerate}{10} \setlist[legal]{label*=\arabic*.} The output for a list looks like this: 1. foo 1.1 ...
4
votes
1answer
19k views

Align figure to the right (with \raggedleft) while still centering its caption with respect to the image

I am wondering if it is possible to align an image to the right margin of the page (with \raggedleft) while still having it's caption nicely centered (with \centering) under the image (centered with ...
20
votes
4answers
4k views

Horizontal equivalent to \raisebox?

Is there a horizontal equivalent to \raisebox? I'd like to shift some content horizontally without altering the layout of surrounding content. Edit: I feel bad because my question wasn't precise ...
4
votes
2answers
493 views

ConTeXt center tabular

In ConTeXt, a tabular environment evidently does not behave a centered context. e.g.: \startalignment[center] \starttabular \NC item one \NC item two \NC\NR \NC item three \NC ...
1
vote
1answer
1k views

Align letter body in scrlttr2 with adressfield

How can I align the body of the following letter with the adressfield. More precisely the text generated by \setkomavar{subject}{\bfseries Subject} \opening{Dear Mr. XY,} \lipsum[6] ...
4
votes
1answer
1k views

Is it possible to flush left equations using “numcases” or “subnumcases”?

I am wondering if it is possible in LaTeX to flush left equations when using the numcases or subnumcases environment provided by the cases package. Hereafter I include a bit of code to explain the ...
9
votes
5answers
6k views

fully stretch text horizontally on page

Is there a way to fully stretch one line of text on the full width of the page, without manually setting the letter spacing, no matter how many characters on the line?
2
votes
1answer
103 views

How to create an array with the last column align on the right at the end of the page (using array environment))

I would like if possible using array environment, to align the last column of my array to the right and at the end of the page. Something like that: \begin{array}{\textwidth}{l r} first column ...
10
votes
2answers
7k views

Justify text inside itemize environment with beamer class

I would like to justify text inside an itemize environment with the beamer class. Text appears to be justified by default with the article class, but not with the beamer class. The following code ...