{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
134 views

Align sequence with curly bracket and half row shift

Can anybody tell me how to rewrite these equations: There are curly brackets and half row shift and I don't know how to write it in align (eqnarray) environment.
3
votes
1answer
64 views

How to put legend graphic representation to the right of the label

All the pgfplots examples I could find have the graphic (e.g. symbol) to the left of the label (see example below) in the legend. I think this default is very good but due to space constrains I have ...
3
votes
2answers
717 views

position caption of centered figure left-adjusted to figure

I have a problem with the alignment of the caption of an image. My image is centered and I need the caption to be left-adjusted relative to my image like that: ...
6
votes
2answers
102 views

Alignment in multicolum [duplicate]

I have a problem with alignment in a multicolum, here's the code \begin{table}[H] \caption{Statistic values of dementia epidemiology over the world.} \begin{tabular}{ccrccc} \hline ...
2
votes
1answer
119 views

Left justify \dates for res.cls

This is an extension of the question posed: Left justify parts of resume using res.cls mwe: \documentclass[margin, 10pt]{res} \usepackage{lipsum}% just to generate text for the example ...
3
votes
4answers
2k views

How to align text to the right in math mode?

I have a table of formulas, some have a description next to them, I want the equations to appear left flush and the text between parentheses right flush. I was writing it in the following way. ...
11
votes
3answers
191 views

Can I locally switch to a 'greedy' justification algorithm?

I'm not optimistic about this since this is a core part of TeX's algorithm, but is there any way to switch to a 'greedy' justification algorithm? That is, instead of working on the paragraph as a ...
2
votes
1answer
174 views

Justification of paragraph

How can I force justify the paragraph. As you can see the words are flowing out. MWE : Download
4
votes
1answer
212 views

callout boxes not aligning with aligned environment content

I've been able to create the split rectangle successfully. I've been able to work with \tikzmark and callout boxes. But now that I'm combining the two, something is going seriously wrong. Here's my ...
2
votes
1answer
256 views

Vertically center elements in table doesn't work

I am trying to vertical and horizontal align items in a table. I tried to follow what I found on the internet, including on this site, but it seems not to work for the last column. Here is what I ...
5
votes
2answers
68 views

How to get a ragged-right footnote with Memoir

I need to put a rather long list of names in a footnote. They can't be properly hyphenated and do not break into pretty lines, so leaving the right side of text ragged seems a perfect solution to me. ...
2
votes
2answers
1k views

Tikz picture, align left in column using beamer

I'm currently struggling with aligning a tikzpicture, within a figure environment, at the left of a column. It seems like the figure is always align centre, or right Using beamer, for a presentation. ...
5
votes
2answers
102 views

How to locate the verbatim text in centre of the page?

Here is an code that i want to display in verbatim mode. But the displayed code is locate at the left of the page. \begin{singlespace} \begin{verbatim} Imread('filename'); \end{verbatim} ...
8
votes
2answers
164 views

Included graphics with text: Alignment

tl;dr How do I align text to text within \included graphics? Let's look at the following logo, which I want to include (in a vector format, e.g. pdf or svg). The blue/red lines are my annotations. ...
6
votes
2answers
824 views

How to automatically align left footnotes

I didn't find any option with the footmisc package to align the footnotes on the left (in otherwords, some kind of auto-\raggedright). Could I do it without any package, namely with some ...
1
vote
1answer
3k views

Center align formula, right align text

I am trying to write a formula and then number it (5). The formula is meant to be center aligned and the numbering should be right aligned on the same line. This was my best attempt at doing that but ...
2
votes
1answer
722 views

setting separation between columns in two column mode

I'm using a two column article as in the link here. I'm new to LaTeX and am facing difficulty in setting the separation between the columns. I've read questions but all of them suggest to use ...
1
vote
0answers
19 views

How do I right-align text in a glossed Linguex example? [duplicate]

I use the Linguex package for examples with glosses (word-for-word translations) and I want to add right-aligned comments to specify the language of my examples, but this doesn't work with glossed ...
5
votes
2answers
241 views

Measuring line length, using \hfill to justify text, wrapping and right justifying if space too small

I am a lecturer and have an issue when compiling test and exam questions. The questions will be in an enumerate environment and look something like this, where the marks shown in brackets are right ...
5
votes
1answer
115 views

How to align short footnotes (centred) and longer footnotes (left) in one document

I am wondering whether there is some package/code that addresses the following three criteria: Shorter footnotes, e.g. Quine (1960, 22), would be sitting centred on the bottom of the page, if (and ...
5
votes
2answers
150 views

Left-justified equations with left tags (so it looks like an enumeration)

I want to make a math enivornment (preferably a customized align/flalign environment) with left-justified/left-aligned equations (as it is possible with the flalign environment) and left-aligned tags ...
5
votes
1answer
531 views

Align along dot in tables

Does anyone know how to align the figure along dot within the tabular environment? I would like the figures to be under each other sharing the decimal dot as a common point of alignment. ...
3
votes
2answers
88 views

Lining up equations with words

I want to align the following assignment statements w.r.t the = sign as follows: \begin{itemize} \item $Wd =$ We are eating the fish. \item $Ct =$ Your Claws tore through my shirt! \item $Dhw =$ ...
0
votes
0answers
35 views

Figure going too much into right in xelatex, not in latex [duplicate]

My problem is somewhat similar to another question on this site . I tried the answer given there but it didn't solve my problem. The problem is that my figure goes too much into right, even though I ...
4
votes
1answer
59 views

Centre justifying equations in align environment

Apologies if this has been asked before, but I couldn't find it after searching in a few places. I'm currently working with arrays of equations like the following: \begin{align} ...
7
votes
2answers
155 views

Table column align on decimal

Jeff Dean published this famous table of "numbers every software developer should know". I'm struggling to format it properly for a publication that is written in LaTeX. As you can see, the left ...
3
votes
3answers
200 views

Table Large Text and Centering

I'm trying to learn the TeX language in preparation for my final engineering project before I graduate, and while I've been able to find most of the solutions online, I can't seem to find a solution ...
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
813 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
139 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
171 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
490 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
142 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
349 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
675 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
129 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
223 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
92 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
85 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
813 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
41 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
206 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
319 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
304 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
92 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
100 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 ...