{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
1answer
43 views

Place tables in the middle of the page

I have two tables, table1 and table 2. I want table 1 in the middle of page 1, table 2 in the middle of page 2. First, I tried, \begin{table}[htbp] \input{table1} \end{table} ...
4
votes
1answer
44 views

Graph shifts position when adding plot

If I compile this code without the Gaussian function at the end everything is allright, but if I try with it the whole figure shifts to the right. In this example it is not a very big problem, but ...
2
votes
2answers
35 views

How can I get a TABLE to respect the narrower environment in ConTeXt?

The narrower environment in ConTeXt is very useful, but TABLEs misbehave inside of it. I would expect a TABLE in a narrower environment to align with the new margin, but instead, the TABLE is aligned ...
6
votes
3answers
193 views

How to do the linear program in format

How to get this format? I want to get this strictly. Thanks for the answer in advance. Here it is my code \begin{alignat*}{9} \hspace{30 mm}\text{maximize } & \sum_{i=1}^N d_i U_i ...
0
votes
1answer
72 views

How can I format this formula? [on hold]

I am new to LaTeX. How to write this formula in a proper format as an algorithm? I cannot write this formula in proper format: if (some condition) P=P+(W$i$*((W-P)/W$i$)) end
5
votes
4answers
163 views

How to align the equations?

I hope to align equations as shown here: I used this code: \begin{align*} \displaystyle {eq1} &\Longleftrightarrow& \displaystyle {eq2} \\\\ \displaystyle {eq3} ...
2
votes
1answer
27 views

How to get proper spacing with \documentclass{scrartcl}

I would really like to use this cv template, but the problem it has is that the sentences don't fill up the entire space as illustred by this screenshot To clarify, the middle sentence clearly ...
3
votes
1answer
35 views

Large multiline equation alignment

I have the following latex code: \begin{equation*} \begin{split} Vect =& ...
4
votes
2answers
101 views

Aligning combination of numbers and parentheses in siunitx table

I have this table and would like to align the columns by the parentheses. Note that I want to have both the number and the percentages (in parentheses) in one column. Input ...
0
votes
1answer
26 views

How to write in proper format of this code

I want to get the right hand side portion in a format. Here the format. Table[i, j] <-maximum { Table[i-1, j] AND Values[i] + Table[i-1, j – ...
0
votes
1answer
76 views

Beamer frame title manually change vertical and horizontal position

I am trying to change the vertical and horizontal positions of my frame titles and subtitles. So far I am using \setbeamertemplate{frametitle}[default][center] but I would like more control. Is it ...
3
votes
1answer
29 views

List of authors to the right, as a signature

I am currently making the last adjustments to my groups BSc thesis and I am writing the acknowledgement. Currently it looks like: Title A lot of text. ...
3
votes
3answers
138 views

Align Matrix (Vector) on latex

I am trying to align the entries of this vector to the left. Could you help me please? Below is my code and next the result. P=\left(\begin{matrix} p^{(1)}(x_1,x_2,\cdots,x_{r_1}) \\ \vdots\\ ...
2
votes
1answer
29 views

TOC - Horizontal Alignment

My currente TOC is looking like this: And here is a code sample: \documentclass[]{article} \usepackage[latin1]{inputenc} \usepackage{tocloft} %pacote para editar ToC \usepackage{titlesec} %pacote ...
1
vote
0answers
32 views

Horizontal placement of superscripts (Math mode, LaTeX)

Is there any way to adjust the horizontal placement of a superscripted character? In particular, whenever I have a character that also has a subscript, the superscript ends up directly above the ...
2
votes
0answers
45 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 ...
2
votes
2answers
25 views

removing spaces and cleaning table in latex

how to remove the spaces which i think from automatic justification in table \documentclass{article} \usepackage{array} \usepackage{longtable} \begin{document} ...
2
votes
3answers
62 views

Alignment in tables using siunitx

I am using the siunitx package to align some numbers in a table. See below for preamble \documentclass[12pt]{report} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage{booktabs} ...
0
votes
1answer
61 views

undefined control sequence }

l can't figure out the error. The error is after \end{minipage}. Is it a problem of brackets? \begin{figure}[!ht] \hspace*{-2cm} \centering { \fbox{ \begin{minipage}[t]{150mm} \footnotesize ...
3
votes
1answer
60 views

How to right align text relative to the word above?

I use exsheets to generate some exercise papers. The layout looks like this: first comes the word EXERCISE under the word EXERCISE are the exercises, which are numbered within the section I would ...
2
votes
2answers
23 views

Vertical alignment trouble between text and equation inserted in two \longtable cells

I have a horizontal table, made with \longtable, with two cells: in the left cell there is text, and the right cell contains an equation I implemented with the \alignat command. If I use the attached ...
2
votes
2answers
43 views

vertical centering in tabular using array and booktabs

In the following school timetable for my 4 kids I am trying to use array and the m{} command (vertical align middle) to get the word Peter to be vertically aligned in its cell, (at the cmidrule), ...
5
votes
2answers
43 views

Put math at the end of display

I'm trying to emulate the following behaviour i.e. the $(r \in \mathcal N)$ at the end of the line. I'd like to know how to do this in \[ \], equation and align environments. I'm using amsart. ...
1
vote
1answer
15 views

Setting chapquote, formatting

How could I align author completely to the right? Or even better, could you show me which commands to play with? I have this in preamble: \makeatletter ...
2
votes
4answers
54 views

Horizontal centering in table - alternative to array package

I am very new to LaTex and I am having some problems with centering values in a table. I have created the table as below. \documentclass[11pt. oneside]{article} \usepackage{makecell} ...
3
votes
0answers
37 views

How to justify escaped proportional text inside monospaced/fixed listing?

I have a fixed column listing on which I have escapped to LaTeX to write a proportional bit of text. The following pic illustrates what I have: On the green box, the proportional text have ...
4
votes
1answer
71 views

Pathching \raggedright to solution environment does not work in exam class

Consider the MWE given below. I am trying to patch the solution environment with \raggedright. But it does not seem to work. However, when an explicit \raggedright is issued at the start of the same ...
3
votes
2answers
39 views

Center Image to Page Inside Enumerate

I am trying to post an image inside an enumerated list but the left margin it starts with is the indented margin from enumerate. Is there any way to ignore that without having to break the enumerate? ...
1
vote
1answer
18 views

amsmath left- and right aligned Formulas in one line [duplicate]

I thought this would be a common problem, but I can't find any satisfying answer to this. I am using the amsmath package. Using the align environment is helpful for separating the two expressions, but ...
1
vote
2answers
38 views

Create vertical line by calculating length of a text

Line 1: "Someeeeeeeee Textttttttttttt" (custom font is used, italics,font size say 24) vspace(10mm) Line 2: "Someeee Textttt" This should be centered below line one wrt to text above. vspace(10mm) ...
7
votes
2answers
81 views

Chapter, section, etc. numbers on left margin, aligned left

In the memoir class, the "hangnum" chapterstyle puts the section numbers on the left margin, aligned right. How do I change it so that it is aligned left? Here's an MWE with the original definition ...
4
votes
5answers
178 views

Alignment of the sentences

Has someone idea how I can align the sentences? For instance: Step 2. Find the best sequence of these two jobs by calculating the makespan of two alternative. I want to begin the ...
1
vote
1answer
29 views

Placing two different floats next to each other (independent, float-specific captions)

I have two floats, a figure and an algorithm (new floating environment). I want then to be placed next to each other each using half the linewidth (or 48%, or whatever looks the nicest). I have tried ...
1
vote
1answer
30 views

Problem with table spacing when aligning by decimal point?

Please see attached MWE and pdf. The problem seems to be with the column 'Test 1'? Any suggestions would be very much appreciated, I have tried altering each variable but I cannot work out where the ...
7
votes
4answers
149 views

Creating a right aligned signature block

I would like to create a signature block for the title page of my dissertation. A requirement is that the block must be aligned with the right side of the page. Within the block itself, everything ...
1
vote
1answer
38 views

Center-alignment in tabular in LaTeX

This is part of my code in TexStudio, I'm trying to center-align some text inside left-aligned table, but it doesn't work. The error is very strange, looks like Something's wrong - perhaps a missing ...
3
votes
2answers
38 views

How to align a prooftree left?

How to align a bussproofs prooftree left? \documentclass{article} \usepackage{bussproofs} \begin{document} \begin{prooftree} \LeftLabel{(Proof)} \AxiomC{A} \AxiomC{B} ...
2
votes
1answer
27 views

How to place two proof trees next to each other with a symbol in between?

I have to typeset a transformation rule for proof trees, created with the bussproofs package. What I need is an implication sign between two proof trees - aligned with the horizontal separation lines ...
1
vote
3answers
50 views

Can someone help me out with odd spacing in a multicolumn multirow table using siunitx?

I wanted to put my data in a multi column and multi row table, whilst aligning the entries by decimal point. For that I am using the package siunitx. There problem lies within the formatting of the ...
0
votes
0answers
18 views

Format Equation: Add information left of the equation number

I want to write an equation and put some additional information in the equation but left of the equation number, thus \tag{} does not work. Furthermore, I would like to have the description flushed ...
3
votes
1answer
50 views

Inverted pyramid caption, but table not centered

I have managed to hack together a solution to the perennial "My university requires inverted pyramid style captions" problem. However, it isn't complete. I can make the captions inverted pyramid, and ...
2
votes
1answer
38 views

How do I centre the text in this custom paper size example?

I try to use the Swedish G5 paper size (169x239)mm with text width 111mm, text height 165mm, side margins 29mm and top margin 37mm. Why doesn't the text get centred? ...
2
votes
1answer
36 views

Aligning captions of subfloat

I have a caption alignment problem for the captions of the subfloat. An example case: \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \begin{document} \begin{figure}[htb] ...
1
vote
0answers
38 views

Shift all floats on page horizontally

I would like to modify the way standard floats, like figure or table, appear on page by shifting them horizontally relative to the paragraph text, see the image below. To this end I have tried to ...
1
vote
0answers
9 views

alignment within algorithm environment [duplicate]

I would like to align some statements so that it's more pleasing to the eye. I have the following code, where the first version the two statements are not aligned. I use \phantom to force alignment ...
2
votes
1answer
37 views

How to center align some text which is outside and some text which is inside enumerate

How to center align part A(outside enumeration) and Part B(inside enumeration) ? \documentclass{article} \begin{document} \begin{center} Part A \end{center} \begin{enumerate} ...
3
votes
2answers
32 views

Center a fixed width text within a multicolumn

I am trying to make a table with the multicolumn package. I know that you can either align a cell with: \multicolumn{[# of columns]}{l, c or r}{[text]} Or you can set the width of said ...
1
vote
1answer
42 views

Latex multicolumn vertical center

I have been trying numerous ways to get the vertical centering on the Latex table I'm working on. But it always gives a horizontally centered yet vertically on top alignment. what can I do to make it ...
0
votes
0answers
25 views

How to apply `flushleft` to display style equations?

I was wondering, how can I flush left all the equations in my document? I mean, I already got the answer using \documentclass[twoside,letterpaper,10pt,fleqn]{article} \usepackage{amsmath} ...
1
vote
1answer
28 views

putting matrix & arrrow and image in one line

i am creating presentation in latex. I want to demonstrate the conversion from matrix to sth. Therefore, i want to create something like that; Matrix => an Image I know how to write matrix or ...