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

9
votes
2answers
124 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?
4
votes
1answer
60 views

Headings with a hanging subhead

I use this piece of code to add a subhead (usually a quick reference) in my notes: \newcommand{\mysection}[2]{\section[#1]{#1\\*[.6ex]\normalsize\textit{#2}}} I'd like to make the subtitle hanging ...
10
votes
2answers
499 views

Infinitely shrinkable glue except if surrounded by text?

Say \a and \b are two macros that expand to some text and either one may be \empty but not both. I want to put \a and \b in a line, centered and separated by a \quad. \hfil\a\quad\b\hfil Problem: ...
2
votes
1answer
48 views

Aligning the rightarrows in latex [duplicate]

How to align all the $\rightarrow$s so that that all come in a line and not in a zig zag manner? The MWE: \documentclass{article} \usepackage[english]{babel} \begin{document} \begin{enumerate} \item ...
5
votes
5answers
217 views

How to align decimal points when using cases statement

I have a statement like \begin{equations*} \begin{cases} {\zeta}_{A} = -10.1234567 \cdots, \\ {\zeta}_{B} = 1{,}001.2345678 \cdots. \end{cases} \end{equations*} How do I align the decimal points ...
2
votes
1answer
124 views

Centering TikZ picture inside poster box

I would like to center a tikzpicture inside a posterbox (baposter) \headerbox{Vorgehensweise}{name=definitions,column=3,below=problem,span=3}{ \usetikzlibrary{shapes.geometric, ...
2
votes
1answer
38 views

LaTeX Multiple Table Alignment Horizontally and Vertically

I am trying to align multiple table and tried in several different ways, unfortunately none of them works. Here i have attached a sample code for your perusal. Will you please suggest me how to get ...
2
votes
1answer
62 views

Can't center or “enter” (in the right column) inside a two- (or more-) column translation-tabular

This article is a follow-up of my old post: Drawing a vertical line inside a tabular or inside the parallel package (and how to expand parallel to have more than 2 columns. Still, it seems impossible ...
2
votes
2answers
110 views

When I type the following code, the table comes above the question. How can I make it appear below the question?

\begin{question} Calculate the reverberation time of hall of 1500 \si{m^3} volume having a seating capacity for 120 persons when \\ (i) when the hall is empty \\ (ii) with full capacity audience \\ ...
4
votes
2answers
61 views

IEEE tran: How to left justify Single column headings in Lyx

I'm using LyX and have created an IEEE tran document. It says in the documentation that in order to make the document single column all one has to do is add the following to the class option: ...
2
votes
1answer
59 views

Aligning header to the right in ConTeXt

I am typesetting a novel in ConTeXt and one of the things I was in need was a way of typesetting headers for scenes. A scene as I understand it, is simply a couple of lines which separate paragraphs, ...
4
votes
1answer
52 views

Why doesn't \begin{center} center my LaTeX?

Why doesn't this print out centered? \begin{center} \begin{pmatrix}\mu_{G_i, S}\\ \mu_{G_j, S} \end{pmatrix} &\sim N \begin{bmatrix} \begin{pmatrix} 0\\ 0 ...
3
votes
2answers
58 views

Error \centering with \multicolumn

\documentclass[a4paper,10pt]{report} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{multirow} \begin{document} \begin{table}[ht!] \caption[Structural properties of $5$ networks ...
5
votes
1answer
91 views

Logarithmic bar plot

I'm currently trying to create a diagram, with a logarithmic scale on y axis. This mostly works, except that the value of nodes near coords is wrong. Without ymode=log it shows e.g. 20551 as label. ...
2
votes
2answers
45 views

tikzpicture and array side by side in subfigure won't align

I am trying to align side by side a tikzpicture (an image of a network) and an array (a matrix) but no matter what I do they wont align properly. Two arrays side by side and two tikzpictures side by ...
3
votes
2answers
142 views

Two logos and text in the footer

I'm trying to put two images and some text in my document footer, all aligned side by side with the page number, something like this: I could get to the basics using fancyhdr, but it obviously ...
2
votes
2answers
72 views

Insert a picture of my signature right under my name to the right

I have the following document as follows. I need two adjustments. I need signature in print and signature as a picture on the right hand side of the page (which is on the left as it stands now). ...
3
votes
1answer
41 views

Removing extra space in alignat

I have two little problems with the alignment here: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{6} \Phi \left(\sum\limits_{m\in M}r_m\delta _m + \sum\limits_{m\in ...
6
votes
3answers
135 views

No hyphenation in TOC entries, please

I have some very long section titles and do not want their entries in the TOC to be hyphenated. \documentclass{scrreprt} %\usepackage[ngerman]{babel} \usepackage{tocloft} ...
7
votes
3answers
133 views

Reposition Text around Images

So I'm trying to work on a visual layout for a kind of Xmas card. The idea is to have a pictures in the upper left and lower right corners with the family name and date centered in the upper right ...
5
votes
3answers
53 views

Array environment cell over two rows keeping alignment

I am trying to span braces over two rows while keeping the aligment in the following example correct alignment in this case the alignment is correct. I think I am nearly there, any help would be ...
1
vote
1answer
31 views

Missing } inserted \end{center} i got this error while running following code

\documentclass[a4paper,12pt]{report} \usepackage{graphicx} \begin{document} \begin{center} {\normalsize{A Dissertation on}}\\ \renewcommand{\baselinestretch}{1.1} \vspace{5mm} {\Large\bf ...
3
votes
1answer
93 views

Aligning the \text in formula

I have, let's say, 5 of the equations spread throughout the document and I want them to be aligned similarly. The equation consist of two parts -- the formula itself and short descriptions (let's say ...
0
votes
0answers
14 views

Flush left equations in beamer column [duplicate]

When I do this in beamer: \begin{column}[T]{0.6\textwidth} \begin{equation} F = m a \end{equation} This is Newton's law. \end{column} the equation sits in the center of the column while the text ...
2
votes
3answers
67 views

Change row vertical alignment in a table

I am trying to produce a table that changes the vertical alignment of the cells for different rows. At the moment I have set up my table so that all the columns are middle and center aligned. However, ...
3
votes
1answer
43 views

problem centering table

I have tried many combinations for centering following table, but none seems to work... Help much appreciated.. \RequirePackage[l2tabu, orthodox]{nag} \documentclass[12pt]{article} ...
3
votes
2answers
70 views

Caption misalignment with minipage and adjustwidth

I'm trying to fit two over-sized figures side by side on one page. I tried using minipage and adjustwidth, but the caption on the second figure kept mis-aligning to the left, as shown below. I tried ...
4
votes
3answers
129 views

How may I align the following set of equations as represented in the image?

If IEEEeqnarray environment is not best-suited for this particular alignment, what could be the best environment to be used? \documentclass[11pt,a4paper]{article} \usepackage{blindtext} ...
4
votes
1answer
36 views

I want to decrease the indent to checkboxes in exam class

The indent to the checkbox is to big. I want it to be aligned with the first letter of the question. \documentclass[11pt,a4paper,addpoints]{exam} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
4
votes
2answers
4k views

Align comments in algorithm with package algorithm2e

I am using the package algorithm2e. When using comments like this \documentclass[11pt,a4paper,twoside,openright]{book} \usepackage[algochapter,linesnumbered,ruled,lined,boxed]{algorithm2e} ...
4
votes
1answer
36 views

Amsmath double line equation alignment centered

I need an equation that consists of three parts (or one equation including 3 equations in total), it should look like this: My code for now gives me the following: So I would like to have the two ...
3
votes
2answers
49 views

Caption shifted left with `\captionof` in a list environment

I use the \captionof command from the caption package within a list environment. I would expect the caption to be centered with respect to the page, or to move right because of the indentation of the ...
4
votes
3answers
56 views

Make use of makebox in custom environment

I am working on a custom environment, that might get larger as \textwidth (so \centering won't work), but should nevertheless be centered. I'm currently manually wrapping it with \makebox but would ...
1
vote
1answer
36 views

Cannot center tikz picture in tabular environment

Consider the following MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} \newcommand\addvmargin[1]{% \node[fit=(current bounding box),inner ysep=#1,inner ...
3
votes
2answers
67 views

LaTeX chord making

I'm making a ukulele songbook and i used this code to make chords rise above the text. but it makes a small space before the word (when you put chords above). Do you know how to fix it? ...
3
votes
3answers
57 views

Integer padding with something other than a zero

Consider the following example: \documentclass{article} \usepackage{siunitx,collcell} \sisetup{minimum-integer-digits=4} \begin{document} \begin{tabular}{S} {Header} \\ 1234 \\ 234 \\ 34 \\ 4 ...
3
votes
1answer
26 views

How may I left-align (horizontally) the phrase 'whence, by rules already established for monomials' of the following?

I would like my phrase shifted more towards left-hand-side. \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \usepackage{IEEEtrantools} ...
4
votes
2answers
188 views

How may I left-align (horizontally) the word 'Similarly' with the word 'This' in the following?

\documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation*} (a+b)(a+b)=a^{2}+2ab+b^{2}. \end{equation*} This may of course be written \begin{flalign*} ...
4
votes
2answers
34 views

Special alignment about split environment

I have some trouble in formatting my formula, so far I am able to get it look like this: What I want is this: Here is my MWE I am using split, I don't think I can use align because it will break ...
2
votes
2answers
41 views

Is it possible to use \underbrace across align* environment?

I have two sets of equations in an align* environment and they are all just how I want them, but I want to draw an underbrace from the left bottom equation to the right bottom equation, but it throws ...
9
votes
6answers
283 views

Center hyphen between words

I have to center '-' mark in each line and it should be in the same location of each line. How would I do that? \begin{flushleft} $I(b)$ - interrogating signal\\ $h_n$ -forward ross ...
4
votes
1answer
55 views

Aligning the LOT and LOF captions

I try to align the captions in the LOT and LOF flush left. I had to add a word before the table and figure numbers. After I added these I could not make it flush left as you can see here on the ...
7
votes
1answer
853 views

Nested columns in beamer

I would like to make an A0 poster using the beamerposter package. The poster content should appear in block environments, for which I need a flexible and clean layout handling. In particular, I need ...
3
votes
1answer
33 views

Beamer - multimedia package - movie centering not working for frame larger than `width=\textwidth`

I am trying to embed a movie in beamer using the multimedia packaged and I am having trouble centering it. I am setting the width=1.1\textwidth so the movie extends into the margins of the ...
8
votes
1answer
6k views

Multiline figure caption centering

How to center a figure caption that's too long for a single line? Or at least, make the text in other lines line-up with text after "Slika 1:". It currently looks like this
2
votes
1answer
59 views

How to add horizontal line for subtraction in array

I already have this: \documentclass{article} \usepackage{amsmath} \begin{document} $k:\left\{ \begin{array}{cccccc}x & = & -3+3\lambda & \Big| & 4 & \Big| \\ y & = & ...
21
votes
4answers
10k views

How to align table headers differently than all other table cells?

I'm using fixed-width columns with my table, and using both longtable and booktabs packages (as well as tabularx because of \newcolumntype command). In my table, I'll have lots of number data in ...
2
votes
1answer
94 views

How to Left-align first line in a paragraph, right-align others

I'm trying to typeset a song and for cases where one verse is longer than a line, I'd like to have the first line left-aligned and the second one right-aligned. Is there any way to achieve this ...
5
votes
1answer
114 views

Put a {forest} tree inside a {philex} enviromnent

I use the forestpackage to draw linguistic trees, and the linguexpackage to create numeric examples. But there seems to be a problem when I combine the two. The tree is not aligned with the number of ...
9
votes
1answer
151 views

How to center chapter, section an subsection using memoir?

I am trying to centre chapter, section and subsection using memoir, with the following code: \renewcommand{\chapnamefont}{\centering\normalfont} \renewcommand{\chapnumfont}{\centering\normalfont} ...