{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
36 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 ...
16
votes
1answer
8k views

Center-align the verbatim environment

I am trying to center align the content of a figure that has verbatim text in it. But the verbatim text is always right-aligned: \begin{figure} \centering \begin{verbatim} some text here ...
1
vote
2answers
25 views

How can I align lines to the right except the first in a multiple line equation?

I have always tried to achieve this but after a few tries decided to skip and concentrate on writing instead of solving it. I am using align environment and trying to align the multiple lined ...
4
votes
1answer
54 views

If figures are placed left, left-aligned captions are unwantedly centered (ConTeXt)

What I try to do: I want to place figures left so that text wraps around them if they have less width than \textwidth. The figure captions should be aligned left (flushleft). What happens: The ...
2
votes
1answer
23 views

Left-align equations not working

I am trying to left-align some equations so they line up nicely. I'm using align with [fleqn] per this question and setlength per this question. But it doesn't seem to have worked. I tried the fleqn ...
0
votes
1answer
21 views

How to center text not including hyphen?

The title of the book placed on the spine needs to be centered. The title includes hyphen - according to Czech standards, the hyphen should be placed also in front of the second word (f.e. in ...
3
votes
2answers
32 views

How to make a caption (table and figure) left justified

How do I make my captions both for table and figures left aligned. I tried using \usepackage[justification=justified,singlelinecheck=false]{caption}. But the caption is aligned with the page and not ...
4
votes
1answer
72 views

Column alignment in tikzcd

I am not sure whether this is possible or not. I would like to have some control on the horizontal alignment of columns in tikzcd. In particular I would like to be able to mimic (on some of my ...
1
vote
1answer
20 views

How to right-align section numbering in a memoir Table of Contents?

I'd like to right-align the section numbers in the Table of Contents of a memoir document. I'm already using some tocloft features and figured it would have this feature, but I can't seem to find it. ...
3
votes
2answers
104 views

How to get a horizontal line that is aligned at the bottom of a fraction?

$\frac{18e-12}{10}=\rule{5cm}{1pt}$ gives How do I get something that likes this Thanks.
3
votes
2answers
29 views

Subfigures are right aligned

If I use subfigures to align two images side-by-side, these are right aligned. I tried several things but doesn't change anything. My current markup looks like this: \usepackage{subfigure} ... ...
2
votes
1answer
39 views

Fraction As Power: Alignment Problem (With Subscript)

I am trying to write an equation with the following code: \begin{align} p_{e,i}(k)=\frac{4}{b_{i}(k)} \left(1-2^-\frac{b_{i}(k)}{2}\right)Q \left( \sqrt{\frac{3\ ...
2
votes
1answer
28 views

Hphantom of minus sign in math mode

I would like to align the parenthesis in following two equations using \hphantom \documentclass[varwidth]{standalone} \begin{document} \noindent $d\cdot i\hphantom{j}\qquad\hphantom{-}\;(\ldots)$\\ ...
3
votes
1answer
37 views

How to make a lilypond snippet fully justified (according to surrounding text)?

My issue I have a lilypond snippet (i.e. some music staffs) embedded within a document containing text. My question: How to make the snippet justified, i.e. that its size matches the \textwidth? ...
3
votes
1answer
29 views

Is it possible to insert a non-aligned line in gb4e?

I'm using gb4e for my linguistics examples. Is there any way to have one line that is not vertically aligned before the \gll or \glll line? I'd like to write a line of phonetic transcription (i.e. ...
1
vote
1answer
42 views

How to patch a starred environment

I would like to translate my approach to center all figure environments to figure* environments. How? \documentclass[peerreview]{ieeetran} \usepackage{xpatch} % ...
0
votes
2answers
23 views

How to center section when using \titleformat{\section}?

I decided to use \usepackage[center]{titlesec} in order to center my sections, but I don't want them displaying the chapter/section numbering in the chapter/section headings so I applied the ...
3
votes
1answer
788 views

Centering the frontpage using memoir

I'm using memoir (two-side layout). I have the problem that my front page is centered with respect to the margins, which are not equal in left and right side. \begin{center} will not solve this, since ...
20
votes
1answer
48k views

How to center a specific caption?

I'm having a problem with centering my figure captions. Particuarly, I know that we can use \usepackage[justification=centering]{caption} to center captions, however, I'm interested in just centering ...
4
votes
1answer
44 views

Breaking equations with different alignments

Suppose I have an equation which is too long for one line and I would like to split it over two lines. However, I would like the first line to be left-aligned and the second to be right-aligned w.r.t. ...
2
votes
1answer
60 views

Create a table with tabu

I am trying to create a table which has a header with the text centred horizontally and vertically. The text in the first column (except for the header row) should be written vertically. So far I have ...
4
votes
1answer
92 views

Remove jumping of equation between slides

How can i remove jumping of equation between slides? I would like that the \leq, \geq are on both slides at the same position even if the variables change. \documentclass{beamer} ...
2
votes
1answer
34 views

Alignment of \dotfill or \(c/x)leaders to page numbers wtih different amount of digits

I need to create something similar to Table of Contents manually. For that I need dot leaders to go from text of the "chapter" to page number of this "chapter". I tried to use either \dotfill, ...
25
votes
4answers
41k views

making a table fit on a page by moving it left

I have a table where the last columns fall off the page. Instead of making the text smaller I would like the table to not adhere to the margin of where it begins. I would like to move it to the left. ...
1
vote
0answers
53 views

PGFPlots generates extra margin with restricted x axis and two y coordinates in standalone class

I noticed that there are cases where pgfplots package makes undesirable (to me at least) margins. The conditions I've found is as follows: use standalone class use y coordinate on the right side ...
4
votes
1answer
40 views

Align equal sign in algorithm in vertical line

The Code described in [1] produces the following output : For the description of my algorithm I need the equal signs to be perfectly aligned in one vertical line but currently there is still a ...
7
votes
2answers
31 views

How to put horizontal space between two side by side figures, then automatically scale the pictures to that new width?

I've been working on how to put side by side figures with captions for a book but haven't managed to find a way to put a horizontal space in between the two figures. There has been some troubles ever ...
4
votes
0answers
52 views

Cannot center pdf image [duplicate]

I'm using sharelatex and pdflatex as a compiler. I am using the memoir class. (It's for a book.) At first I used .png images but the compiler always took too long so I converted all my image files to ...
3
votes
1answer
32 views

Right align a line in align-environment

Searching the website I found plenty of similarly related questions, such as this, this or this one. Nevertheless none of the answers to the questions I found so far addressed precisely this issue. ...
3
votes
3answers
1k views

Aligning subfigures both horizontally and vertically with memoir

I'm trying to place 4 subfigures of different sizes aligned. Here the box-k.pdf files contain boxes with marks at the midsides. The result has box-1 and box-3 aligned at the left margin, not centered ...
1
vote
1answer
48 views

How to align 2 tikzpictures, functions in 1 line with captions?

I need to place both of these funcionts in 1 line, side by side with caption beneith, I tried all options, and to combine them, nothing worked. When I try to use minipage to divide 1 line to two ...
3
votes
1answer
31 views

Different alignment of labels in enumerate

Consider the following: Code \documentclass{article} \usepackage{multicol} \usepackage{enumitem} % found somewhere on TeX.SX (can't remember where) \makeatletter ...
1
vote
2answers
38 views

Align centered wiith dcolumn when \multicolumn used

When \multicolumn is used in dcolumn, then there is misalignment in text and the heading. See the figure for more details. \documentclass[12pt,oneside]{report} \usepackage{amsmath} ...
4
votes
1answer
39 views

Center caption in standalone documentclass

I would like to know how I can go about automatically centering the plots subcaptions in the standalone environment. This is what I would like: Here is my code: ...
3
votes
1answer
24 views

Centering text in aligned environment

How can I center the text between the inequalities? ATM it seems that they are right-aligned. \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{aligned} 15 ...
3
votes
1answer
36 views

Spacing in 2x2 images

I'm trying to embed 4 images as a 2x2-grid in my LaTeX-Document. The insertion works so far, here's a minimum working example and it's result: \documentclass[oneside,12pt,pointednumbers]{scrartcl} ...
1
vote
0answers
36 views

How set margins to print when pdf files are inserted?

I am using book style to prepare a meterial(which has to be printed and binded) which contains so many pdf files.. To include the pdf files I am using \includepdf options by using the package ...
4
votes
3answers
116 views

Need \qedhere to be flush with the right margin in cases environment

How can I do this? When I put \qedhere in cases environment, the square is between the margins somewhere. It is not where the square appears in the usual proof environment, at the right margin. ...
3
votes
1answer
54 views

Aligning node with respect to two other nodes in tikz block diagram

I use left of and below of arguments to horizontally and vertically align blocks/nodes in Tikz. How do I align a node/block both vertically and horizontally with respect to two already defined ...
1
vote
1answer
43 views

How to number and centralize the heading “reference”

In line with journal format, I want my "Reference" heading numbered as a section on its own. The number should follow that of "Acknowledgement" which I have numbered as 8. Now it remains to number ...
2
votes
1answer
90 views

How to fix the space between “Figure” and “5” in “Figure 5:” in figure caption?

I use this solution to get captions for my figures at the side, which works really fine. But sometimes, if the word behind "Figure xyz:" is too long for the line, I get something like this: How can ...
4
votes
4answers
125 views

Center the text in whole page

I have just a single line on one page. I want to bring it on the center of page both through length and breadth. How can it be done?
3
votes
2answers
47 views

Centering table and its catption as well as justifying caption which spans multiple lines

I wonder how to center table and its catption as well as justifying caption which spans multiple lines. Below is MWE. Any help will be highly appreciated. Thanks \documentclass{article} ...
1
vote
0answers
32 views

Put footnotes in a column

i have a two columns text in an a4 article. In one column i want to have the text and in the other (left) column i want to have the footnotes for that text. Is there a way to do it? thanks
1
vote
0answers
42 views

Flush items to the right in enumerate, itemize, etc

is there some way to make the items in enumerate, itemize, and similar environments right aligned instead of left aligned. I'm thinking sort of like what the equation environment does automatically ...
3
votes
1answer
188 views

Centering bibliography title in biblatex - tried every suggestion on Google

I know this question has answers on this site already, but none of them worked! I am using biblatex with the historian style for my history day paper. My teacher requires the bibliography heading be ...
1
vote
0answers
47 views

Centering of equations in classicthesis style [closed]

I'm using the classicthesis package. Unlike math in $$, an equation is not centered: \begin{equation} mod(\zeta, G) := \sum_{C \in \zeta} \left ( \frac{\omega(C)}{\omega(E)} - \frac{vol(C)^2}{4 ...
0
votes
0answers
33 views

Centering of footer with custom margins

The problem I encouter is that whenever I change the margins of my tex document, the footer does not remain centered. My tex code is the following: \documentclass[11pt]{article} ...
2
votes
1answer
112 views

How to correctly indent a paragraph

I want to indent a paragraph so that each new line of it starts from the same position as shown below: line 1 line 2 line 3 The LaTeX code below generates paragraph indented as follows: line ...
2
votes
1answer
38 views

How to horizontally center a vbox

I am using the MIT Thesis templates to write my thesis. I have created my own document class (that reflects the needs of the university I'm studying at) based on the mitthesis.cls version. Since it ...