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

3
votes
0answers
43 views

Horizontally centering glyph over text

In the given MWE, note that the new slur command is not centered with the two Fs that it connects. I've tried adjusting the scale of lilyGlyph, but it remains too far left. I would like the ends of ...
1
vote
1answer
147 views

HZ typesetting system in plain TeX

How can I use the hz typesetting engine with plain TeX and pdfTeX? I read about it in TUG Vol 36 no.2, Peter Karow.
0
votes
0answers
15 views

Line at the bottom of the page [duplicate]

I wanna create a line at the bottom of the page. Can someone tell me which code I should to use to achieve this simple task. As encircled in the image below.
7
votes
3answers
157 views

Alignment in equation environment

I am not able to align equations within a curly bracket. My code is the following: \documentclass[12pt, A4paper]{article} \begin{document} Consider the following: \[ P\Big[\frac{1}{2}+\mu \Big ]=\...
4
votes
2answers
91 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{...
0
votes
0answers
19 views

Vertical text alignment page after page

I am using this template to write my thesis: https://www.overleaf.com/5578703kpqfrz#/17992947/ I noticed, and I really don't know know how to solve this, that the text is not aligned when I scroll ...
0
votes
0answers
14 views

Increase horizontal space in a figure created with algorithmic

I'm writing a pseudoalgorithm, but due to long names and function calls with many parameters, some lines of the code become too long and parts of them are out of the right side of the page. I can't ...
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
28 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
827 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
24 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
33 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
44 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
63 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
105 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
111 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
25 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}\}...
1
vote
4answers
77 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
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
37 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 ...
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
52 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
48 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
99 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
34 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
19 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
28 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 ...
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
44 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 ...
3
votes
1answer
40 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
35 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
356 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
25 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
58 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
119 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
48 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
72 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,...
15
votes
4answers
754 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
31 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 ...
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
12 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
60 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 ...
0
votes
1answer
31 views

\preauthor{\begin{flushright} Not align with \begin{flushleft}

For my cover i need to have the right part of the text aligned with the left part, but it's not happening, Here i link my code and the image can you please help me out? \documentclass[10pt,showtrims,...
2
votes
1answer
39 views

Make multiline list items line up horizontally

I'm trying to make a list in which each item has multiple lines, and I want the items to line up horizontally, like this: 1. this is the 2. and this is first item in the second item ...
14
votes
2answers
170 views

How to align horizontally two tabular environments

I have this table (a table environment containing two tabular environments). I need the two tabulars to be placed side by side. But I need the second tabular to be align horizontally (same height that ...