{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
10 views

\raggedright in footnotes with hanging indent

This answer to Layout of multiple lines footnotes shows how to get hanging indent in footnotes (extremely ugly if you ask me, but the editors want what the editors want). \documentclass{article} ...
1
vote
2answers
22 views

setting left margin in \itemize

I want to use \itemize to list several short paragraphs of prose designated (a),(b), (c) etc. The first line of each paragraph should be indented as usual, then the rest of the paragraph should be ...
2
votes
1answer
28 views

vertically and horizontally center content of complex tabu table

I'm having this MWE and want to horizontally and vertically center the x's in the last row (the numbers are for debugging purpose only). I've tried an appraoch with \newlength{\xlength} ...
2
votes
1answer
48 views

Alignment inside the table in tabular

I created a table, but the last column is moved to the left, although I set it as central. I cannot find what I am doing wrong, so if someone can suggest me how I can solve my problem I would be very ...
0
votes
1answer
32 views

How to keep {itemize} items in horizontal alignment? [on hold]

Like this ... *Item1 *Item2 *Item3 ...Assume (*) are bullets.
2
votes
3answers
70 views

Double hard carriage return does not generate indented paragraph after pasting text from Word. Any tips or workarounds?

I'm using ShareLaTeX and I have pasted some text from Word into the tool. In some of these sections I am noticing an issue when I compile to PDF. Even though a blank line exists in the LaTeX coding, ...
3
votes
2answers
68 views

horizontally align group of nodes with respect to coordinate

I have one node (or rather, a coordinate) and a couple of nodes which are aligned in one "row" (via right=of, left=of). They are aligned below each other (via below right=of), \documentclass{article} ...
3
votes
1answer
114 views

Center aligned group of equations based on ampersand

MWE: \documentclass[11pt,a4paper]{article} \usepackage{amsmath} \begin{document} aaa \vspace{17cm} \begin{align*} \centering (a+b)^3 &= (a+b)^2(a+b)\\ &=(a^2+2ab+b^2)(a+b)\\ ...
0
votes
0answers
24 views

empty space between words in a paragraph

I use the command below in the Thesis.tex file to prevent hyphenation at the end of every sentences in a paragraph/text. \tolerance=1 \emergencystretch=\maxdimen \hyphenpenalty=10000 \hbadness=10000 ...
2
votes
1answer
162 views

How to horizontal/vertical combine two math symbols?

This is an absolutely minor/cosmetic problem. I can e.g. use stackrel so combine two math-symbols vertically. This is nice for \stackrel{!}{=}. But how to do this horizontally? I want to combine (only ...
2
votes
1answer
85 views

How to align this block of text?

I have a problem. How can I put this text perfectly aligned on the right side, like the trying of the screenshot? Is there a smarter way? \noindent \hspace*{8cm} Artigo apresentado ao curso de ...
3
votes
2answers
64 views

How to automatically center images?

In a beamer-LaTeX document, I want to horizontally center all images, without specifying this explicitly in each case. I did the following: In the preamble I write: \let\oig\includegraphics % ...
1
vote
0answers
23 views

Text goes beyond paper marge [duplicate]

my problem is best illustrated in the picture below: the text won't center between the paper marge. I've used some commands from related problems on this website but nothing happens when I run it. The ...
2
votes
1answer
106 views

Put mbox on the right even if a newline is just before it

I want to write two words on the right of the page. sometext TWO WORDS so I put a \hfill just before and because I don't want any break in the two words, I use \mbox: sometext \hfill \mbox{TWO WORDS} ...
1
vote
2answers
86 views

A title is not centered

The title "Trigonometric Functions Evaluated at Negative Angles" is not centered. I issued the commands \begin{center} ... \end{center} and the command \begin{centering} ... \end{centering}. How can ...
1
vote
2answers
37 views

Control spacing within

I'm trying to build a small listing of terms with definitions. Below is a MWE. I want the items after the \indents to line up. \documentclass{article} \begin{document} FOV \indent Field of View A ...
3
votes
1answer
27 views

Characters are not flush left with \usepackage{droid} (but works with helvet)

I have observed that Michael\\ Awa\\ Hans\\ Jürgen\\ Thomas\\ Hans\\ Peter\\ will produce the expected result when using \usepackage{helvet} however, with \usepackage{droid} the leftmost ...
4
votes
1answer
30 views

Equation tag alignment inside enumerate

I am trying to align my tag to left margin. I've seen this answer, but it did not help me muh as I don't want to change the class to ams. I have a solution (the code below), but I wonder if there is a ...
0
votes
0answers
26 views

make tables be of same size with rest of the document

I have inserted some tables int my article but they are bigger than the rest of the text in the article is there a way i can balance the tables with the rest of the paragraphs? please help
0
votes
2answers
36 views

Centering longtable

I use longtable for some very long tables showing evaluation results. They look ok, but I have two problems with them: For some reason, I don't understand, the table seems to be too wide. When I sum ...
1
vote
1answer
59 views

Specify table in tabularx environment

I have some really specific requirements for my table's occurrence in my master's thesis (scrbook). I found some help in this forum but there is not "the" solution for me. Below you can see my actual ...
0
votes
1answer
39 views

Error in aligning text in bullet style

This is follow-up question from my previous OP. I want to format my article like the picture below: I create my document like this format and I put the above text in Chapter 2. Harish Kumar gave me ...
1
vote
0answers
18 views

How to align algorithm with text [duplicate]

I am using the algorithm2e package for a paper, and I am using it as follows: \usepackage[ruled,linesnumbered]{algorithm2e} Everything works OK, however, when I added the linesnumbered directive ...
3
votes
1answer
108 views

Aligning text in bullet style

I want to format my article like the picture below: Raw text: Before scientists can develop medicines or engineers can advance technology, they throw numbers onto whiteboards using concepts laid ...
0
votes
0answers
23 views

Using center twice on a page

I'm trying to use the \begin{center} command twice on the same page, but weirdly it's not working, the second time it gives trouble. When I take it away from the first time, then the other one does ...
1
vote
1answer
27 views

Using amsthm pushes the line below proofs, lemmas, etc. to the right

Like in this example \documentclass{report} \usepackage{amsthm} \newtheorem{theorem}{Theorem}[chapter] \begin{document} \begin{theorem} theorem \end{theorem} I want this line be unpushed ...
4
votes
2answers
128 views

Equations aligned center

The following code \begin{equation} \label{eq:test} \begin{aligned} A=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\ B=BBBBBBBBBBBBBBBB\\ C=CCCCC, D=DDDDDDD\\ E=EEEEE, F=FFFFFFF \end{aligned} ...
1
vote
1answer
20 views

Extending fullwidth into one margin

I'm working on a résumé which places section headers in a widened left margin. I'd like to use a fullwidth environment for the heading at the top of the page. Formally speaking, this would extend ...
4
votes
1answer
60 views

How to define a new left-aligned environment?

I am working on preparing a document in latex, and I need to define an new environment as follow: When the code is: \begin{IF} the sum of $a$, $b$, and $c$ is 10,\\ the product of $a$, ...
8
votes
4answers
534 views

Why is Latex giving this odd output?

This is my code. \documentclass{article} \begin{document} The substance used in this experiment is 1,1-diphenyl-2-picryl-hydrazyl (DPPH). This organic compound is a relatively stable free ...
2
votes
3answers
63 views

How to vertically and horizontally center a minipage

I tried centering horizontally using the "adjustwidth" environment, but unfortunately, it's not very accurate. Also my captions are not centered under my figures anymore. I have no idea how to use ...
3
votes
1answer
44 views

Centering trees

How can I centre a tree, moving it to the middle of the page, whilst keeping \ex. in its normal position? \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} ...
2
votes
1answer
45 views

How to align text vertically and horizontally in table cells of the same column?

I want to top align and right justify the text in all tabularx cells of a certain column. So far, I tried: \documentclass[a4paper,10pt]{article} ...
2
votes
1answer
23 views

Help with Chapter Headers Left-Aligning

I'm using the following code for the top of chapters which looks pretty cool: \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont\Large\raggedleft} {\MakeUppercase{\chaptertitlename}% ...
5
votes
1answer
115 views

How can I synchronize page-breaking text across columns?

tl;dr: Like footnotes, but on the side (easy part). These notes must be on the same page as their reference points, so the "main text" needs to break whenever the notes break. I'm trying to produce ...
4
votes
1answer
40 views

Prevent Hyphenation across lines + Enforce right margin

My first question here, so it may sound rambling. So far I've found the answers about preventing hyphenation across lines and for setting margins, but I'm having trouble putting it together. This is ...
4
votes
2answers
64 views

Move tag next to equation in align environment

It's my first time asking here but I have got so much help from this site :D My particular case is that I need order and tag Maxwell's equations but I need set the tag in a particular location, just ...
2
votes
2answers
26 views

Left margins are different for longtable and tabular

I would like to use a tabular and a longtable in my document, but the left margins are not aligned. \documentclass[letterpaper,11pt]{article} \usepackage{longtable} \begin{document} ...
4
votes
2answers
83 views

Centering sections

I would like to use titlesec to center my sections as follows (MWE): \documentclass[10pt,a4paper,twoside]{book} \usepackage[latin1]{inputenc} \usepackage{lipsum} \usepackage{titlesec} ...
2
votes
1answer
34 views

How to get rid of extra indentation before table in \extratile of class scrreprt?

If I use the following scrreprt document, the initial tabularx table is aligned with the left boundary of the text area: \documentclass[draft=true]{scrreprt} \usepackage{tabularx} ...
3
votes
3answers
81 views

Hanging brackets in an align environment

I have two formulas in an align environment, and the second one starts with a bracket (this particular example is simplified): \begin{align} & x_\alpha(s) x_\alpha(t) \\ & \left[ x_\alpha(s), ...
3
votes
1answer
21 views

Source of figure below caption is not centered when there are too many characters

I want my figure source to be part of the caption but in an new line, everything located below the figure and both of the lines should be centered. This works out perfectly as long as the caption ...
3
votes
1answer
36 views

Stairs-like multline

The multline environment alignes the first line to the left, the last one to the right, while all the lines in between are simply centered. The result sometimes looks not satisfying, for example, when ...
5
votes
2answers
104 views

How to align a listing like itemize on the left and some graphics on the right in latex?

I have an itemized list like this: \begin{itemize} \item[\Square] 1 \item[\Square] 2 \item[\Square] 3 \item[\Square] 4 \item[\Square] 5 \item[\Square] 6 \end{itemize} and a graphics like this: ...
2
votes
2answers
34 views

Create fancyhdr footer with something like: \lfoot{\centering{Centered to the left}}

How can I create a footer like this one? It appears to be text centered in the left half of the page, and in the right half of the page. I tried, eg., using fancyhdr with: \lfoot{\centering{some ...
1
vote
1answer
39 views

How to get subfigure alignment

I have a 3 figures and I am trying to put them on one line but I can't achieve that. Any help would be great. Here is my code: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{caption} ...
2
votes
1answer
41 views

Column in horizontal middle of page

I want to write a table with 3 columns. The second should be in the middle (horizontally) of the page. Thanks, Adrian.
1
vote
2answers
54 views

Right align using tabulary

I have the following table: \documentclass[a4paper,twoside,11pt,openany]{book} \usepackage[utf8]{inputenc} \usepackage[spanish,english]{babel} \usepackage{tabulary} \begin{document} \begin{table} ...
1
vote
0answers
33 views

Insert negative of \widthof into \hspace without defining a newlength

Following MWE does not work: \documentclass{article} \usepackage{calc} \newlength{\charwidth} \setlength{\charwidth}{\widthof{$-$}} \begin{document} \centering $\infty$ \centering ...
3
votes
2answers
40 views

How to have a figure with multiple groups of image and each image with individual name?

I have several images and I must put their names below them. Moreover, I need to give the name of the group of that images too (for example, "first layer", "second layer" ect as show below). I need to ...