{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
0answers
113 views

How can I implement an '&' inside a \left( \right) environment? [duplicate]

I've been running into a strange issue. I'm doing some derivations in LaTeX document, and am using the align environment to do so. Some derivations require multi-line brackets, for which I try to use ...
0
votes
0answers
30 views

How to remove indentation when using the aligned environment? [duplicate]

I want to align equations inside an enumeration, so I use the aligned environment and its [t] option to make the first equation appear on the same baseline as the item label: \documentclass{article} ...
3
votes
2answers
443 views

Tikz, rectangle split, first part aligned abnormally

Some little code two draw a rectangle with 4 parts, from library shapes.multiparts. \tikzset{ font=\sffamily, BLOCK/.style={ draw, align=center, text height=0.4cm, ...
8
votes
1answer
949 views

Vertical alignment of dots in equation

Consider the following example: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{alignat*}{6} 1 && 2 && ...
2
votes
4answers
358 views

Align pictures in subfigure

I'm having troubles with the subfigure package and proper alignment of figures. I'm inexperienced with Latex so please apologize obvious mistakes. The top-left figure is not properly aligned with the ...
3
votes
1answer
55 views

Add \centering to all subfigures in subcaption using \g@addto@macro

I'm trying to center subcaption subfigures as outlined this answer. However, compilation fails with ! Argument of \subcaption@minipage has an extra }. <inserted text> \par ...
0
votes
1answer
99 views

Right justification not correct

I am writing my thesis and I have started noticing wrong right justification. I have corrected some of them by replacing dashes with \hyp{}. However, I still struggle with the example below (citation ...
0
votes
1answer
89 views

Centering texts in tabularx

It is my first question on this site. I am not sure my LaTeX code will be well written here. Here is my table code. The problem is that the text in the first four columns are not centered in respect ...
4
votes
1answer
145 views

Aligning a sample resume

I have two questions: How do you edit the tex file so that "Contact information" and "DEPT" are aligned horizontally? What do you need to edit so that "Education" isn't cut off to the left of the ...
18
votes
3answers
2k views

Alignment of multiple variables in a linear system

I am trying to lay out a few linear equations, but with the different variables aligned in columns like this: x + y = 1 } x = 0 y + 2z = 1 } y = 1 x + z = 0 } z = 0 (with ...
1
vote
0answers
162 views

Moderncv - Centering name and informations

I'm using moderncv to write my CV but right now, the name is in the top-left of the page, and the information (Age, address, email etc...) in the top-right. Is that possible to align name and ...
2
votes
1answer
47 views

Horizontal spacing between lines in split enviroment

I have a math expression that looks like this \documentclass[a4paper,12pt,amsmath,amssymb]{article} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage[T1]{fontenc} \usepackage{tgtermes} ...
3
votes
1answer
143 views

Horizontally align inference rules

I'm using the bussproofs package to write some inference rules, but i'd like to horizontally align them. I tried to write them within a two-columned table (one rule in the left cell and the other in ...
0
votes
1answer
772 views

Alignment with IEEEeqnarray

Let's say I wish to use IEEEeqnarray to typeset an equation like the following: Obviously I can do this by manually inserting lots of spacing commands, but I would prefer to be able to do this by ...
5
votes
2answers
73 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 ...
2
votes
1answer
219 views

Complex paragraph layout with left and right aligned text on same line

I want to have right and left- aligned text on the same line. I tried the \hfill command, but my problem is, if the right-aligned text is to long and the line breaks, the rest is left aligned, even if ...
9
votes
2answers
279 views

Adjusting the gb4e {exe} environment locally

In my thesis I make extensive use of the exe environment of the gb4epackage and I love it. However, three of my approximately 100 examples need to have an alternative layout. Instead of the usual ...
3
votes
1answer
108 views

How to numbering each row in an array environment that is used within an align environment

I am trying to typeset a multiple line optimization problem in LaTeX. I have had a lot of difficulty using the align and alignat environments to get things to align properly. I recently managed to ...
2
votes
1answer
155 views

How can I fix the unequal space between my references if I combine apacite and \flushleft

I have a problem with my references done by apacite. My references have to be formatted as flush left entries: \documentclass[a4paper,fontsize=14pt,DIV=10,twoside, numbers=noenddot, ...
4
votes
2answers
99 views

Can't get a new line in my table caption

(Below) is what I have, with some data shaved off. However, when I view my PDF the caption looks like: Table1::NGC 2264... I would like it as: Table1 NGC 2264 (centered of course) I've been ...
3
votes
2answers
178 views

Caption package destroys center/varwidth

I have received a wonderful comment how to get listings centered: \documentclass[a4paper]{book} %\usepackage[hang,small,it,hypcap=true]{caption} % screw hypcap \usepackage[T1]{fontenc} ...
3
votes
1answer
263 views

form field alignment with a table cell

Is there any way to horizontally centre the checkboxes in the following MWE? Also is there any way to adjust the size of the checkboxes so that (i) they do not touch the cell border, and (ii) they are ...
2
votes
0answers
57 views

Center a Listing [duplicate]

What is a simple way to make a lstlisting centered? Like \documentclass{article} \usepackage{verbatimbox} \usepackage[T1]{fontenc} \usepackage{fancyvrb} \usepackage{listings} \lstset{ ...
7
votes
1answer
915 views

How do I center the table of contents title using tocloft?

I'm getting odd behavior using package tocloft to format my table of contents and center the titles "Contents", "List of Figures", and "List of Tables". Using the code suggested in the tocloft ...
2
votes
2answers
295 views

How can I centre merged columns with tabulary?

I'm trying to centre the content of the cells but I can't do it in merged cells. It's working properly in normal cells, but isn't working in merged cells. Does anyone knows how to fix it? Here is my ...
3
votes
2answers
86 views

Determining spacing by a number that is a multiple of a counter

I have \hspace and I have a stepcounter xyz \documentclass[12pt]{article} \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry} \usepackage[T1]{fontenc} ...
6
votes
3answers
937 views

Negative indent?

Is a negative indent of a particular paragraph possible or does another command need to be used? I.e., the first line should begin inside the margin. Can a command similar to \noindent be constructed ...
3
votes
2answers
517 views

Enumeration in margins and hang indentation

A solution was given to Enumeration across many sections. However, (A) it seems enumeration prevents hang indent from activating. (B) Can I get the numbers to go into the left margin and leave hang ...
3
votes
2answers
133 views

Enumeration across many sections

I am trying to combine enumeration over multiple sections: it is not working. \documentclass[12pt]{article} \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry} ...
8
votes
3answers
137 views

Aligning elements in set

How can I create a set with aligned elements? Example: I tried using align but it does not align as nicely as in the example. \begin{align*} &P = \set{ &A &\rightarrow &a | ...
6
votes
1answer
131 views

Alignment of Part and Chapter headings text

Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space ...
4
votes
1answer
83 views

How to align the columns of several tables

Given Table 1 and Table 2, I want to create a Table 3 whose columns are Column1(Table3) = max{Column1(Table1), Column1(Table2)} Column2(Table3) = max{Column2(Table1), Column2(Table2)} ...
2
votes
1answer
261 views

Alignment of siunitx S-column looks bad with big numbers

I have to put a bunch of numbers into a lab report, and I currently use siunitx with tabular and the S column type. It looks great for small numbers and large column heads. However, for small heads ...
2
votes
1answer
160 views

Use a box to fill text to right margin

I often use an eqnarray (I know it's better to use align, but let's not worry about that for this question unless it changes the answer) as a way to list a bunch of definitions or descriptions of ...
3
votes
1answer
95 views

\raggedright has unusual behaviour in tables

I'm trying to make one column in a table appear ragged right. I've had some success, depending (inexplicably, to me) on the number of columns. The following works for me: Attempt 1 ...
5
votes
2answers
1k views

Figure caption alignment screwed when using line break

I am having trouble with figure captions when I need a manual line break. \documentclass[A4]{book} \usepackage{subfig} \usepackage[top=35mm, bottom=38mm, inner=40mm, outer=24mm]{geometry} ...
2
votes
1answer
128 views

Forcing text to the right-hand-sideof the page

I'm wondering how (if possible) to force text to the right hand side in LaTeX. So, you know when you have a set of simultaneous equations and the equation reads from the left, but then over on the ...
2
votes
1answer
181 views

Right Alignment of text

i am a newbie on LaTeX. After writing a simple code \documentclass[margin,line]{res} \begin{document} \begin{tabbing} Sample1 \` sample2 \\ \end{tabbing} \begin{resume} \end{resume} ...
1
vote
1answer
81 views

Setting image in same line as text

I have the line \noindent\parbox{\textwidth}{{\LARGE\textbf{\name}}}\hfill\begin{figure}[ht!]\includegraphics[width=2cm,height=2cm]{MyPic.jpg}\end{figure} I want the "name" variable to be on the ...
3
votes
1answer
94 views

Caption won't stick to table - gets centered

I'm trying to create a table with a caption on top of it, with the caption centered to the table. I have this code: \documentclass[a4paper]{article} \usepackage[english]{babel} ...
5
votes
1answer
178 views

Why won't \hspace work?

I'm trying to get a block of text to be aligned 2.55cm from the left of the page. I'm sure there's a better way of doing this, but it would be nice to get an answer anyway. When I type: ...
2
votes
2answers
119 views

Table way out of margin

I have a really long table and it is out of margin. I read other post about this issue but I still cannot figure it out: \begin{table}[htbp] \begin{center} ...
3
votes
1answer
347 views

currvita - right-aligning cvlist item

Let's say I have the following: \documentclass[12pt,a4paper]{article} \usepackage{currvita} \begin{document} \begin{cv}{Hello} \begin{cvlist}{Something} \item[item name] %%% ...
1
vote
2answers
242 views

Beamer table centering in Rochester?

I try to center the table in beamer but even if I use \begin{center} there is still more space on the left than on the right. Have you any idea what I can do with that? \documentclass{beamer} ...
2
votes
1answer
155 views

Column with fixed width and centre alignment

In the following code, \documentclass[12pt]{article} \usepackage{multirow} \usepackage{array} \usepackage{hhline} \newcommand{\spe}[1]{\multicolumn{2}{c}{#1}} \makeatletter ...
1
vote
0answers
117 views

Problem when introducing figures [closed]

I'm new to LaTeX and I'm having trouble when I try to include a figure in my text. The problem is that the text appears behind the image, or the image overlays the text. Also, it's not centred ...
4
votes
2answers
532 views

Left-align the date for all cvitems

All contents (mostly dates) of the first argument of \cvitem should left-align in Austria - as explained to me in the career center. I want to redefine the command \cvitem (like in Can I redefine a ...
6
votes
1answer
117 views

Align to TikZ additional separation space

In TikZ I have a styled node, in this case a matrix with an addition separation space and a dashed border. Left and right of this matrix I want to align additional nodes with the north dashed border. ...
5
votes
1answer
97 views

Arranging several items in one or two lines depending on their size

I want to set title pages in a way that is google scholar compliant, that is, the title has to be huge, the author names should be large but smaller then the title. I had a solution where I just ...
9
votes
2answers
362 views

Align position of decimal point within table of numbers, text and percentage values

I have asked sthg similar with a MWE today answered by David C., but this is a more difficult follow-up question. Also I have just made a new account :) The Question is simple: I want the numbers to ...