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

7
votes
2answers
149 views

How to align the last column to the right in tabular?

This is my code: \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{p{10em}>{\raggedleft\arraybackslash}p{10em}} First\newline Second & Alpha\newline Beta ...
3
votes
1answer
133 views

How to center subfigures in a 2 by 2 subfigmatrix

I have a figure with 4 subfigures displayed in a 2 by 2 matrix \begin{figure}[h] \begin{subfigmatrix}{2} \subfigure[ALS1]{\includegraphics[height=2.5cm,keepaspectratio]{fig1.png}} ...
10
votes
3answers
226 views

Centering disregarding symbol ®

I have a titlepage for a report. This title is split into two lines with only the word "BRAND®" on the second. It should be centered, but should disregard the ® as it is placed in the third line ...
1
vote
2answers
133 views

Typesetting Multipart Exercises

When I typeset exercises, I sometimes like to provide the exercise number in the left margin rather than as part of the paragraph describing the exercise. This poses a problem when I need typeset ...
4
votes
4answers
158 views

Align multiple graphics at different indentation levels

I want to include centered graphics with items at different levels in an enumerate environment, such that the images line up with each other horizontally. I currently have \documentclass{article} ...
1
vote
0answers
57 views

Justification isn't done in this part of my document [closed]

\documentclass{article} \usepackage{amsmath} \usepackage[spanish]{babel} \usepackage{graphicx} \usepackage{graphics} \usepackage{times} \usepackage{color} \usepackage{float} \usepackage{multicol} ...
3
votes
1answer
56 views

Strange line space behavior with vspace

I noticed an unexpected different line spacing of the titlepage what drives me crazy. The left page is the MWE, the right page without the \\ in front of Name. \documentclass{scrartcl} ...
1
vote
2answers
103 views

How to set horizontal space for tabular

Below is item in tabular. Using tabular text gets out of the page. In-order to get rid of this. I tried with \\. But doesn't help. It's not aligned. Can anyone help me to get the below Below ...
1
vote
1answer
37 views

cellcolor affects horizontal alignment in table

I have a table and I want to highlight some cells with color with \cellcolor. However the horizontal alignment is distorted, as you can see in the image. Can this be corrected with the current ...
4
votes
1answer
44 views

Keeping compactenum counters right-aligned

I'm using the compactenum environment (in the paralist package). I'd like to customize the font of the number counter, but when I do so the list ceases to be right-aligned. In the example below, the ...
0
votes
1answer
59 views

Useasboudingbox and measuredfigure to align caption

I use useasboundingbox in my tikz pictures to make them optically centred. I want the caption to be aligned with the left edge of the bounding box. Normally this can be done with the measuredfigure ...
1
vote
2answers
257 views

How to align equal sign

I want to make all equal sign align. So I tried many of the solutions in this forum but to no effect. I still couldn't make it work. Here is my code: \documentclass[12pt,a4paper]{article} ...
2
votes
1answer
163 views

Figure alignment using sub caption

I'm trying to align some figures using the subcaption package. My current code is that: \documentclass[11pt,twocolumn]{article} \usepackage[demo]{graphicx} \usepackage{subcaption} ...
2
votes
1answer
69 views

Node in TikZ : change text alignment in one node ?

I am working with tikz, and I am wondering if there is a simple way to have different text aligment in one node ? For instance, in my MWE below, I would like to have blabla1 centered, but blabla2 ...
4
votes
2answers
78 views

How to prevent line break in a long line on the title page?

I am trying to design a very simple title page for my thesis. Here is a MWE: \documentclass[a4paper,12pt]{report} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
0
votes
1answer
29 views

How to center a piecewise function. (On the page.)

Look at similar questions I can't find anything exactly what I'm looking for. I've already got the actual function aligned properly but when I compile it to a PDF, the function is centered on the page ...
1
vote
1answer
210 views

New Commands with text align

I would like to create a new command in LaTeX that aligns the text right and left (see example below). Only that I wish the text column were as large as half page. ...
2
votes
2answers
38 views

Centering tabular data horizontally, without giving it its own page

I have a fairly basic table set up right now: \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage[english]{babel} ...
2
votes
1answer
60 views

How do I align the equations about the equal to sign, with lines of text in between? [duplicate]

I want to align unnumbered equations about the '=' sign having one or two lines of statements in between. And also, I want them to be centered. Here is what I did in my code: \begin{align*} T & ...
4
votes
3answers
64 views

Align two lines of text inside a \emailfrom

I am very new to TeX and I am trying to do a simple cover letter using LaTeX. I've downloaded a template for a cover letter and it has a component (don't know how you call these things) named ...
7
votes
2answers
173 views

