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

3
votes
2answers
42 views

How to align continued/spilled line to part of the sentence

Is there any way to align the spilled over line to a particular part within the sentence I want to align the second line under MS Office.... \textbf{Software} --- MS Office Powerpoint, Software 1, ...
2
votes
2answers
34 views

hyphenation and justifying in \epigraph

Is it possible to justify and hyphenate quotes typeset within an \epigraph? An MWE and its output are shown below: \documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} ...
2
votes
1answer
34 views

tabular with “centered” and “flushright” entries

I need to typeset a tabular with the following requirement: the head of a tabular should be center in the column the entries should be flushright and (more or less) center in the the column like ...
8
votes
2answers
47 views

Horizontal alignment across nested aligned

Is there a way to left align the first 2 rows with the last one? \documentclass{article} \usepackage{amsmath} \begin{equation*} \left\{{\begin{aligned} &\left.{\begin{aligned} &A+B=X\\ ...
1
vote
1answer
20 views

centering environment - detach some text from centering

I'm trying to write some centered lines, but detach some of the text from the "centering" mechanism: \begin{center} some textual claim \\ $\Updownarrow$ \\ more text \\ $\Updownarrow$ - some comment ...
3
votes
1answer
67 views

How to put two minipages side-by-side, which use 100 % of the text width?

In draft-mode a black marker indicates that the reserved space is too low. This also appears in the following example, but it shouldn't. How can I put two minipages exactly side-by-side? ...
3
votes
0answers
68 views

exam class - align problems horizontally using probsoln

I would like to create worksheets with problems filled by rows instead of columns. I am using probsoln to store and call the problems, but they always end up filling the worksheet vertically. I tried ...
2
votes
1answer
31 views

How do I center my title (both horizontally and vertically)?

I'm trying to create a centred title, both horizontally and vertically on the page. I'm rather new to latex - so far, I've tried the code below without success: \begin{center} \title{Title} ...
2
votes
1answer
33 views

How to repeat centered text in a sideway environment?

Some text can be repeated, for example, by using \multido of the package "multido" and text can be rotated by using the sideways environment of the package "rotating". Combining both works. But when ...
6
votes
1answer
42 views

Flush what's following \hfill to the next line if it doesn't fit

I'm using \hfill to flush some text to the end of the line. However, when the stuff preceding \hfill takes up most of the line, the text at the end is broken over to the next line. What I am want is ...
3
votes
1answer
64 views

Left align title in moderncv style casual

I want to align left the title (which is "Curriculum Vitae") under the horizontal line. I also want it not to be Italic. So my name above the horizontal line in the left side and the title under the ...
3
votes
1answer
41 views

How to center a table in Classic thesis LyX version

I am using classic thesis for writing my thesis and while placing tables, the tables are aligning to the left. I want the table centered. I am attaching images of the LyX code and the output. Any help ...
0
votes
1answer
29 views

How can I center align subsection heading in an AMSBOOK document

In an amsbook based document A subsection heading seems to be left aligned with some indentation in the beginning. Chapter and section headings are center aligned. How can I make subsections also ...
3
votes
2answers
105 views

Alignment marginnotes

I am trying to write a report for Uni, where I need something like what marginnotes does. The problem is I would need two different margins on the left side of the page. One for the chapter or ...
2
votes
1answer
44 views

Linebreak without justification if remaining Text doesn't fit [duplicate]

I have a text (justified block paragraph) with an author attribution. If the last line of the text has enough space left to fit the author attribution and some space, then it should be put into that ...
3
votes
1answer
65 views

Document isn't justifying after compilation

I am currently working on a report but for some reason, after I compile it, the text appears to be unjustified. I thought LaTex did this by default. Below is my code ...
3
votes
2answers
56 views

Alignment problem with algorithmic and hyperref

I have some alignment problems in the algorithmic environment when I use the hyperref package. I like to have my comments left-aligned which I achieve by ...
3
votes
1answer
32 views

How can one adjust each text to the center for each box of the table?

Here is the example: \begin{tabularx}{\textwidth}{ |X|X|X|X|X| } \hline Equation & 2 & 3 & 5 & 7 \\ \hline $y_0 = b^{t}$ & -483061 & 1 & -174089 & 793599 \\ \hline ...
1
vote
1answer
27 views

Require two figures on consecutive pages to be horizontally aligned

How can I require two (large, near page-size) figures (on separate though consecutive/facing pages) to be horizontally aligned? I've tried \begin{figure}[t] but LaTeX ignores me. If they simply are at ...
6
votes
3answers
99 views

How to align 'parts' of these equations?

I have a set of equations given by the following code: \begin{equation} \label{eqn:eraserStart} \max \, d \end{equation} \begin{equation} a_t \in \{0,1\} \, \forall t \in T \end{equation} ...
5
votes
1answer
44 views

Edit space for overbraces in equation

I would like to use \overbraces and \underbraces in my equation. However, when I make the text for \overbraces too long, the \overbrace doesn't contain the correct part. ...
0
votes
0answers
28 views

Codes running smoothly when run separately but generates error on running together [closed]

I have two chunks of code running both of them individually gives no error but when i run them together in a single tex file i get errors as mentioned below \begin{longtable}{l c} \caption{Basic ...
1
vote
1answer
43 views

How can I left align the labels in a customized description list

I have this code: \SetLabelAlign{rightbox}{\hss\llap{#1\quad}} \setlist[description,1]{align=rightbox,labelsep=0pt,leftmargin=0pt} \section{Project 55d5396fed} ...
3
votes
3answers
45 views

How to align all description labels with section

I am using this code \documentclass[paper=a4, paper=portrait, pagesize=auto]{scrartcl} \usepackage[inline]{enumitem} \usepackage[table]{xcolor} \definecolor{orange}{HTML}{FFC296} \begin{document} ...
3
votes
1answer
65 views

Horizontal alignment of text nodes of varying length in Tikz matrix like in Tex tabular

In tablular, we use {r|c|l} to define alignment. Is there anything similar for Tikz matrix. For example, by using matrix, the following MWE produces matrix of nodes, which appear to be center aligned ...
2
votes
1answer
51 views

How can I make the items aligned in section?

I have this code \documentclass[paper=a4, paper=portrait, pagesize=auto]{scrartcl} \usepackage[inline]{enumitem} \setlist[enumerate,1]{label=\textit{\alph*)}} \usepackage[table]{xcolor} ...
3
votes
0answers
65 views

How to make all table cells center aligned?

I have this code which works fine \begin{table}[ht] \caption{Table Data } \centering \begin{tabular}{c c c c} % centered columns (4 columns) Now i have the dynamic headers so i have ...
13
votes
5answers
228 views

Typesetting math: an optimisation problem (cost & constraints)

I really struggle to align a system of equation for an optimisation problem. It was all ok at the beginning until I started adding the constraint. I've got this code so far: \documentclass{article} ...
0
votes
0answers
29 views

How can you change the alignment of calstable? (followup question)

This is a question related to this question of mine. However David's code does not work correctly here (a part of the table remains at the left and the other part moves to the center). How this can be ...
1
vote
2answers
67 views

How to center text horizontally within beamer column?

I've got a frame in beamer with two columns. Each column contains a figure that contains an image. I'd like to put some text below each figure. I'd like the text to be centred within each column. ...
0
votes
1answer
65 views

Tikzpicture horizontal alignment with to[grid with coordinates]

I'm trying to align horizontally three grids, two of them in one figure. Below is the sample code: \documentclass[twocolumn]{article} %% ...
2
votes
1answer
59 views

TikZ object misaligned with main document: slightly shifted to the right

The TikZ picture is not aligned with the main content of the document. It slightly shifts to the right. Notice how the words go outside the frame on the right side. Any hints on how to correct this ...
5
votes
1answer
69 views

How can you change the alignment of calstable?

calstable is always left aligned. \documentclass{article} \usepackage{cals} \begin{document} \begin{center} \begin{calstable} \colwidths{{1.5cm}{1.5cm}{1.5cm}} ...
3
votes
1answer
42 views

How to add more indentation for section in table of contents

I would like to move sections in my TOC more to the right =) The picture will explain all: Here is my code so far (This code will give me the upper part in the picture): ...
1
vote
1answer
32 views

acm_proc_article-sp author's long email address overlapping

I'm having a problem with acm_proc_article-sp author's long email address, they overlap each other. Please suggest a solution for this.
5
votes
1answer
55 views

`\hfill`-like spacing in math mode without using `align`

In question 83509, a way of getting \hfill-like behaviour in the align environment is described, but for my purposes, I need one that works in the equation environment. (I want to display some ...
7
votes
1answer
79 views

How to add horizontal whitespace in my text?

I have the following problem: Is there an easy and quick way to change the upper part to the lower? I tried using \hspace, but it had no effect. I'm new to TeX so bear with me ;D
2
votes
3answers
54 views

Side by side tables as one figure

\begin{figure} \begin{minipage}{0.5\textwidth} \centering \caption{***} $\begin{array}{cccccccc} T_1: & c_{12} & & c_{23} & & c_{34} & & c_{45}\\ ...
2
votes
1answer
53 views

How can I left-align the table in pdfLaTeX in TeX Live?

I have these two TeX files: \documentclass[a3paper,landscape]{article} \usepackage{array} \usepackage{tabularx} \usepackage{longtable} \usepackage{ltxtable} \begin{document} Hello. ...
3
votes
1answer
46 views

Center displayed, boxed equation within environment

I would like to center, with respect to the page margins, a displayed equation that is boxed and is within either an enumerate or itemize environment. Below is an example of what I have. Notice that ...
2
votes
1answer
36 views

Odd behaviour when dashes are add in a table?

Using the following MWE : \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \usepackage{booktabs} \usepackage{siunitx} ...
4
votes
2answers
86 views

Center wide figure w.r.t. page instead of margins

I've seen similar threads with centering problems, but could not find the right solution to mine. I'm using the report class (onesided). I have a float figure (object width=1.3\textwidth here, may ...
3
votes
2answers
78 views

How to arrange floating image top centered?

I am using image in my report as follows to make it top centered. \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage{graphicx,caption}% ...
6
votes
1answer
57 views

Alignment rules

I find myself quite frequently in the need to check whether some elements on my page are aligned exactly as intended. As a result, I usually end up magnifying the output 400% and using a rule over my ...
4
votes
3answers
85 views

text not justified

I am new to LaTeX and in my first article I am facing the following problem. Although I set the margins to 1 in all around the A4 page, the text does not justify till the end of the right margin. It ...
42
votes
6answers
1k views

Starting a line where the previous line finishes

I have been using LaTeX for standard things like letters and scientific reports. I recently came to visit my grandmother who writes some poetry and told her I could make a nice pdf from her ...
1
vote
0answers
40 views

How to center align the nomenclature output?

I am using nomencl package to generate the List of Abbreviations which is working fine and is giving me the results. The problem is that I want the results to be centered on the page and not left ...
6
votes
2answers
69 views

Align pgfplotstabletypeset and plot left and right

I can't get the plot and the pgfplotstabletypeset to align so that they are right next to each other. Is this possible at all? Please help me. This is what it looks like at the moment: This is my ...
7
votes
2answers
74 views

is it posible to make a multiline itemize justifying the text inside

I am writing technical specs of a programming API. I am using itemize to highlight the method signature as it follows: \begin{itemize} \item[\texttt{packeteer.send(message)}] \hfill \\ is ...
5
votes
3answers
67 views

Left-align math with fleqn inside split environment

Below, how would I move the first math-line left so that a^2 left-aligns with where? \documentclass{article} \usepackage[fleqn]{amsmath} \begin{document} \setlength{\parindent}{0pt} Some text ...

1 2 3 4 5 23