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

2
votes
1answer
121 views

How can I put colon in a abstract and justify it?

I need something like this (with colon, justify it and capital letter): ABSTRACT:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ...
6
votes
1answer
2k views

Centering a \framebox

Before asking, I have checked Centered box, text inside it flushed right?, Questions about \fbox, and Any way to center text within a \parbox?. Here I have tested various centering methods (my ...
5
votes
2answers
789 views

Beamer table of contents custom bullets: Long section titles do not align

I have redefined the table of contents bullets in my slides to a circled number. However, long section titles which span more than one line do not align with the text from the previous line but with ...
5
votes
1answer
131 views

Align table columns with superscript markings

I have a table of integers; a handful of them have an extra superscript marks to distinguish various characteristics. I think the table looks nice, but the superscript marks throw off the ...
4
votes
2answers
96 views

Tabular(x) cell filled with text from a macro

I'm trying to generate a table containing some static text and some text that should be supplied from a defined macro. Consider the following MWE: \documentclass[a4paper,12pt]{article} ...
4
votes
1answer
3k views

Center hrule in the middle of the page

I would like to center a horizontal line on my page and I would like the width of this line to be half \textwidth. Here is what I tried but it doesn't work : \documentclass[10pt,a4paper]{article} ...
2
votes
1answer
163 views

Centering memoir frontmatter and backmatter chapter titles

How can I center the titles of the chapters in the frontmatter and the backmatter of a document written using memoir? Keep in mind that the mainmatter chapters should not be affected at all.
7
votes
2answers
455 views

center image when's bigger than textwidth

I have an image that is larger than the line width and I want to center it and I also want to have a colored frame around. I can get this two things done one at the time, but don't know how to achieve ...
1
vote
1answer
139 views

Adding horizontal space between plots in pgfplot

I couldn't find any solution for adding horizontal space between two plots in pgfplots. The xshift thing didn't help. Here's the code: \documentclass{sigplanconf} \usepackage{pgfplots} ...
5
votes
3answers
327 views

Aligning plots in pgfplot

I've read both this Plot alignment using groupplot in pgfplots and this Using pgfplots, add vertical/horizontal spacing between plots? and neither helped me. I'm trying to align horizontally plots in ...
2
votes
1answer
637 views

Threeparttable centering

I know that someone already asked pretty much the same but I cannot solve the problem of centering my table after using threepartatble command for the notes. Here it is: \begin{table}[h!tb] ...
5
votes
1answer
1k views

subcaption/subfigure not centered, and caption too narrow

I'm using the subcaption package to make some subfigures with subcaptions (clearly), in a two column document, specifically the IEEE Transactions journal document class. There are a lot of figures, ...
3
votes
1answer
121 views

How to make the name centered with addresses on either side in res.cls

I am using a resume template here: http://www.rpi.edu/dept/arc/training/latex/resumes/res9b.tex cls: http://www.rpi.edu/dept/arc/training/latex/resumes/res.cls I was wondering how to make the name ...
3
votes
1answer
217 views

Centering wide supertabular tables with \makebox

I am trying to use \makebox to center a wide \supertabular table, but if the table spans more than one page, latex gives a ! Missing \endgroup inserted. Any ideas on how to center a wide supertable? ...
5
votes
1answer
91 views

Horizontal alignment of long equations

I hope that the following question is not a duplicate but I could not find a definite answer. I'm trying to obtain the the same result as Formula (1) in the picture next, but I feel that my approach ...
1
vote
2answers
84 views

how to left align the whole document starting from first heading? [closed]

\documentclass[11pt]{article} \begin{document} \begin{center} \underline{TCS-505}\\ \underline{DAA TUT-1} \end{center} \begin{flushright} \textbf{Name:Megha Saraswat}\\ \textbf{Sec: Purple}\\ ...
2
votes
1answer
790 views

Horizontally align multi-line cell in table

I want to horizontally align two cells with two lines in a table environment, something like this: ------------------- | A long | foo | | | ----| | multiline | bar | ------------------- ...
2
votes
0answers
40 views

Why doesn't raggedright work in the last column of a tabular (with package array)? [duplicate]

Here's my MWE: \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{>{\raggedright}l>{\em}l} A & B \\ E & F \end{tabular} ...
3
votes
1answer
201 views

Text alignment in a Marginpar (Arabic)

how can I write a marginpar in Arabic with a text alignment from right to left. I use XeLaTeX. When I write \marginpar{{\A كتاب حلية الأبدال وما يظهر عنها من المعارف والأحوال}} Then that comes ...
3
votes
1answer
293 views

Create and center nice EBNF

I used the package syntax to create the following EBNF. I would like to center it, however \begin{center}...\end{center} and other commands do not seem to work on the grammar environment. When I set ...
3
votes
1answer
292 views

Justify text left and right

My code is the following: \documentclass[twoside, a4paper, 11pt]{article} \title{asdfsadf} \author{asdfasdf} \usepackage{ragged2e} \usepackage{booktabs,tabularx} \usepackage{amsfonts} ...
3
votes
1answer
90 views

Centering a text in longtable

I am having some difficulty with centering a text in a table. If you happen to have some spare time, please kindly enlighten me on the following problem. Referring to the picture below, you could see ...
4
votes
1answer
99 views

Table entry shifted downwards with Hyperref package

I wanted to make a table with two columns: the left column lists the terms that the right column explains. Also I'd like to make the terms on the left column link to itself. The minimum working ...
5
votes
1answer
753 views

Aligning bullet and text in itemize

I want to make the bullets in itemize to align at 0 mm (no indent). Using the enumitem package, this can be done by specifying the option [leftmargin=*]. At the same time, I would like the texts to ...
2
votes
0answers
318 views

Subfigure plot in conflict with psfragfig

I am trying to place 2 graphs one next to the other using pstools. I have generated 2 graphs using the commands hFig = figure(1); set(gcf,'PaperPositionMode','auto') set(hFig, 'Position', [0 0 300 ...
2
votes
0answers
541 views

center align 2x2 plot of subfigures [duplicate]

I've got a 2x2 plot of subfigures that is too wide to fit within the margins of a page. Latex left aligns it and the right hand side goes off the page. I would like to center align the whole thing ...
2
votes
1answer
65 views

Spanning a row over defined columns

My code is as follows, however, "Banks' reaction strategy" should be centered over columns 2 to 4. How can I do that? The code: \documentclass[a4paper,12pt]{article} \usepackage{booktabs} %To make ...
7
votes
1answer
91 views

Why does not \centering work on a table, while \begin{center} does?

I cannot get my grips around the different effects of \begin{center} and \centering when used on tables (not inside tables). The MWE should explain the issue clearly: \documentclass{article} ...
3
votes
2answers
131 views

How to move subscripts to the right and text to the left

I have \[ \sum_{\substack{m \in [1,\dots,n] \\ b \in \{0,1\}}} P[y_{i_\ell}= z_{i_\ell}\mid xxx] \] For space reasons I need to move the subscripts so that they are flush left with the summation ...
2
votes
2answers
597 views

Remove extra space from framed environment

I would like to remove or better said have the framed environment (box) aligned with the content in the description. Notice below how the box is out of alignment and aligns with the margin. See a MWE: ...
4
votes
2answers
180 views

How to align equation items below their =

How is it possible to sort equations align with their = like this: a*b*c = d*e*f g*h = i*j k = l*m*n o*p*q = r I've seen it before but I don't know how to find that!
6
votes
2answers
95 views

Amsmath: Using \tag{name} when you have a long name

When the name is long, the centering of the equations is off even though the tagged name wouldn't overlap the content. How can I center equations with a long name? \documentclass{article} ...
3
votes
1answer
63 views

How to improve simple macros to leave the surrounding text justification undisturbed

I have prepared a series of macros in order to simplify the incorporation of pictures into long documents. All of them are based onthe MWE below. However I have just noticed that the text following ...
3
votes
1answer
241 views

How can I center a Sweave verbatim chunk?

I have a very simple sweave chunk with two lines, like this: <<results=verbatim>>== quantile(foo$bar) @ How can I center this element? I've tried embracing the chunk with \begin{center} ...
10
votes
2answers
259 views

Center Aligning Labels in a enumerate environment

I am trying to get enumerate environment do the following: (subgroup) some description of a subgroup of a group G. (hello!) This subgroup is a hello subgroup of G and satisfies an ...
4
votes
1answer
116 views

How can I center multiple paragraphs that are wider than the text width?

I have a figure that consists of multiple paragraphs of tabulars and images. At least one of these paragraphs is wider than the text width. How can I center the entire figure so that the widest ...
2
votes
0answers
28 views

Aligning long entries in LOF using tocloft package [duplicate]

I am facing a problem by left aligning long entries in the LOF using the tocloft package. Although my TOC for long entries looks perfect and aligned, the LOF is not :( . I am using the command ...
3
votes
1answer
181 views

How can I center a tikzpicture horizontally by a certain point/coordinate?

this is a rather nit-picky question but I wanted to ask anyway. Is is possible to center the tikz figure horizontally with using the coordinate indicated by the red circle? The catch is, I have ...
9
votes
1answer
135 views

How can I align the terms of this equation nicely?

I have the following alignat segment: \begin{alignat*}{3} \text{max}_{\underline{\lambda}} \text{min}_{\underline{x}} \quad & \underline{c}^T \underline{x} + \underline{\lambda}^T(\underline{d} ...
4
votes
1answer
173 views

Figure + table wider than textwidth

I have a figure and a table placed next to one another, but they are wider than the textwidth. Now I want to center them so they exceed the textwidth margins. Can this be done? Edit: currently I have ...
3
votes
1answer
840 views

\hfill and \hspace do not work

All, I want to put three figures together in one line, spanning two columns. I used \hfill and \hspace{} in order to make the three figures fully span the horizontal width of the paper. However, ...
5
votes
3answers
116 views

Help with left align?

I was trying to left align this equation by using code $$\begin{equation} \begin{aligned} E_\theta(L(\delta_1(X)) &=& E_\theta[(1-\frac{b}{a+X^2}) X-\theta]^2\nonnumber\\ ...
6
votes
2answers
290 views

scale column width with image width

I'm writing a presentation using the beamer class where multiple slides consist of an image on the very right and centered text on the left. So far I do this using the columns environment: ...
1
vote
1answer
81 views

Editing a signature block

I am trying to get a signature block that look exactly like what is shown below, but I am unable to achieve it in LaTeX. Can anybody be of help to me. Please note that the Jun 13 is left aligned, ...
4
votes
3answers
126 views

Misalignment of equations using amsmath

I would like all my equations to be aligned to the left on the same margin ie. move the first one forwards or the other two backwards. The second 2 equations are inside an enumerate package though: ...
1
vote
1answer
258 views

Making a text right-sided under an equation in LaTeX?

I'm trying to put a text on the right side under an equation in LaTeX. Here is my code: \begin{dmath} \mbox{log-likelihood ratio} = A \log{ \left( \frac{A/(A+B)}{(A+C)/N} \right) } + B \log{ \left( ...
2
votes
1answer
53 views

Making a table centered in latex?

I'm trying the following code to make a table in latex, however the table is out of layout. Here's the code I'm trying: \begin{table} \caption{Table Title} \begin{tabular}{|c|c|c|} \hline & ...
3
votes
1answer
149 views

Full width table with caption in refman doc

The refman document class has a big left margin for text. Only the headings are on the normal left margin. Perfect for what I'm doing. But I have a wide table (float) that must be centered on the ...
8
votes
3answers
448 views

TikZ Matrix - How can I align content horizontally which is spanning over multiple cells/rows?

I'd like to finetune the big rectangle in the last column and its content, i.e. that it's all aligned to the third column's center. It is currently too far on the right: So far I have been unable ...
11
votes
7answers
276 views

Alignment in cases

I have this text in LaTeX: $$ sgn(x)= \begin{cases} -1 & \mbox{za podmínky } x>0\\ 0 & \mbox{za podmínky } x=0\\ 1 & \mbox{za podmínky } x>0 \end{cases} $$ But I ...