{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
3answers
9k views

Inserting not centered image in Latex

I do not have any problem inserting images on LaTex, but As I have a big image when inserting It with: \includegraphics[height=0.8\textheight]{image.png}\\ It appears centered, as it is a little ...
6
votes
1answer
3k views

Center \chapter (book class)

Using the document class book, chapters headings (Chaper 1) are aligned on the left. How to center them?
3
votes
2answers
785 views

Centering contents after \unvbox

Trying to build a complex macro, I managed to compute what I need in a vbox. Now, I want to \unvbox this box to allow page breaks, and would like each element it contains to be centered. I can't find ...
2
votes
1answer
893 views

Center subfloat above extended subcaption in subfig package

In the subfig package, the command \captionsetup[subfigure]{width=<length>} extends the width of a subcaption. Now how can the subfloats be centered above their enlarged subcaptions? The ...
67
votes
2answers
59k views

When should we use \begin{center} instead of \centering?

After reading this question Should I use center or centering for figures?, I want to know the answer of the following. When should we use \begin{center} instead of \centering? For example, should we ...
2
votes
1answer
349 views

Oddly wide spaces in subsection title

I have a problem, this is what it looks like: And this is the code: \subsection{Bakterienst\"amme und Anzuchtbedingungen} Where does the huge whitespace come from?
4
votes
3answers
2k views

Tabs in a Beamer Presentation

I am putting together a beamer presentation with some programming code. However, the verbatim package by default places the code on the left most fringe of the slide. I want the slide to be a little ...
1
vote
1answer
8k views

How can I fix image positioning? [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned \usepackage{amsfonts} \usepackage{pdfpages} \usepackage[hidelinks,unicode]{hyperref} %- to zeby byly polskie ...
23
votes
5answers
13k views

How can I automatically center an image?

I use: \documentclss{mwrep} ... \begin{figure} \includegraphics{a.jpg} \caption[Long caption]{Caption} \label{pic-a} \end{figure} How can I make images to be always visible on the center of page? ...
4
votes
1answer
468 views

Empty caption of subfigure in memoir slightly misaligned

Consider the following minimal example meant to illustrate a single figure with a subfigure using the memoir documentclass: \documentclass{memoir} \newsubfloat{figure}% Allow for subfloats ...
1
vote
1answer
1k views

How to align long labels in a list to the left margin?

I would like to create a list in LaTeX in which: 1. the longest label is aligned to the left margin, 2. the labels can be composite and look like "(1)(a)", 3. the labels, which can be of varying ...
3
votes
3answers
911 views

Right justify inline

I am trying to right justify some code as a text wrap for a memo on the C language and I encountered some issues... In the following exemple I'm trying to right justify the "const struct tm *ptm);" ...
3
votes
2answers
156 views

Word-for-word center-aligning of parellel lines of text in LaTeX?

I'd like to prepare a LaTeX document using a common format of displaying both Chinese characters and the corresponding romanization (pinyin) above each word. For an example, please refer to this page ...
2
votes
2answers
3k views

Latex multicol + itemize

I'm using the pdflatex interpreter and trying to get the following behavior using an itemized list in a multicolumn environment: [space]* item1 *item2 [space]* item3 *item3 I can get somewhat ...
4
votes
2answers
1k views

Alignment in multiline sections

I have some long section names that span more than one line, so I break them into two lines with \\ (I am using fancyhdr for that to work). The result is not very aesthetic. What I would like to ...
2
votes
2answers
811 views

How to vary alignment in document?

I wanted to left align my document in such a way that some pages...e.g. Abstract to remain justified, but the rest of the document left aligned. Anyway to do that?
2
votes
3answers
468 views

displaymath/split environment with three columns

I am writing the following equation: \begin{displaymath} \begin{split} MA &= MAAMB + MACAMB\\ \Leftrightarrow MA &= (MAAM + MACAM)B\\ \Leftrightarrow (MAAM + MACAM)^{-1}MA &= B ...
2
votes
2answers
335 views

Paragraph column in tabular working only in the first column

I have a two-column tabular environment and I'd like for both of these columns to have the text aligned at its middle (both vertically and horizontally), along with increased row height: But with the ...
4
votes
1answer
530 views

How to center numbers in a table column with the siunitx package?

I've been trying and searching for quite some time, but I don't see what I'm doing wrong: I want to create several table columns with decimal numbers (some in the format "1,25" and some like "3,156" ...
2
votes
1answer
537 views

How to make a graphic fill the rest of a given space?

Sometimes I use a figure numbering style in which each number is placed to the left of a figure. When using this formatting, I try to make sure that the space occupied by a given number and figure is ...
5
votes
1answer
168 views

Tabular: l{unit}?

I would like to define a few table columns with fixed width, just like p{2cm}, but I prefer the text to be flushed left, instead of justified. So basically something like l{2cm}. Is there a way to ...
5
votes
1answer
9k views

Centering images and overprint in Beamer

I'm trying to create a beamer presentation with several images replacing each other on consecutive slides. I've gotten it to work with overprint and \onslide, but cannot get the images centered on the ...
4
votes
1answer
2k views

TikZ: Background rectangles with equal width but 'fitting' height

I'm trying to make sort of a flow chart for a series of steps, but these steps are also grouped, and I'd like my diagram to reflect that. So I'm using the pgfonlayer/background environment to draw ...
3
votes
1answer
534 views

Placing a list of nodes in TikZ

I would like to define a macro, which would take a list of node definitions, like this \mymacro[boxes={{\node[rectangle] {foo};}, {\node[rectangle] {bar};}, ...
3
votes
2answers
3k views

Left-aligning LaTeX Bibliography Display

I have problem on how to make the bibliography item left-aligned. My current bibliography output is below. As you can see, the reference item code is currently right-aligned, and I need it to be ...
3
votes
4answers
20k views

Cannot align to right or left

I have this LaTeX code which should place this two images on the left and the right of the page: \begin{flushright} \begin{figure}[H] \includegraphics[width=107px , height=134px]{t1.jpg} \end{figure} ...
5
votes
4answers
507 views

left, right, and center alignment with hfill

this problem is driving me nuts. I need a line of text formatted as follows: Avian Influenza Tamiflu Jan 2, 2011 * This is a random description, note that it spans mult. cols. * ...
55
votes
4answers
7k views

What is the difference between 'fil' and 'fill'?

TeX provides the commands \vfil and \vfill (and their corresponding horizontal versions \hfil and \hfill). These commands are actually defined as: \vskip 0cm plus 1fil \vskip 0cm plus 1fill where ...
3
votes
2answers
4k views

Left-aligning authors section in an article

I want to align the authors section of my article to the left. If there are more than one authors, each author should be aligned left in its own cell. I am using memoir's article class. This is what ...
7
votes
1answer
776 views

Alignment within enumerate

I'm looking for a way to sort of combine the features of enumerate (and other list-like environments) with features of tabular environments. Specifically, what I like about enumerate is that it ...
5
votes
3answers
538 views

Right-aligned constraints for equation

I'm looking to write an equation (using gather), with some constraints on the right-hand side. Ideally, I'd like the equations to be horizontally-aligned with one another (i.e. have centers line-up ...
5
votes
2answers
457 views

Centered, wide float [duplicate]

Possible Duplicate: Balancing figure that is wider than document's width I have a table which is just too wide for the page. I'd like to be able to float it, centered across the text, ...
1
vote
1answer
995 views

Split node padding when using `align` in TikZ

Consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,positioning,fit} \begin{document} \begin{tikzpicture} \node[draw, rectangle split, rectangle split ...
2
votes
2answers
1k views

Table of contents: section number and title overlapping

I have problem with creation of table contents. A part of my code: \documentclass[a4paper]{amsbook} \usepackage[cp1250]{inputenc} \usepackage{polski} \makeatletter ...
11
votes
1answer
4k views

Change alignment for individual table rows

Is it possible to change alignment for individual rows? Example: +------------+--------------+--------------+ | Left | Center | Right | +------------+--------------+--------------+ ...
4
votes
2answers
971 views

Tabstop-like alignment of text possible?

I'd like to format some text around a tabstop such that what is left from the tabstop is \flushright and the text that is right from the line is \flushright. The Tabstop is at a specific position, ...
13
votes
5answers
8k views

Align Note below table

My question concerns the "Note" below the table. This is my code: \begin{table} \begin{center} \caption{ Descriptive statistics of total sample based on modified data set}\label{table:descrtotal} ...
15
votes
4answers
918 views

How can I make (La)TeX prefer to fill centered lines

My thesis formatting requirements ask for multiline chapter and section titles to be a maximum of 4.5 inches wide with any subsequent lines being wrapped such that they are sucessively shorter, ...
3
votes
2answers
4k views

Vertical alignment with subfig and pstricks

I'm working with pstricks to add illustrations to a paper, as I found that it allows me to save much time compared to editing files with dia/xfig/visio/etc. and including pngs. But I'm having a few ...
4
votes
2answers
172 views

Align unrelated arrays

How can I align arrays like the ones below so that they start at the same distance from the left edge of the paper? \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \begin{document} ...
7
votes
1answer
1k views

Displaying two XML listings side by side. [duplicate]

I have two XML outputs from a program that I would like to include in a LaTeX document. I would like them to appear side-by-side each in its own box. So that a reader can compare the two outputs while ...
4
votes
1answer
576 views

I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?

Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
3
votes
1answer
2k views

nomencl: left alignment for description text

Does anyone know how to left align the description text of abbrevations in a nomencl list of abbrevations. For example: I would like to left align the text "Kategorien- und Variablebezeichnungen" or ...
3
votes
1answer
194 views

Please help me to run this code in LateX!

\documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{| >{\centering}p{2.5cm} | >{\centering}p{0.5cm} | >{\centering}p{2.5cm} |>{\centering}p{2.5cm} ...
3
votes
2answers
332 views

Figure with long list of predicates and conjunctions (\wedge)

I have a figure with a long list of predicates connected with \wedge, here is the code: \begin{figure}[h] \small{ $ Defined\_in(subject\_state, concrete\_subject) ...
1
vote
2answers
176 views

How to align some lines under tabular?

I am using tabular, and I would like to realize something like that: word1 word2 word3 word4 longerword5 word6 word7 word8 So word1,2,3,4,6,7,8 are well aligned, and I do not ...
5
votes
1answer
582 views

CurVe document class: alignment issue with subrubrics

I have the following issue with the alignment of subrubric titles in a résumé written with the CurVe class by Didier Verna. When the rubric & subrubric titles are aligned left via options in the ...
2
votes
1answer
367 views

How do I make the text in the following figure white and center the figure?

How do I make the text in the following figure white and center the figure? %% LyX 1.6.9 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you ...
7
votes
2answers
17k views

How to center the minipage?

The left margin is too wide if I set 1.5\textwidth: \begin{document} \noindent\begin{minipage}{1.5\textwidth} test \end{minipage} \end{document}
3
votes
1answer
659 views

How to make pgfplots to center a text in a xticklabel

In pgfplots I've used the text width option in the definition of xticklabel style and I wonder how to center the labels text?