{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
2answers
331 views

Alignment doesn't appear right: it “misses” to the right

I want to align my text. I use these packages (Linux): texlive texlive-xetex texlive-lang-greek I use kile as editor. I can write English and Greek with no problem. But when it comes to alignment I ...
24
votes
2answers
18k views

Any way to center text within a \parbox?

Probably I'm missing something, but I'm really struggling to find an answer to this simple question: How to center text within a \parbox? Side note: I don't want to switch to any other environment ...
1
vote
1answer
471 views

I can't move my box I made

Here is the problem, I made a box using \begin{tabular}[b]{|l|} \hline example \\ \hline \end{tabular} I have the [b] meaning bottom, but the position never changes ... In general how do I ...
5
votes
2answers
2k views

How to put the block title at the center in beamer?

In my beamer block the title always comes left alined. Is that possible to make the title of the block centered? \documentclass[final, 12pt]{beamer} ...
13
votes
2answers
17k views

text justify in beamer

I like to justify the texts inside the block using beamer. I cant do that in presentation. Can any one please help me?
6
votes
1answer
530 views

TOC alignment in memoir

I'm trying to get chapters and sections to line up in a memoir ToC as: Chapter one Chapter title Section title Another section A third ...
3
votes
1answer
963 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
410 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} ...
5
votes
2answers
528 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 ...
43
votes
4answers
73k 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
125 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
2k 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
980 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
1k 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
145 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 ...
5
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 ...
8
votes
1answer
25k 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
285 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
737 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
7k 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
12k 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
772 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} ...
18
votes
6answers
49k 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
850 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
15k 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
843 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
65 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
928 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
338 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 ...
10
votes
3answers
3k 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
651 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} ...
8
votes
1answer
819 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
354 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
885 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 ...
16
votes
1answer
8k 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
368 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
300 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
288 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
2k 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
751 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
1k 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 ...
16
votes
3answers
8k 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
300 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
1k 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
3k 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
458 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: ...
10
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
23k 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 ...
23
votes
4answers
6k 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 ...