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

27
votes
2answers
13k views

Changing left margin in itemize environment of beamer class

I can't figure out how to line up the symbols of an itemize environment in beamer with the left part of the main text. In other words, I would like to supress the left margin in beamer itemize lists. ...
1
vote
1answer
43 views

Align tikz picture on the right side of the screen, next to text

I want to have some code, and then on the right side of it a tikz picture. I tried 'flushright' but that didn't work. This is my code: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} ...
2
votes
1answer
31 views

Horizontally align objects inside arrays of different equations

In this set of equations... ...is it possible, to horizontally align the columns with the xes? More precisely, I would like to shift the right hand side of the upper equation, such that the xes ...
4
votes
3answers
54 views

Using horizontal fill to center doesn't work

I want to use the symbol for logical disjunction (the 'V'), but I want this to be in the center of the two 'x = ..'. Right now it's like this: This is the code I'm using: \paragraph{a)} $ ...
2
votes
1answer
31 views

Text-Align inside Caption

I've some problem with formatting my figure captions form my thesis. First i'd like to describe my final result. Caption above: align left Caption below - first row (source): align right Caption ...
1
vote
1answer
125 views

New Commands with text align

I would like to create a new command in LaTeX that aligns the text right and left (see example below). Only that I wish the text column were as large as half page. ...
0
votes
1answer
60 views

aligning and logo shape in moderncv

How can I align the logos and the elements on their right side? Another, and more important, problem that I face has to do their shape. As soon as I close TeXworks and try to open the pdf document I ...
1
vote
1answer
21 views

Align multiple lines in 'multline' command

