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

Two figures with side captions next to one another

I currently have the following figure placed at the bottom of my page: \begin{SCfigure}[][h] \centering \caption{Georg Cantor (1845--1918)} ...
2
votes
1answer
26 views

Aligning material of two or more cases environment

The following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a=& \begin{cases} b,&\ \text{if}\ c\,;\\ d,&\ \text{if}\ e\,;\\ f,&\ ...
2
votes
1answer
25 views

Reledmac: footnote position problem

I am trying to have footnotes over three columns using reledmac package. However, I don't understand how to get footnotes correctly positioned : it looks like this : ...
6
votes
3answers
84 views

Text alignment in minipage

I am writing my exam paper in LaTeX. I have just a small enquiry. The code I am using is: \documentclass[12pt,paper=a4,answers, addpoints]{exam} \usepackage{graphicx,lastpage} \usepackage{upgreek} ...
3
votes
1answer
46 views

Automatically setting the label width in a description environment, for each page

There are a couple of questions asking for a description environment where the width of the label-portion is the width of the widest label: Label: Text text text text text text ...
4
votes
1answer
26 views

Tikz-Feynman: Multiple arrows on one fermion line and alignment (0vββ)

I'm trying to align the quark arrows in my 0vββ diagram: So I'd like to have 2 arrows on each of the 4 'unmodified' quark lines: the first arrow should be horizontally aligned with the arrow from ...
1
vote
1answer
37 views

Horizontal alignment of subfigures in PGFplots

I have 4 subfigures in a 2x2 grid. The figures are made in Matlab by using matlab2tikz, and hence the TikZ files are inputted. The problem is, that the y-ticks are different and therefore the ...
2
votes
2answers
81 views

Merge table rows vertically and align text vertically

I want to create a table that looks like this: So this is what I already got: \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage{booktabs} \usepackage{multirow} \usepackage{graphicx} ...
2
votes
1answer
15 views

How to put left aligned equation inside algorithmic

I have a one-line equation that I want to use just like a statement in algorithmic. I tried with flalign and the equation still goes into the center. Could you please tell me how to fix that? Here is ...
4
votes
1answer
39 views

Different alignment of labels in enumerate

