{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)

9
votes
5answers
5k 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 ...
4
votes
1answer
6k views

How to align right within equation array

Suppose I have something like the following: \begin{eqnarray*} \mathrm{gcd}(x^3 + 6x^2 + 5x + 5, x^3 + 13x^2 + 6x + 3) &=& 102x^2 + 108x + 2 \ \mathrm{with} \ p = 109 \\ \mathrm{gcd}(x^3 ...
5
votes
1answer
2k views

Rotate a PGF figure, and being able to center it

I have a figure, created in MS Visio, a PDF figure. I have added text to the figure using qtix. The code is pasted below: \begin{tikzpicture}[scale=0.30] ...
10
votes
2answers
9k views

tikzpicture alignment and centering

I have several very similar images except some have some extra graphics that enlarge them slightly. This causes some pictures to be offset and not aligned visually when it's clear they should be. How ...
5
votes
3answers
742 views

siunitx: Alignment Problems with numbers in parenthesis

The example given below gives me a strange offset in 4th decimal place in the parenthesis. Interestingly, this problem arose only after I updated my Miktex 2.8 to Miktex 2.9. I don't know whats ...
2
votes
1answer
135 views

Aligning picture with displaymath

I have a small picture of a graph and I would like to align it with its adjacency matrix, defined within math environment, side by side on a page. I tried to use subfig package, but the matrix is then ...
2
votes
2answers
322 views

Centering content in cells adjacent to Sideways Headings

I have a table produced by the following code: \documentclass[a4paper]{article} \usepackage{tabularx} \usepackage{rotating} \begin{document} \begin{table}[ht] \begin{center} ...
5
votes
1answer
738 views

Format title: section number flush left and title centered?

How can I format with the titlesec package that I get somethine like this (this is a twocolumn document): I do not know how to get the number to the left and the title in the center is this ...
4
votes
2answers
427 views

Equation environment for centered, equally-spaced columns of expressions

I want a environment for displaying rows and columns of mathematical expressions, such that the contents of each column is centered, and the columns are equally spaced. Rows must have optional ...
2
votes
1answer
2k views

Esttab, overriding decimal alignment

This is a follow-up question to Estout and dcolumn: Overriding decimal alignment In my case, using esttab, it centers the number of observations but it adds some decimals, for instance: Obersvations ...
4
votes
2answers
950 views

dcolumn won't align negative numbers and positive numbers

I am using R to analyze data and have used the xtable package within R to produce a TeX output for a correlation matrix. I have also implemented the dcolumn package within TeX so that I would be able ...
2
votes
3answers
636 views

How to align p-values description in the notes of a table?

I am trying to format the p-values description in the notes of a table. The whole table layout is done with Stata (using command esttab) but changing the p-values format seems to be impossible. ...
10
votes
1answer
5k views

how to align longtable at the left side

I'm using longtable package to create tables, that take more than one page. But be default longtable is centered. How to left-align a longtable?
3
votes
1answer
2k views

Slides justification in TeXnicCenter

I could not use the justification in slide presentation. In TeXnicCenter there is center, left alignment and right alignment but I did not see the justification. Is there anyway so that I can fix it.
11
votes
2answers
1k views

Left aligning text inside multicols environment

I am using the multicol package. I was wondering if anyone knew how to correct the ugly looking spacing of words. It tries to align them so that each line takes up a column but that means some text ...
2
votes
2answers
833 views

excel2latex table: output out of page

I generated the following code for a table using excel2latex add-in. However in the PDF output the table is ugly and morely cut halfway and moves to the right. Please suggest a solution. % Table ...
3
votes
0answers
1k views

Positioning table of contents [closed]

The below command works in .tex file to move the position of table of contents. \frame { \frametitle{Outline} \hfill \parbox{.73\textwidth}{ \tableofcontents } } But I want to do the ...
20
votes
1answer
35k views

Change align of a single cell in tabular [duplicate]

Possible Duplicate: Aligning inside tabular environment, specific cell I have a simple table with a given align. I want to know if there is a way to specify a different align for a cell. ...
1
vote
2answers
2k views

How to left align a text in IEEEeqnarray environment?

I am using IEEEeqnarray environment and want to left align a text. How to do that? \documentclass[a4paper, 10pt, conference]{ieeeconf} \usepackage{amsmath} % assumes amsmath package installed ...
5
votes
1answer
2k views

Logo in a LaTeX header, Koma-Script letter class

I use this class definition in the preamble of my document: \documentclass[template, backaddress=off, foldmarks=false, enlargefirstpage, pagenumber=off, ...
2
votes
2answers
1k views

Left-aligning Beamer titles with text

How can I set things up so that my \frametitle has the same indentation as the main body of text in my slide?
4
votes
1answer
928 views

\rule command constructing line not extending far enough left

I am trying to put a horizontal line between homework problems, like this: \begin{description} %stuff . . . \rule{\linewidth}{0.4mm} \item[Exercise 1] %stuff \rule{\linewidth}{0.4mm} ...
1
vote
1answer
688 views

Why is the text in these table column cells not centered?

I have the following table in my document, and it seems to be OK except that the topmost columns' text is not centered. I can't figure out why not. I could manually adjust the multicolumn m sizes to ...
8
votes
1answer
4k views

Centered frame title in beamer

How to set up beamer in a document so that frame titles are centered? Most of the themes seem to use left aligned frame titles.
1
vote
0answers
331 views

Modify the contents in a single slide in beamer class [closed]

I have an outline frame with a sidebar (which is a background canvas). Only for this slide I want to move the contents to right side. For example the current Outline page is as follows: - Section ...
17
votes
2answers
28k views

Centering with \includegraphics not with \begin{figure}?

I mess up with things when I try to use the figure-thing: the picture is not appearing with the correct alignment (apparently because I forget the float package). Now I want to use only the graphicx ...
2
votes
2answers
253 views

How to center multiple tabular entries in different centered environments?

I am about to pull my hair out. I was wondering if anyone could give me some tips or guide me to the proper way to correctly format my centered tabular entries. I just want the my centered tabular ...
4
votes
1answer
512 views

Better alignment for enumitem list

In the following screenshot, the alignment of the 2nd A) and the space between the label of the 2nd list and the fraction have been obtained empirically n: see \hspace*{1.375em} and ...
9
votes
2answers
2k views

How to flush right but align left? [duplicate]

I am writing an introduction, and I need to put my name at the end of it at the right side of the page, but it should be aligned left: Lorem Ipsum is simply dummy text of the printing and typesetting ...
4
votes
1answer
761 views

How do I center table headings and stretch the table to full column width?

I have the following code for creating a table in the multicols enviroment. I'd like to center the column headings and make it so that the table automatically takes up the entire column from edge to ...
1
vote
0answers
127 views

Put a logo into frametitle [duplicate]

Possible Duplicate: Positioning logo in the front page as well as slides Preparing a presentation with the beamer class, I want to put a logo into the \frametitle of each slide. I tried ...
4
votes
1answer
872 views

Alignment of node “groups” in TikZ using `\matrix` or other constructs?

I'm trying to align 2 groups of TikZ nodes but cannot figure out how to do this. I tried wrapping each group with \tikz{...} but that didn't work (probably because of \tikz inside tikzpicture ...
3
votes
2answers
2k views

Centering caption under a table

I have the following table in my document: \begin{table} \begin{center} \begin{tabular}{|l|c|c|}\hline defaults&5976&2258\\ \hline \end{tabular} \caption{Results} \label{t2} \end{center} ...
4
votes
1answer
3k views

How to align description item labels on the right?

I have seen description-list-with-right-alignment-of-labels that explains, how to align description labels on the right. However the presented solution sets the lengths globally whereas I look for a ...
26
votes
2answers
22k views

Vertically center cells of a table?

What is the easiest way to center align each row of table? I have a table column that contains an image and other cells in the same row contain text. I would like to know how to vertically center ...
3
votes
1answer
514 views

Left align sidewaystable

Is it possible to left align a sidewaytable to make use of the extra space at the left of it? Similar to the \LTleft\fill in longtable? I have not found a way to do this yet.
1
vote
1answer
476 views

What goes wrong with combining multicolumn and tabular

When I try the following code I get some errors about misplaced \noalign, however I almost entirely copied the code from the wikipage. What is going wrong? \begin{table}[hbt] \centering ...
9
votes
1answer
965 views

\mathclap not centering

I'm trying to stack two symbols on top of each other (not \stackrel) using \mathclap in the mathtools package, but the symbols are not centering: \mathclap{\rightleftharpoons}\circ How do I get the ...
12
votes
2answers
4k views

Balancing long table inside multicol in LaTeX

I would like to put some longer tabular data inside the multicols environment while maintaining its balancing abilities. I have tried supertabular with the trick to redefine \newpage as columnbreak. ...
4
votes
1answer
279 views

how can I break the rows of an halign nicely across pages?

I'm trying to print large tables for my own consumption (I'm using Plain TeX and eplain). They are tables of publications and I just want to be able to look at them. Each table will have a variable ...
4
votes
2answers
262 views

How do I stop tables from messing with alignment?

I'm new to TeX and I'm having a hard time understanding how paragraphs, alignment, indentation, and all that works. Some text here. \begin{tabular}{ l l } a & b \\ c & d \\ \end{tabular} ...
1
vote
3answers
490 views

How can I create a table where one cell spans several rows and all the text is justified?

I'm trying to create a table where the first column spans 3 rows and the text will wrap several times. The second and third columns will each have 3 rows in them. The cells in the second column will ...
4
votes
2answers
1k views

Tabbing in the \address section of the letter document class

I am writing a letter using LaTeX's letter template, in which I include my e-mail address and phone numbers in the \address section. I would like to use icons from the marvosym package instead of ...
4
votes
2answers
7k views

Text alignment in beamer

I make a presentation using LaTeX. But I have a slide with picture and text and I want a text to be aligned to the right. How to do this? \documentclass{beamer} \begin{document} \begin{frame} ...
7
votes
3answers
535 views

Aligning different parts of an equation with certain spots in the line above

I am trying to get certain parts in the second line of an equation to line up with certain parts in the first line. For example, X=AAA+BBB+CCC = a + b + c where here I am wanting the lower-case ...
6
votes
1answer
408 views

How to align index columns

I followed the example posted by @Schweinebacke Customizing Index - Adding chapter heading and verse number to index entries and it works great. However I would like to change the appeareance of ...
10
votes
2answers
288 views

Accessing side-bearings in LuaTeX

This question has been solved, in XeTeX, by this code: \def\kright#1{\leavevmode #1\kern-\XeTeXglyphbounds3 \the\XeTeXcharglyph`#1 } \def\kleft#1{\leavevmode \kern-\XeTeXglyphbounds1 ...
7
votes
2answers
242 views

Why does 65* become 65∗ when using dcolumn package to align digits?

I am using dcolumn package to align some numbers after the decimal point. However, some of this numbers have "*** signs" in order to relate them to additional information at the end of the table. ...