{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
2answers
281 views

Multilines aligned to describe a set notation

I'm trying to write a set notation in multiple lines, for example: This is my code to get it. \usepackage{amsmath} \begin{document} ... \begin{align*} Lookup &= \{\, \langle C, A.m, B.m ...
7
votes
2answers
713 views

Drawing a venn diagram with two nodes using Tikz?

How do I create a Venn Diagram with entities no larger than below, but with text scaled to fit; and circles in alignment horizontally? \documentclass[a4paper, 14pt]{article} \usepackage{tikz} ...
2
votes
2answers
508 views

How to align equations in the equation environment?

I have been looking on how to align equations and I have seen numerous examples with \align and \flalign, however whenever I try to use these in the equation environment, I get an error. I would like ...
5
votes
3answers
366 views

Automatically stretch/fit contents of a paragraph

I am preparing my thesis and in many places I find the Overfull/Underfull warnings. Usually it is not very alarmingly visible in the document but sometimes it is painfully out of the specified ...
3
votes
1answer
187 views

Align text and logo

I'm trying to find a way to place a logo at the top left of the page, with at the same height and right aligned my information (eg name, adress). The rest of the text has to be placed below that. I ...
13
votes
5answers
38k views

Center table on page

I would like to center a table on the page, not only the content. But I can't find the right keyparameter or command. I have follwing table \documentclass[11pt]{scrartcl} \usepackage{multirow} ...
0
votes
0answers
40 views

long table alignment in fixed size columns [duplicate]

Possible Duplicate: Fixed width column with text centered/raggedright/raggedleft in tabular? My longtable has a column with a fixed size, p{2cm}. How do I make that column align to the ...
6
votes
1answer
437 views

XeLaTeX longtable full justification with Devnagari Text

I am a digital publisher of Sanskrit works. I earlier used pdfLaTeX, but recently I moved to XeLaTeX. I am on Windows using MikTeX 2.9 with TeXWorks 0.4.3. As I am typesetting epic poems with long ...
5
votes
1answer
3k views

LaTeX advanced use of subcaption package

I am trying to create a figure with subfigures aligned both horizontally and vertically in the same figure to explain this better i attached a primitive drawing. The labels are not of importance in ...
13
votes
1answer
262 views

Box around raggedright links spanning two lines extends to right margin

I need to use boxed links and ragged right text. The problem is that when a link spans two lines, though the link is broken correctly (when using pdflatex) the box around the linked text extends until ...
9
votes
1answer
4k views

LaTeX Centering newline in subfloat caption

I have these images with their title beneath: I want to add some information below, like this: The good news is, I'm able to do it. The last screenshot is from my pdf previewer. ...
5
votes
2answers
2k views

Changing style of table caption

I'm using the \caption command inside \begin{table} command and in the output I'm getting: Table 4.1 - Caption Table Content Is it possible to change that style to something like this? ...
9
votes
2answers
900 views

Alignment of page numbers in table of contents

Consider the following example: \documentclass[a4paper,12pt]{article} \begin{document} \tableofcontents \newpage \section{test} \newpage \setcounter{page}{22} \section{introduction} \newpage ...
2
votes
1answer
2k views

Right flush text in math environment

In my align* environment I have a bunch of lined up equations, but I would like to put some explanations of the steps done to the right of the equations. Currently it looks bad: \begin{align*} ...
2
votes
2answers
311 views

Paragraph line break alignment in table

I'm doing the following: \begin{tabular}{ p{0.20\textwidth} p{0.20\textwidth} p{0.20\textwidth} p{0.20\textwidth} } 2009 & 2010 & 2011 & 2012 \\ \hline ...
7
votes
2answers
181 views

Method for aligning nodes of different sizes at specified sections

I'm trying to make a tikz diagram in which I can place nodes with long pieces of text, one above the other, such that I can specify sections which are to be centered (things outside these sections are ...
5
votes
2answers
711 views

Alignment problem with large subscript in sum

This MWE exhibits the problem I have: \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} This is a really long line of text to show where the margins of the page ...
4
votes
1answer
655 views

