Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [horizontal-alignment]

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

0
votes
0answers
40 views

Undesired extra space on the left

Hello I am using MikTex in TexStudios and I have this document: \documentclass[paper=letter,fontsize=11pt]{scrartcl} % KOMA-article class \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \...
3
votes
2answers
62 views

Perfect alignment, LuaTex and sidebearings. Part II

I want to achieve a perfect alignment of the right (and/or left) margins of all the lines of paragraph (to the ink), among the lines themselves and eventually with other geometric elements of a page. ...
2
votes
0answers
12 views

Line numbers inside margin but outside frame in minted

I've been trying to make the line numbers appear outside the colored frame in my output code blocks, but I also want everything (numbers included) to be inside the margins specified by the geometry ...
3
votes
2answers
231 views

How to center the middle of a table to be in the center of the page?

I'd like to have the vertical rule in my {r|l} table to be horizontally aligned in the center of the page. So far, I've only managed to do \begin{center} \begin{tabular}{r|l} short & ...
0
votes
0answers
36 views

text table in beamer - making it more readable [on hold]

I am trying to create a literature summary review in a table within document class beamer. The table below is not finished yet, but as you can imagine it will be a terrible ugly one. What can i do to ...
0
votes
1answer
25 views

Table of Contents Spacing/Indentation

I need help formatting my Table of Contents. All my sections have a roman numeral numbering system that I would like to keep but it does not space it right in the Table of Contents. I also prefer the ...
2
votes
2answers
40 views

Center tabular in align

I'm trying to place a tabular containing some values for x and y inside an align statement. \begin{align*} 0 &= 0 \\ \begin{tabular} {|c|c|c|} %table content \end{tabular} \\ ...
1
vote
2answers
49 views

Image side by side with table keeps on not working

Good morning, I would like to put the picture on the left of the table, all horizontally. When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin ...
1
vote
2answers
43 views

Horizontal centering in tabularx cells