\begin{multline} e^{-\lambda T} = ( 1 - \log S_j^* (T))^{\frac{1}{1-\theta}} \\ - \lambda T = \dfrac{1}{1-\theta} \log ( 1 - \log S_j^*(t)) \\ T = \dfrac{1}{\lambda (\theta-1)} \log ( 1 - \log ...
2
votes
1answer
19 views

Centered columns with fixed width using tabularx

How do I center the last seven columns in the attached text without dropping the fixed table width or the fixed column width? \documentclass[a4paper,12pt,oneside]{article} ...
2
votes
1answer
41 views

Beamer - Combining justification and centering

I am preparing a beamer presentation and I am having problems in combining justification and centering. I use mainly itemize and enumerate in my slides, and I want to have the text justified in all my ...
0
votes
0answers
31 views

justifying and scriptsize for all beamer slides

Following the answer here, I'm looking for a way to justify and set the scriptsize font for all beamer slides inside frame environment, I tried: \setbeamertemplate{frame}{/scriptsize/justifying} ...
1
vote
1answer
136 views

Centering Xcircuit Figure

Hi I am using a program called xcircuit to make circuit diagrams and I cant seem to get the figure centered. I have tried \begin{center}, \centering. I have tried messing with \flushleft but it needs ...
6
votes
2answers
10k views

Aligning using flushleft and flushright

I am trying to create one column to the left side by side with another column to the right. The column to the left is labeled "Examples of like terms:" and the column to the right is labeled "Examples ...
0
votes
1answer
41 views

Justified alignment for equations

I am writing a IEEE journal paper full of equations and with center alignment the paper looks so messy. I needed to justified align at least those that are coming successively one after another. I ...
3
votes
1answer
104 views

ConTeXt: Flush right formula numbers in cases environment

I would like to have the formula numbers of the cases environment flush right like regular formulas (not at a fixed distant from the cases like it is by default with the default setting ...
1
vote
1answer
35 views

Forcing left text alignment in a fit Tikz node?

I would like to add Tikz "marker" nodes in running text; then fit another node based on those "marker" nodes' positions; and insert a text into the fitted node, such that it is left aligned, and with ...
4
votes
1answer
103 views

How can I customise the amount of horizontal space that follows line numbers?

I'd like to increase the amount of horizontal space that after comes each line number in my algorithm (typeset with algpseudocode). Because algorithmicx in general, and algpseudocode in particular, ...
1
vote
0answers
34 views

Text out of margin and footer for bibliography

Well its been a great journey since past one and half month and I am happy that I managed write my dissertation with latex. Almost coming to finalizing stage, I figured out I have severe alignment ...
7
votes
2answers
180 views

Purpose of “control space”

I could not find enough information on Google about control space (\). What is the purpose of it? Where should it be used?
1
vote
1answer
51 views

Unexpected horizontal alignment when using enumitem

Consider the following example: \documentclass{article} \usepackage{mathtools} \usepackage{enumitem} \begin{document} \begin{enumerate}[ label = \arabic*), itemindent = * ] \item before ...
9
votes
3answers
230 views

How To Make a Special Position Environment in LaTeX?

So I must admit I am way out of my depth and have no idea what I'm doing. I apologize in advance for a long and complicated question. I'm trying to build this output: Which I have successfully ...
5
votes
2answers
92 views

TikZ: define center of a picture

I have a TikZ picture which I want to include as a centered figure in my LaTeX document. However, the "centering" I am trying to achieve is somewhat special and best explained by the image below: ...
2
votes
1answer
34 views

Finding the width of \bf text for sizing a paragraph in a table

I have this structure, which builds a table exactly the width of the text, split into two columns. I want the left column to be exactly the width of the longest words in the column, but to still be a ...
1
vote
1answer
81 views

Tag placing with amsmath

I'm using amsmath and its \tag command to tag equations. I remember having a situation where I liked having the tag on the left better than on the right. So I gave my class (which is report btw) the ...
2
votes
2answers
53 views

How can a verbatim environment be centered using a basic LaTeX installation?

I want to centre some verbatim text in a reasonable way using only a basic LaTeX installation, i.e. the packages listings and fancyvrb are not available. \documentclass{article} \begin{document} ...
2
votes
1answer
39 views

Rounded corner box in itemized environment

Here is the MWE: \documentclass{article} \usepackage{tikz} \newcommand{\rbox}[1]{ \begin{tikzpicture}[remember picture, overlay] \node[rounded corners=3pt, draw]{#1}; ...
0
votes
3answers
157 views

How to add explanatory text labels to a list of equations / solving steps

Does anyone know how to do this in LaTeX and can explain how it is done? The font and design does not matter, what I want is to label the equations.
3
votes
1answer
213 views

Chapter and its name not on the same line

Sorry for being unclear. I am a LaTeX beginner and have been struggling to place the chapter name with its number on the same line where chapter is. This is how it should be: The code itself was ...
3
votes
3answers
91 views

Centering a table inside text block

I have a table in my document, but for some reason it is not in the middle of the page, as I can see more whitespace at the right side. Here is the source code for the table: \begin{table}[H] ...
2
votes
1answer
52 views

Centre aligned text with multi-cols and flowfram

I know the question has been answered here, but I still can't get all the text within multi-cols to be centre aligned. Here's what I have with the incorrect left-aligned text: % document class ...
3
votes
1answer
44 views

How can I put the title/my name in the middle of my page?

I just can't figure this one out. I'm using \documentclass[margin,line,8pt]{res} and want my title/name in the middle of the page.
1
vote
1answer
70 views

How do I center table headings including line breaks? [duplicate]

\documentclass[11pt]{article} \usepackage{geometry} \geometry{a4paper} \usepackage{mathpazo} \usepackage{amsmath} \usepackage{amssymb} \usepackage{booktabs} ...
4
votes
2answers
164 views

5 Figures arranged in 3 rows x 2 columns

I would like to arrange 5 figures in 3 x 2 format. I would like the figures to look like this: I tried the following (See below) but cannot get the 2 figures in the second row to be centered. ...
5
votes
2answers
75 views

Align left and align right across lines

I am new to latex and I want the following format but simple things like \hfill does not help here. Name:XX Email: abc@example.com Work:YY ...
3
votes
5answers
134 views

List variables in equation

My code looks horrendous When monochromatic light is shone through a solution of iron, Beer's law states that $$ A = \varepsilon l c $$ \begin{tabular}{l} Where $A$ is amount of light ...
6
votes
3answers
103 views

Vertical text changes scaling?

I've been looking for some hours for a solution to my problem and I've to admit that I really don't understand how to solve it. I drew a node with vertical text and a line going from this to a box. ...
3
votes
2answers
112 views

Multicolumn centering and text wrap

I'm trying to make a table with some multicolumns that have wrapped text, but I also want them to be center justified. I have managed to get the text to wrap using advice from other questions, but it ...
3
votes
1answer
57 views

How may I left-align the following as a whole?

\documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \usepackage{IEEEtrantools} \begin{document} \begin{IEEEeqnarray*}{rCl} ...
0
votes
1answer
43 views

How to center a caption inside a minipage?

In this moment I have something like that and I want this and this is the portion of the code \begin{minipage}[b]{0.4\linewidth} \subsection{Tercera Configuraci\'on} Con ayuda de un ...
3
votes
1answer
30 views

How do I left indent my equation inside the align*?

I would like to left align my equation..... The sample code is given below. \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
2
votes
1answer
110 views

Wrapfigure issue of table & figure in 1 line

I tried to use wrapfig package to arrange a small table in the left & a figure in the right in 1 line while text floats around them but failed. My code is: \documentclass[10pt]{article} ...
2
votes
1answer
93 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} ...
2
votes
1answer
56 views

An extra margin is added when used \begin{center}

In my MWE I use \frame{\includegraphics....} to find what happens \documentclass[12pt,a4paper,oneside,openany]{book} \usepackage{graphicx} \begin{document} \begin{center} ...
5
votes
4answers
155 views

Center text over multicolumn in table

I have created a table that is the width of my page, but when trying to center the text in the top row over the merged cell, the text is not centering with respect to the entire length of the cell. ...
2
votes
1answer
65 views

How could I draw 4 mosfets in a same line? (attached picture)

I only know how to do one and in a unique line. How is it possible to put four together and well spaced as the picture I am showing? what I did until now: \begin{document} ...
6
votes
2answers
121 views

Making \cventry fields all raggedright instead of justified in moderncv

I'm looking to use moderncv for a resume. Using \cventry (well, using any of the moderncv environments, really) makes all the text justified, but I'd like it to be ragged-right throughout the whole ...
2
votes
1answer
53 views

Two column equation block with vertical separator

I have seen various examples in text books and web pages (like here) of two column equation blocks, where the left column has some equation(s) and the right column has some explanation on variable ...
6
votes
2answers
138 views

How can I float some text to the right of the first line of a paragraph?

I'd like to put some right-aligned text on the first line of my paragraph, and have the rest of the text wrap around it, like this: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed ...
5
votes
2answers
74 views

Float right aligned text around a text snippet in first line of a paragraph

I have right-aligned paragraphs and want to float text around a little text snipped, which should be placed in the first line of the paragraph at the right side. How can I achieve this? The LaTeX ...
15
votes
2answers
83k 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 ...