{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
3answers
47 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 ]=\...
0
votes
0answers
7 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 ...
0
votes
0answers
17 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 ...
4
votes
2answers
73 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{...
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} \...
0
votes
0answers
22 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 ...
1
vote
2answers
31 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 ...
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 \...
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\...
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{...
0
votes
1answer
23 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 ...
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 ...
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 ...
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 ...
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 ...
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
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
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
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,...
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 ...
0
votes
1answer
26 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,...
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 ...
2
votes
1answer
34 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
166 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 ...
7
votes
1answer
91 views

Horizontal alignment of numerator and denominator in a \frac expression

I need to typeset the derivative of l by z_a. Normally I would do \frac{\diff l} {\diff z_a} with \newcommand{\diff} {\mathop{}\!\mathrm{d}}. This gives: which does not look very good imho due to ...
1
vote
1answer
38 views

How to center longtable both horizontally and vertically

I have the following longtable, I want to center its content both vertically and horizontally, So far I've successed in centering it in one of them using the array package and newcolumntype \...
3
votes
3answers
80 views

Standalone proper alignment of plots

I try to set Up a document with multiple Plots for that i try to use TIKZ and Standalone. But the Problem is with the alignment of the different plots. I use scale only axis to make the axis all the ...
1
vote
1answer
25 views

Centering Acronym

Anyone help me for centering the acronym (not align left like this example)? I tried \begin{center} but it's not possible. Here is my MWE: \documentclass{article} \usepackage[colorlinks]{hyperref} \...
3
votes
2answers
48 views

Extra horizontal space when using \Big[ and \Big] instead of \left[ and \right]

I have the following equation \sum_{k=0}^{N-1} \left\{ \tr \left[ Q^{-1} \left( P_{k+1}^N - A P_{k,k+1}^N - P_{k+1,k}^N A' + A P_k^N A' \right) \right] + \tr \left[ \left( x_{k+1}^N - A x_k^N \right)'...
3
votes
4answers
67 views

Side by side checkboxes

I'd like to put some checkboxes side by side, but I don't know how. The only thing I found so far was this for checkboxes, but that's just an explanation for how to do them. How to create checkbox ...
2
votes
1answer
34 views

centering subcaptions (without text), just keeping (a), (b)..etc

How can I write no subcaptions but keeping subcaptions number. That is, how can I just keep (a), (b), (c) ... and, in turn, center those letters below each picture? Example: \begin{figure} \...
2
votes
1answer
90 views

How could I duplicate this example?

I am relatively new to LaTeX and have made a few (beautiful) documents with it. However, I ran into a brick wall today, I cannot seem for the life of me be able to replicate the example shown below. I ...
4
votes
2answers
63 views

Different alignment in same line [duplicate]

SX. I want frame number to have right alignment and frame title left alignment. And command \hfill does not help me with it. ` \documentclass[10pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
29 views

Justify caption

For my figures and Tables the caption text is formatted to start in the middle. For the tables only however, I need it to start from the left. I tried using \flushleft command for it but it did not ...