{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
26 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 ...
7
votes
3answers
225 views

Center a column in align

I have the following type of code in my document: \begin{align*} (-m)+m & \stackrel{\mathrm{Ax 1.1 (i)}}{=} m+(-m)\\ &\stackrel{\mathrm{Ax 1.4}}{=} 0 \\ I want to align on the = ...
2
votes
1answer
27 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 ...
0
votes
1answer
40 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 ...
11
votes
1answer
3k views

center /verbatim text in /figure

I'm trying to center a the content of a figure that has verbatim text in it, but the verbatim text is always right-aligned: \begin{figure} \centering \begin{verbatim} some text here ...
4
votes
3answers
450 views

Text without hyphenation with Tikz

How do I get the text does not break the line? I have \begin{tikzpicture} \node[align=left,text width=3cm] {Contemplando a contemporaneidade}; \end{tikzpicture} but i need
3
votes
2answers
40 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
39 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
34 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. ...
8
votes
1answer
8k views

text justify in beamer

I like to justify the texts inside the block using beamer. I cant do that in presentation. Can any one please help me?
1
vote
1answer
39 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
21 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
45 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
25 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
37 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
97 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 ...
5
votes
3answers
61 views

Simple alignment question

So I want to align my 'equals' sign and inequality signs. So I have done, \begin{align} \Rightarrow d(\mathbf x',\mathbf 0) & \geq d(\mathbf x,\mathbf 0) - d(\mathbf x',\mathbf x) \\ ...
3
votes
1answer
76 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 ...
6
votes
3answers
45 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
80 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
43 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 ...
0
votes
0answers
34 views

problem with block environment

I am naive in preparing slides using beamer. I wanted to create slide with a block in it. I used same code which is already posted in this website. The codes goes as follows \documentclass{beamer} ...
2
votes
1answer
66 views

Text section in right bottom of side

How can I write a text section in latex in the right bottom side of the page with a nice font ? It is for some thanks text. Now I have: \vfill {\sffamily \begin{flushright} ...
3
votes
1answer
29 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
60 views

Problem with indentation and alignment [closed]

I am writing my thesis in book document class. The command \indent is not working. Also, the lines are not aligned on the right side. What could be the problem?
4
votes
1answer
56 views

Centering is not working

The below piece of code is not getting center aligned. Kindly help in finding out the solution for the same \begin{table}[!ht] \begin{tabular}{|c||c|c|c|c|c|} \hline \centering AE mode & 512 ...
1
vote
0answers
20 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
40 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
30 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
63 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 ...
4
votes
1answer
74 views

Left-aligning URL with line breaks in bibliography

URLs break fine in my bibliography. My problem is that they are justified which creates a gap between "URL:" and the URL itself (see below). Is there a way to left align only the URL? I am using ...
1
vote
1answer
39 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 ...
0
votes
0answers
37 views

LyX : Some Parts and Sections Full-Justifying

LyX / LaTex newbie here. I have a document I'm working on and for most part and section headings the text is being outputted as left-aligned (which is what I want). However I have a handful that ...
1
vote
1answer
64 views

Putting a number on the right hand side without using the equation or align environment? [closed]

I have a couple of lines which I wish to number and I'm hoping for something like: Text... \alignright{1} or something like that if it exists to produce Text... (1)
1
vote
1answer
38 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 ...
2
votes
1answer
106 views

$$, \[ \] and equation environment alignment

I'm using scrreprt class and I'm having troubles with different behavior of $$ and \[ \]-written equations and equation environment. The problem is that alignment is not the same: $$ equations are ...
12
votes
3answers
195 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 ...
3
votes
1answer
36 views

Right align first column of glossary

I am using the package glossaries to create a glossary in my document. The style super almost works for me, as it gives me two columns: the first with the glossary entry names and the second with the ...
1
vote
1answer
56 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
33 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 ...
2
votes
1answer
55 views

Moving the page number in a table of contents to the left of the titles with tocloft

I would like to move the page number from the right-hand side of a table of contents to the left, using tocloft. The page number should still be right-aligned. The question has already been answered ...
2
votes
1answer
45 views

How to horizontally align text in rows below rotated text?

I have a table with rotated text in the uppermost columns, however in certain rows the X's are not horizontally centered. I thought that having the \centering or perhaps the origin=c command would ...
3
votes
1answer
26 views

How to align chapter, section, subsection with parindent?

Is there a way to solve that? Thanks a lot!
1
vote
2answers
53 views

Getting a weird output using \alignat (picture and code included)

When I run the following code \begin{alignat}{2} \text{min} & \sum_{t\in T}\sum_{v\in V}\sum_{(i,j)\in W_{v}}(c_{ijv}-u_{i}- v{j})x_{ijvt}+\sum_{j\in J}\sum_{t\in T}M_{jt}s_{jt} \\ ...
0
votes
1answer
25 views

table - text centering

I made a table in my thesis with this code: \begin{table}[htbp] \centering \caption{Add caption} \begin{tabularx}{\hsize}{cc} \toprule & Folhosas \\ \midrule Celulose ...
0
votes
1answer
38 views

How can I have a node spanned over multiple columns push to its cell borders' borders?

I'd like to have the (big) node with Long text long text span from the very left of cell m-2-2 to the very right of cell m-2-5. How can I achieve that? MWE \documentclass[ 11pt ]{scrartcl} ...
2
votes
0answers
30 views

siunitx table alignment

I want to align both the numbers and the text to the left using siunitx' S column type. I tried: \documentclass[ngerman]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
5
votes
1answer
35 views

side by side figures wider than margins

I'm trying to do exactly what's explained here: Figure with two side-by-side subfigures that is wider than textwidth However, I'm working with a large document and already have many subfigures using ...
3
votes
1answer
66 views

tcolorbox Spanning Two Columns in {paracol} Environment

The paracol environment allows figures to span two columns by using an asterisk in the figure's environment declaration: \begin{figure*} ... \end{figure*}. I'm not familiar with the guts of why that ...
0
votes
1answer
49 views

Beamer: \qed at the end of align*

I finish a proof sketch on beamer slides with a formula, e.g., \begin{align*} P\leq n^{-\alpha} \end{align*} How can I get a qed symbol at the end of this line? Using \qed as well as ...