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

1
vote
1answer
542 views

How to center the name of nomencl?

I am writing my thesis and need to use the nomenclature package to make a list of symbols. Initially I get a list of symbols, making the entire procedure that specifies the help of this package. But ...
6
votes
2answers
854 views

How to use hfill and underbrace together

I'm basically trying to achieve what was answered in How to make nested table span all underlying cells but this time with an horizontal brace under 1 2 3. But as soon as I use \underbrace, 1 2 3 ...
3
votes
1answer
769 views

Spacing in multiple choice question

I tried to make multiple choice question using the following code... but the choices are not uniformly distributed in a single line... I used \hfill by replacing \penalty -50\hskip 2em plus ...
23
votes
2answers
11k views

How can I center a too wide table?

I have a document containing a table which is slightly too wide for the page. But instead of growing to the right side only, I would like to have it centered on the page. I have tried to use the ...
8
votes
2answers
1k views

Justification when using the dramatist package

I'm trying to typset a play using the dramatist package. I'm having difficulty figuring out how I change some settings. I want to ensure that the text that the characters say, is justified, rather ...
7
votes
1answer
375 views

Right-aligned line-break with long verses in verse

I'm happily using the verse environment to typeset French poetry. However, I'm unsatisfied with the behavior of long-line breaks (when the verse is too long to fit on the page). The verse behavior is ...
3
votes
1answer
590 views

Siunitx: alignment, parentheses and font size

I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work: ...
5
votes
1answer
545 views

Subtable inside a table / Adjusting table column width on the fly

I've been fiddling with the following table for a while, and have some minor issues. \documentclass{article} \usepackage{threeparttable} \usepackage{multirow} \begin{document} \begin{table}[!ht] ...
2
votes
2answers
647 views

siunitx multicolumn problem

In addition to Right-centered columns in LyX, I have another problem, now with multicolumns. I want to center the number "98" (which spans two columns) above the two other columns. These shall be ...
1
vote
1answer
361 views

Right-centered columns in LyX

This is very near to my topic: How to align integers on the right, but still center them. However, I do not get it to work under LyX. This is the code I have: \begin{table}[H] \centering ...
3
votes
1answer
762 views

Center body and left margin in page

I'm using the titlesec package to put section titles to the left of their body, but I'd like for the entire page to appear centered. That is, I'd like for the space from the far left of the page to ...
6
votes
3answers
619 views

Controlling text overflow when using \hfill to left- and right-align parts of title

I’m creating a template in plain (Xe)TeX which must have, in the first line, a location and reference number. The location is left-aligned and the reference number is right-aligned. (See example 1, ...
10
votes
2answers
816 views

Custom alignment of columns in align environment

I need to typeset two columns of equations, each row typeset with an equation number to the right as with an ordinary equation. The first column must be centered, and the second column must be ...
13
votes
1answer
3k views

How to align TikZ figures in subfigs

I use subfig to show an array of tikz figures. Unfortunately these figures are sometimes of different height, so they don't show up properly aligned: I'd like to see all nodes on the same line. I'm ...
14
votes
4answers
2k views

Best Pattern For Adding Commentary in align Environment? [duplicate]

I've been using the align environment to line up equations in proofs/explanations/etc and I like to place parenthetical commentary for each step, similar to the code below: \documentclass{article} ...
6
votes
1answer
566 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
1k 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
549 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} ...
8
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
780 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 ...
8
votes
2answers
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
5k 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: ...
7
votes
3answers
11k 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
605 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
905 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
230 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
515 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
710 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
705 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
8k 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 ...
15
votes
3answers
18k 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 ...
10
votes
3answers
4k 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
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 ...
13
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} ...
39
votes
6answers
8k 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
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
227 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
471 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
337 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 ...