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

1
vote
1answer
46 views

Underfull \hbox warning about alignement in a csvsimple table

The following csvsimple table keeps returning warnings of the type: Underfull \hbox (badness 10000) in paragraph at lines: \csvreader[no head, longtable=|p{\dimexpr ...
7
votes
1answer
240 views

Why don't these functions align perfectly with uniform spacing?

Thanks for the help. I don't see why the functions aren't aligning perfectly with uniform spacing. \documentclass[11pt]{article} \begin{document} \DeclareMathOperator{\csch}{csch} ...
2
votes
1answer
66 views

How to attach a table to another table horizontally?

How to attach a table to another table horizontally? \begin{tabular}{|c|c|c|} \hline some thing & some thing & some thing \\ \hline some thing & some thing & some thing \\ \hline ...
3
votes
2answers
58 views

Encode into an `enumerate` environment (Version 2)

From the following code, a selection from a multiple-choice test is rendered. The four problems should be enumerated as 1.), 9.), 16.), and 25.). How do I do that with an enumerate environment? I ...
0
votes
0answers
12 views

How to draw a horizontal separation line with thick center and thin sides? [duplicate]

I want to create a horizontal line to separate context and references, as always seen in papers like this I have tried \hrule abc\begin{center} \hspace{0.25\textwidth}\hrule width 0.5\textwidth ...
2
votes
2answers
27 views

text in align-environment

Is there a way to coordinate the space here? \documentclass[a4paper, 12pt, oneside, titlepage]{scrbook} \usepackage{amsmath} \usepackage{amssymb} \usepackage{colortbl} \begin{document} ...
5
votes
1answer
107 views

Left-justified text with wrapping math

