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

6
votes
1answer
511 views

Include hspace in header/footer in fancyhdr? [duplicate]

Possible Duplicate: How can I force a \hspace at the beginning of a line? I am trying to put a postal address in the footer. I want the first line to be "Address: Address line1", then the ...
6
votes
4answers
832 views

Resetting alignment in the align environment

I have a few aligned lists of coefficients. One set of coefficients has three columns and the other has four. At the moment I display them with two align environments: \begin{align} \gamma_1 ...
1
vote
1answer
454 views

Justify text in memoir class margintable environment

In page 181 of texdoc memoir, The marginfigure and margintable environments can of course be adjusted using \setfloatadjustment, default \setfloatadjustment{marginfigure}{\centering} ...
7
votes
3answers
3k views

Format spacing for correlation table (any statistical table)

I'm attempting to format a correlation table for publication but can't get the spacing right when I include significance stars. I'd like to have minimal space between columns. The space between ...
8
votes
3answers
2k views

How to align piecewise functions?

I have two piecewise functions defined like this: \begin{align*} \left\{ \begin{array}{ll} i = x^2 + y^2 \\ j = a^2 + b^2 \\ \end{array} \right. \\ \left\{ ...
5
votes
2answers
576 views

Theorem environment - centered line

\begin{theorem} Let apples be fruits and let tomatos be a veg. Then the following is true: \centerline{apples are veg} \end{theorem} I just read that one shouldn't use centerline because it's TeX ...
6
votes
1answer
1k views

Make ToC in the center and left aligned in beamer

Using the following code I could put the ToC lines in the center in beamer: \begin{frame} \begin{center} \tableofcontents \end{center} \end{frame} But how to make these ToC lines left aligned ...
1
vote
1answer
4k views

Left-align {align} environment

I have a problem writing my report in LaTeX. I dearly need this block of equations to be aligned on the left side of the page, in fact I want all my equations to be left-aligned and have the option of ...
2
votes
2answers
1k views

How to align if-condition in equation systems

I use this environment for an equation system: \newenvironment{sistema}{\left\lbrace\begin{array}{@{}l@{}}}{\end{array}\right.} But in this way the "if-conditions" are not aligned, as an example: ...
4
votes
3answers
7k views

Clean-Looking Piecewise-Defined Functions

I want to write a clean-looking piecewise defined function. There's a similar post here: How to write a function (piecewise) with bracket outside?, but I have follow-up questions. The two options I ...
2
votes
1answer
480 views

How to get flushleft to the page margin within enumerate environment?

How do I get the headings to come to the page margin inside of the enumerate envirnoment. \documentclass{article} \usepackage{lipsum} \begin{document} \begin{flushleft} Heading \end{flushleft} ...
7
votes
1answer
675 views

Keeping checkboxes aligned using the Exam class

I'm using the exam class in a multicols environment to create a series of worksheets. Many questions are yes/no. If the question is too long, it wraps to the next line and moves the answers. Is there ...
3
votes
2answers
202 views

How can I make indentations and then align at different levels, in a table?

How do I create this table? It is the subtle indentations that are throwing me. I know I'm missing something simple.
4
votes
1answer
1k views

Center aligning a shrunk frame in beamer

I have a beamer related question. I am using [shrink=50] command to shrink a frame. I want the shrunk frame to be center aligned but by default it is aligned left of the slide. How do I do this? ...
3
votes
1answer
417 views

Centering clrscode3e codebox horizontally

How can I center a codebox (from clrscode3e package) horizontally in a document ?
3
votes
3answers
1k views

Figure very poorly placed

I am using pdflatex with PDF images for figures. When I do not scale the image, the figure goes off the page. When I do scale the image, it is very poorly placed. A little too far to the right of the ...
3
votes
2answers
659 views

Amsmath, spacing, left alignment

It was recommended that I include amsmath package to use \tag{} (which works). When I do this however, it somehow changes my predefined spacing; I would like everything to be left aligned, no left ...
7
votes
2answers
589 views

Centering part entries in toc using memoir

I'm using memoir for a large document and want to center the toc entries corresponding to parts (page entries are turned off). I read the manual (specifically pp. 161-166) and while I have no problem ...
10
votes
1answer
6k views

How to justify subfig subfloats?

I have three subfloats and I want them to be aligned over the full \textwidth, no matter what the sizes are (smaller than a third of the page of course). I have the following setup: \begin{figure} % ...
3
votes
2answers
982 views

Proper spacing using minipages, dealing with margins and succeding text

So I have this user defined function below. This gives me near optimal results. The code is supposed to make numbered subsections. Where the rest of the text is aligned below. Since these subsections ...
12
votes
2answers
13k views

Text wrap in tables (multirow package loaded)

I searched a bit, but I could not find a reliable way to wrap text in tables with columns spanning more than one row. Any ideas on how to fit this table in the page?: ...
3
votes
3answers
3k views

Numbering side-by-side equations or inline equations

I am trying to produce a two-column table of math equations, where each cell contains its own left-justified, numbered equation. I tried using \begin{equation} \end{equation} inside the tabular ...
9
votes
3answers
3k views

Table column width “fill to margin”

I kind of would expect tables to be able to "fill to margin", instead of choosing a number and iteratively rebuilding the document until it is the right size. For example, I want this 2-column table ...
4
votes
0answers
1k views

Wrapfig alignment argument is not being obeyed [closed]

So I've been working on a how-to guide and most of the images seem to be aligning correctly withing the \wrapfigure{} sections, until I reach this section: \documentclass{article} ...
4
votes
3answers
966 views

\underbrace at a strange place, spanning array columns

Take a look at the following code: $$\begin{array}{rr|r|c|l} vd_2:&\raisebox{0pt}[0pt]{\makebox[0pt][l]{$\overbrace{\phantom{b_1\dots b_{n-l_{k-1}-2k}\hspace{2\arraycolsep}b_{n-l_{k-1}-2k+1}\dots ...
12
votes
2answers
2k views

Errors with ragged-right justification in tables

My main goal is to disable text justification in tables and just have left-aligned text. I've loaded the array package and defined a custom \newcolumntype like so: \usepackage{array} ...
37
votes
6answers
6k views

Best way to create an system of equations environment?

I am trying to write a few systems of equations, and I want the terms to be nicely spaced as below 2x + y + 3z = 10 \\ x + y + z = 6 \\ x + 3y + 2z = 13 Now, using ...
2
votes
1answer
925 views

How can I left-align \name?

I am working on a resume using \documentclass{res} but I'd like it to left-align the name and address while using the \name and \address commands. I have tried using \begin{tabular}... and ...
14
votes
6answers
1k views

How to stack boxes like a vertical version of \mbox?

I would like a vertical equivalent to \mbox{} that somehow takes a sequence of boxes and stacks them on top of each other. I'd like the resulting width to be the width of the widest box, and I'd like ...
14
votes
5answers
2k views

In a tabular, how to left align ignoring minus signs?

I'd like to create a table that is aligned left, but minus signs are ignored. E.g., the following gives a normal left-aligned table \begin{tabular}{llll} & a & b & c ...
7
votes
2answers
205 views

Align columns of text

So basically what I am trying to achieve is something like the following... Mobile : +12 111 111 111 Email : something@something.com Phone : +12 111 111 Website : ...
17
votes
1answer
427 views

Precision copyfitting in xcoffin

Further indulging my curiosity with xcoffins, I'm playing with xcoffins-tschichold-example.tex. In the TeX reconstruction of the front page of Elementare Typographie, the text is slightly misaligned ...
4
votes
1answer
293 views

Horizontally centered figures in twoside margin of book using wrapfig

I would like to put figures in the outer margins of a book. I am using wrapfig to do so, but the figures are aligned differently on even and odd numbered pages. On odd pages, they align based on the ...
2
votes
2answers
2k views

float left figure in titlepage

I try add a figure in the titlepage \begin{titlepage} \begin{center} \begin{figure}[h] \includegraphics[scale=0.15]{images/logo.jpg} \end{figure} ...
2
votes
1answer
2k views

Global “ragged right” justification of report

I don't want my report justified. I want it \raggedright. I added a \begin{raggedright} / \end{raggedright} pair around the whole document, and it is working, but I'm wondering if I can somehow ...
4
votes
2answers
3k views

How to change subsection heading (e.g. center it)

I'd like to change the styling of \subsection in the memoir class. The example is: \documentclass[oneside, 12pt]{memoir} \begin{document} \subsection{A subsection - center me!} \end{document} ...
7
votes
1answer
869 views

How to right align a table in a tikz picture

I currently have set up a command that draws a box with a shadow and some text inside that box. I want it to have a minimum-width, but when I set it, the table is now aligned in the center of the box ...
19
votes
6answers
4k views

Skip to absolute position on line

Is there a way to skip to a fixed position on a line? (a specific tab position) Example: The quick \skiptoposition{1.5cm} brown \skiptoposition{2.5cm}fox which would put "brown" 1.5cm and "fox" ...
18
votes
2answers
2k views

Aligning inside tabular environment, specific cell

I'm trying to align specific content of the single cell. For example, \begin{tabular}{|r|r|} \hline 1 & 2 \hline right & to_the_left \hline 1 & 2 \hline ...
7
votes
2answers
4k views

How to place and number 3 short equations in one line?

I have 3 short equations which consume much vertical space, if each one is typeset in a separate line. How can I typeset them in one line in a "mathematically correct" way? I do not necessarily need ...
5
votes
2answers
452 views

Flexible/automatic alternative to multienum?

I'd like to typeset the items in an enumerate environment side-by-side. Preferably, each item would take up only as much space as necessary, perhaps plus some extra padding, and the next item would be ...
11
votes
4answers
5k views

Aligning plain `align` and `cases`?

The cases environment works very well for enumerating cases within a large left bracket. I'd like to be able to combine it with the align environment so that equals-signs and conditions also line up: ...
21
votes
3answers
19k views

making a table fit on a page by moving it left

I have a table where the last columns fall off the page. Instead of making the text smaller I would like the table to not adhere to the margin of where it begins. I would like to move it to the left. ...
15
votes
1answer
4k views

Description list with right alignment of labels

I want a description list that looks like the following: Name | Joel Spolsky Address | Some address Some zipcode Telephone | +31 123 456 E-Mail | ...
5
votes
1answer
2k views

How to vertically and horizontally centre text and images in (different) table cells?

I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and ...
5
votes
1answer
849 views

Aligning in text (non-math)

I would like to align some text similar to how the align math environment works. I don't want to put the text in a table, because I don't want it to float. I tried putting the text in a tabular ...
13
votes
1answer
1k views

Centre roman numbers in enumerate environment

I have an enumerated list that uses roman numbers. \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\roman*] \item first entry \item second entry ...
6
votes
1answer
2k views

Emulate \hfill in LaTeX equations?

I have a set of equations, where each line consists of a formula and an explanation (info about indices). Now, let's say the structure looks like this: \newcommand{\lw}{\linewidth} \begin{align*} ...
1
vote
1answer
979 views

Align table-text in Lyx 1.6.9

I created a table with normal font text inside. After I select the text and go to Edit>>Text style>>Customized and select Larger, in the input the text looks aligned ok (it's right in the ...
7
votes
1answer
3k views

Center wide longtable (not tabular or tabularx)

I have a long and wide table that does fit on A4 format, but is too wide for the text margins. I want that table to be able to spread over multiple pages, but I also want it to be centered on the ...