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

6
votes
3answers
217 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
75 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} ...
4
votes
1answer
36 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
40 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
43 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
88 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
55 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 ...
3
votes
1answer
106 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
37 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
322 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
120 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 ...
16
votes
2answers
427 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
130 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
216 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
97 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
44 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
49 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
83 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
52 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
191 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
70 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
131 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
66 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 ...
1
vote
1answer
58 views

Inline todonotes: Full justification and page breaks?

I frequently use inline \todos (from the famous todonotes package) to embed meta comments in my documents, e.g.: \todo[inline,caption={}]{ Some notes: \begin{itemize} \item \lipsum[1-2] \item ...
2
votes
1answer
32 views

Different justification in cells

The following code will center the text in all cells. \begin{table} \centering \small \caption{my caption} \label{my label} \begin{tabular}{| C{5cm} | C{2cm} |} \hline ...
1
vote
1answer
62 views

How to Left-align first line in a paragraph, right-align others

I'm trying to typeset a song and for cases where one verse is longer than a line, I'd like to have the first line left-aligned and the second one right-aligned. Is there any way to achieve this ...
3
votes
2answers
71 views

Prelim2e marking but centred without tikz

I use preliminary markup on draft versions of documents which specifies the svn repository number, timestamp, url etc. I prefer this to be typeset centred at the bottom of the page below the footer. ...
3
votes
1answer
50 views

Problems with beyond the margin of a article?

I'm writing a paper, but in the process, I encounter a problems : when I drawing a map with the following codes \documentclass{article} \usepackage{amsmath,amssymb,booktabs} \begin{document} ...
1
vote
0answers
60 views

Does justifying and `frame breaks' conflict in Beamer?

I tried the justifying techniques proposed here: My presentation in Beamer document class also have long bibliography. I have used allow frame breaks in a new frame which recommended here. ...
1
vote
1answer
60 views

Centering does not work within minipage

I cannot place my plot centered on the page. I tried the following code: \begin{figure}[ht] \begin{center} \begin{minipage}{\columnwidth} \includegraphics[width=5in]{plot1.pdf} \end{minipage} ...
2
votes
2answers
62 views

Misalignment chapter titles with hang option of titlesec package and redefined \cleardoublepage

When I redefine the command \cleardoublepage to include the words "This page has been intentionally left blank", the titles of the chapters are misaligned. \documentclass{book} \usepackage[a4paper, ...
3
votes
2answers
80 views

How to align table and caption when table is centered on page

I haven't been able to figure out the best way to set up my tables. These are the features that they are supposed to have: Should be centered on page Caption should be "justified" and aligned with ...
0
votes
0answers
27 views

Make left-hand pages' `\marginpar` text right-aligned [duplicate]

\marginpars only appear on the right margins of right-hand pages of my manuscript. For left-hand pages, they are are so far to the left that they aren't even on the page. The reason is because the ...
3
votes
2answers
76 views

Align a Table with the Edge of Text

In a document I am working on, I want to use a table. However, the point at which the table belongs is heavily indented due to multiple enumerations. This results in the table being placed much ...
6
votes
1answer
109 views

Is there a standard for automatic line-breaking for text with various alignment types?

The context is that I'd like to not have to manually choose newlines and rather eyeball the length of text and possibly specify the number of lines or horizontal width the text should take up. I'm ...
6
votes
3answers
73 views

Horizontal alignment within itemize

My minimum working example: \documentclass{article} \begin{document} \begin{itemize} \item 1. First \item 2. Second \item 3a. Third \item 3b. Third \item 4. Fourth \end{itemize} \end{document} ...
5
votes
2answers
98 views

right bind when using align

I have multiple lines of equations in align environment, some of those are to long and I have to split them. How can I make the second line rightbound? What I do now is: ...
3
votes
1answer
83 views

Justification of captions

I know there a few similar questions about this but the option justification=justified is not working properly on my figures. I'm getting everything but "Figure n:" justified, so the numbering labels ...
3
votes
1answer
137 views

Using position arguments with starred tcolorbox environment

The {tcolorbox}* environment is interpreting position arguments in a way I would not anticipate. When I include the *, the placement is unexpected--\begin{VocabBox}*[b]... does not get placed at the ...
3
votes
1answer
91 views

sender address in letter

I have a very simple question: % Cover letter using letter.cls \documentclass{letter} % Uses 10pt \usepackage[utf8]{inputenc} \usepackage[colorlinks, linkcolor = black, citecolor = black, filecolor = ...
2
votes
1answer
81 views

Even horizontal distribution of choices in exam document class

I want to display the options for multiple choice questions horizontally within the exam document class. The oneparchoices environment displays the options horizontally, but the choices remain ...
2
votes
0answers
41 views

How can I achieve this aligned two-column word-list-like layout? [duplicate]

This is my first tex question. I couldn't find a duplicate since I'm not even sure how to describe this layout in English...It looks like this: [item1] [explanation of item1......may be very long ...
2
votes
1answer
57 views

center caption with subimage

I have the following image: Produced from the following LaTeX code: \begin{figure}[h!] \centering \begin{subfigure}[b]{0.6\textwidth} \includegraphics[width=0.7\textwidth, ...
5
votes
2answers
108 views

Horizontal alignment of subfigure edges

I am using the memoir class and I have two subfigures of different width that I would like to lay out vertically. Ideally, these two subfigures should be aligned so that The widest subfigure is ...
1
vote
1answer
54 views

How to reduce page margins and center text on it?

I need a custom title page, where the margins create a tighter area for the page contents and a title text is centered horizontally and vertically. How do I do that? By tighter margins I mean margins ...
1
vote
1answer
53 views

Trying to make a title left aligned in a minipage

I have tried various different ways of attempting to implement this. I want a title and author flushed left and an image flushed right on the same level. However I am using 2 columns so I should use ...
12
votes
3answers
247 views

Spread letters to a given length?

I have made a fancy title page using titleformat and tikz, but I now face the following problem. The \chaptertitlename command returns \chaptername or \appendixname. I would like to spread the letters ...
1
vote
1answer
62 views

Align Text as right or left in a tabular environment

How can I arrange text in tabular environment. For example, the Main and Email to start at left align and the contents in right column to left align ? \begin{tabular}{c|l} {Mail} & 1234 XXXX ...
2
votes
1answer
47 views

Align downscaled graphics to the left

I include a PDF as a figure in my document, and the PDF is a great deal wider than the \linewidth. I use the adjustbox package to set the width to slightly more than \linewidth, but I can't figure out ...