{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
4answers
50 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} ...
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. ...
2
votes
1answer
48 views

Align unnumbered and numbered chapters

I'm using the ERDC template and when I make an unnumbered chapter (\chapter*) it doesn't align with the numbered chapter on the next page. Cant identify any custom format in the ERDC cls code. erdc ...
1
vote
1answer
13 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
0answers
31 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 ...
3
votes
2answers
35 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? ...
2
votes
1answer
68 views

How to align something to the paper diagonal [closed]

I drew a very large proof tree using bussproofs. Now, it does not fit on the page in either horizontal or vertical alignment, but it would fit on the page if I could align it to the diagonal of the ...
4
votes
1answer
67 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 ...
2
votes
1answer
101 views

Can't justify text

Let's say we have following code: \documentclass[a4paper,14pt,final,draft]{extreport} \usepackage[left=3cm,top=2.0cm,right=1.5cm,bottom=2.7cm]{geometry} \usepackage{changepage} ...
1
vote
2answers
27 views

Create vertical line by calculating length of a text

Line 1: "Someeeeeeeee Textttttttttttt" (custom font is used, italics,font size say 24) hspace(10mm) Line 2: "Someeee Textttt" This should be centered below line one wrt to text above. hspace(10mm) ...
1
vote
1answer
16 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 ...
7
votes
2answers
67 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 ...
16
votes
2answers
1k views

\raggedouter to typeset marginal text in twoside book

We used the following code fragment using the changepage package: \newcommand{\raggedouter}{% \checkoddpage% \ifoddpage% \RaggedRight% \else% \RaggedLeft% ...
4
votes
5answers
177 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
22 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 ...
13
votes
3answers
12k views

Justify text inside itemize environment with beamer class

I would like to justify text inside an itemize environment with the beamer class. Text appears to be justified by default with the article class, but not with the beamer class. The following code ...
1
vote
1answer
23 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 ...
0
votes
1answer
26 views

Justify left and right inside example environment

I use the "Numbered Examples (multiline)" environment in a LyX document (class : Book (Standard Class)). The text is not fully justified (it is not right justified) in the examples. Is there a way to ...
1
vote
1answer
37 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
30 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
4answers
361 views

multi-column row in align environment

I would like to be able to use multicolumn inside an align environment, much like we can do in a tabular environment MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} ...
2
votes
1answer
23 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
43 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 ...
1
vote
1answer
69 views

Is there a way to switch columns in paracol without introducing a paragraph break in the pre-switch column?

(M)WE: \documentclass{memoir} \usepackage[margin=1in]{geometry} \usepackage{paracol} \begin{document} \newcommand{\switchtoleft}{\switchcolumn[0]} ...
3
votes
1answer
44 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
34 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
30 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
1answer
84 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 ...
2
votes
1answer
36 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} ...
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 ...
3
votes
2answers
30 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 ...
0
votes
1answer
34 views

Split justified text between two pages with longtabu

I would ask how to split justified text between two different pages using longtabu. For now, if a single row exceed the space of the page, the entire text will be printed in the next page, leaving a ...
0
votes
0answers
24 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} ...
0
votes
1answer
24 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 ...
1
vote
1answer
27 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 ...
2
votes
2answers
48 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!] ...
4
votes
1answer
46 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
56 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
20 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 ...
2
votes
2answers
31 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
83 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 ...
4
votes
4answers
142 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 ...
1
vote
1answer
181 views

How to correctly align bibitems

I am using the thebibliography environment. In addition I use custom labels, which are different in length. How do I align my bibitems correctly, so that all bib entries vertically start at the ...
5
votes
1answer
117 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
35 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 ...
1
vote
1answer
29 views

How to align various parts of the title?

I am attempting to recreate the following title look, from scratch Here is my attempt so far: \documentclass[paper=A4, fontsize =11pt ]{scrartcl} % A4 Paper and 11pt font size ...
2
votes
2answers
200 views

Align math to the left

I need to align math to the left. I tried to add [fleqn] option to the \documentclass command - it works but now all equations in the document are aligned to the left which isn't what I want. My ...
2
votes
2answers
70 views

ACM Proceedings overlapping email

I'm writing a paper for a paper that uses the ACM Conference Proceedings class acm_proc_article-sp.cls. I have five authors, and all of our emails seem to be sufficiently long that they overlap in the ...
2
votes
0answers
51 views

h/v centering in tabular

I'm trying to get my cells in a tabular environment horizontally and vertically centered. MWE to be found at the end. I tried different orientations: c, which does what it is supposed to, as well as ...