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

4
votes
2answers
61 views

How to vertically (and horizontally) center text of cells using tabularx?

My question is very similar to this one: previous question but when I vary the example a little (as below), my cells are no longer vertically aligned \documentclass[12pt]{article} \usepackage{...
14
votes
2answers
2k views

Center over-long equations between both margins

I understand the reasoning behind the fairly narrow textwidth in a default LaTeX article. 60-80 characters per line and all that. However, I am preparing a document that features many lengthy ...
2
votes
1answer
26 views

Align the glossaries' title to the center

I saw table of contents and figures titles been aligned to the center with tocloft package as follows: \usepackage{tocloft} \renewcommand*{\listfigurename}{\hfill\bfseries\Large LISTA DE FIGURAS} \...
11
votes
3answers
803 views

KOMA-Script scrbook: width of chapter and section number

I'm using KOMA-Script’s scrbook class and have problems with the Table of Contents. When the chapter number is too large, the chapter number is glued to the chapter heading. The chapter-section ...
0
votes
0answers
21 views

Centering versus Center [duplicate]

How is centering different from center? There should be some difference between them, that they have bothered put two different commands. Instead of requiring to check every time into a sample ...
4
votes
2answers
2k views

Right aligning a quote with extra indentation

I want to insert a quote into a document, have it aligned to the right, italic, with some extra indentation from the right margin, this is what i've managed so far: \documentclass{book} \usepackage{...
1
vote
2answers
30 views

Centering Figure without re-scale [duplicate]

I would like to center a figure made on Tikz. This figure has a specific size which is wider than \textwidth, and it needs to be centered. All options I see use \resibox or \makebox to center the ...
1
vote
1answer
40 views

How to Line up Horizontally?

I have the following using OCG, 2 boxes that open up to many more Items when clicked on. How can I align them horizontally across the page, so that the dropdowns will go below the boxes also? (There ...
0
votes
2answers
58 views

Is there any method to use an automatic word wrap in equations?

In common words, the word wrap is done automatically. But in the equations, it doesn't work. Actually, I am making some presentation material using beamer in Latex. Is there any way to make word wrap ...
3
votes
5answers
101 views

Center alignment with multirow package

I have a multirow environment, but it does not center aligned in center environment. What might be wrong? \documentclass[12pt]{article} \usepackage{booktabs} \usepackage{multirow} \begin{...
2
votes
2answers
110 views

How to align two equations vertically without horizontal space?

Please have a look at the following MWE: \documentclass{scrartcl} \usepackage{amsmath,amstext,amssymb} \begin{document} \begin{align} \cdots\text{ABB}&\bigg|\text{BAABB}&\bigg|\text{AAABB}&...
0
votes
1answer
23 views

Long limits overhang and cause a symbol to become too wide [duplicate]

Sometimes I need to make a union with a long subscript specifier at the bottom like so: \documentclass{article} \begin{document} \begin{equation*} \bigcup_{a \in \{\text{set that is very wide}\}...
5
votes
1answer
28 views

How can I center index headings?

I have used following example_style.ist file for creating index headings_flag 1 heading_prefix "{ \\bfseries " heading_suffix "}\\nopagebreak\\\n" and in the preamble I have added following \...
0
votes
1answer
22 views

The first box is slightly shifted when using tcbraster

I am writing a small manual for my students to learn the most common LaTeX commands that we use in class. My main problem is that the first box inside tcbraster (and tcboxedraster as well) is always ...
1
vote
4answers
68 views

Problems with variables within new command for boldface, coloring, and centering text

I am trying to type a new command that centers, boldfaces, and colors some text red. Here's what I have at the moment by tinkering and looking at some code I already had: \newcommand{\rub}{\large\...
2
votes
1answer
32 views

Reledmac: footnote position problem

I am trying to have footnotes over three columns using reledmac package. However, I don't understand how to get footnotes correctly positioned : it looks like this : ----------------------------------...
2
votes
1answer
37 views

Horizontal align text in multiple columns

I want to achieve something like this, 1. Question One The answer to the question. 2. Question Two The answer to the question that can span across ...
3
votes
1answer
34 views

How to center the text in tabularx

I have created a table as given below. I want to center the following part. \gmc{4}{@{}p{0.8\textwidth}@{}}{Summary of monthly cross-portfolio regressions: 25 Fama-French portfolios (constructed on 5 ...
3
votes
1answer
51 views

Automatically setting the label width in a description environment, for each page

There are a couple of questions asking for a description environment where the width of the label-portion is the width of the widest label: Label: Text text text text text text ...
1
vote
1answer
26 views

Aligning left sub- and superscripts to the right

I am using a self defined command to typeset isotopes with charges. It is as follows: \newcommand{\elem}[3]{\ensuremath{{\vphantom{#2}}#1\mathrm{#2}#3}} Example: \elem{^{16}_{8}}{O}{^{2-}_{2}} ...
2
votes
1answer
49 views

Centering in Tabularx does not work

I am trying to center columns using \newcolumntype{Y}{>{\centering\arraybackslash}X}. However, it does not work in the following example. \documentclass[11pt]{article} \usepackage{setspace} \...
2
votes
2answers
46 views

Problems with the height and text alignment justification of a \multirow in a tabularx environment

I have a large table fitted to the width of the page, using the tabularx environment, that makes use of multirow. Following the example in table with tabularx and multirow, I used \multirow{n}{\hsize}...
5
votes
1answer
95 views

Dot over A not in the right place

When I write $\dot{A}(t)$, the dot is not aligned with the top of the letter A. is there a way to correct this?
4
votes
2answers
29 views

How to Split equation in aligned environment

I have two sets of equation in aligned environment. The problem is that one of the equations (As shown in slide below) is too long to fit on a single line. I want to split this equation without ...
0
votes
1answer
17 views

Centering column and adjust width in table

I have this table and I want everything center but when I use multicolumn the words are nor center and the two last columns have different width. The image below shows the result. The code I'm ...
5
votes
1answer
106 views

Pass part of halign body as an argument to macro (previously AMS align and its groups)

I originally thought this had to do with the align environment but I discovered it's a feature of \halign, hence the major edit. When inside a tabular environment or simple halign, I need to be able ...
0
votes
0answers
19 views

Cannot justify document

I am currently trying to make a document in latex and everything is fine so far, but for some reaso a small part of my text suddenly becomes centred, even though I want all of it to be default ...
0
votes
1answer
27 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 ...
3
votes
1answer
28 views

Customize TOC, center align and italics in memoir

I would like to customize my TOC so that titles are centred and italicized while in the \frontmatter, like in the following picture: My MWE: \documentclass[14pt,twoside,a5paper,extrafontsizes, ...
1
vote
2answers
47 views

Line title up with tabular environment

I'm trying to alter how a \documentclass{report} title page appears for a package I'm putting together for work. I've cobbled together enough knowledge to make it very close to what I want, but I'm ...
3
votes
2answers
39 views

Vertically and horizontally align image inside table

I have a table with two columns. The first column contains text, the second a image. Short example: \documentclass{article} \begin{document} \begin{table}[htbp] \centering \caption{My ...
2
votes
1answer
19 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 \...
3
votes
1answer
38 views

How to keep some equal signs aligned in flushed right equations

\begin{align*} 2\sin2\theta+1=0\\ \sin2\theta=-\dfrac{1}{2}\\ \alpha&=\sin^{-1}\left(\dfrac{1}{2}\right)\\ &=\dfrac{\pi}{6}\\ 2\theta=\pi+\alpha,2\pi-\alpha,3\pi+\alpha,4\...
3
votes
1answer
34 views

How to specify an absolute distance between (header) text and the start of the (header) line?

Currently I am trying to align the text of the header with the main text, while the page number is shifted 25 pt into the margin (see image). I have tried different things, like using the \tabto ...
5
votes
2answers
355 views

Three very clearly separated elements on a single line

I have three short bits of text that I want to put on a single line, in a centered way; more precisely: I want the first bit to be "left justified", i.e. to start at the leftmost part of the line. I ...
3
votes
2answers
24 views

Needing help with “Misplaced \noalign” as well as \centering

So I'm currently on the task of setting up my first table, to use as preset for future documents. While it works, and gives the result I'd like to see (except for {\centering} not working), it does ...
4
votes
1answer
94 views

How to place two plots inside a node?

I'm eager to have two plots (of the algebraic functions) placed horizontally inside a node. I'd like them to be signed, so something like caption (below the plot) is needed. One of them — "the good ...
2
votes
1answer
50 views

Shift all floats on page horizontally

I would like to modify the way standard floats, like figure or table, appear on page by shifting them horizontally relative to the paragraph text, see the image below. To this end I have tried to ...
4
votes
3answers
111 views

Centering Two Tables side by side

I would like to present two tables side by side, however the positioning is not as I would like: How can I center the captions below the tables and center both tables on the page? Compiling ...
4
votes
1answer
44 views

How can i split the chapter name in two lines, i have style file provided by college?

% % This is a version of NITC Seminar/Thesis/Dissertation latex format. Modified from the Old Dominion University Latex thesis template to confirm to NITC thesis % format. Modifications done by N ...
6
votes
1answer
70 views

Improper alignment in tabular environment when using xcolor table option

I came across weird behavior when loading xcolor=table option that affects the proper alignement in the tabular environment. The output of this MWE \documentclass{beamer} \usepackage{siunitx,...
0
votes
1answer
72 views

How do I make the text body go around a tikz picture flushed right?

I would like the text to start at the same height as the picture, but I want the picture to be flushed right. It's not directly associated with the text, but rather more like a visualization tool for ...
15
votes
4answers
738 views

Typeset old Spanish abbreviation: center ending over period

For a modern edition of music from the seventeenth century Spanish empire, I need to typeset certain antiquated abbreviations in the manuscript sources. In this convention, the middle part of the word ...
2
votes
1answer
25 views

How to shift a right-alighned text block to the left

I have a right-aligned text (in a right-to-left language) and need to shift it to the left (it is actually a signature under the preface of a book). if I use flushleft environment, it goes to the ...
1
vote
1answer
118 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 centered....
6
votes
1answer
217 views

How do I write two sentences in the same line?

I want to write this form of sentence, text1 text2 in the same sentence in the first page of my report. I tried to use flushleft and I right, but I got every text in a different ...
0
votes
0answers
41 views

format for justifying each step in a proof

I'm looking for a way to structure my proofs where I can indicate an application of a previous theorem. Right now I'm writing things like "so and so is true since Theorem 1" or "this is true (Theorem ...
0
votes
0answers
11 views

Caption and References Text Alignment Help needed

I am trying to text-align in latex but having some problems.I want my text alignment to be like, for example, Figure 3: Data Mapping Diagram [3] Instead of this: Figure 3: Data Mapping Diagram ...
1
vote
0answers
39 views

How to correct alignment in exam class page layout?

I'm creating MCQ paper using EXAM class. \begin{center} Section II \newline Multiple Correct Answer Type \newline This section contains 10 Multiple Choice questions. Each question has four choices (...
3
votes
1answer
54 views

Justify main caption in figure

I have two figures that I am putting vertically in my text. The two figures are located in the same column, on top of each other. I am trying to left justify the main caption of this figure (by ...