Consider the following example. \documentclass{article} \usepackage{multicol} \usepackage{enumitem} % found somewhere on TeX.SX (can't remember where) \makeatletter ...
2
votes
3answers
186 views

Is there a way to center align chapter titles?

I tried using \begin{\centerline{Chapter Title}} but using this causes the index/table of contents \tableofcontents's entries for chapters to be center aligned as well. Is there a better way to ...
1
vote
1answer
27 views

Left aligned equations in multiple lines

Normally I use the align tag and everything is aligned properly. But now for some reason the text isn't left aligned. The following is the code I normally use (code #1): \begin{align*} V[1] = A[1] ...
4
votes
1answer
81 views

What does `\centering` do?

Not specific question: What does \centering command specifically do? MWE: \documentclass[onecolumn]{IEEEtran} \usepackage{graphicx,subcaption} \begin{document} \begin{figure} %\centering ...
10
votes
2answers
8k views

Center text in a single table cell

Suppose I have simple table. While I want the columns in general to be flush both right and left, there are certain cells that I want to be centered. \documentclass[12pt,a4paper]{book} \def\x{This ...
2
votes
2answers
41 views

How to align tikz node text vertically centered and horizontally left

Assume a tikzpicture consisting of three nodes with node text. \documentclass[border=5mm]{standalone} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{calc, shapes, fit, positioning} ...
1
vote
1answer
56 views

Conditional raggedright

Can I make (XeLa)TeX automatically use \raggedright whenever a paragraph would otherwise produce underfull or overfull boxes? (Might be useful for marginal paragraphs.)
2
votes
1answer
24 views

Matrix Multiple Alignment

The following code generates: You can see that the first and the second line are centered on the right side of the left brace. How can I stick to the current code implementing "\begin{matrix}" ...
3
votes
2answers
45 views

How to align to the left

I'm using this converter of latex to png. When I write the following: 0.625\cdot2=1 + 0.25 \\ 0.25\cdot2=0 + 0.5 \\ 0.5\cdot2=1 It aligns lines to the right: How can I align it to the left?
2
votes
1answer
53 views

Align unnumbered and numbered chapters

I'm using the ERDC template and when I make an unnumbered chapter (\chapter*) it doesn't align with the numbered chapter on the next page. Cant identify any custom format in the ERDC cls code. erdc ...
1
vote
2answers
58 views

Page numbers in Table of contents should be aligned left

I'm writing my thesis, but unfortunately I'm having a problem. In our thesis template, the page numbers in table of contents should be aligned left (default=right) as shown in the figure. When I look ...
1
vote
1answer
14 views

Setting chapquote, formatting

How could I align author completely to the right? Or even better, could you show me which commands to play with? I have this in preamble: \makeatletter ...
1
vote
1answer
25 views

How to make ( \section ) flushleft like on article or report? [duplicate]

I'm using \docummentclass{amsart}and when using \section it prints it out in the center of the line how to make it on left I used \begin{flushleft} \section \end{flushlef} but it didn't work.
1
vote
1answer
28 views

Sectioning chapter, section, subsection formatting

I'd like some help with the formatting of chapter, section and subsections. I am using the report document class and I'd like to generate the following chapter, section and subsection formatting in ...
3
votes
2answers
34 views

Center Subfigure Based on Included Graphics

I have a figure in my dissertation in which I am including a picture that has a bunch of labels identifying different aspects of the picture, some are long and some are short. The problem is that some ...
3
votes
1answer
24 views

How can I align a minipage of text to a minipage of figure?

I'm writing a poster so I'm using a two column structure. On the left column I want to have some text side-by-side with a figure. For that I use two minipages that one contains the text and the other ...
2
votes
1answer
100 views

Align numbers on decimal point in tabular

I am trying to align numbers on decimal in tabular. I have found some information here:align to decimal point in the table. However, when I adopt that code into my table, it gives an error: ! ...
0
votes
0answers
17 views

Icon alignment with respect to figure page

I am creating a figure which has an icon on the side. I am using minipage within the figure environment for this purpose. \begin{figure}[!hbt] \marginnote{\includegraphics[scale=1]{icon.png}} ...
0
votes
1answer
17 views

How to align an expression in an amsmath environment

If I write \begin{align} A = <long string of variables> \\ =& <another long string of variables> \end{align} This works and aligns the equal signs and makes the total block of ...
0
votes
1answer
47 views

How do I finish Horizontal space in the line next the heading line?

A horizontal space is inserted in next line of using \myheading command.(i.e before 1: in the below example). How do I finish this space? \newcommand\myheading\[1]{\par \bigskip \hrule ...
1
vote
1answer
15 views

Position subfloats (subfig package) of different types one besides two

I would like to make a table with one tabular top aligned left of two tikz figures. The problem seems somehow related to the floatrow package as without the result is, still not good, but better. ...
1
vote
0answers
19 views

Subfigures aligned like table

There are several posts about using par, minipage, hfill and other approaches to align subfigures like tables. Is there any package that optimizes the space (as if the main figure is a table and you ...
1
vote
1answer
29 views

Problem with table spacing when aligning by decimal point?

Please see attached MWE and pdf. The problem seems to be with the column 'Test 1'? Any suggestions would be very much appreciated, I have tried altering each variable but I cannot work out where the ...
0
votes
0answers
14 views

Problem with justication in Texmaker

Can anybody tell me how to fully justify my paragraph. I am preparing my thesis but my previous paragraphs were justified and other paragraph were not. I have sent a snapshot of the given page. I ...
3
votes
1answer
33 views

Justify left and right inside example environment

I use the "Numbered Examples (multiline)" environment in a LyX document (class : Book (Standard Class)). The text is not fully justified (it is not right justified) in the examples. Is there a way to ...
2
votes
1answer
39 views

Latex figure next to text and text align right

In my LaTeX document I would like to align a figure on the bottom-left-hand side of page while, at the same height, some text aligned to the right side of the page. Code below is what I got so far.. ...
1
vote
1answer
28 views

How working position label longtable?

2 problem: How align "continued table" and \caption text in left? \raggedright not working in this situation. How delete empty line before enumerator? Source code: \documentclass{article} ...
1
vote
1answer
363 views

Moderncv - Centering name and informations

I'm using moderncv to write my CV but right now, the name is in the top-left of the page, and the information (Age, address, email etc...) in the top-right. Is that possible to align name and ...
38
votes
4answers
2k views

How to create nonbreaking arbitrary length snakes for full-width justification?

This is a follow-up to the recent xkcd comic: Here is a simple version without justification: \documentclass{article} \usepackage[text={1.2in,3in}]{geometry} \raggedright \begin{document} ...
2
votes
1answer
45 views

\flushleft flushes whole document after use

I have an article document and I use \flushleft after equations to have the next line start on the left. It seems to then do that for all new lines after the command though, which is not what I want. ...
1
vote
1answer
71 views

Is there a way to switch columns in paracol without introducing a paragraph break in the pre-switch column?

(M)WE: \documentclass{memoir} \usepackage[margin=1in]{geometry} \usepackage{paracol} \begin{document} \newcommand{\switchtoleft}{\switchcolumn[0]} ...
1
vote
1answer
20 views

Custom horizontal alignment in multicols environment

If I utilize the two columns of multicols for my Kurdish sequence of numbers, it arranges the items in column like the following figure: But I want to arrange the items in rows splitted by some ...
1
vote
1answer
102 views

Text alignment in moderncv

I am making my cv with moderncv class. I have two questions: 1- How to align first and second column of "Programming Languages" vertically? So that, the text "Programming Languages" would be ...
2
votes
3answers
63 views

Center tabular env around middle column?

I have a tabular environment with three columns aligned as {rcl} such that text in the middle column is centered internally within the column. I want the whole table to be positioned in the page such ...
11
votes
3answers
4k views

How do I center the table of contents title using tocloft?

I'm getting odd behavior using package tocloft to format my table of contents and center the titles "Contents", "List of Figures", and "List of Tables". Using the code suggested in the tocloft ...
6
votes
2answers
82 views

Can two \vtop boxes exist side by side?

So I am trying to see if I can put two \vtop boxes side by side. The below is the closest I have gotten. This is a kind of a "plain-tex in latex" example. ...
3
votes
2answers
61 views

Writing regression results in latex

I'm trying to write a regression results in Latex as follows: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} y_t = ...
1
vote
2answers
33 views

Create vertical line by calculating length of a text

Line 1: "Someeeeeeeee Textttttttttttt" (custom font is used, italics,font size say 24) vspace(10mm) Line 2: "Someeee Textttt" This should be centered below line one wrt to text above. vspace(10mm) ...
0
votes
0answers
13 views

Fix subpicture placement

I know this kind of thing has been asked here before, but I have a question about this post. I copied the code from there and only changed the filenames to have my pictures. \begin{figure*} ...
1
vote
1answer
40 views

Split justified text between two pages with longtabu

I would ask how to split justified text between two different pages using longtabu. For now, if a single row exceed the space of the page, the entire text will be printed in the next page, leaving a ...
0
votes
1answer
20 views

Centered tabular column, with narrow columns?

I'm trying to make a table in which most columns have the same width, and text in them is centered. However, the columns are very narrow, and the typical answer (make a new column type using ...