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

Horizontally and vertically center a figure and scale to fill the whole page in landspape orientation

I want to have an image that fills a landscape page. I have tried: \documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \usepackage{pdflscape} %Gives us landscape pages with ...
2
votes
5answers
138 views

Centering not working?

I have a wide table that I wish to center, caption and label. \documentclass{amsart} \usepackage{graphicx,amsmath,gensymb} \usepackage[nobysame,lite,short-months]{amsrefs} \begin{document} ...
3
votes
2answers
140 views

How to center a label inside a closed path in Asymptote?

I am new to Asymptote and I need a little help. I would like to place a label exactly in the center of a closed path, for example in a triangle: unitsize(1cm); size(4cm); draw((0, 0) -- (0, 3) -- (3, ...
0
votes
1answer
81 views

Align first letters of chapter titles in Table of Contents

I am trying to create table of contents for starred version of chapter. My goal is to align all first letters of the titles to the same position. I was able to achieve that separately for single digit ...
2
votes
1answer
118 views

Shrink equations in align to fit page width

I read several similar questions, but none was on align environment. Here is my example. \documentclass{article} \usepackage{amsfonts} \usepackage{amsmath} \begin{document} \noindent where $B(a, ...
1
vote
1answer
43 views

indentation within the text

While preparing a report, I want to write the text (below the equations) similar to attached figure. I tried using \begin{align},\, commands (even after knowing that the align command is using for ...
0
votes
1answer
66 views

Table columns out of sync in tabularx

I asked a very similar question yesterday that I thought I would be able to abstract into this problem but I can't. Here's an image of the table : Here's the code : \documentclass{article} ...
3
votes
2answers
38 views

Table cells are out of line / sync with each other, itemize

I'm trying to have a tabular section that has bullet points next to it. There might be a better way to go about this, but currently it seems as though the cells are out of sync (though this might be ...
16
votes
2answers
490 views

typographically is ragged-right better than fully-justified text?

It seems that some people naturally prefer ragged right documents and some, like me, prefer fully-justified text blocks (using microtype for even better results). I understand that part of the issue ...
0
votes
3answers
43 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
246 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 ...
0
votes
1answer
32 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
83 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 ...
0
votes
1answer
60 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 ...
4
votes
1answer
95 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 ...
3
votes
2answers
135 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={,}, ...
3
votes
2answers
318 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
159 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
131 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, % ...
6
votes
3answers
97 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 ...
1
vote
4answers
154 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 ...
6
votes
2answers
115 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} & ...
0
votes
1answer
47 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 ...
2
votes
1answer
212 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
44 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
70 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? ...
2
votes
2answers
46 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}{ ...
5
votes
2answers
110 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
151 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 ...
1
vote
1answer
117 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
53 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
105 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
15 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
71 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, ...
2
votes
3answers
41 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
2answers
331 views

Center navigation circle bars in beamer

I am using navigation bars in the top of a beamer slide. The problem is that the circles are not centered. How can I center them with respect to the section title? My code is ...
5
votes
1answer
298 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
125 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 ...
1
vote
1answer
41 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 ...
1
vote
1answer
51 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} ...
4
votes
2answers
674 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 ...
5
votes
5answers
258 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}: ...
2
votes
1answer
109 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 : ...
2
votes
2answers
287 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
53 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
40 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
46 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 ...
1
vote
1answer
293 views

Beamer, itemize and \hfill

As you can see in the image below, the EndOfLines are not correctly right aligned: The alignment using \hfill is different for an \item followed by an itemize environment compared to an \item followed ...
0
votes
0answers
20 views

Column alignment with horizontal dots [duplicate]

How can I recreate something like this? Is it a table? More specifically: The left side aligned to the very left, the right side aligned to the arbitrary place on the page and dots evenly filling ...
2
votes
1answer
31 views

Alignment problem of footnotes inside tables

I have a problem with footnotes inside tables. I am using the pifont package to produce dots (\ding{108}). These dots should be aligned. This works very well until I add more then 9 footnotes. Then ...