This is my current code: \newcolumntype{b}{X} \newcolumntype{m}{>{\hsize=.5\hsize}X} \newcolumntype{s}{>{\hsize=.2\hsize}X} \begin{table} \caption{Summary of the Most Common BCI Control ...
0
votes
0answers
21 views

How to left align titles and author details in apa6

I am using the following document class: \documentclass[jou,apacite]{apa6} My code is as follows. \documentclass[jou,apacite]{apa6} \title{Example of journal article} \twoauthors{Author One}{...
0
votes
1answer
25 views

How to align section heading after wrapping text around figure

\documentclass[letterpaper,11pt]{texMemo} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[dvipsnames]{xcolor} \usepackage{indentfirst} \usepackage{wrapfig} \...
0
votes
1answer
17 views

Format issues in longtable (left alignment of cells plus different cell lenght)

I got a longtable with rows containing more or less information. I want to achieve a left alignment because of justification errors plus different lengths in row size (horizontally). My current ...
0
votes
1answer
45 views

Avoid automatic centering of caption [duplicate]

I have in the LaTeX source file: \usepackage{subcaption} \captionsetup{compatibility=false} \begin{figure} \begin{subfigure}{0.50\textwidth} \includegraphics[width=0.95\linewidth]{...
0
votes
1answer
30 views

How to display horizontally aligned images with caption?

I'm looking for an advice how to display high amount of images horizontally aligned with caption: there are hundreds or even thousands images in the gallery dimensions of images are unknown, their ...
2
votes
3answers
41 views

How to left align equation numbering within multicolum?

I have the following code: \documentclass[11pt, spanish]{article} %\usepackage{babel} \usepackage[latin1]{inputenc} \usepackage{geometry} \geometry{legalpaper, a4paper, %top=25mm, %bottom=25mm, ...
1
vote
1answer
21 views

Aligned at the same margins acronym and listofsymbols

First of all, I know, that it would be much easier to use the glossaries package. However, maybe there is still a solution to my question. Here is a short MWE: \documentclass[ngerman]{article} \...
3
votes
1answer
24 views

Error using math in siunitx table

I am using the S-column type from the siunitx package to align numbers horizontally in a table, which works fine when typing numbers only. However, when I use math, I get the error Missing $ ...
2
votes
1answer
42 views

algorithm2e left-aligning the caption as the caption for figures in memoir

I am trying to left-align the caption of algorithms of algorithm2e to match the captions of the figures. Taking a look at Align Caption to the left , here is my code so far: \documentclass[12pt,...
1
vote
1answer
45 views

How to keep alignment across multiple align environments?

\documentclass[letterpaper,10pt]{article} \usepackage{amsmath} \begin{document} \begin{align} w &z &t \end{align} \begin{align} w+w+w+w &z+z+z+z &t+t+t+t \end{align} \end{document} On ...
2
votes
1answer
39 views

How to place 2 aligned equations next to a single graph in a table?

I want to make a table with two columns: on the left side, I want to put 2 aligned equations on the right side, I want to put a graph. In the following MCVE, the 2 equations are on the left side ...
0
votes
0answers
54 views

How to align the contents in longtable?

I would like all the three lines of texts displayed by the pdf document generated by the following code to be aligned to the second line of text. \documentclass[a4paper, pdftex, english, 10.25pt]{...
3
votes
2answers
82 views

Difficulty aligning footnotes in a thesis

In a thesis, I am using \footnote and \footcite[][]{} (as well as \footcites[][]{}[][]{}) simultaneously to add footnotes and citations. However, I am unable to align the footnotes uniformly. The ...
1
vote
1answer
45 views

Headrule not centered over text, how to fix?

For some reason the headruler I added in my document isn't as long as the \textwidth. It doesn't seem to be centered but it could also be that it's asymetrical, and I don't know why? See the picture ...
1
vote
0answers
26 views

Ragged Right Index Entries

I'm down to the last pages of a 400+ page book -- the index. That's all working pretty well, except... I have a few entries that are just badly type-set, such as the following entry for MOS Metallic-...
3
votes
1answer
37 views

In the figure form, adjust the whole size of “text” and “math” format at once (II): from \twocolumngrid to \onecolumngrid

This follows from a previous post In the figure form, how to adjust the whole size of "text" and "math" format at once?, In the figure form, how to adjust the whole size of "...
1
vote
1answer
33 views

Caption alignment in tabularx

I want to take the caption of the table to right from left. Is it possible? \documentclass[a4paper]{article} \usepackage{enumitem} \usepackage{array} \usepackage{multirow} \usepackage{ltablex, ...
0
votes
1answer
47 views

How can I center the image? [duplicate]

I want to horizontally center an image in my paper by the code below. \documentclass[12pt,twocolumn,oneside,a4paper]{article} ... ... ... \begin{figure*}[] HK1706 (in 2017) \centering \...
2
votes
1answer
67 views

how to remove spaces from algorithm and align nicely algorithm

I want to remove the spaces between the "and" and the if clauses in the following code: \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{cite} \usepackage{...
7
votes
3answers
289 views

How to get raggedright in tabular*?

I want to make a table with three columns of paragraphs, each in raggedright. I can only make it work for the first two columns. If I try to add >{\raggedright}, as in the commented-out line ...
1
vote
2answers
38 views

let aligned blocks float left in align*

I'm using align* to comment some equations: \begin{align*} &loooooooooooooooooooooooooooooooong \\ &short, &comment 1 \\ &not\; so\; short, &comment 2 \\ \end{align*} It produces ...
1
vote
1answer
42 views

How to make columns right aligned in a wide table

I'm grateful for the advice I got from this community before on how to make columns right aligned in wide tables. But now I cannot domesticate the following table that has 15 columns and some of which ...
0
votes
1answer
51 views

How to have multicolumn with each cell being multiple rows with everything centered

I am trying to achieve this: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vitae accumsan ligula. Aenean vel condimentum magna. Aenean in nisi sed sem semper molestie. Donec ac pulvinar ...
3
votes
1answer
47 views

Distance and font sizes between two minipages

Question 1: How can I increase the distance between two parts of mini page? Question 2: In the second part of mini page I found that the font size is small as compared to the first part. What is the ...
8
votes
3answers
650 views

Effectively, how to do “Underbrace” under two “Underbraces”?

Goal: I am trying to find a way to write an equation for: However, I fail, or at least so far could not find a way, to add the last layer in the bottom for "magnetic flux" using \underbrace. Here is ...
0
votes
1answer
17 views

Aligning figure under flushright text

I've a text inserted into a quoting section, set as flushright. I'm trying to add a figure under the text, but it seems not to be able to stay aligned to the right part of the text. Here it is an ...
5
votes
2answers
67 views

equations with alignement and with centering between alignement

I have the following code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} &\begin{bmatrix} a'_{1,1} & a'_{1,2}\\ a'_{2,1} & a'_{2,2} \end{bmatrix} &&=...
5
votes
1answer
84 views

Align last word of paragraph to right with \raggedright

I want to align the last word of a paragraph to the right like this example from The TeXbook. This works great with a justified paragraph, but fails with a \raggedright paragraph. In case it's ...
7
votes
1answer
178 views

Overhead brace in tikz

I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2. Here is a template: \documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} \usepackage{...
3
votes
1answer
51 views

How to center wide subfigures in classicthesis?

In a twosided ClassicThesis document, I want to put 2 TikZ pictures side by side, so that their total width is bigger than \textwidth. If I use KOMA's addmargin as described in this question, the ...
4
votes
1answer
45 views

Text in TikZ nodes: controlling the box variables of characters/string

I remember that there were different commands in TikZ that allow modifying how the characters in a node are placed but I'm not able to find all of them in TikZ manual. Probably I'm looking for the ...
0
votes
1answer
55 views

How to make this template for an article? [duplicate]

I want to separate the address of the authors with a box where I will put the abstract according to the graphic template below. Right alignment is important.
0
votes
1answer
27 views

Beamer: Why are the subsections not properly centered in this Table of Contents

In the following MWE, why is the second row not properly centered? And more confusingly, why does this problem go away if I delete the additional sections? \documentclass{beamer} \setbeamertemplate{...
2
votes
2answers
35 views

Changing the spacing in align environment

I want to change the spacing when using \align. My current code is: \documentclass{article} \usepackage{amsmath} \begin{document} These are defined as: \begin{align} &\text{(Identity)} &d(p,...
0
votes
2answers
37 views

Write implications between texts written on more than one line

I am trying to write something like: \begin{center} Proposition A $\implies$ Proposition B $\implies$ Proposition C \end{center} The only problem is those propositions should be written in two ...
2
votes
1answer
29 views

Align units of equations and units of corresponding legends below each other

I am using this code to align equation units of right the equation and to create nice equation legends. Minimum Working Example: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \...
4
votes
3answers
473 views

Make the picture in the right and the name in the left

According to this answer we have: \documentclass[a4paper,10pt,demo]{article} % \usepackage{pifont} %bouni %-----accent \usepackage[latin1]{inputenc} %écrire ...
0
votes
1answer
18 views

Why I am getting the "! File ended while scanning use of \backgroundsetup . <inserted text>\par<>

I face error while compiling the following code would you help me please? \thispagestyle{empty} \backgroundsetup{ scale=.8, angle=0, firstpage = true, opacity=0.1, color=black, ...
2
votes
2answers
57 views

Make this picture in the center

\documentclass[a4paper,10pt]{article} % \usepackage{pifont} %bouni %-----accent \usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des ...
0
votes
0answers
20 views

How to have title centered with multiple centered lines

Right now I try this: \title{I am an interesting \newline headline \newline that \newline sticks out} \maketitle \newpage But it looks like this: Instead, it should look like this (where everything ...
3
votes
1answer
42 views

How to write an Equation with the Units aligned off right and adapted Bracket Heights around the Unit?

Assumed I have this MWE to align the units off right: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \makeatletter \providecommand\add@text{} \newcommand\tagaddtext[1]{% \gdef\...