Why does center not center \halign?

With the following code: \documentclass[a4paper]{report} \begin{document} \begin{center} \halign{\vrule \hfil # \hfil & \hfil # \hfil \vrule \cr a & b \cr\noalign{\hrule} c & d ...
1
vote
1answer
83 views

Bibliography heading left alignment

I am having following code, due to which the heading of bibliograpy/references is center align, if \titleformat{\chapter}[display] is removed then it is left justified but all the chapter heading is ...
3
votes
1answer
173 views

\centering not working in latex

This is my code, but my picture is on the left!!! Can anyone share a better code? thanks a lot \begin{figure}[H] \centering \includegraphics[width=25cm,height=25cm,keepaspectratio]{1.eps} ...
3
votes
1answer
157 views

ModernCV: how to make first entry of \cventry “raggedright”

I want to modify the first field of \cventry{Aug 2014 - Present}{WiMi}{LMU}{}{}{} in a way that it is ragged right. This might be equally interesting for: \cvitem \cvitemwithcomment Is this ...
0
votes
0answers
29 views

Text to the right of a section heading

This is a macro that defines a heading for a project \newcommand{\project}[2]{ %1: project name %2: percentage of time \subsection*{#1 \begin{flushright} ...
0
votes
1answer
64 views

aligning and logo shape in moderncv

How can I align the logos and the elements on their right side? Another, and more important, problem that I face has to do their shape. As soon as I close TeXworks and try to open the pdf document I ...
3
votes
2answers
73 views

My center header is not centered

I have the following code for my footer: \usepackage{fancyhdr} \lhead{} \rhead{} \chead{My very important and long title that is not being centered as I would like to \newline Very Myself} ...
3
votes
2answers
86 views

Aligning right parenthesis vertically in a multiple-choice test

I am making a test. Some of the problems have choices, and the choices are mathematical expressions. I have included the code for the first two problems; 1.) has six choices, and 2.) has eight ...
1
vote
2answers
78 views

Alignment across multiple equations

Right now, my document looks like this: Or, like this: It bothers me a lot that the equations are scattered all over the place and are not evenly aligned. I want, for example, each line be ...
1
vote
1answer
51 views

equation in enumerate environment to long

I have kind of a long math term in an enumerate environment. The problem is, it is too long, so it doesn't fit on the right side of the paper. Is there any opportunity to move it more to the left? As ...
3
votes
2answers
146 views

Vertical and Horizontal aligment with several figures and tikz figures [duplicate]

I've been having some trouble aligning multiple figures. The problem is present with png figures and tikz figures, so I guess I am missing something. tikz figures not properly aligned: the ...
3
votes
1answer
111 views

ConTeXt: Flush right formula numbers in cases environment

I would like to have the formula numbers of the cases environment flush right like regular formulas (not at a fixed distant from the cases like it is by default with the default setting ...
1
vote
2answers
65 views

Caption position

I am writing a latex code where I include a graphic using \includegraphics[]{}. The caption is always at the center below the figure. How to change its location to the very left (below the figure) ? ...
2
votes
0answers
73 views

subcaption package changing algorithm2e caption position

I have a project which makes use of the subcaption and algorithm2e packages. For whatever reason, the subcaption package is causing the captions in the algorithms to be misplaced. Here we have a MWE ...
8
votes
3answers
157 views

Aligning polynomials rightshifted by x

I am trying to align some generating functions, to give a visual indication of how they represent recurrences. When I try to do this the natural-seeming way with aligned, it puts an obnoxiously large ...
3
votes
2answers
52 views

German date notation in paragraphs

According to the DIN ISO 8601 a German date needs to be formated without a linebreak between in it. So LaTeX have to break before or after the date. Instead sometimes a date exceeds the linewidth. ...
4
votes
1answer
79 views

fancyhdr: Footer not centered after changing page geometry

MWE \documentclass{article} \usepackage{lipsum} \usepackage[showframe]{geometry} \usepackage{fancyhdr} \fancyhf{} \cfoot{something centered in footer} \lhead{\rule{\textwidth}{3pt}} \pagestyle{fancy} ...
5
votes
2answers
154 views

Center-align multicols with equal horizontal spacing

I use multicols within an enumerate environment to make sub-questions; however, I've encountered annoying default: for some reason the spacing between the elements is not even, nor does it appear to ...
1
vote
1answer
49 views

Making author names parallel and aligned in article document class

In the article document class, how to make author names parallel and aligned like we align inequalities and equations? Is there a default command to do so? I have tried \and but that just made author ...
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
196 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
165 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
133 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
49 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
89 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
130 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
159 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
57 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
46 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
129 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 ...