{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
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
18 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
39 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
43 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
39 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
3answers
118 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
752 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
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,...
6
votes
1answer
236 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
38 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 ...
7
votes
1answer
93 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
46 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
83 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
27 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
49 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
75 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
35 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
91 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
67 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
30 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 ...
3
votes
2answers
26 views

Partial center in environment

I'm writing a lab manual with step by step directions. Some directions include screenshots. To keep the screenshot with the line of direction, I use samepage. I am exploring an environment I can use ...
4
votes
1answer
43 views

Titlesec & titles extending into margin

I would like to use titlesec to have gradient shaded section titles that extend into the left margin. I would like the section number and the gradient to extend into the left margin, but would like ...
0
votes
1answer
37 views

Alignment for equality sign

I solved a question and I wrote it in Latex, but the equality sign is not aligned, I searched google, but none of the ways there worked with me. How do I get the equality signs aligned in the below? ...
2
votes
1answer
64 views

Separation of two authors using the amsart document class

I want to achieve a similar result to this one (see answer). However, I am using the amsart document class and the result for that code is this: The problem I believe is with the \and command that ...
1
vote
0answers
26 views

Caption alignment of grid subfigures

I have 5 images and I would like to display them in 2 rows (3x2). This is what I've done so far, \begin{figure}[h] \begin{tabular}{ccc} \subfloat[caption]{\includegraphics[width = 1.8in]{figures/...
8
votes
2answers
273 views

Stackengine centering problem

I have a problem centering text with stackengine stacks. My MWE is: \documentclass{article} \usepackage{stackengine} \begin{document} \Shortstack[c]{Cognicion abstractiva} \end{document} The result ...
2
votes
1answer
20 views

Horizontally align minipages from different boxes

I have defined the following command: \newcommand{\listOfYears}[3]{ \mbox{ \begin{minipage}{0.08\textwidth} #1 \end{minipage} \begin{minipage}{0.30\textwidth} ...
2
votes
1answer
34 views

Aligning material of two or more cases environment

The following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a=& \begin{cases} b,&\ \text{if}\ c\,;\\ d,&\ \text{if}\ e\,;\\ f,&\ \...
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 (...
6
votes
3answers
109 views

Text alignment in minipage

I am writing my exam paper in LaTeX. I have just a small enquiry. The code I am using is: \documentclass[12pt,paper=a4,answers, addpoints]{exam} \usepackage{graphicx,lastpage} \usepackage{upgreek} \...
4
votes
1answer
44 views

Tikz-Feynman: Multiple arrows on one fermion line and alignment (0vββ)

I'm trying to align the quark arrows in my 0vββ diagram: So I'd like to have 2 arrows on each of the 4 'unmodified' quark lines: the first arrow should be horizontally aligned with the arrow from ...
1
vote
1answer
61 views

Horizontal alignment of subfigures in PGFplots

I have 4 subfigures in a 2x2 grid. The figures are made in Matlab by using matlab2tikz, and hence the TikZ files are inputted. The problem is, that the y-ticks are different and therefore the ...
2
votes
1answer
25 views

How to put left aligned equation inside algorithmic

I have a one-line equation that I want to use just like a statement in algorithmic. I tried with flalign and the equation still goes into the center. Could you please tell me how to fix that? Here is ...
1
vote
1answer
31 views

Left aligned equations in multiple lines

Normally I use the align tag and everything is aligned properly. But now for some reason the text isn't left aligned. The following is the code I normally use (code #1): \begin{align*} V[1] = A[1] &...
2
votes
3answers
234 views

Is there a way to center align chapter titles?

I tried using \begin{\centerline{Chapter Title}} but using this causes the index/table of contents \tableofcontents's entries for chapters to be center aligned as well. Is there a better way to ...
5
votes
1answer
89 views

What does `\centering` do?

Not specific question: What does \centering command specifically do? MWE: \documentclass[onecolumn]{IEEEtran} \usepackage{graphicx,subcaption} \begin{document} \begin{figure} %\centering \begin{...