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

1
vote
0answers
51 views

Number-Alignment with siunitx in tables [closed]

Update... after a update to recent version of siunitx, everything is fine now. Thanks a lot @daleif and @crissov :-) \documentclass[ngerman,a4paper]{scrartcl} \usepackage[utf8]{inputenc} ...
3
votes
2answers
62 views

How to left align text in two column itemize

When I use following MWE for getting itemized text in two columns, the item in the list sometimes take a "justified" formatting and thus there is significant space in between two words. This produces ...
1
vote
1answer
39 views

subfloatrow: centering single subfigure

In the example below, how can I center the third figure (C)? \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usepackage{floatrow} \usepackage{subfig} \begin{document} \begin{figure}[htbp] ...
3
votes
1answer
65 views

How do I centre my title properly

The title "NAME" seems to be shifted slightly to the right when I use this code, is there a fix to this? \documentclass[11pt]{res} %Sets the default text size to 11pt and class to article. ...
4
votes
1answer
145 views

Putting Figures Side-By-Side Using Minipage

I am trying to put two figures next to each other. However, it is not working. Here is my code: \begin{figure}[h] \centering \begin{minipage}{1.0\textwidth} \centering ...
2
votes
2answers
38 views

Trouble aligning partial header in table

I want the "n" to be centered over the 50? How can I achieve this? \begin{tabular}{lccc} \hline \multicolumn{4}{c}{Condition Numbers} \\ \multicolumn{3}{r}{n} \\ Correlation ...
7
votes
4answers
271 views

left position math formula

