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

How to center text in a cell of a longtabu (horizontal and vertical)

I have a long tabu like the one defined last in this question and online here. It looks like this when compiled: As you can see the "point" and "score" text is placed in the buttom right corner. ...
1
vote
1answer
30 views

Center content of a minipage inside of a longtabu

How do you center the content of a minipage that is placed inside of a longtabu? My minipage looks like this and can be found online here: ...
1
vote
3answers
84 views

How can I fit my table in the text block?

I want to make my table fit in the text block. At the minute, a large part of my table is being cut off at the right-hand edge the page. My code is: \documentclass{article} \usepackage{graphicx} % ...
4
votes
1answer
57 views

\halign does not affect \prevdepth?

What is the purpose of restoring the initial value of \prevdepth at the end of a horizontal alignment: \prevdepth=.1234pt \everycr{\noalign{\dimen0=\prevdepth prevdepth in noalign: \the\dimen0}} ...
0
votes
1answer
32 views

Justified alignment for equations

I am writing a IEEE journal paper full of equations and with center alignment the paper looks so messy. I needed to justified align at least those that are coming successively one after another. I ...
3
votes
1answer
35 views

Bad alignment in table cell using siunitx table type S

I have a problem with number alignment using the S table type from siunitx package. The numbers are not centered and especially on the right side the number falls out of the table. The ...
2
votes
1answer
21 views

Header does not align with text frame

I have noticed that my header not is aligning with my text boarder, which I would like. The problem only occurs when I have the part where I adjust the spacing above and below equations. Can anybody ...
4
votes
3answers
67 views

Right align address

I am pretty new to LaTeX and I'm having some issues for creating a motivation letter. I have a nice structure in my mind, but I can't complete it fully. Here's a live example: click. Everything looks ...
3
votes
1answer
96 views

Figure not centered properly in LaTeX, kindly help!

I am making a figure in LaTeX of which the code is given below. In the end result, the figure is not centered in the page, the page offset from the left is more than the page offset from the right. ...
4
votes
1answer
35 views

Simultaneous left and right justification in TOC with tcolorbox

A tcolorbox can have a title and an after title. Is it possible to put them simultaneously in the TOC, the title being left aligned and the after title right aligned ? \documentclass[11pt]{book} ...
2
votes
3answers
150 views

How may I align a mathematical statement and a few words straight of the following?

I would like to have the words 'to mean' and the following mathematical statement to be on the same straight line. Thank you very much! \documentclass[11pt,a4paper]{article} ...
1
vote
1answer
30 views

How can a verbatim environment be centered using a basic LaTeX installation?

I want to centre some verbatim text in a reasonable way using only a basic LaTeX installation, i.e. the packages listings and fancyvrb are not available. \documentclass{article} \begin{document} ...
1
vote
0answers
26 views

LaTeX weird alignment

I'm new with stackexchange and I'm not sure if I post this question the right way, please let me know if I need to provide additional information. I can't identify the source of this alignment ...
7
votes
2answers
126 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
38 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
218 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
74 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
126 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
47 views

Justification isn't done in this part of my document

\documentclass{article} \usepackage{amsmath} \usepackage[spanish]{babel} \usepackage{graphicx} \usepackage{graphics} \usepackage{times} \usepackage{color} \usepackage{float} \usepackage{multicol} ...
3
votes
1answer
39 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
87 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
30 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
27 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
44 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
237 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
46 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
54 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
53 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
25 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
99 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
35 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} ...
1
vote
1answer
45 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
58 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
120 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 ...
0
votes
1answer
27 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
83 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
63 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
22 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
36 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
57 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} ...
1
vote
2answers
63 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
39 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
96 views

Vertical and Horizontal aligment with several figures and tikz figures

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 ...
2
votes
0answers
62 views

ConTeXt: Flushed right formula numbers in cases environment

I would like to have the formula numbers of the cases environment flushed on the right of the page like for regular formulas (not at a fixed distant from the cases like it is by default with ...
1
vote
2answers
50 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) ? ...
1
vote
0answers
38 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 ...
7
votes
3answers
141 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
47 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
44 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
62 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 ...