{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
10 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
2answers
43 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 \...
3
votes
1answer
17 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
25 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 ...
0
votes
2answers
16 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
64 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 ...
3
votes
2answers
64 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
176 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
63 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 ...
2
votes
0answers
38 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 ...
4
votes
1answer
44 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
29 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)-...
1
vote
1answer
19 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
0answers
17 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
55 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
38 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 ...
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
21 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 ...
2
votes
2answers
39 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 ...
0
votes
1answer
36 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 ...
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} ...
3
votes
1answer
29 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
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
78 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 ...
5
votes
1answer
51 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 ...
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} ...
3
votes
0answers
43 views

Horizontally centering glyph over text

In the given MWE, note that the new slur command is not centered with the two Fs that it connects. I've tried adjusting the scale of lilyGlyph, but it remains too far left. I would like the ends of ...
0
votes
0answers
15 views

Line at the bottom of the page [duplicate]

I wanna create a line at the bottom of the page. Can someone tell me which code I should to use to achieve this simple task. As encircled in the image below.
7
votes
3answers
157 views

Alignment in equation environment

I am not able to align equations within a curly bracket. My code is the following: \documentclass[12pt, A4paper]{article} \begin{document} Consider the following: \[ P\Big[\frac{1}{2}+\mu \Big ]=\...
0
votes
0answers
14 views

Increase horizontal space in a figure created with algorithmic

I'm writing a pseudoalgorithm, but due to long names and function calls with many parameters, some lines of the code become too long and parts of them are out of the right side of the page. I can't ...
0
votes
0answers
19 views

Vertical text alignment page after page

I am using this template to write my thesis: https://www.overleaf.com/5578703kpqfrz#/17992947/ I noticed, and I really don't know know how to solve this, that the text is not aligned when I scroll ...
4
votes
2answers
90 views

How to vertically (and horizontally) center text of cells using tabularx?

My question is very similar to this one: previous question but when I vary the example a little (as below), my cells are no longer vertically aligned \documentclass[12pt]{article} \usepackage{...
2
votes
1answer
28 views

Align the glossaries' title to the center

I saw table of contents and figures titles been aligned to the center with tocloft package as follows: \usepackage{tocloft} \renewcommand*{\listfigurename}{\hfill\bfseries\Large LISTA DE FIGURAS} \...
0
votes
0answers
24 views

Centering versus Center [duplicate]

How is centering different from center? There should be some difference between them, that they have bothered put two different commands. Instead of requiring to check every time into a sample ...
1
vote
2answers
33 views

Centering Figure without re-scale [duplicate]

I would like to center a figure made on Tikz. This figure has a specific size which is wider than \textwidth, and it needs to be centered. All options I see use \resibox or \makebox to center the ...
1
vote
1answer
44 views

How to Line up Horizontally?

I have the following using OCG, 2 boxes that open up to many more Items when clicked on. How can I align them horizontally across the page, so that the dropdowns will go below the boxes also? (There ...
0
votes
2answers
62 views

Is there any method to use an automatic word wrap in equations?

In common words, the word wrap is done automatically. But in the equations, it doesn't work. Actually, I am making some presentation material using beamer in Latex. Is there any way to make word wrap ...
2
votes
2answers
111 views

How to align two equations vertically without horizontal space?

Please have a look at the following MWE: \documentclass{scrartcl} \usepackage{amsmath,amstext,amssymb} \begin{document} \begin{align} \cdots\text{ABB}&\bigg|\text{BAABB}&\bigg|\text{AAABB}&...
0
votes
1answer
25 views

Long limits overhang and cause a symbol to become too wide [duplicate]

Sometimes I need to make a union with a long subscript specifier at the bottom like so: \documentclass{article} \begin{document} \begin{equation*} \bigcup_{a \in \{\text{set that is very wide}\}...
5
votes
1answer
35 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 \...
1
vote
4answers
74 views

Problems with variables within new command for boldface, coloring, and centering text

I am trying to type a new command that centers, boldfaces, and colors some text red. Here's what I have at the moment by tinkering and looking at some code I already had: \newcommand{\rub}{\large\...
3
votes
5answers
104 views

Center alignment with multirow package

I have a multirow environment, but it does not center aligned in center environment. What might be wrong? \documentclass[12pt]{article} \usepackage{booktabs} \usepackage{multirow} \begin{...
0
votes
1answer
28 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 ...
2
votes
1answer
37 views

Horizontal align text in multiple columns

I want to achieve something like this, 1. Question One The answer to the question. 2. Question Two The answer to the question that can span across ...
3
votes
1answer
37 views

How to center the text in tabularx

I have created a table as given below. I want to center the following part. \gmc{4}{@{}p{0.8\textwidth}@{}}{Summary of monthly cross-portfolio regressions: 25 Fama-French portfolios (constructed on 5 ...