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

Problem with alignment in references

The second line of each reference does not match the initial point of the first line? \documentclass[pt,oneside,onehalfspacing,msc]{risethesis} \usepackage[english]{babel} \usepackage{colortbl}...
2
votes
0answers
16 views

Fill flowframe horizontally first

I just discovered the flowfram package and I'm trying to discover some of its features. I have a flowfram of four columns with a static frame on the top left corner of my page. (I did this so the ...
0
votes
1answer
30 views

Align 3 graph pies

I'm trying to align these three pie charts, side by side, and to have the same legend for the three but with a title for each. But the changes that I have done, didn't work. This is my code: \...
0
votes
0answers
22 views

vertically center on beamer slide (excluding navigation) [on hold]

I would like to center some content on a beamer frame that has navigation pane on top (theme Darmstadt). Currently I just pass the option c to the frame and it centers the content on the entire slide. ...
31
votes
2answers
20k views

How can I center a too wide table?

I have a document containing a table which is slightly too wide for the page. But instead of growing to the right side only, I would like to have it centered on the page. I have tried to use the ...
2
votes
2answers
24 views

How to do \hrulefill in LyX without a TeX inset

A very similar, but significantly different question is LyX command(s) to insert WYSIWYG horizontal line, for keyboard shortcut. I'm trying to achieve the effect of \hrulefill in LyX, without ...
4
votes
3answers
75 views

How to align terms in polynomials in display math?

I'd like to align the terms of some polynomials in display math. For example, in the following: \begin{align} e &= x^5 + x \\ f &= x^5 + x^4 + x^3 + x^2 + x + 1 \...
0
votes
1answer
29 views

The first box is slightly shifted when using tcbraster

I am writing a small manual for my students to learn the most common LaTeX commands that we use in class. My main problem is that the first box inside tcbraster (and tcboxedraster as well) is always ...
4
votes
1answer
26 views

Floatrow package conflicting with centering longtable

Consider the MWE below. If I \usepackage{floatrow} the longtable is not horizontal centered. If I comment out \usepackage{floatrow} the table is properly horizontal centered. How can I get this ...
0
votes
1answer
27 views

TikZ: remove side-bearing from text node

I want to horizontally align the first letter of a text node with a shape I've drawn. In my example, I want the F to be horizontally pixel-aligned with the left side of the square. The first step is ...
9
votes
2answers
2k views

Mixing enumerate and tabbing, what's wrong here?