I would like left-justified text with embedded math which wraps in a manner similar to the behaviour with fully justified text. It seems LaTeX will wrap math at "sensible" points (e.g. between certain ...
3
votes
1answer
50 views

how to center Tikzpicture?

I am making a presentation, using a template I found online. The problem is that my tikzpictures are not getting in the center. I have tried \centering, \begin{center}. But that does not solve the ...
2
votes
1answer
34 views

\raggedright in glosses and switching back to normal alignment

I have to typeset long examples. Sometimes they span several lines. I would like to have them \raggedrightbut this should not affect the translation. The code for the glossed example taken from ...
1
vote
0answers
35 views

Moving title to the left without aligning to the left [closed]

I'm trying to produce a title page with a title made with \maketitle and a picture (logo) to the right of the title. I already managed to have the image to the right using tikzpagenodes, but I ...
3
votes
1answer
65 views

Justify text when using a tabular environment

I'm using \documentclass[10pt,twocolumn]{article} \usepackage{hhline} \usepackage[left=1cm,right=1cm,top=1cm,bottom=2cm]{geometry} \addtolength{\columnsep}{0.4cm} ...
1
vote
1answer
31 views

How to align column of mixed fractions (after whole number) in tabular?

I have a table that has a column with mixed fractions (that is, whole number plus fraction part) as entries which I need to reproduce in latex. The problem is that the fraction part of the mixed ...
3
votes
2answers
41 views

Display hexcode in table

I want to display some hexcode aligned in a table. This is what I got: \begin{table}[h] \caption{Dirty table} \centering \begin{tabular}{p{6cm}|p{6cm}} \textcolor{red}{0000 0000 0001 0000 0000 0000 ...
1
vote
1answer
36 views

Split justified text between two pages with longtabu

I would ask how to split justified text between two different pages using longtabu. For now, if a single row exceed the space of the page, the entire text will be printed in the next page, leaving a ...
0
votes
0answers
31 views

How to change alignment of text inside a block?

I am drawing a block diagram in LaTex. In some of the blocks, I need to align text along vertical direction. How can I do that? \begin{figure*}[!t] \setlength{\unitlength}{0.13in} \centering ...
3
votes
0answers
62 views

Centering list issue with Enumerate+Hyperref+Varwidth

I want to center an enumerated list so i've tried to use the answer of this question given by the Great David Carlisle. But using hyperref, varwidth and enumerate (in any order in the preamble) cause ...
4
votes
2answers
72 views

Horizontally misalligned sub-/superscripts in fractions when using 'minus' sign

I am combining sub- and superscripts in the denominator of a fraction. I get ill behaviour when the exponent is preceded with a minus sign: I would expect the sub- and superscript of the first two ...
0
votes
0answers
15 views

Alignment problem in tabularx that happens when I change it to non-decimal

I have the following code which aligns when I have decimal figures but fails to do so when I type 0 for instance. The code is as follow \documentclass{article} \usepackage{tabularx} ...
3
votes
2answers
31 views

calc package and global lengths problem in tabularx

The output of the following code is affected whether calc package is included or not: \documentclass{article} \usepackage{tabularx} % \usepackage{calc} \newsavebox{\testbox} \newlength{\testlen} ...
1
vote
1answer
25 views

Move two captions to the top and to the left respectively

I have two captions in the following table: \begin{table}[!htbp] \caption{Stuff Stuff Stufff.} \begin{tabular}{l |l l| l} \hline & aaaaaaa & aaaaaaa & aaaaaaaa \\ \hline bbbbbbb & ...
4
votes
3answers
130 views

Alignment of multiple equations and their comments

I need to center-align a series of equations and then align their comments (which are themselves to be right-justified (except not all of them!). I'm slightly overwhelmed by the numerous options ...
1
vote
1answer
21 views

longtabu alignment cell won't get to the center

I'm using tabu package. The inside of the every cell doesn't get to the center except for the second and the third. And also the line for closing the table doesn't show. Can anybody help me to fix it? ...
0
votes
0answers
37 views

How to get picture at center of the page

Dear All, I am using below lines to add picture to my document but it is not in center of the page (see the picture attached).Does any one know how I can get it at center of the page please. ...
4
votes
1answer
34 views

Is there a way to set the default alignment for mathtools matrices?

I have a lot of mathtools matrices in my document that require right alignment (and others that have other alignment): \begin{bmatrix*}[r] 1 & 0 & 0 \\ 7 & 1 & 0 \\ \end{bmatrix*} ...
1
vote
1answer
26 views

How to Right Align \attrib in Verse Package?

This MWE comes straight from Peter Wilson's Verse Package manual (v2.4b). In the example the attribution is right justified. However, when I implement the MWE in MikTex my attribution is left ...
4
votes
1answer
72 views

centering tikzpicture

I have some problems concerning the command \centering. I want to put a tikzpicture in the center of the page but I can't do it. I tried with \centering and with \begin{center}...\end{center} but ...
3
votes
1answer
64 views

Insert a graphic within a sentence nicely?

I am using string diagrams that I draw in Illustrator a lot, and I would like to draw them within a sentence. When I just put \includegraphics{...} in the text, the image appears but its bottom is ...
2
votes
1answer
67 views

Horizontal align jpg icon in block title

I am new to beamer. I need to put an icon in the block environment title on the right side. My code looks like this : \begin{exampleblock} { \includegraphics[width=10pt]{frog.jpg} Example ...
6
votes
2answers
131 views

Why default behavior of section title is to overflow

The question I am asking here is not "how to fix" but rather "why is this the default behavior". For many things, I find that understanding why latex does what it does leads to me being able to write ...
1
vote
0answers
31 views

Horizontal alignment of footnote numbers with hang-option of footmisc

I would like to have a horizontal space between the footnote numbers and the text of the footnote. For this I am using the following code: \documentclass{article} \usepackage[english]{babel} ...
1
vote
1answer
26 views

Tabularx Column Settings Take Up Space and Text Align Left

The table below creates a 3 column table, when I use the {l | X | X} column settings it creates the last 2 columns of equal width which Is what I want but I also want the text within to align left. ...
2
votes
2answers
47 views

gb4e glosses are not aligned properly

I am attempting a simple gloss (with translation) using the gb4e package. The relevant code is as follows (2 issues): \begin{exe} \ex\label{myexample6} \gll \textit{Mieleeni tulu er\"{a}s ...
10
votes
5answers
259 views

Uneven height when using superscript in frac

I want to fine tune some of mine equations, when I encountered this Notice, how the superscript in the derivative operator fits nicely and doesn't lower the symbols in the denominator, while the ...
1
vote
1answer
28 views

inline and vertical enumeration in the same document

I want to implement both inline and vertical enumeration in my document. I know that inline enumeration can be achieved using inline option of enumitem package. In addition, I found this question ...
1
vote
1answer
44 views

Aligning a table vertically and horizontally

I need to place a table in the centre of a page, here is the code for the table which just centres the table horizontally, but not vertically. \documentclass[12pt,a4paper,titlepage]{article} ...
1
vote
1answer
40 views

Text justifying problem when using monospaced font

I got text justifying problem when I change the default font to a monospaced font, as you can see in my MWE. Note that this does not only happen in article class, but also in memoir, book, as well. ...
0
votes
2answers
83 views

Horizontally align x-axis of a curve figure and a contour figure

I have two subfigures generated by Tikz, one is a curve plot and the other is a contour plot. The x-axis actually are the same so I want to align them horizontally. I gave a minimal working example ...
3
votes
2answers
69 views

Aligning table of data using dcolumn

I have a table with one index column and three columns of data. I would like the table have the data aligned using the decimal point. Following the answer to this question I try the following code: ...
4
votes
2answers
210 views

Why this table does not appear centered?

\documentclass[landscape]{scrartcl} \usepackage{booktabs,array,enumitem,ragged2e} \newcommand{\tablistcommand}{% \leavevmode\par\vspace{-\baselineskip}% } \newlist{tabitemize}{itemize}{1} ...
1
vote
2answers
32 views

Flushleft bibliography APA style

I need all the line in bibliography to be flush left. Following is the code \documentclass[12pt,oneside]{report} \usepackage{ragged2e} \usepackage{apacite} \usepackage{breakcites} ...
2
votes
1answer
39 views

Figure won't go half way down page

Hi I'm writing a thesis and my set-up is essentially using my universities template where there's a master .tex file that then accesses \input{Chapter} to make each chapter. In my chapters the ...
2
votes
1answer
26 views

Alignment and placing of subtables

I have a table float with four subtables and having trouble with alignment and placing. Here's the code: \begin{table} \begin{subtable}{0.45\textwidth} \centering \begin{tabular}[t]{cccc} \toprule ...
6
votes
3answers
153 views

Displaying equation with a line break and all subsequent lines indented

In answering this question, I recommended some changes to the OP and provided the following code: \documentclass[12pt]{article} \pagestyle{plain} \usepackage[margin=1.8cm]{geometry} ...
0
votes
2answers
29 views

How to center the wrapped cells

It might have been asked in certain questions, but none of them worked for me as I would like to center the wrapped columns in latex table and couldn't come with a clean and easy solution. I.e. here ...
1
vote
1answer
60 views

How to place several images on top of each other and center them on the page?

I can't figure out how to center the images. The aim is to center the images and make them large enough to stretch over the cropping line. Optionally: Is it possible to control how close the images ...
4
votes
1answer
27 views

Adjust the caption

As you know that the caption can \flushright or \flushleft by this command \captionsetup{justification=raggedright, singlelinecheck=off} Right now I want to make the caption of figure is in center ...
3
votes
1answer
62 views

Horizontal shift when using scalebox and input within center environment

I would like to use \scalebox to scale a TikZ picture (included with \input) that is located inside a center environment (I don't need a float environment in this specific case). But \scalebox ...
1
vote
1answer
40 views

How to move contents of fbox to top?

My question is how to align things in fbox in general but here's the clumsy solution I came up with: \documentclass[12pt]{article} \begin{document} { \fontfamily{qag}\selectfont \fbox{\vbox to 3in ...
11
votes
5answers
881 views

Left and right aligned on same line

I am currently busy typesetting my thesis in LaTeX, but I am stuck on something with my cover/title page. At the bottom of the page, I need to type my name and my supervisor's name. This is a rough ...
0
votes
2answers
25 views

Center the middle part of a three part equation in align environment

I have an inequality in a align environment: \documentclass[xcolor={dvipsnames}]{beamer} \usetheme{Warsaw} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} ...