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

Moving a table all the way to the left side of the Page

I'm having trouble with a table I have made. It is too long and goes off of the page to the right. I have already made the font smaller and made the page landscape. What I need to do is have the ...
2
votes
1answer
48 views

Align chapter and section headings after their number/counter

How do I align headings whithout interfering with my TOC? This what I have: 1 Chapter 1.1 Section 1.1.1. Subsection This is what I need 1 Chapter 1.1 Section 1.1.1. Subsection I am using ...
4
votes
2answers
60 views

Align text in tables in LyX

I want to align the text of one of my tables like this: However, I got this: The header of the table are centered and rotated (in case of the first column header) and the rest of the text are ...
3
votes
1answer
43 views

aligning numerical data in columns on decimal marker

I created this table: I use this code: \documentclass[12pt,twoside,a4paper,openright]{report} \usepackage{color} \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} ...
2
votes
1answer
41 views

How do I add indentation between text?

I have to write my homework with LaTeX, and I don't know how to add indentation inside text. I want to write my text, like this : Input : Sebuah digraf berbobot dengan bobot sisi tak negatif Output ...
5
votes
2answers
3k views

Alignment of text in itemize environment

I would like to generate a list of "Aims" (1,2,3...etc) as the \item label, with the text for the aim located adjacent (with \hspace{Xmm}). For items that exceed the width of the line, the alignment ...
5
votes
3answers
257 views

Noindent in \thanks, left align

I am using the following command in WinEdt to have the corresponding author contact info at the footnote. I used \\ to have a new line since it was long. I have two problems. First I need to left ...
3
votes
1answer
83 views

how to align an image using Tex/LaTex so it is above text

I am using the res.cls class to write my resume. And I thought it would be nice to put an image of myself just above the name. However when I have used the \includegraphics[scale =.09]{josh.JPG} I ...
1
vote
1answer
32 views

Justifying code according to corresponding elements indentation [duplicate]

How do I justify my comments as to inner for loop indentation in the below code: \documentclass[a4paper]{article} \pagestyle{empty} \usepackage{algorithm} \usepackage{algpseudocode} ...
4
votes
2answers
39 views

how to left justify comments to indent same as other text in Algorithmic

How do I left justify my comments in the algorithm. I am using algorithmicx package. What I want is: to pull the comment to left as shown in the attached snapshot. The code for my algorithm is ...
5
votes
2answers
74 views

Implicit \hfil at the end of each paragraph?

Why do Alpha \hfil\ Omega\par and Alpha \hfil\ Omega not flush "Omega" to the right?
4
votes
2answers
56 views

How to h-alignment subtable to the limits of text?

I have this 2 subtables. How could I separate more the 2 tables, puttin the space indicate in the image in the center to get bigger the central distance ? I usually use \centering for center... are ...
2
votes
1answer
782 views

Horizontally align multi-line cell in table

I want to horizontally align two cells with two lines in a table environment, something like this: ------------------- | A long | foo | | | ----| | multiline | bar | ------------------- ...
1
vote
0answers
23 views

Variable \hspace value in relation to outside margin (Two-sided Memoir)

So I have received a great deal of help on this. I myself did not create the code, but I have an additional need. As you can see from my MWE, I have a long two-sided memoir document that has a ...
4
votes
2answers
48 views

Align right (hfil) doesn't work for me [duplicate]

I am using TEXShop working at a MAC and I don't really know what I am doing, I am just trying to fill a template. But I want to add something that the template does not offer; align a section to the ...
6
votes
2answers
200 views

How to center dmath equation under an item?

I have this code: \documentclass{article} \usepackage{breqn} \usepackage{blindtext} \eqinterlinepenalty=0 \intereqpenalty=0 \begin{document} \blindtext[3] \begin{itemize} \item ...
3
votes
3answers
577 views

Centering siunitx columns