So I can't seem to figure out what's wrong with my LaTeX file. Do you guys see anything obvious? \documentclass[11pt]{article} \newcommand{\df}[1]{\textbf{#1}} \begin{document} \section{Midterm 1} ...
0
votes
2answers
19 views

Changing footmark in footmisc

No way to have ragged right footnotes in memoir. Tried using ragged2e, redefining \@makefntext and yes, it makes the text ragged, but puts the footnote mark way to the left. The only way to obtain ...
5
votes
2answers
66 views

Uneven table in the last column

I use quite a lot of (simple) tabular tables. Unfortunately the last column is always a little bit wonky: the text is a few mm higher than in the other columns, just enough to really notice it. How do ...
2
votes
1answer
36 views

Reledmac: footnote position problem

I am trying to have footnotes over three columns using reledmac package. However, I don't understand how to get footnotes correctly positioned : it looks like this : ----------------------------------...
3
votes
1answer
55 views

Automatically setting the label width in a description environment, for each page

There are a couple of questions asking for a description environment where the width of the label-portion is the width of the widest label: Label: Text text text text text text ...
4
votes
2answers
7k views

Align comments in algorithm with package algorithm2e

I am using the package algorithm2e. When using comments like this \documentclass[11pt,a4paper,twoside,openright]{book} \usepackage[algochapter,linesnumbered,ruled,lined,boxed]{algorithm2e} \begin{...
4
votes
1answer
3k views

How to center an `itemize` in beamer, together with its headline?

I failed to center an itemize in beamer, together with its headline. In my second try below, although the items are centered, their headline (i.e. the text My second try: Centering the itemize) is not ...
3
votes
2answers
70 views

TikZ rectangle split with changing alignment

I try to draw tikz nodes with rectangle split. I want the first part to be centered and the second part aligned left. This is what I have tried: \documentclass{article} \usepackage{tikz} \...
3
votes
1answer
25 views

How could I bring the highlighted text to the very next line with a left-alignment?

\documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \usepackage{amsmath} \usepackage{IEEEtrantools} \begin{document} Proof: \vspace{-1em} \begin{IEEEeqnarray*}{rCl} E&...
4
votes
3answers
178 views

savetrees and \raggedright interact badly

MCVE \documentclass{article} \usepackage[subtle]{savetrees} \raggedright \begin{document} rgeg wrg wrg rgw rwg rwhrwghwrg e qeg rg wrg wr grw rh gr gwrg wrg rg wgr ewt rw wrt rwt rw ewt rtw t ...
3
votes
2answers
65 views

Spacing problem on last column using longtable

I am developing some tables on LaTeX environment and I am having some troubles with the spacing. Originally, I was able to generate the tables using the standard \begin{table}, but then I tried to add ...
0
votes
1answer
41 views

Adding Bibliography to TOC, not aligned to other chapters in TOC

I am trying to add the bibliography (but called references) to my TOC. I use XeLatex for font reasons. My issue is not getting the line there, it's that the line is not aligning to the other chapters ...
2
votes
0answers
41 views

Can I reset the horizontal position to the current line's absolute left?

I want to set the current text / box insertion point to the point where the current line originally started, no matter where I am on that line. Ordinarily, this would mean I would start overlaying ...
1
vote
1answer
32 views

Marginnote and Paracol

I would like to write numbers into the left margin. The package marginnote does not work, presumably, because I use paracol (?) My solution at the moment is an ugly macro \para, which uses a (0,0)-...
4
votes
1answer
45 views

How to align data in tabular environment?

After many hours of googling and testing a lots of packages, I succeded to make a table in a double column mode look like this: using the following Code: \documentclass[5p,times]{elsarticle} \...
1
vote
1answer
20 views

Horizontal alignment of lines in split equation

I have an equation that I need to split, but I want the two resulting lines to be alligned at the opposite side of the column. I am using \begin{split} to split my line: \documentclass[a4paper,10pt]{...
5
votes
3answers
107 views

produce Matrix with col-vector on right and row-vector on bottom

I need this; But after some tries with replies available on TeX.SE, I could manage only this; The code to get this is given below \begin{equation}\label{eqn:designRule} \begin{split} &{\...
2
votes
1answer
24 views

Setting chapquote, formatting

How could I align author completely to the right? Or even better, could you show me which commands to play with? I have this in preamble: \makeatletter \...
5
votes
3answers
95 views

Simple alignment question

So I want to align my 'equals' sign and inequality signs. So I have done, \begin{align} \Rightarrow d(\mathbf x',\mathbf 0) & \geq d(\mathbf x,\mathbf 0) - d(\mathbf x',\mathbf x) \\ &...
4
votes
2answers
273 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
0answers
18 views

align to right subfigure

I have a figure with 4 subfigures. I want the subfigures on the right to be aligned to right, I use \usepackage[export]{adjustbox} but it doesn't seem to work. \usepackage[export]{adjustbox} \begin{...
0
votes
0answers
56 views

Text isn't justified

I try to write my small books in LaTeX but I can't do it. The problems: 1. Text isn't justified. Here is my source code. \documentclass[slovak]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{...
1
vote
1answer
9 views

beamer subfloat number alignment

I want the letter to align exactly with the images(little righter). Here is my code \begin{figure} \subfloat[\label{fig1}]{ \includegraphics[scale=0.74]{varnode.pdf}}\qquad \qquad ...
1
vote
1answer
24 views

Neat solution for centered titlepage in twoside document

I use twoside in my document, and was foolish enough to think that \begin{titlepage} \centering %Text \end{titlepage} would give me a titlepage which is centered in the ordinary fashion, i.e. as it ...
1
vote
1answer
16 views

How to use justify alignment in longtabu without affecting the table?

I am using the following code to generate a table.. \begin{longtabu} to \linewidth{@{}XX[6]X[2,c]X[1.5,c]@{}} %{X[1,c]X[4,l]X[1,c]X[l,c]} \rowcolor{brown!50!black} & \multicolumn{3}{c}{ \...
1
vote
1answer
28 views

Aligning numbers in a list [closed]

I am trying to align the numbers in a list as in the picture below. Currently when I do it the (i) and (ii) are aligned on the left just by starting a new line of code, but how do I get them to be ...
0
votes
1answer
85 views

How do I make the text body go around a tikz picture flushed right?

I would like the text to start at the same height as the picture, but I want the picture to be flushed right. It's not directly associated with the text, but rather more like a visualization tool for ...
3
votes
1answer
39 views

Customize TOC, center align and italics in memoir

I would like to customize my TOC so that titles are centred and italicized while in the \frontmatter, like in the following picture: My MWE: \documentclass[14pt,twoside,a5paper,extrafontsizes, ...
2
votes
2answers
40 views

Flowchart horizontal alignment

How can I locally define the local horizontal text alignment? In the example below I would like the word TITLE to be centered and the rest of the text with the usual justified (text distributed ...
5
votes
1answer
36 views

How can I center index headings?

I have used following example_style.ist file for creating index headings_flag 1 heading_prefix "{ \\bfseries " heading_suffix "}\\nopagebreak\\\n" and in the preamble I have added following \...
0
votes
1answer
37 views

Last column of tabular isn't vertically centered

I'm in trouble with the last column of my array. It's not vertically centered. I'd like to use as less package as possible, here my code and the result. \usepackage{array} %Some Text \newcolumntype{...
3
votes
3answers
30 views

Disappearing custom length in enumitem

I am setting a custom length to equal the value of \leftmargin inside an enumitem list. Once I exit the list though the value disappears and my custom length reverts to zero. I have shown the ...
3
votes
1answer
31 views

align items in enumeration

I am trying to align multiple items in enumeration with & but its not working. \begin{enumerate} \item[(1)] $ f: &x \longmapsto 0\ $(const 0) \item[(2)] $ f_{\mbox{const 1}}: &x \tab ...
0
votes
0answers
19 views

Aligning fancyheader with text margins [duplicate]

I have an issue with my header text not being aligned with my text margin. I use the following code for adjustment of margins and headers. \geometry{inner=3.0 cm,outer=2.5 cm,top=1.10in,bottom=1.5in} ...
1
vote
1answer
146 views

Text alignment in moderncv

I am making my cv with moderncv class. I have two questions: 1- How to align first and second column of "Programming Languages" vertically? So that, the text "Programming Languages" would be centered....
6
votes
1answer
236 views

How do I write two sentences in the same line?

I want to write this form of sentence, text1 text2 in the same sentence in the first page of my report. I tried to use flushleft and I right, but I got every text in a different ...
0
votes
0answers
20 views

Centered inline table with a caption?

I want to typeset a table (in the plain English meaning of the word, not a table environment) inline, and have a caption for it. Well, if I use \begin{table}[!h] ... \end{table} I get the table ...
4
votes
2answers
83 views

How can I Align my Text with item numbering in Latex?

Can you please look at my code and tell me what I am doing wrong? I am new to latex and trying to make an assignment. I believe I have gotten the commands I need to get the document except that when I ...
4
votes
4answers
66 views

Fully justify lines in verse environment

I'm typesetting some poetry. The author wants the lines to be fully justified, even though that leaves funny spaces. Any ideas how to do this? \documentclass[11pt, openany]{memoir} \begin{document} ...
5
votes
1answer
53 views

Horizontal spacing of second line in a custom list

I am trying to construct my own custom list environment, and it would be a great help to solve the problem below. I would like a list environment that took a mandatory argument which gave the text to ...