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

7
votes
1answer
1k 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
257 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
2k 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
644 views

Centering clrscode3e codebox horizontally

How can I center a codebox (from clrscode3e package) horizontally in a document ?
3
votes
3answers
2k 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
787 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 ...
8
votes
2answers
825 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 ...
11
votes
1answer
11k 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
1k 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 ...
17
votes
3answers
28k 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
5k 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 ...
11
votes
3answers
8k 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
2k 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
1k 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 ...
15
votes
3answers
4k 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} ...
44
votes
6answers
12k 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
1k 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
2k 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
3k 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
254 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 : ...
18
votes
1answer
507 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
383 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
3k 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} ...
3
votes
1answer
4k 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 ...
5
votes
2answers
4k 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
1k 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
8k 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" ...
25
votes
2answers
8k views

Aligning inside tabular environment, specific cell

I'm trying to align a specific content of a single cell. For example, \begin{tabular}{|r|r|} \hline 1 & 2 \hline right & to_the_left \hline 1 & 2 \hline ...
13
votes
2answers
12k 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
547 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 ...
12
votes
4answers
7k 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: ...
26
votes
4answers
46k 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. ...
16
votes
1answer
5k 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 | ...
7
votes
1answer
7k 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 ...
7
votes
2answers
2k 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
2k 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
3k 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
1k 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 ...
11
votes
1answer
5k 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 ...
5
votes
1answer
1k views

References to align with the rest of the text

I'm using LaTeX2e and don't want the abbreviations that appear in my text (at \cite) to appear also in the left margin of the bibliography, so have: \documentclass{article} ...
6
votes
5answers
2k views

Breaking up an equation in the align* environment

I'm trying to produce the following formatting without use of all the \quad commands to get the last equation to align nicely across the break up (a(x), b(x), and c(x) are actually really long ...
16
votes
2answers
1k views

\raggedouter to typeset marginal text in twoside book

We used the following code fragment using the changepage package: \newcommand{\raggedouter}{% \checkoddpage% \ifoddpage% \RaggedRight% \else% \RaggedLeft% ...
1
vote
2answers
929 views

Alignment of columns of nested tables (tabularx)

I want to nest 2 tabularx tables: the columns of the "inside" table belong to a column of the "outside" table and therefore shall be indented and have a vertical line on their side. I tried to do ...
2
votes
3answers
2k views

Align Quote to right

I want to align \begin{quote} Text Author (\cite{Source}) \end{quote} to the right side of the paper. How can I do this?
5
votes
1answer
5k views

How can I use an align environment flush right?

Is there an option analogous within the align environment to the left align for right align, i.e. fralign. MWE: \documentclass{article} \usepackage[fleqn]{amsmath} % Instead have [freqn]. ...
17
votes
2answers
425 views

Why do I have to put the center environment in a group for \@afterindentfalse\@afterheading to suppress indentation?

Consider the following two macros, the only difference being that one has the environment inside a group: \documentclass{article} \makeatletter \newcommand\thisworks{% {\begin{center} $\ast$ ...
16
votes
2answers
9k views

Dynamically size arrow \mapsto in function definition

I have the following diagram: However, this looks a bit ugly, I would like a version that looks a little bit better. For example, size the last arrow such that the T_\phi is moved to the right. ...
2
votes
1answer
222 views

New command for inline text

As I did not get an answer I was fully satisfied with in my last thread, although there were many great suggestions. I will therefore try to rephrase my question here. I also have some new inputs, ...
19
votes
2answers
12k views

\flushleft with p{} option in tabular

If I have defined tabular alignment with the p{} option, \begin{tabular}{p{.3\textwidth}p{.7\textwidth}} ...(contents)... \end{tabular} Is there a way to specify that I want it \flushleft without ...
4
votes
2answers
4k views

Multiple Tab stops in Math Split?

I am using mathmode with split. How can you use multiple tab stops. I want to span an equation across multiple lines, but then the last few I want to indent even more. \[ \begin{split} some& ...