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

0
votes
0answers
30 views

Numbering of head title on titlepage?

I want to combine several independent papers in a pdf-format. However, due to time constraints, I am looking for a "quick and dirty" solution. Therefore, I manually constructed a table of contents and ...
3
votes
1answer
93 views

How to make right alignment when using Tikz

I use tikz to draw an image, below is part of the image. But the variable name is central alignment, how to make it right alignment? Below is the related code \foreach \i [count=\j from 1] in ...
3
votes
3answers
68 views

Table alignment help

I have three fairly minor problems, but I can't seem to figure out how to fix them. First Problem: Even though I have 'gaps' in my Latex editor between the semi-colon and the number after it (e.g. ...
1
vote
3answers
79 views

Extending Text Outside Table Cell

I have a simple graphic I'm trying to make with a table, but for it to work I need to extend the text beyond the table cell - through something like a negative margin - is this possible? Specifically, ...
1
vote
1answer
104 views

Centering Xcircuit Figure

Hi I am using a program called xcircuit to make circuit diagrams and I cant seem to get the figure centered. I have tried \begin{center}, \centering. I have tried messing with \flushleft but it needs ...
7
votes
3answers
89 views

Tikz matrix arrows alignment

I have a problem that I cannot solve for myself. The following code produces the following image, which I do not really like. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix, ...
4
votes
2answers
114 views

Align and Center equations

I have the following equations . I just want to center them , such that the equality '= ' signs are one below the other. I tried \begin{align} but, that pushes them all to the left of the page. ...
2
votes
1answer
29 views

I want to left-align the following equation. I don't want that to be centred [duplicate]

\documentclass[10pt]{article} \usepackage{amsmath} \begin{document} \begin{equation*} \epsilon(\lambda_1,...,\lambda_n)=sgn\prod_{\substack{r=s}}(\lambda_s-\lambda_r). \end{equation*} \end{document} ...
1
vote
2answers
76 views

Two figures with side captions next to one another

I currently have the following figure placed at the bottom of my page: \begin{SCfigure}[][h] \centering \caption{Georg Kantor (1845--1918)} ...
3
votes
1answer
62 views

How can I arrange the table and the image in a minipage vertically?

I need the table and the image arranged vertically in the minipage instead of horizontally. I also add the pictures used in the code in the end. \documentclass[12pt,a4paper]{article} ...
15
votes
2answers
67k views

Adding tabs or creating my own command

I have a problem adding tabs and I can't use a tabular environments (like tabular or tabbing) because I can't mix it with enumerate environments. Is there a way to add a simgle tab like in any text ...
1
vote
1answer
50 views

How to globally left align the text of paragraphs containing variable-length headers with the first line of the paragraph?

I have several paragraphs each with unique headers of differing lengths: \documentclass[12pt]{article} \begin{document} \subsection{Subsection 1} \paragraph{Title} Paragraph text here. Paragraph ...
16
votes
6answers
4k views

Align two inequalities

I am trying to align two inequlities vertically. The \le signs should have the same horizontal positions and the term in the should be centered. My first attempt: \begin{align*} \sum a &\le \sum ...
3
votes
1answer
1k views

Slides justification in TeXnicCenter

I could not use the justification in slide presentation. In TeXnicCenter there is center, left alignment and right alignment but I did not see the justification. Is there anyway so that I can fix it.
0
votes
1answer
31 views

Why does one sometimes get what appears to be arbitrary spacing with the subcaption package? [duplicate]

I have a very simple MWE which demonstrates the problem: \documentclass{book} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \centering ...
0
votes
1answer
30 views

Line wrapping mathmode in ACM article-proc style

I am using the ACM document class acm_proc_article-sp. It is a two column page style. I keep running into a badbox where I have some line of text, and then a short equation in mathmode. For example, ...
5
votes
2answers
98 views

How can I DeclareMathOperator* with spacing after it, preserving the alignment?

