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

0
votes
0answers
37 views

Itemize Not ending at New Line beginning

I am using itemize to list few bullet points. When it ends my new line begins from the same left side margin as the itemize items. I have to get the Solutions line begin from the orginal left ...
1
vote
1answer
57 views

How to make flushleft work on multicolumn title?

In the below code, "Title3Title3 Title3Title3 Title3Title3" is misaligned with the other titles because flushleft does not seem to work with multicolumn titles. How do I left-justify all of these text ...
0
votes
3answers
39 views

overfull and under-full errors. Not able to correct them, please help out [duplicate]

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \begin{document} Similarly, the state-space averaging is used to described the ...
7
votes
4answers
151 views

Multiple matrix equations, alignment

I want to write three matrix equations on multiple lines so I'm using alignat. However, the widths of the matrices on each line are not equal. How can I make sure they will be? I've been looking ...
4
votes
1answer
61 views

Can I get the effect of \halign to \hsize using a LaTeX tabular environment?

I'd like to get the effect of doing \halign to \hsize ... while retaining all the convenience of LaTeX's tabular environment. The particular problem I am trying to solve is to use \tabskip to set a ...
0
votes
1answer
20 views

If a matrix equation is too long, how do I put a portion of it aligned in another line without changing the label of the equaion

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \begin{document} The load current is assumed continuous because of an ...
3
votes
1answer
76 views

Having Overfull and underfull box warnings. Please help out as there are many matrices and equations

\documentclass[11pt]{article} \begin{document} The above equations on application of Laplace Transform become: $$sL_1\hat{i}_{L1}(s) = D\cdot \hat{v}_{C1}(s) + D\cdot \hat{v}_{C2}(s) - D\prime ...
2
votes
2answers
62 views

Different column widths under a multicolumn prevent appropriate centering

