{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
2answers
54 views

How to increase the horizontal space in an array below?

\documentclass[preview,border=12pt,12pt]{standalone} \usepackage{mathtools} \newcommand\specifier{% r@{}r@{}l @{\quad}c@{\quad} r@{}r@{}l @{}c} ...
4
votes
3answers
83 views

Concerning the equation mode

I am listing a bunch of itens that are left-aligned (actually, I am using the \hspace command); then, for one of them, I need to do a definition by cases, so i'm using the equation mode and, inside ...
2
votes
2answers
86 views

The item in my title will not centre

I am trying to make a title page for a report, and everything comes out great, except for the one line (Lecturer:John Doe) that does not want to centre properly. My code: \title{ \normalfont ...
6
votes
2answers
80 views

\centering just a table instead of all text

I'm having problems with this my code because once I added the tables all the text following them was no longer justified. here is the code \begin{document} \chapter{1} \centering\large ...
6
votes
3answers
160 views

How to insert a picture without the name “figure”

I am trying to put a figure with a subtitle but without the name "figure". For example: 'This is a triangle' and not put the name "Figure": 'Figure: This is a triangle' I tried: 1. ...
1
vote
1answer
51 views

How to left-align text

How to left-align text into the second column? \documentclass{beamer} \begin{document} \begin{frame} \begin{columns} \column{4.7cm} \hspace{0.6cm} ...
2
votes
2answers
116 views

How to center an ellipse into a frame?

How to center an ellipse into a frame ? I've tried this but it wouldn't work : \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{frame} \begin{tikzpicture} ...
1
vote
1answer
55 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 ...
2
votes
0answers
130 views

How to draw “stacked blocks” with tikz?

I want to draw using tikz a figure which looks like the following: I started writing it using nodes and positioning them using right of =, above of = but I don't know how to avoid using hard coded ...
2
votes
1answer
80 views

Aligning item numbers in the table of contents

I am taking notes on a textbook, and want to mimic the style used in the book. I have gotten very close, and only have one minor issue left to fix. Consider the example below. The only thing that I ...
4
votes
2answers
205 views

Text is not centered

The issue is that the text is not getting centered even after issueing \centering. The following picture depicts it : The code: \documentclass[12pt]{book} \usepackage{wedn} ...
2
votes
2answers
78 views

enumerate in itemize environment, no new line [closed]

I want to have something looking like this: \item \item 1. 2 My intention is to have the first enumerated item in the same line as the itemize item. I read something about \leavemode, ...
4
votes
2answers
136 views

Align tikzpicture to body text with node as reference

In a example like the one below I would like to adjust the figure horizontally so that the grid aligns with the surrounding text and the y-axis and the label protrudes into the margin. Note that the ...
3
votes
1answer
112 views

Alignment of marginnote independently of main paragraph

I've noticed that when a \marginnote is added (edit: using the marginnote package), the horizontal alignment of that note is inherited from wherever the note is placed. In my case, I wish to have a ...
5
votes
2answers
174 views

Right align text in table

\begin{center} \begin{tabular}{|p{3.35cm}||p{5cm}|l|} \hline \thead{Område} & \thead{Positive konsekvenser} & \thead{Negative konsekvenser} \\ \hline \hline \textbf{Arbejdsfordeling} & ...
1
vote
2answers
98 views

Paragraph mode inside a math equation or reuse array-columns

My problem is that I want to reuse the spacing in a certain math equation like: \begin{equation} \begin{array}{l@{\hspace{3mm}}c@{\hspace{3mm}}l} ... & := & ... \\[4mm] & =: & ...
6
votes
1answer
117 views

Aligning and centering a lstlisting with two columns on a page

Consider the following code taken from here to produce a fancy listing : % PACKAGES \documentclass[11pt,a4paper]{book} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} ...
4
votes
3answers
159 views

Large equation goes out of margin, want to centre it? [duplicate]

I have a large equation \begin{document} \begin{gather} W = \frac{1}{2\mu_0}(\frac{\Psi'^2 \pi^2}{b^2} \sum_{m,n} a_{mn}^2 n^2 (ab/4) + \frac{\Psi'^2 \pi^2}{a^2} \sum_{m,n} a_{mn}^2 m^2 (ab/4) + ...
3
votes
3answers
71 views

Center text directly beneath a right-aligned heading

With LaTeX, how do I center text directly beneath a right-aligned heading? Maybe it's better explained with my attempt so far: \documentclass{article} \usepackage[ hmargin = 1in, vmargin = 1in ...
5
votes
1answer
69 views

Alignment of Arabic transcriptions - ʾ and ʿ

When typesetting linguistic examples with transcriptions of the Arabic letters hamza and ayn, ʾ and ʿ respectively, the alignment with the literal translation on the line below looks awkward. See ...
3
votes
1answer
68 views

How to align objects within a side bar in beamer

I'm using Beamer with the Marburg theme to create a presentation. I have a custom vertical navigation bar on the left side of the slides and I'd like to add the frame number as well as a small logo on ...
4
votes
2answers
198 views

Inconsistent size of a block causes 2 blocks to be misaligned

I'm creating a presentation using beamer and I've detected a slight size inconsistency of a block located in a second column or minipage. I want to align two blocks with the same amount of bullets ...
0
votes
1answer
38 views

Aligning defined section title correctly

This is a MWE of a section title I'm trying to define in a large project. \documentclass[a2,portrait]{a0poster} \usepackage{tikz} % Blue section, large, text on next line. ...
1
vote
1answer
42 views

Stretching text within a certain size box

I would like to stretch some text within a certain size box, say two inches (I'm not sure yet how large I want the box to be). I came across this example to stretch text across the entire page: ...
6
votes
3answers
222 views

How to horizonally align this table?

Is there a way to have a set (dynamic) spacing between the elements in this table without messing up horizontal alignment of the elements in the cell ? \documentclass{ltxdoc} \usepackage{geometry} ...
1
vote
1answer
77 views

How can I center this formula?

Here is my code: \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[chapter]{algorithm} \renewcommand{\baselinestretch}{1.5} \begin{document} \begin{spacing}{1.2} ...
1
vote
2answers
65 views

Centering content of table cell in LaTeX

\documentclass{article} \usepackage[a4paper,left=3cm,right=3cm,top=2cm,bottom=2cm]{geometry} % to fit both tables \usepackage{caption} \usepackage{array} ...
4
votes
1answer
42 views

Adjust indentation of the subsequent lines in description environment

How do I control the indentation of subsequent lines without affecting the other settings? That is, I want the spacing of the first three components to remain as is, but when the content of the line ...
1
vote
1answer
42 views

Troubles with \centerline for center a line of text in a two column document

I'm composing a two column document with the scrartclclass. I need to emphasize few sentences along the text with an special typographic highlight. I was trying with the \centerlinecommand but it ...
0
votes
1answer
48 views

Strange spacing when using lstlisting

I am trying to use the lstlisting package in order to show some code in my document. However, it aligns it to the right of the page, as opposed to left as expected. \begin{lstlisting}[frame=single] ...
1
vote
2answers
118 views

About the horizontal adjustment of \makebox[\textwidth][c] or [l] or [r]

I have been benefits from the post Center figure that is wider than \textwidth and the post Flushright or left of a long Table . I try to use this \makebox[\textwidth][c] or \makebox[\textwidth][l] ...
2
votes
2answers
63 views

Align columns correctly in multicolumn enviroment [duplicate]

I have the following table: \documentclass[a4paper,11pt]{report} \usepackage[english]{babel} \usepackage{booktabs} \begin{document} \begin{tabular}{|cc|ccc|} \hline ...
5
votes
2answers
113 views

Create longer arrows

I currently use two relation symbols as shown below. However, as I need to put in quite a bit of information above and, in the first case, also below the arrow, I'd like to have longer arrows. In my ...
3
votes
1answer
155 views

Justified text extending beyond margin

I'm having an issue with a document I've created. The text should be fully left and right justified, and for the most part it is. However, a couple times in the document, the text extends beyond the ...
2
votes
1answer
41 views

Formatting subequations where one of them is a piece-wise function

I have the following LaTeX code: \begin{subequations} \begin{align} F_h(t) = F(\Delta y) = \left\{ \begin{array}{lr} K_h (\Delta y)^{P_h} \; \text{if} \; \Delta y > ...
5
votes
1answer
896 views

center a table that uses resizebox

I create a table that I would like centered on the page horizontally. I scale the table size using \resizebox. However, doing so, left aligns the table. How do I center it? Here's a MWE: ...
4
votes
1answer
138 views

Using letterspacing for better justification

According to R. Bringhurst's "The Elements of Typographic Style" (version 3.1, 2004, pp. 190-192), the best justification is achieved by a combination of three methods: flexibly altering the space ...
17
votes
2answers
443 views

Stacked symbol doesn't align properly. Why?

A modified equals sign used represent use of L'Hopital's Rule isn't aligning well with other equals signs. How would I fix that? I'd prefer to do so without manually fiddling with spaces, if possible. ...
5
votes
3answers
214 views

center values in table in latex

I have a problem in the table I created using latex. The problem is that the values in the columns are not centered correctly. THe values with a minus sign in front just are further right than the ...
6
votes
3answers
220 views

A challenge: How to reorganize the horizontal hline in the Table

I have done this table: But I wish to have the left column with labels 1 in the Class, all join together into a single block. And similarly, I wish to have the left column with labels 2 in the ...
1
vote
2answers
139 views

How to align section heading left with revtex4-1

I am using revtex4-1 and section headings are aligned in the center. How do I modify this?
3
votes
1answer
55 views

Alignment of pictures and captions inside minipages

I need to display two pictures side by side any make them wider than textwidth. I read a solution to use something like the following and have successfully used it with pdf images: ...
2
votes
1answer
61 views

How do I properly center subtables?

I have three similar tables, one within its own figure and two as two subfigures within a second figure. The two subtables are off-center, despite being within the \centering environment. How can I ...
3
votes
2answers
92 views

Second align within first align environment with equation numbers

Is it possible to align the for statements here, without dropping the equation numbers? \hfill and && mess up the placement of the equation numbers for me. Edit: Picture of what I get ...
1
vote
1answer
66 views

Flushright or left of a long Table [duplicate]

I have a very long table that cannot be displayed on the page because it is too long and the right hand side of the table has been cutoff. How can I modify the \begin{center} to something else so ...
10
votes
4answers
200 views

putting two indices and exponents side to side

I did not find the answer to my following question on the web. I apologize in advance if this question has already been answered somewhere. I would like to write a matrix with the two subscripts and ...
4
votes
2answers
72 views

\hline does only go half the way I want it to go

If I compile the following code, I get a table that is placed very oddly since LaTeX centers it around the double vertical line between the first and second column. My \hline also goes only to right ...
4
votes
4answers
150 views

How to get a properly centred horizontal rule?

I'm trying to produce a horizontal rule 2/3 the textwidth and centred. It's much harder than expected, as it pulls to the left. I've tried putting noindent but that makes it worse, as this MNWE shows: ...
4
votes
1answer
95 views

How to center cells vertically in sideways table?

I'm trying to build a comparison table, I want to center the symbols vertically on the cells and I tried a lot of methods that I found here unsuccessfully. This is the last code: ...
0
votes
0answers
21 views

How to left-justify an equation to the left page margin? [duplicate]

My equations are centered on the page, as is each line of each equation. I want each equation, and each line of the equation, to be left-justified on the page. I've checked all the suggestions, but ...