In the context of optimization problems, I'm using \usepackage{amsmath} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} to declare some operators ...
5
votes
2answers
76 views

Table alignment problem

So I wasn't happy with how esttab was formatting my regression tables from the statistical program Stata. So I instead I decided to attempt to build my own skeleton table, which had better formatting, ...
5
votes
1answer
16k views

centering caption of a figure

I want to put the caption of my figure in the center but I can't do that. when I put my figure in the center the caption is also in the center but when the caption is too long and there is a return to ...
4
votes
2answers
50 views

centered text/equations inside align environment

is there a way to insert a centered line of text or mathematics inside an align-environment? For example, in the code below, I'd like to have the \vdots between the equations above and below ...
2
votes
1answer
41 views

How do I center text in a cell with `tcbox`?

I have this code in preambule: \documentclass[12pt,letterpaper,twoside]{article} \renewcommand*\rmdefault{cmd} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{animate} ...
3
votes
2answers
155 views

Caption package destroys center/varwidth

I have received a wonderful comment how to get listings centered: \documentclass[a4paper]{book} %\usepackage[hang,small,it,hypcap=true]{caption} % screw hypcap \usepackage[T1]{fontenc} ...
7
votes
0answers
45 views

Adding color package destroys listing centering

I am using @egreg's answer to make listings centered: \documentclass[a4paper]{book} \usepackage[T1]{fontenc} \usepackage[ hang, small, it, hypcap=true ]{caption} \usepackage{fancyvrb} ...
4
votes
1answer
46 views

Page number shifted to the left

I am writing a report with different geometry settings for the title page, so after finishing the latter with \end{titlepage}, I specified the new settings for the rest of the document using ...
4
votes
1answer
93 views

Alignment of text in two columns: forcing empty lines in one, to avoid collisions in the other

I have a question about aligning text in two columns. A similar question was asked here:Two Columns whose content is positioned relative to each other, but I wasn't able to get the example solution ...
3
votes
1answer
45 views

References spilling out of margin in bibliography

I have a search for this problem but all I could find was the case of reference citations in document spilling over, not the bibliography. Quite simple problem I hope... In my bibliography some of ...
3
votes
3answers
3k views

Numbering side-by-side equations or inline equations

I am trying to produce a two-column table of math equations, where each cell contains its own left-justified, numbered equation. I tried using \begin{equation} \end{equation} inside the tabular ...
5
votes
3answers
107 views

Aligning in- and out-text for algorithms

I use the algorithm2e package to typeset algorithms with custom keywords for input and output. When using \SetKwInput{KwInput}{Input} to define the keywords, colons are added but input and output are ...
1
vote
1answer
100 views

Table heading formatting

I have had this problem before (sort of) - it's related to this question I asked previously. Basically, I am having trouble with my table headings. I want the headings to be bold and centered ...
0
votes
1answer
62 views

How to do \flushleft and \flushright with tikzpictures

I have two charts, one is drawn with pgfplots, the other with pgf-pie. I want put these two chart in align horizontally, so one is on the left and the other is on the right. I have read Aligning using ...
2
votes
1answer
39 views

Center all same theorem

I would like to know if it's possible right from the definition of a theorem to center it : \begin{center} \begin{minipage}{5cm} { { \theoremstyle{plain} \theorembodyfont{\small} ...
1
vote
0answers
60 views

Centering TikZ picture inside poster box