How can I center the two columns inside the multicolumn? MWE \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{input-ignore={,}, ...
0
votes
1answer
31 views

Centering only a part of a presentation

I have the following code \begin{itemize} \item Optimal Effort:\\ $DPV{\Pi}_1(e)=-\psi(e)+(I+pe)\delta \longrightarrow \overline{e}=p\delta$ \\[0.2cm] \item Participation ...
3
votes
2answers
49 views

How to float right but align left

I'm typesetting a formal letter within a much larger document (hundreds of pages). I'd like to produce something along the lines of what you get with the letter document class, but without actually ...
0
votes
1answer
44 views

In nested tables, how can I make an inner table stretch to fit its column?

I'm trying to design a layout that has tables nested within tables, and I'm having trouble getting things to line up. The question is quite similar to How to make width of an inner table use full ...
6
votes
1answer
62 views

Better way to achieve TikZ label offset

In the following diagram, which is generated by the following TikZ code, \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture}[scale=2, % ...
9
votes
3answers
2k views

How to left align the section title in latex?

I am using the \documentclass{ctexart}, and this document class centers the section title by default. How could I left align the section title?
6
votes
3answers
49 views

Center a line of two words on the space separating them

I have this document \documentclass{article} \begin{document} \centerline{onlyoneword} \centerline{sveeeeeeeeeerylongword \qquad shortword} \end{document} I want to center the line on the ...
5
votes
2answers
67 views

Slight misalignment using hphantom equals sign in align

I am attempting to align the integral signs precisely, whilst still retaining the correct spacing around the equals signs. Why doesn't the following code get it exactly right? \begin{align} & ...
2
votes
2answers
29 views

How do I move the table to the vertically center, and align figure and table together?

\begin{figure}[htbp] \centering \makebox[0.5\textwidth]{\includegraphics[width=0.7\textwidth]{figure/ch3/result_s2/book.jpg}} \qquad \qquad \scalebox{0.7}{ ...
0
votes
1answer
40 views

Alignment within tex groups

Please consider the following snippet: \documentclass{minimal} \begin{document} %\begingroup \centering Text \begin{tabular}{ll} A & B \\ C & D \end{tabular} %\endgroup \end{document} I ...
1
vote
4answers
46 views

Centered captionlabel above justified caption text

I'd like to have the captionlabel (e.g. Figure 1) centered on a single line with the actual caption justified below. Something like this As you can see, I've achieved what I want with the help of ...
2
votes
1answer
73 views

Left align location using Koma script

Is it possible to left align the place variable using the Koma script Latex class? I am using scrlttr2 for letter creation. I managed to make the date left aligned using ...
2
votes
1answer
21 views

Is it possible to flushright the right-hand side with systeme without \hphantom?

I typeset some systems of equations, and I really like the format of input (as well as the output) the systeme package provides. Now, I wonder if there is a way to flushright also the right-hand side ...
2
votes
1answer
24 views

Changing the left page margin to center text

In the MWE below I want to center te text. But I want for each paragraph that the text starts on the same line as the previous paragraph. So using \center is not option. How can this be done? ...
8
votes
2answers
183 views

Is it possible to typeset with angled margins?

I'm typesetting a book using memoir in XeLaTeX, but on some pages, as an accent, I would like to make an angled margin, something like this: Even if I have to define the page limit separately ...
5
votes
2answers
84 views

How to do horizontal letterpaper in two halves with imposition?

I'm going to be manually binding the pages I print to turn it into a physical hard-cover book. To do this, I plan to print it on letter paper, fold each paper in half, and hold it horizontally to ...
1
vote
1answer
60 views

Problem with title page when justified in Tufte-Book

I am using Tufte Book template and defined a new paper size (10x7 inches) in .def file. Its working fine. When I use justified option in preamble ...
2
votes
1answer
36 views

table alignment specification

When I use \begin{tabular}{l*{20}{c}} it works perfectly. But when I use \begin{tabular}{l|c*{4}|c*{8}|c*{8}} It gives me error. How can I specify the alignment operator as multiples without ...
1
vote
1answer
58 views

Align colored numbers in table

How to align colored numbers in the last line with other numbers in the same column? \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} ...
2
votes
2answers
38 views

Centering text in a table

I have a table which needs to expand to the width of my page and I do this by \begin{table}[H] \centerline{ \begin{tabularx}{\textwidth}{|X|X|} \hline \textbf{Number} & \textbf{Probability} \\ ...
3
votes
1answer
51 views

centering the figures in pdf documents

I used the following to insert pdf file in latex document: \documentclass[standard]{letter} \usepackage[usestackEOL]{stackengine} \stackMath \usepackage{graphicx} \def\imgi{} \begin{document} ...
1
vote
0answers
12 views

Justify text in beamer poster [duplicate]

I am using the beamer Poster Template from this page: LaTeX Beamer Poster Theme and Template and I am trying to justify the text but I cannot find any option. There is a similar question concerning ...
2
votes
1answer
33 views

Microtype, raggedright and varwidth doesn't work well with each other

I am using microtype inside varwidth environment in the way described here. It works well with justified text, but now I have very short-lined text like a verse. And sometimes microtype is working, ...
24
votes
2answers
8k views

How to center a listing?

I'm trying to get some console output in my homework. I put it in a listings environment but I want it to be centered horizontally on the page. The only thing I get centered is the caption ;-/ ...
1
vote
3answers
35 views

Problem with alignment

I currently have \textbf{Theorem 4: } $\mathrm{E}[XY]=\mathrm{E}[X]\mathrm{E}[Y]$ \begin{flalign*} \textbf{Proof: } \mathrm{E}[XY]&=\sum_j\sum_i (x_i y_j)\mathrm{P} ...
5
votes
1answer
173 views

Five percent circle with fuzzy edge using tikz

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{lipsum} ...
2
votes
2answers
37 views

hspace not working inside mdframed

I am trying to use \hspace to align text inside mdframed box. However, \hspace seems to not working inside mdframed box. Text in the mdframed is somehow is aligned to center. Why is \hspace not ...
5
votes
5answers
218 views

How do I align equations?

I need to align the following equations: The numbers, <,> signs and theta symbol are aligned as desired. But, the words on left are not. I tried this: \begin{flalign*} \textit{Angle}: ...
1
vote
1answer
34 views

Centering some cell in table + breaking up a cell

I would like to get a contingency table but I've got 2 problems * First, I would like to splits my columnname. I've tried this (as you can see below) using \, but that didn't work * I would like to ...
2
votes
1answer
113 views

Problems with centering a border matrix

I have the following code: \begin{figure}[h!] \centering \bordermatrix{~& \ket{\Phi_{0}} & \ket{S} & \ket{D} & \ket{T} & \ket{Q} & \dots \cr \bra{\Phi_{0}} & E_{0} & ...
1
vote
1answer
40 views

Looking for a more elegant (correct) way of creating a formula

I wanted to achieve the following: And I did but my code looks like it was in a major accident: \documentclass{article} \usepackage{amsmath} \usepackage{stackengine} \begin{document} ...
2
votes
1answer
30 views

Optional parameter of the \item command in the margin: is that behaviour normal?

The following code \documentclass{article} \begin{document} \begin{itemize} \item[A very long line that will be in the margin of my document] This is a test \end{itemize} \end{document} produces ...
1
vote
1answer
39 views

How can I left-and-right justify text in columns in Beamer?

I have a slide like the following: \begin{frame} \frametitle{two columns} \begin{columns} \begin{column}{.5\textwidth} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula ...
3
votes
1answer
31 views

How can I left align with flushleft correctly?

Problem: The bottom-left minipage is not aligned with the text above. I want it to be aligned. Here is the latex code: \begin{document} \renewcommand{\abstractname}{Heading} \begin{abstract} ...
4
votes
2answers
113 views

Align numbers on decimal point in tabular except for the column title

I am trying to align some numbers in a tabular on the decimal point. I have been using the dcolumn option but given that my column title is a year, it aligns also the year on the decimal point, which ...
2
votes
1answer
46 views

Making a small modification to a itemize environment for arabic presentation with beamer

I would like to change the alignment of lists to the right ( for Arabic presentation ) with beamer. With the enumerate environment we can add some code if it is used frequently, like this : ...
3
votes
4answers
58 views

Aligning equations in a beautiful way

This is my code: \begin{alignat*}{5} & \mathrm{B} &&{}+ \mathrm{R} &&{}\cdot \mathrm{t}_1 &&{}= \mathrm{R}_{\mathrm{max}}&&{}\cdot \mathrm{t}_1\\ ...
2
votes
2answers
41 views

Left justified comment in table caption without caption package

I need to left justify long table captions, without overwriting all the special formatting (font etc.) of the style file I am required to use. I tried to use \usepackage{caption} ...
3
votes
2answers
44 views

several maps and images in a column like shape

I would like to have 4 maps in a row and some images of it below. The best I came with is \begin{align}\label{sumary isomorphisms} (\textrm{Im} H, [,]) \rightarrow \mathfrak{su}(2) \rightarrow & ...
2
votes
1answer
25 views

Alignat not working properly

Consider this minimal example : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{alignat}{2} &\frac{1}{2} log(\langle d_x, d_x \rangle + ...
3
votes
2answers
32 views

Align arrow using its midpoint

I am displaying arrows between three equations. I am using align to line up the "lesser than"-sign, but I would like the arrows to be lined up as well. And, well, they are, but they are lined up at ...
0
votes
0answers
27 views

LaTeX shifts the entire content to the right

How can I shift a document in latex to the right while I decrease the right alignment with the same amount? So for example, if I increase the left indentation with 10pt I want the right indentation to ...
2
votes
1answer
40 views

Horizontal space in lists with image labels

I construct a list with icons to document. Here is the MWE: \documentclass{scrreprt} \usepackage{blindtext, enumitem, graphicx, longtable, tabu} \newcommand{\myicon}[1]{% \smash{% ...