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

Partial center in environment

I'm writing a lab manual with step by step directions. Some directions include screenshots. To keep the screenshot with the line of direction, I use samepage. I am exploring an environment I can use ...
0
votes
1answer
29 views

Alignment for equality sign

I solved a question and I wrote it in Latex, but the equality sign is not aligned, I searched google, but none of the ways there worked with me. How do I get the equality signs aligned in the below? ...
4
votes
1answer
27 views

Titlesec & titles extending into margin

I would like to use titlesec to have gradient shaded section titles that extend into the left margin. I would like the section number and the gradient to extend into the left margin, but would like ...
2
votes
1answer
42 views

Separation of two authors using the amsart document class

I want to achieve a similar result to this one (see answer). However, I am using the amsart document class and the result for that code is this: The problem I believe is with the \and command that ...
30
votes
2answers
16k views

Line breaking of URLs in bibliographies

I have a problem with the line break of an URL. The URL can´t break correct and extends into the border. I´ve tried some things. Amongst others I loaded the package breakurl, but without any success. ...
1
vote
0answers
15 views

Caption alignment of grid subfigures

I have 5 images and I would like to display them in 2 rows (3x2). This is what I've done so far, \begin{figure}[h] \begin{tabular}{ccc} \subfloat[caption]{\includegraphics[width = ...
7
votes
2answers
255 views

Stackengine centering problem

I have a problem centering text with stackengine stacks. My MWE is: \documentclass{article} \usepackage{stackengine} \begin{document} \Shortstack[c]{Cognicion abstractiva} \end{document} The result ...
2
votes
1answer
16 views

Horizontally align minipages from different boxes

I have defined the following command: \newcommand{\listOfYears}[3]{ \mbox{ \begin{minipage}{0.08\textwidth} #1 \end{minipage} \begin{minipage}{0.30\textwidth} ...
1
vote
2answers
257 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
29 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
27 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
89 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
47 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
28 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
43 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
82 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
16 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
190 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
29 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
83 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
44 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
61 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
15 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
101 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
21 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
30 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
41 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
31 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
47 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 ...