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

2
votes
1answer
148 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
157 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
1k 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 ...
4
votes
1answer
4k 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
239 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
471 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
145 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
191 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
146 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
47 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
77 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
239 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
402 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. ...
2
votes
1answer
111 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
166 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} ...
6
votes
1answer
2k 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
86 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} ...
4
votes
1answer
299 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 ...
14
votes
5answers
5k 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} ...
2
votes
2answers
10k 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. ...
2
votes
2answers
303 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
128 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 ...
9
votes
3answers
216 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
576 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): ...
4
votes
1answer
537 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
2k 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
188 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
212 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
161 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
438 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
87 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} ...
5
votes
2answers
1k 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
189 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}% ...
11
votes
1answer
277 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
2k 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 ...
49
votes
6answers
2k 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
109 views

How to center align the nomenclature output? [closed]

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
544 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
421 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
4k 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 ...
4
votes
1answer
451 views

Hyphenation in classicthesis graffito

I am using the classicthesis package and the graffito side notes it provides. However, I'd like those side notes to be properly hyphenated, even though I think they were not intended to be by the ...
3
votes
2answers
192 views

Centering a wide table that is defined inside a NewEnviron

I am trying to centre a table with a lot of content whose width is larger than the text width. The problem is that I am defining the table environment in the preamble so I can reuse it, and this seems ...
3
votes
1answer
95 views

How to put a text, shifted to the right into the customized \section

I have the following code: \documentclass[11pt]{article} \usepackage[a4paper]{geometry} \usepackage[cm]{fullpage} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{lipsum} ...
0
votes
1answer
9k views

Centering table in landscape page [duplicate]

I'm trying to get a table centered both vertically and horizontally in a landscape page. I've tried some of the solutions proposed around here but I can't get them to work in my specific case. Here ...
6
votes
2answers
727 views

How to align dotfill to the right

I use the following command below to make my list of nomenclature to look like the list of contents, but I am a bit disturbed by the fact that the dots between the text belonging to a symbol in the ...
4
votes
1answer
147 views

Justifying a multiline formula

I tried to find the answer to my incoming question on this site, but I didn't succed. Is there a way to justify formulas without using \tabular? I mean, I have a multiline equation splitted with ...
10
votes
1answer
5k views

How can I align the full names in a list of acronyms?

I am using latex to write my thesis report and would like to generate list of abbreviation for same. I use the acrnonyms package to generate it. Following is my minimal code: ...
4
votes
1answer
160 views

Why does \centering have no effect in my code?

It seems that when I use the \centering command to center a TikZ picture within a Beamer frame, it only works if there is a blank line between the \end{tikzpicture} and \end{frame}. Can someone ...
0
votes
1answer
262 views

Remove justification from a longtable? [duplicate]

Using : \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \usepackage{longtable} \begin{document} ...
5
votes
1answer
227 views

How to align this long equation which out put from Mathematica

I use Mathematica, and use the command TeXForm from Mathematica, I get \{\{x\to -19,y\to 4,z\to 11,t\to -14,m\to 11,n\to 19\},\{x\to -19,y\to 4,z\to 11,t\to 19,m\to 11,n\to ...