How to make the contents of the address center-adjusted( change the default format of the address tag?)

I am trying to write my resume with LaTeX, and if you see the following image, the contents of the address is left-adjusted. What do I do to make them center-adjusted? The code I used is as ...
2
votes
1answer
597 views

Flushleft and flushright in the same line (ConTeXt)

I have the following macro \mainlanguage [de] \definepapersize[MyBook][A5] \setuppapersize[MyBook][A5] \definestartstop[Test][commands=\setups{Test}] \def\Test{\doTest} \def\Test[#1]{ ...
2
votes
1answer
269 views

Automatic alignment in tabulars

I am trying to make a table with both left and right alignments. Now I can get the view like this The first problem is with the left alignment - there is a space between left side and tabular with ...
2
votes
1answer
179 views

How to make tex appear in the middle of a line in Lyx?

When I write, for example, in Math.SE and I want some equation to appear in the middle of the line I just use $$ instead of just one dollar sign. How can I do something similir in Lyx ? doing ...
5
votes
3answers
352 views

How to keep table and equations to the left side?

\documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} First find how many days between July 22 and Nov 4 ...
7
votes
1answer
432 views

Unindent section headings

In attempting to answer Indent all the normal text, I had to resort to using the titlesec package to unindent the section headings. With \let\OldSection\section, I was sure that either ...
4
votes
1answer
403 views

How can I align equations to the left?

I looked up a template to put my homework in a nice formatting, but I can't get it to look the way I want. More specifically, I want to: Align to the middle whatever is after: \hspace{1in} .... (I ...
4
votes
1answer
174 views

Tabular* Alignment of Columns

I've read about the tabular* environment, and the same example pops up over and over again. What I'd like to know is when the example is converted, why do columns 2 and 3 lose their centering? I've ...
2
votes
0answers
45 views

Aligning comments that break in several lines? [duplicate]

Possible Duplicate: How to align comments with lstlistings? I want to include Matlab code with long comments. The next MWE shows that it is achieved by using the listings package. However I ...
11
votes
1answer
384 views

Aligning text in S columns in a way that respects the decimal marker for numerical entries

As I understand it, using various options for the S column in siunitx, I may produce columns containing both numerical and nonnumerical entries. I may have the numerical entries aligned at their ...
3
votes
1answer
2k views

Automatic horizontal centering of beamer frame content

I would like to set some global option so that the content of all beamer frames is horizontally centered with respect to the page. In other words, I want to achieve the effect of wrapping all frame ...
5
votes
1answer
404 views

Table alignment with inner table and hline

