{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
37 views

I am not getting justified while using {Warsaw,Antibes} theme. Can anyone please help me in this regard

\documentclass{beamer} \usepackage{ragged2e} %new code \usetheme{Warsaw,Antibes} \addtobeamertemplate{block begin}{}{\justifying} %new code \begin{document} \begin{frame}{Test} ...
1
vote
1answer
156 views

Headerbox alignment

How is it possible to customize alignment (in my case align to center) of title in headerbox using baposter? Trying this: \begin{poster}{headerfont=\Large\sf\centering} or ...
3
votes
3answers
155 views

Tikz-Create a Picture Legend

I am trying to create a legend inside a tikzpicture. The picture shows an accelerator and I would like to make a legend that will explain each part. My code is \documentclass{standalone} ...
0
votes
0answers
104 views

Centering defined width columns with long table [duplicate]

I have been trying to get a long table with specified column widths and centered text. I found away to do this (>{\centering}p{1cm}) which works until I apply centering to the last column, at which ...
2
votes
0answers
45 views

Centering title in bibliography with abntex2cite

i need some help. I'd like to change the title of my bibliography (Referências Bibliográficas), align left to centering, i'm using package abntex2cite to make my citations. My document class is a ...
2
votes
4answers
79 views

multi-column row in align environment

I would like to be able to use multicolumn inside an align environment, much like we can do in a tabular environment MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} ...
4
votes
1answer
108 views

Center text in color box

I wanto to center a text in a colorbox which is scaled horicontal over the complete site. How is this possible? \documentclass[ ]{scrreprt} \usepackage[ ]{scrpage2} \usepackage[ngerman]{babel} ...
3
votes
2answers
139 views

Comic book or graphic novel style panels in LaTeX

I have heard that LaTeX is not necessarily suited to make panels. That even two-column is difficult to get the text to align. I would like to draw stuff like this: --------------------------- ...
1
vote
1answer
51 views

How to align address block and date with signature?

I need to have the address and date aligned with the signature headers, like with the semi-block header type, but the address block is located all the way to the right of the page while the signature ...
3
votes
1answer
41 views

Horizontally centering three images on the middle one

Often, in the title page of a beamer presentation, I have to show three logos and some of them are not square images. I would like for the middle one to be centered horizontally and the other two to ...
5
votes
5answers
124 views

Place a list in the middle of the page

I have an itemized list: \begin{itemize} \item First item \item Second item \end{itemize} I'd like to place this list somewhere near the center of the page. But, I still want the bullet ...
2
votes
1answer
37 views

Period Padding with Price [duplicate]

I'm looking for a way to have automated period padding for some items I'm discussing in my proposal. For example: Pneumatic Drill.......................$450.12 Drill ...
5
votes
1answer
78 views

How may I left-align the following array?

I would not like it to be centred. \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \begin{document} \[a^{'}_{ij}=\left\{\begin{array}{lr} a_{ij}&\: ...
1
vote
1answer
115 views

Why can't I vertically align these two matrices?

Why won't these matrices become left-aligned? \documentclass[11pt,a4paper,oneside]{report} \usepackage[pdftex]{graphicx} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} ...
1
vote
1answer
39 views

fitting a wide table in centre of a page

I want to fit this table in the centre of a page. I couldn't find any way to fit this table on the page. Can anyone suggest a solution? \documentclass{article} \usepackage{booktabs} ...
1
vote
1answer
48 views

Colored mark in margin notes in the middle of the \marginparsep

It's code, thanks for @Harish Kumar, \documentclass{book} \usepackage{mathtools} \usepackage{xcolor} \definecolor{background}{RGB}{255,255,170} \usepackage{empheq} \newcommand*\mybox[1]{% ...
2
votes
1answer
91 views

Alignment margin note with equation in pages

It's my problem, I am not writing margin note in \equation and \align. It's an error. But it's working in text. My aim, margin note with equation must be aligned. ...
7
votes
3answers
68 views

Vertically align at operator, but keep default horizontal spacing

This is a follow up to «How can I align limits at “lim”?». What is the best approach to achieve the following alignment? Namely, I would like the two \prod to be aligned, but each line should remain ...
7
votes
1answer
115 views

Relationship of \\, \newline, \raggedright, \RaggedRight, and parindent

I'm trying to understand if there is anyway to get \\, when in \raggedright or \RaggedRight, to produce a new line that is not indented, while \parindent or \RaggedRightParindent are set in order to ...
5
votes
1answer
77 views

How can I align the first row of these equations?

\documentclass[ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} ...
2
votes
3answers
121 views

why is this equation not left aligned?

I wonder why all the multilines of the equation are not left aligned? I tried to use align instead but the equation got too long and I could not manage to break it. ...
1
vote
0answers
23 views

Line break after \hfill [duplicate]

I hope this question is not a trivial one, but I was not able to find any answer to that. I found out that sometimes when I put an \hfill command in order to align some text to the right, there is a ...
5
votes
3answers
139 views

Shift Verbatim environment to the left using \hspace

I pasted some code into a document in a Verbatim environment from fancyvrb. Because it is within two nested enumerate environments, the code is indented quite far over. As a result, one long line of ...
3
votes
2answers
69 views

Alignment inside the \align enviroment-horizontally and vertically

Is it possible to make both expressions for omega's aligned with one another and do the same for the coefficients a,b,r and d,c,t? I tried to align them manually by using center but it does not work. ...
3
votes
1answer
42 views

misplaced & in equation using non-ams format

the following code works with ams environment, however I am trying to use it using aip conference template found here: http://scitation.aip.org/content/aip/proceeding/aipcp/info/authors and it is ...
1
vote
1answer
73 views

Overlapping ticks and figure not centered with matlab2tikz

See the printscreen. What I want is that the figure is centered, now that is not the case with using \setlength\figurewidth{1.0\textwidth}. Besides that the ticks with negative signs on the x-axis are ...
0
votes
0answers
32 views

Centering of Multiple affiliations

I have to centrally alligned the affiliation inforamtion but it is not appearing on center of the page.(appearing right side of the page) Here is the source code: \author{ ...
0
votes
0answers
36 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 ...
9
votes
4answers
160 views

Align text to right-hand edge of centered image?

I am including an image in a beamer presentation, centred, and want to give an unintrusive attribution link, just under the picture, right-aligned to the right-hand edge of the image. In other words, ...
1
vote
3answers
127 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, ...
3
votes
1answer
97 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
85 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. ...
2
votes
1answer
34 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} ...
7
votes
3answers
141 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, ...
3
votes
1answer
74 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} ...
0
votes
1answer
33 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 ...
1
vote
1answer
63 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 ...
0
votes
1answer
43 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, ...
4
votes
2answers
120 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
57 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} ...
5
votes
2answers
90 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, ...
8
votes
1answer
67 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
74 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 ...
3
votes
1answer
81 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 ...
1
vote
1answer
88 views

cannot figure out how to produce some tikz pictures next to each other

Ideally I would like to have the tikzpictures be in one line centered horizontally with its caption each preserving its node size and line strength and vertically aligned to a common bottom line. I am ...
5
votes
3answers
154 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 ...
2
votes
1answer
51 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} ...
2
votes
1answer
118 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, ...
0
votes
1answer
94 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
3answers
55 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 ...