I try to write down the following equation: \begin{equation} \begin{flalign*} \left \| \vec{r}_1 - \vec{r}_2 \right \| = \\ \sqrt{( r_{1,x}-r_{2,x} )^2 + ( r_{1,y} - r_{2,y} )^2 } = \\ \sqrt{( ...
2
votes
1answer
54 views

Center narrow columns under wider caption in ctable

I have a narrow table but a long-ish caption. Rather than run the caption to several lines, I have set the ctable width to 0.5\textwidth. However, the two narrow table columns are now set to the ...
4
votes
1answer
66 views

Centering numbers in table

I would like to generate table which looks approximately (not necessarily) like If you have any suggestion for this sort of data representation, don't hesitate to tell. So far I have come up with ...
6
votes
1answer
66 views

Center over-long equations between both margins

I understand the reasoning behind the fairly narrow textwidth in a default LaTeX article. 60-80 characters per line and all that. However, I am preparing a document that features many lengthy ...
7
votes
2answers
166 views

Number alignment in tables with some values in partial boldface (all but the decimal point)

I want to align decimal values in a table with some values printed in bold. Just by itself, this is no problem. We can use the siunitx package and \robustify\bfseries to do the trick as described, ...
2
votes
2answers
103 views

Horizontal text alignment in captions for subfigures

Captions in subfigures are justified by default, which does not always look pretty: \documentclass[]{tGIS2e} % http://www.tandf.co.uk/journals/authors/tgislatex.zip \begin{document} ...
3
votes
3answers
72 views

Fixing alignment in equations

I wish to get a more typical alignment (I hope this obvious) than what I am getting with the following code: \[ ...
1
vote
1answer
76 views

Align table side by side with graph

I'm trying to get my csv table aligned to the left of my graph. The graph is appearing below (and indented) the table. Any ideas? \begin{minipage}{0.5\textwidth} \pgfplotstabletypeset[col sep=comma, ...
2
votes
0answers
67 views

Split lines, keep a table/aligned text within textwidth and spawn across several pages

I have a very long table that I use to align some text, therefore I don't need it to be (specifically) a table (please consider that in the answers). I am using supertabular for the table to spawn ...
15
votes
2answers
401 views

Placing TikZ drawings in a minipage side by side

I've some problems with aligning some drawings I made with TikZ: I want these two TikZ pictured below to be displayed side by side with the two captions being on the same horizontal level. ...
5
votes
2answers
70 views

Align glosses in more than one language with gb4e

I'm using the package gb4e to gloss my linguistic examples. It nicely aligns the words in the original language with its glosses. But this alignment does not extend beyond the first line of glosses. ...
2
votes
1answer
63 views

Text section in right bottom of side

How can I write a text section in latex in the right bottom side of the page with a nice font ? It is for some thanks text. Now I have: \vfill {\sffamily \begin{flushright} ...
5
votes
2answers
74 views

Two lines ending where the longest one ends

I would like to have two consecutive lines of text where the shortest line is justified so that it ends at the end of the other, i.e. both lines should end at the end of the longest one. How can I do ...
4
votes
3answers
73 views

How do I center and scale vertical harpoons?

I need to create something very much like this: However, I'm having trouble scaling the vertical harpoons to make them look right with the rates on either side. For the horizontal harpoons I'm ...
3
votes
1answer
54 views

Centering is not working

The below piece of code is not getting center aligned. Kindly help in finding out the solution for the same \begin{table}[!ht] \begin{tabular}{|c||c|c|c|c|c|} \hline \centering AE mode & 512 ...
4
votes
1answer
86 views

Multipage tables - vertical centering in cells

I know there were many topics like this but I read a lot of them and it is impossible to understand them for me or they just dont work. I want ALL cells to be centered vertically. I would also like to ...
3
votes
1answer
54 views

Transparent and centered image into a frame formed for two bars (head and side)

I tried to center a transparent image into a beamer slide and it worked perfectly (code is shown below), but now I have a beamer presentation with two bars: one on the head (2.5cm) and one on the left ...
3
votes
1answer
200 views

“Something's wrong - perhaps a missing \item” after second instance of centering section

I have been receiving this error on multiple documents recently. The first and third section headers render correctly, but the second produces an error. \documentclass{report} \begin{document} ...
3
votes
1answer
57 views

Howto center images in a size defined table?

I have the problem that I have a table which includes two images next to each other and below in the next line there is the caption of the image. The problem is that the images are not shown next to ...
1
vote
1answer
39 views

Strange alignment of scaled greek letters in fractions (XeTeX or pdfTeX)

The following code: \documentclass[a4paper]{report} \usepackage{amsmath,amsfonts,amssymb,multirow,mathptmx} \usepackage{graphicx} \begin{document} $$\frac{\scalebox{0.7}[0.7]{$\mu$}}{2\lambda x}$$ ...
3
votes
3answers
84 views

Centering two images but aligning them left

How would I place two images below each other so that their left sides are aligned and the whole construction is centered? I tried like this: ...
4
votes
2answers
58 views

clean, breakable left-aligned array-like environment

The centered, yet left-aligned aspect of \begin{array}{lll} ... \end{array} is what I usually go with to give a list of conditions. My only problem with it, is that it is not breakable, so I try to ...
7
votes
1answer
66 views

Aligning itemize elements both from left and right

I do this \documentclass[12pt]{article} \usepackage{enumitem} \setlist[enumerate]{labelwidth=3cm,labelsep=0.5cm,leftmargin=4cm,align=left} \begin{document} \begin{enumerate}[label= Example ...
7
votes
2answers
92 views

Creating Horizontal Lines With A Specific Distance

I'm relatively new at LaTeX. I've read material online and have been practicing. However, I have not been able to find a solution to two of my questions. I'm hoping someone may be of assistance. This ...
6
votes
1answer
55 views

How can I fill a line from the left?

I am fiddling with various ways of filling a line with a vertically centered line and experimenting with the answers here: http://stackoverflow.com/questions/2553392/latex-rule-filling-the-line and ...
1
vote
1answer
24 views

Incorrect alignment when using aligned

I'm trying to TeX some nice equations but there is a strange behaviour when I use an aligned-environment in an align*-environment. I think one little example makes my problem clear: \begin{align*} ...
12
votes
2answers
187 views

How to properly align three-level enumerate 1. 1.1. 1.1.1

I've created my environment, and modified the enumerate command: \renewcommand{\labelenumi}{\arabic{enumi}.} \renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}.} ...
1
vote
0answers
29 views

How to change default alignment for table environment in report class [duplicate]

I am using the table environment in report class. Here is the MWE: \documentclass{report} \begin{document} \begin{table} \begin{tabular}{cc} \hline a&b\\ c&d\\ \hline \end{tabular} ...
1
vote
2answers
52 views

aligning an equation to the left [duplicate]

I have the following equation: \begin{align} \frac{1}{4}\left[\frac{\partial{(u^n+u^*)(u^n+u^*)}}{\partial{x}}\right]_p &=\nonumber\\ \dfrac{u_{fe}\dfrac{\dfrac{u_{i,j,k}^n+u_{i,j,k}^{*}}{2}+ ...
12
votes
3answers
269 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
2
votes
2answers
81 views

Align text in \hfill environment

How can I arrange the text lines in the \hfill ? Is using a tabular environment the only way around this ? \documentclass{letter} % Uses 10pt \usepackage{marvosym} % add the symbols for email and ...
1
vote
0answers
48 views

How can I change the side of all (or single) pages of a twoside book?

My book's first page is righthanded the second page is lefthanded the third righthanded and so on but I want it of the form: first page to be lefthanded the second page to be righthanded the third ...
6
votes
1answer
54 views

Alignment problem if line breaks are used in listings

I am using a monospace font and I want that all lines are horizontally aligned ("a" should be directly under "a"). How can I do this? I have noticed that also the pagebreak symbol shifts the text. ...
4
votes
1answer
63 views

How do I Make a Three-Column Title?

I'm trying to format a title for my document. Normally, I write <Title> \hfill \today, to have a title nicely split into two columns, each aligned at the left and right margin, respectively. ...
7
votes
3answers
157 views

Maintaining alignment between irregularly vertically spaced TikZ matrix nodes

I'm trying to create a diagram with pairs of rectangles of different sizes, each separated by a fixed interval. Additionally, I want each pair to be left-aligned at the same point. Here's an example ...
3
votes
1answer
73 views

How to align an equation horizontally in qtree, centering one character of my equation?

I have the following code for my qtree: \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter \usepackage{qtree} \makeatother \usepackage{babel} ...
3
votes
2answers
64 views

I want to force a justification to both sides after using \newline

\documentclass[11pt,a4paper]{article} \usepackage[cp1250]{inputenc} \begin{document} \noindent In year 1000 somebody wrote something\footnote{\emph{something}} because he wanted to. Some thought he is ...
2
votes
1answer
72 views

Remove vertical space in examples (Linguex)

I use the linguex package for numbering my examples. After each example I want there to be a reference, right aligned on the next line. This is my code \documentclass [a4paper, 12 pt]{memoir} ...
2
votes
1answer
104 views

Centering text in a table cell

I know the question has been asked before, but the answers don't seem to apply. I have a table defined below: \begin{table}[!ht] \begin{center} \caption[Micromagnetic simulators]{Micromagnetic ...
2
votes
1answer
58 views

Alignment of the subsection changed after styling

I applied some styling to my page.But my alignment of the sub section headers changed.Here is the code: \documentclass[12pt,oneside]{book} \usepackage{graphicx} \usepackage[explicit]{titlesec} ...
2
votes
1answer
96 views

LyX Hyphenation

In LyX I want my paragraphs to be justified, without the use of hyphenation. I am using \exhyphenpenalty=10000\hyphenpenalty=10000 in my preamble and it works, but I notice that the first line of the ...
7
votes
2answers
838 views

How to align terms in alignat environment

These are my math equations. To enhance readability, I'd like the third column to be aligned around the + sign; that is, I wish to place some horizontal blank in front of $n\mathbf{A}_0$ (not ...
0
votes
0answers
46 views

Left align caption and underline it (Memoir)

im using LyX and documentclass memoir. I would like to have a set up like in the attached file when inserting figures and tables, however, I just don't know how to implement it in LyX. Can you help ...
9
votes
2answers
332 views

Help me create my out patient documentation template

\documentclass[a5paper]{article} \usepackage{eso-pic} \usepackage{fancyhdr} \usepackage[pdfauthor={VB},% pdftitle={Consultation},% pagebackref=true,% ]{hyperref} \usepackage[headsep=3cm,top=4cm, ...