{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
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
30 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
39 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 ...
0
votes
1answer
34 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
60 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
128 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
130 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
28 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
25 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
43 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
39 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
38 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
25 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
875 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} ...
4
votes
1answer
61 views

TikZ: centring a picture

My code fails to align the drawing so that the line SR (centre of the graph excerpt) is in the middle of the page. It is noticeable that the drawing is shifted to the left when compared to the text ...
1
vote
1answer
28 views

Breaking a long equation with alignment [closed]

How do I break a long equation that keeps to alighment? I need to break a long equation have been having issues breaking a long equation with latex can anybody help
2
votes
0answers
31 views

Text and Figure side by side inside a minipage?

I have a two column CV. I made the columns using minipage. In the second minipage (second column), I want my picture and some info in two columns. How do I do this? This is the relevant section of ...
2
votes
1answer
57 views

Broken words and alignments in LaTeX

In LaTeX, how can I stop words be cut at the end of a continuing line? For example at the end of my line there is a word 'ultimately' that once broken changes to 'ulti' and 'mately' in the next line. ...
4
votes
1answer
47 views

Align poem attribution with right side of versewidth rather than with right side ofpage

I would like to add attributions to some poems in memoir. The below code does that but flushes the attributions with the right of the text block. I would like them to flush with the right of the ...
3
votes
1answer
42 views

Equations in different part of the text not aligned

I have a problem, in my document I have two sets of similar equations but they do not align. This is the text: If $\tilde{\mathbf{p}}$ is first combined with the system of Eq.\ref{inplane:eq7} and ...
2
votes
2answers
86 views

Centering a enumerate list label

In this code as here: \begin{enumerate}[label=\bfseries Exercise \arabic*:] \item 5 + 7 = 12 \item 9 + 1 = 10 \item 2 * 2 = 4 \end{enumerate} I want the text Exercise (with its number) ...
3
votes
2answers
86 views

equations automatically aligning to the left, how do I centre them?

I was under the impression that equations align to the centre. I'm using a pack \documentclass [twocolumn, final] {svjour3} which I am guessing is changing that. So for example this: ...
2
votes
1answer
64 views

Single-column figure makes other column blank

I am editing a two-column paper (IEEE Conference Template) and there are some single-column figures to put into it. The code is listed below: \begin{figure}[t!] \centering \vspace{-0.1in} ...
1
vote
0answers
24 views

Some items in bibliography are not aligned [duplicate]

I am adding some items to my bibliography: \bibitem{ibm2}vander Meûlen, R. J. (2006). The immersed boundary method for the (2d) incompressible Navier--Stokes equations. Modelling, Analysis and ...