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

3
votes
3answers
152 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\\ p^{(...
2
votes
1answer
35 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
38 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 ...
3
votes
1answer
61 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
26 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} \begin{longtable}{|m{33.19mm}|m{43.51mm}...
2
votes
3answers
71 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
64 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 \...
5
votes
1answer
106 views

Pass part of halign body as an argument to macro (previously AMS align and its groups)

I originally thought this had to do with the align environment but I discovered it's a feature of \halign, hence the major edit. When inside a tabular environment or simple halign, I need to be able ...
3
votes
1answer
66 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
26 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
73 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
44 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. ...
2
votes
1answer
24 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
64 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} \usepackage{...
3
votes
0answers
46 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
81 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
46 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
40 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
104 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
180 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
31 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
37 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
195 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
43 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
59 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} \BinaryInfC{...
2
votes
1answer
35 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
59 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
1answer
28 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
71 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
41 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? \documentclass[twoside,10pt]{...
2
votes
1answer
43 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] \...
2
votes
1answer
58 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
41 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
35 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
79 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
30 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 ...
0
votes
1answer
38 views

Fully justified LTR paragraphs in XePersian

I am using XePersian to write a report in Persian, which must include an English abstract at the end. I currently use \lr{} for each paragraph: \flushleft \begin{abstract} \lr{Abstract in English -...
2
votes
2answers
69 views

How to set latex table columns from the rightmost margin?

I want to display a table in latex. Currently I have the following situation. \usepackage{array} \newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}} \begin{table}[h!] \begin{tabularx}{0.45\...
4
votes
1answer
58 views

TikZ: only align part of a node

I've got two nodes connected by a path, the path is lettered using one node above and another one below. The lower one consists of three lines. Right now the lower node doesn't look well, because ...
4
votes
1answer
60 views

how can I center a tikzpicture?

I was looking for the way to center in the page the following tikzpicture (I am using Overleaf). However I cannot get it, It is shown moved to the right part... any ideas?? \documentclass{article} ...
1
vote
0answers
21 views

How can I align the section title to the left and change equation label?

I want to align the section title to the left, however, LaTeX keeps it at the center. Also, I would like to label the equation as (Eq. 1), but LaTeX calls it (0.1). This is the piece of code that I'...
0
votes
1answer
40 views

Authors with log affiliations IEEE

I'm relatively new in this LaTex thing. I'm unable to align 4 authors because the affiliations are too big. I saw some answers like using IEEEtran document class -- how to align multiple rows of ...
2
votes
2answers
32 views

How to align on right if there was a linebreak right before?

Consider this MWE \documentclass[a4paper]{article} \usepackage[top=1in, bottom=1.25in, left=1.25in, right=1.25in]{geometry} \usepackage{enumerate} \usepackage[ngerman]{babel} \usepackage{ifthen} % ...
3
votes
2answers
90 views

Centre on decimal when brackets present

I have a table column where I'm centring all the numbers on the decimal using dcolumn and I'm finding that if a number is in brackets and no decimal point is present then it will align on the right ...
5
votes
1answer
129 views

How do I center this long circuit?

I am having difficulty centering this long circuit. I scaled it so it would not go off the page but I have been unable to find a way to center it. I tried adapting the solutions used in this related ...
2
votes
0answers
41 views

Bullet and alignment issue in itemize environment [closed]

Itemize environment under the macro is not showing bullet. It's showing dash. Also, there is an issue with horizontal alignment. It's not aligned properly. I already fixed with by using \begin{itemize}...
4
votes
4answers
149 views

How to horizontally align two or more random places of a document?

I would like to find a way to horizontally align any two or more random places of my document (but probably on the same page or not too far from each other). It's a bit like the second column of a ...