There are 3 issues with this table. After much experimenting, I can sort of resolve 1 or 2 of them but never all 3 at the same time. I have a very picky customer (aren't they all) and I have to get ...
0
votes
1answer
143 views

How to fix the alignment of table cells?

While trying to improve the answer for another question, I am stuck at getting proper horizontal alignment. The alignment problem is evident in second column. It also shows up as difference in spacing ...
5
votes
1answer
458 views

Different alignment for table number and caption

I have a table whose table number should be right-aligned and its caption should be center-aligned on the next line like this: Table 1 Caption ...
5
votes
1answer
409 views

How to use a math environment without the vertical extra space? [duplicate]

Possible Duplicate: Remove vertical space around align I would like to center two text lines with equations. Normally, one can do that with the align* environment. But I do not want the ...
4
votes
1answer
5k views

How to center a text line within an itemize environment?

How to center a text line within an itemize enivornment ? What I tried: \documentclass[a4paper]{article} \begin{document} \begin{itemize} \item {\centering text to center} \end{itemize} ...
4
votes
3answers
513 views

Alignment in multiple locations of a single equation based on first line

I want to align a multi-line equation so that it basically looks like this: a = (b + c + d + e) f = g The requirements of this alignment are: The equal signs should be aligned. The beginning ...
2
votes
1answer
356 views

How to center text and a rule in a heading

I'm working on my resume, found a nice template as a starting place, but I want my name to be centered on the top above a horizontal rule. Also, rather than two arguments, I just want one, my name. ...
8
votes
1answer
210 views

How do I adjust the placement of descriptions I've made alongside enumerated statements within a boxed theorem environment?

Basically, what I'd like is to have an elegant command that would enable descriptions (commutativity, associativity, etc.) made alongside enumerated statements to be aligned to the far right side of ...
13
votes
2answers
15k views

Table rowspan and colspan

I need to create similar table using LaTeX: I have tried to use \tabular and \multicolumn, but every time I get something wrong. I want: Fixed width columns and fixed height rows; Centered cells ...
3
votes
1answer
656 views

Centering the frontpage using memoir

I'm using memoir (two-side layout). I have the problem that my front page is centered with respect to the margins, which are not equal in left and right side. \begin{center} will not solve this, since ...
7
votes
1answer
614 views

nested equations numbering

Is there a way of playing with align, alignat, numcases etc environments that produces aligned and numbered equations which look like this : Blahblah text before equations : A = B \iff C = D ...
3
votes
2answers
128 views

aligning question numbers, paragraphs

I am typing up a sheet of course problems, and wanted to offset the question numbers from the text of my solutions slightly. Based upon an answer to this question, I tried adjusting leftskip. The ...
8
votes
1answer
539 views

Center in ConTeXt

What is the equivalent of \begin{center}...\end{center} in ConTeXt? I know \raggedcenter, but that not an environment. I could define one command, but surely there is anything like that predefined.
7
votes
1answer
743 views

How to change the alignment of a tabularx within an easylist?

I'm probably missing something super obvious, but my searching has turned up nothing. I want to put a table in the middle of an outline that I'm making with the easylist package. The table is coming ...
7
votes
1answer
589 views

Aligning on plus sign (as well as decimal sign) in tabular environments using numprint

Is it a bug in the numprint package .. or maybe a missing feature? I can't align on the plus/minus sign in tabular environments, padding numbers with spaces. \documentclass{article} ...
4
votes
1answer
884 views

Right aligning text while underlining entire line

For the record, I've spent about five hours endlessly looking here and elsewhere on the Internet, looking for an answer. I'm relatively new to using LaTeX and am trying to create right aligned text ...
5
votes
2answers
1k views

Modify title page

Is it possible to modify the title page from its default in LaTeX? Example: \documentclass[pdftex,12pt,a4paper,english,dutch,leqno]{article} \usepackage[utf8]{inputenc} \usepackage{authblk} ...
3
votes
4answers
252 views

Writing CV, need some advice on achieving structure similar to this

I'm a LaTeX beginner and under a heading (e.g. Interests) I want to have the text laid out as above. Specifically, my problem is getting the part on the right to stay aligned to the line above when ...
30
votes
4answers
13k views

Justify text in moderncv cover letter

I am writing a cover letter and CV using moderncv. Everything works fine so far, but the text in the cover letter is not justified. I think it is good that it is not hyphenated, but it would look much ...
6
votes
3answers
209 views

Specify alignment per column in align equation

Using the following mwe i have not yet found a way to align the formulas correctly. \documentclass{article} \usepackage{mathtools} % extends amsmath and fixes some of its quirks ...
11
votes
1answer
5k views

Negative Sign and Matrix Alignment

I am having trouble centering the elements of a matrix such that the negative sign is not taken into account during alignment. Additionally, I would also like the space between the left parenthesis ...
3
votes
1answer
670 views

Alignment of nodes and scopes in tikz matrix?

I am trying to fix the positions of the arrows of the following diagram without much success. I would like the arrows to be centered (both horizontally and vertically) in the matrix cell no matter ...