I would like to center a tikzpicture inside a posterbox (baposter) \headerbox{Vorgehensweise}{name=definitions,column=3,below=problem,span=3}{ \usetikzlibrary{shapes.geometric, ...
2
votes
3answers
47 views

How to right-align any line or word in a paragraph in any documentclass?

I have done some search for margin alignment in Latex but cannot find how can I right-align any single line? For example, in a letter sometimes we put a Sincerely on the right. But without using ...
3
votes
2answers
3k views

AMS align: Left aligned text/math plus multicolumn align

This question is basically a combination of two previous posts: Adding left aligned text to an equation. and AMS align / Align multiple “=”, too much space (the latter being my own question). What I ...
4
votes
2answers
826 views

Multi-column delimiter in align

I want to set the following, but with all the <'s aligned horizontally Source of this failed attempt: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} ...
2
votes
1answer
52 views

Align itemize bullet to text

I am looking for a command to align text to the itemize's bullet. {\addtolength{\leftskip}{10mm} \textbf{Short text in here} \begin{itemize} \item A description of.. \item Another description of.. ...
2
votes
1answer
61 views

2 rows legend and alignment

I got a legend with two rows and I would like to have a different alignment on each row. Is it possible ? In my current code, the legend entries on the second line are much longer than ones on the ...
2
votes
1answer
49 views

Algorithm2e comment line alignment problem

I would like to align a comment within the algorithm environment of algorithm2e in such a way that each line of a multi line comment is left aligned. See the following MWE. In this MWE the second and ...
4
votes
1answer
34 views

Color behind numbers in lstlisting

Currently, my listings use this style : \definecolor{lstgrey}{RGB}{217, 217, 217} \definecolor{lstback}{RGB}{246, 246, 246} \newlength{\numberlengthnormal} ...
2
votes
1answer
32 views

How to right-align whole longtables

Say I have the following document: \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{|lr|} \hline A & 1\\ B & 2\\ C & 3\\ \hline ...
2
votes
3answers
87 views

Problem with horizontal and vertical centering of multiline cells in a table

I'm having difficulties perfectly centering (both horizontally and vertically) a few cells in my table. Here is a screenshot of what it looks like right now: The problem line is the one which ...
2
votes
1answer
83 views

How to properly format a proof/explanation with multiple points of alignment?

This answered question addresses how to properly align/format a proof, allowing one to add text commentary alongside equations without ruining the alignment of the equations; however, it only seems ...
0
votes
1answer
32 views

Latex table alignment [duplicate]

I have a table of 2 columns, I want the writing in the left column to be centered and the right column to be aligned to the left. Using the commands below, the left column is exactly how I want it, ...
8
votes
1answer
581 views

eledmac and two column footnotes

I like dblfnote and have been working with it for a good while. Now my footnotes are just getting too long and the typesetting results accordingly undesirable, they would be way better if footnotes ...
3
votes
1answer
35 views

Justify text from right in two column springer document class

I am facing one problem in justifying text in springer document class. my code is as below \documentclass[twocolumn]{svjour3} %\documentclass[conference]{IEEEtran} \usepackage{graphicx} ...
3
votes
1answer
70 views

Change bibliography title align when using quotchap

I'm writing my Masters Thesis and I'm using quotchap package in my chapter tiles. However I want Bibliography title align at left instead of right like the other titles. I've tried ...
5
votes
3answers
99 views

Two text lines in `flalign` environment

I want to achieve what the picture shows below. Basically, I want those two very long text lines to split into two lines shown below. My major problem is that if I keep the text in one line in ...
2
votes
1answer
38 views

Leaked styling from my stackon

\documentclass[12pt]{article} \usepackage{verbatimbox,stackengine,xcolor,hyperref} \usepackage[left=2cm,right=2cm]{geometry} \begin{document} \title{} \author{} \maketitle \section{Overview} There ...
1
vote
1answer
38 views

How can I align horizontally matrices of different dimensions?

I'm wondering how can I align two different matrices horizontally. They are: [-1 0 +1] And: [-1 0 +1].T This is my code: \begin{equation} \begin{bmatrix} -1 & 0 & -1 \end{bmatrix} ...
4
votes
3answers
114 views

Horizontal alignment of equation and text

I want to make a list of Quantum Mechanics formula like the format of the following picture. But I am confused about how to make the equations align to the left while the text to the right. Usually, ...