{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
0answers
39 views

How to correct alignment in exam class page layout?

I'm creating MCQ paper using EXAM class. \begin{center} Section II \newline Multiple Correct Answer Type \newline This section contains 10 Multiple Choice questions. Each question has four choices (...
3
votes
1answer
54 views

Justify main caption in figure

I have two figures that I am putting vertically in my text. The two figures are located in the same column, on top of each other. I am trying to left justify the main caption of this figure (by ...
0
votes
1answer
26 views

\preauthor{\begin{flushright} Not align with \begin{flushleft}

For my cover i need to have the right part of the text aligned with the left part, but it's not happening, Here i link my code and the image can you please help me out? \documentclass[10pt,showtrims,...
2
votes
1answer
34 views

Make multiline list items line up horizontally

I'm trying to make a list in which each item has multiple lines, and I want the items to line up horizontally, like this: 1. this is the 2. and this is first item in the second item ...
14
votes
2answers
166 views

How to align horizontally two tabular environments

I have this table (a table environment containing two tabular environments). I need the two tabulars to be placed side by side. But I need the second tabular to be align horizontally (same height that ...
7
votes
1answer
91 views

Horizontal alignment of numerator and denominator in a \frac expression

I need to typeset the derivative of l by z_a. Normally I would do \frac{\diff l} {\diff z_a} with \newcommand{\diff} {\mathop{}\!\mathrm{d}}. This gives: which does not look very good imho due to ...
5
votes
6answers
262 views

Place a list in the middle of the page

I have an itemized list: \begin{itemize} \item First item \item Second item \end{itemize} I'd like to place this list somewhere near the center of the page. But, I still want the bullet ...
3
votes
3answers
80 views

Standalone proper alignment of plots

I try to set Up a document with multiple Plots for that i try to use TIKZ and Standalone. But the Problem is with the alignment of the different plots. I use scale only axis to make the axis all the ...
1
vote
1answer
38 views

How to center longtable both horizontally and vertically

I have the following longtable, I want to center its content both vertically and horizontally, So far I've successed in centering it in one of them using the array package and newcolumntype \...
1
vote
1answer
25 views

Centering Acronym

Anyone help me for centering the acronym (not align left like this example)? I tried \begin{center} but it's not possible. Here is my MWE: \documentclass{article} \usepackage[colorlinks]{hyperref} \...
1
vote
1answer
127 views

HZ typesetting system in plain TeX

How can I use the hz typesetting engine with plain TeX and pdfTeX? I read about it in TUG Vol 36 no.2, Peter Karow.
3
votes
2answers
48 views

Extra horizontal space when using \Big[ and \Big] instead of \left[ and \right]

I have the following equation \sum_{k=0}^{N-1} \left\{ \tr \left[ Q^{-1} \left( P_{k+1}^N - A P_{k,k+1}^N - P_{k+1,k}^N A' + A P_k^N A' \right) \right] + \tr \left[ \left( x_{k+1}^N - A x_k^N \right)'...
3
votes
4answers
67 views

Side by side checkboxes

I'd like to put some checkboxes side by side, but I don't know how. The only thing I found so far was this for checkboxes, but that's just an explanation for how to do them. How to create checkbox ...
2
votes
1answer
34 views

centering subcaptions (without text), just keeping (a), (b)..etc

How can I write no subcaptions but keeping subcaptions number. That is, how can I just keep (a), (b), (c) ... and, in turn, center those letters below each picture? Example: \begin{figure} \...
2
votes
1answer
90 views

How could I duplicate this example?

I am relatively new to LaTeX and have made a few (beautiful) documents with it. However, I ran into a brick wall today, I cannot seem for the life of me be able to replicate the example shown below. I ...
4
votes
2answers
63 views

Different alignment in same line [duplicate]

SX. I want frame number to have right alignment and frame title left alignment. And command \hfill does not help me with it. ` \documentclass[10pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[...
2
votes
1answer
33 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,&\ \...
1
vote
1answer
29 views

Justify caption

For my figures and Tables the caption text is formatted to start in the middle. For the tables only however, I need it to start from the left. I tried using \flushleft command for it but it did not ...
3
votes
2answers
26 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
37 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
38 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
61 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
22 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 = 1.8in]{figures/...
8
votes
2answers
266 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
19 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
262 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)} \includegraphics[height=\measurepage]{images/...
6
votes
3answers
99 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} \...
4
votes
1answer
34 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
56 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
87 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
22 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
40 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 \def\myitem{\@ifnextchar[\@...
2
votes
3answers
212 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] &...
5
votes
1answer
87 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 \begin{...
10
votes
2answers
9k 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 ...
3
votes
2answers
58 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
58 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
28 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
47 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
56 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
76 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
33 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
44 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
35 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
26 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
106 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
18 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
18 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 two-...