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

Constant alignment of centered text on different lines [duplicate]

I want to have multiple lines with three sections: a left-justified column, a center-justified middle column, and a right-justified last column. For any line this is mostly done with \hfill. The ...
1
vote
1answer
205 views

`helvet` and `moveleft` in resume

I have several questions about the following code: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Medium Length Graduate Curriculum Vitae % LaTeX Template % Version 1.1 (9/12/12) % ...
4
votes
1answer
101 views

Raggedright not working inside a table

I have a table and i want to align elements left. This is my code : \begin{tabular}{|c|c|} \hline Priorité&Description \\ \hline \multirow{4}{16 mm }{\centering 0} & \tabitem ...
5
votes
1answer
128 views

Is there a better and compact way to represent the expansion of products of polynomials?

Objective: to show the expansion process as readable as possible so we don't run the risk of misreading the coefficients of the corresponding terms of the expanded, long expressions. ...
3
votes
2answers
101 views

Help me with alignment

Anyone can help me write a latex for this? Except there should be no space between the letters because they are one word (ex. no space between d,e,and f). Thank you for your help!
1
vote
2answers
245 views

Placing text, includegraphics or a table above and below Tikz picture in standalone

The documents I am working with produce very large Tikz pictures (using Forest package) that span multiple horizontal and vertical pages in PDF. These pictures need to have titles, compbined of text, ...
3
votes
1answer
57 views

Text and picture top-aligned, where text is left-aligned and picture is right aligned

Using the answers from this sight, I tried to accomplish top-aligned text and image where text would have to start from the left side of the page, and picture would be at the right side. However, ...
1
vote
1answer
58 views

What is the correct way to properly align a split equation with continued parts prefixed with a binary operator?

Consider the following result with 2 methods. Don't hesitate to propose better ones if any. The question is: What is the correct way to properly align a split equation in which binary operator ...
2
votes
1answer
58 views

How to change flushright in order to set space between margin and text?

In my table I have got something like this: \multicolumn{1}{p{12cm}}{\rule{0pt}{1cm}\small\begin{flushright}\noindent keywords:\\ aaa\\bbb\\ccc\end{flushright}} \\ Does anybody know if it is ...
3
votes
2answers
52 views

How to align the new environment

I have to define the new environment, similar to the proof environment. I learned on our site how to define it, but I do not know how to customize it. In particular, I design a book by using gsm ...
3
votes
2answers
68 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 ...
3
votes
1answer
68 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} ...
4
votes
2answers
73 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 ...
2
votes
1answer
52 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 ...
3
votes
1answer
131 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
38 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
60 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 ...
4
votes
2answers
63 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
65 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 ...
3
votes
1answer
99 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
62 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 ...
0
votes
0answers
89 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
123 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. ...
5
votes
2answers
133 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?
3
votes
3answers
664 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{ ...
2
votes
1answer
99 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 ...
7
votes
3answers
118 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
141 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
99 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 ...
4
votes
2answers
126 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. ...
2
votes
1answer
230 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
116 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 ...
1
vote
1answer
51 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 ...
6
votes
1answer
252 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: ...
1
vote
2answers
98 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)} ...
3
votes
4answers
138 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
112 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
133 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
215 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
105 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
121 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 ...
2
votes
1answer
82 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
88 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
46 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 ...
0
votes
1answer
99 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 ...
1
vote
1answer
54 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. ...
3
votes
1answer
168 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 ...
4
votes
1answer
74 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 ...
2
votes
2answers
56 views

How to increase the horizontal space in an array below?

\documentclass[preview,border=12pt,12pt]{standalone} \usepackage{mathtools} \newcommand\specifier{% r@{}r@{}l @{\quad}c@{\quad} r@{}r@{}l @{}c} ...
4
votes
3answers
84 views

Concerning the equation mode

I am listing a bunch of itens that are left-aligned (actually, I am using the \hspace command); then, for one of them, I need to do a definition by cases, so i'm using the equation mode and, inside ...