I have the following table, with the decimal aligning handled by siunitx (MWE): \documentclass{scrartcl} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{ ...
0
votes
0answers
62 views

Maintaining Optical Margins with Hanging Punctuation

To achieve hanging quotation marks, I am changing their protrusion settings in my preamble: \documentclass{minimal} \setlength{\parindent}{0cm} \usepackage{luatextra} \setmainfont{Times} ...
1
vote
1answer
47 views

latex text bold, center and link issue

I created one doc here. It has two pages, code seems correct as per me but there are some issue with it. I used \hfill to put the title in center. IS it wrong? In email, I made only this word bold. ...
2
votes
1answer
59 views

Alignment of toc in beamer class

I have some problems with vertical alignment of toc in beamer class related to this question. The answer works for me, but i would like to center the toc and decrease the horizontal space between ...
32
votes
5answers
38k views

How to make text aligned left/center/right in the same line?

I am trying to align some text to left/center/right in the same line. For example, I want to put my phone number on the left, my name in the center, and my email on the right, how do I do that?
4
votes
2answers
103 views

Align and Center equations

I have the following equations . I just want to center them , such that the equality '= ' signs are one below the other. I tried \begin{align} but, that pushes them all to the left of the page. ...
0
votes
1answer
56 views

Centering a xy matrix inside beamer frame and figure

In the following beamer frame, I want the description text to stay top-left, while the xymatrix-figure should be centered. However, whatever I tried with \centering, \begin{center} and other online ...
7
votes
3answers
88 views

How to align text in title with \fcolorbox

I have defined a new command to make some titles for a newsletter. I'm using the article class for the document. The command is defined with the following code: \definecolor{myblue}{rgb}{0.16, 0.32, ...
4
votes
7answers
122 views

How to align a word below other which is on the right side

As shown in the picture, I want the date to be below the external examiner. This is on the right side of the page. Help me
4
votes
3answers
45 views

How to center \rhead

I currently have my header as follows \pagestyle{fancy} \setlength{\headheight}{39pt} \renewcommand{\headrulewidth}{0pt} \lhead{\includegraphics[width=.1\textwidth]{Logo}} % Frist page only header ...
1
vote
2answers
70 views

Problem with \hfill and hyphenation

When I use \hfill and in the previous line the last word is hyphenated, the \hfill doesn't work the same way as usual: \documentclass[a4paper, 12pt]{book} \begin{document} Spellings attempt to ...
2
votes
1answer
129 views

Split lines, keep a table/aligned text within textwidth and span several pages

I have a very long table that I use to align some text, therefore I don't need it to be (specifically) a table (please consider that in the answers). I am using supertabular for the table to span ...
1
vote
2answers
79 views

How to align section heading left with revtex4-1

I am using revtex4-1 and section headings are aligned in the center. How do I modify this?
21
votes
1answer
11k views

Fixed column-width table with text left-aligned in cells

\section{Section Title} %label{8.4.47} \subsection*{Some note on Section} \begin{footnotesize} \begin{tabular}{p{2cm}|p{4cm}|p{3cm}|p{3cm}} Heading 1 & Heading 2 & Heading 3 & Heading 4 ...
2
votes
1answer
65 views

Alignement in table of contents (\titlecontents)

In the code below, I use \titlecontents{part} to customise the way the parts are displayed in my table of contents. \titlecontents{part} [0em] ...
2
votes
2answers
44 views

How to I move the from (sender) address position to the left in a letter document class

This one deals more with vertical, not horizontal, space: Positioning the address in a Letter I know about the scrlttr2 document class, but the letter class has much better default formatting (I only ...
5
votes
1answer
391 views

TikZ graph not aligning

I am having two issues with TikZ pictures. I have three graphs side by side, and I am having issues, but only with some of them, which is very odd. First the x-axis is going out of alignment (some ...
11
votes
2answers
58k views

Adding tabs or creating my own command

I have a problem adding tabs and I can't use a tabular environments (like tabular or tabbing) because I can't mix it with enumerate environments. Is there a way to add a simgle tab like in any text ...
1
vote
1answer
25 views

Authblk style file using but I can't able to find out the required output

I am using the authblk package. But I can't able to find out the output for below mentioned problems. I am using the below mentioned logic. If the same affiliation is repeated different author like ...
1
vote
2answers
56 views

Two figures with side captions next to one another

I currently have the following figure placed at the bottom of my page: \begin{SCfigure}[][h] \centering \caption{Georg Kantor (1845--1918)} ...
6
votes
1answer
147 views

How to align comments in algorithm code?

I will to align comments in another column, package algorithm. (Similar question: Faulty right alignment for comments in algorithmic package), but I will to become that result: ...
3
votes
4answers
115 views

Making an array in the Table

So we have an Table and there is an array which we wish to have it in the Table: Here is the code \documentclass[onecolumn,amsmath,amssymb,nofootinbib,superscriptaddress,floatfix]{revtex4} ...
3
votes
2answers
87 views

Remove vertical lines in the table unsuccessfully

I have created this Table: via the LaTex source code: \documentclass[onecolumn,amsmath,amssymb,nofootinbib,superscriptaddress,floatfix]{revtex4} \begin{document} \begin{table}[!h] ...
5
votes
2answers
80 views

alignment of numbers in exponential format in a table with complicated header rows

I have a table that contains a lot of numbers. I have been defining new column types to allow me to specify column widths and allow \newline within a cell. Some of my columns of numbers are in ...
3
votes
1answer
99 views

Two videos side by side in one slide beamer?

How can I add two videos in one slide side by side. Both videos should be in a horizontal line. The following code put a video above the other video. \begin{frame}[t] \frametitle{ Results} ...
3
votes
1answer
47 views

Minitoc settings + \hfill in \subsection

I'm trying to make a note book on LaTeX for a language course. For this I sort my vocabulary lists by theme. As you can see in the example below, I use a \hfill inside the \subsection command to make ...
6
votes
3answers
75 views

Left align text that is flushed right?

I want the row kandidatnivå, 15 hp to be aligned to left with examensarbete nr. xxx. How do I solve this? \begin{minipage}[t]{0.48\textwidth} \scriptsize Institutionen för Fastigheter och ...
1
vote
0answers
38 views

Center code in a lstlisting float

Out of pure laziness, I decided to create lstlisting floats with the option offered by the package: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{listings} \begin{document} ...
3
votes
2answers
48 views

Distributing two small images in a document (horizontally) evenly

Consider the following code (no special packages added) \begin{document} Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ...
3
votes
2answers
40 views

Mini-alignment of a single equation?

So I have this problem, whereupon I would like to do some 'mini-alignment'. I have googled for ways to do this, but I get results based on aligning whole equations. Here is my current output: What ...
3
votes
1answer
78 views

Alignment in Siunitx with Comma separators

How can I right align the following two columns, just specifying that there will be at most 5 integer digits and never any decimals? I can't seem to get the right combination of options. I can align ...
1
vote
1answer
45 views

Centering a table of images

I'm trying to center a table of images; 2 images per table row. Right now the code I have is ugly, and doesn't center on the document. I've tried using \begin{center} and \centering without any luck. ...
4
votes
1answer
52 views

Aligning by ; with dcolumn works only for 1 column

I have a problem with aligning columns by ;. Using the dcolumn package I was able to align the first column but when I try align all 4 columns by ;, like this \begin{tabular}{r|kkkk}, it fails with ...
6
votes
3answers
130 views

How to insert a picture without the name “figure”

I am trying to put a figure with a subtitle but without the name "figure". For example: 'This is a triangle' and not put the name "Figure": 'Figure: This is a triangle' I tried: 1. ...