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

6
votes
1answer
348 views

biblatex: no linebreaks in name lists when typesetting ragged-right

When typesetting a bibliography \raggedright, biblatex seems to have trouble breaking a line between an author's first/last/middle names (and, if multiple authors are present, between two authors). It'...
2
votes
1answer
139 views

How can I change the indent of the row numbers in my tabular environment?

I'm using tabular to align numbers, answer choices basically. Each row is numbered (A), (B), etc. Is there any way to decrease the space between the row label and the first column? \newcounter{ans} \...
2
votes
1answer
93 views

Aligning brackets [duplicate]

Hi is there anyway to get the two left [ brackets on the first and second lines to align? \begin{align} &\quad[v^{*}a^{-} +va^{\dagger}_{-k}]e^{+ik_{z}\centerdot z}=[u^{*}b^{-} +ub^{\dagger}_{-k}]...
4
votes
1answer
115 views

Table not flushing left as expected

I'm trying to make my tables flush left and overall align with the text. Using to \textwidth manages to make the table the right size, but it won't align properly with the text sometimes. It is ...
2
votes
1answer
200 views

Problem using align in enumerate environment

I'm creating a list with enumerate of both positive and negative numbers, and would like the numbers to be lined up with one another, i.e. all in the same column. I also have a second list with ...
5
votes
3answers
2k views

\phantom inside tabularx

I tried to improve the alignment in the following table using a \hphantom: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{\linewidth}{p{2.8cm} X} 1/00\,--\,2/00 ...
4
votes
1answer
206 views

Figures in tables

I want to make a table with lots of figures. \begin{table} \centering \begin{tabular}{c|c|c} Index & Stand. Residuals & acf\\ \hline\hline BEL 20 & \vspace{-10pt}\includegraphics[scale=...
5
votes
1answer
212 views

Trouble creating properly aligned matrix within a matrix

I'm trying to insert parentheses around a group of elements creating a matrix within a larger matrix. So far I have this: \begin{equation} \begin{bmatrix} \begin{matrix} 0 & 0 \\ 0 & \omega_0 ...
1
vote
1answer
238 views

Bad horizontal alignment in pgfplots figure

If I try to horizontally align two nodes by giving the same y-coordinate, the text $D_{\textrm{X-ray}}$ and $D_{\textrm{C-ion}}$ is still not aligned properly, which has apparently to do with the ...
0
votes
1answer
67 views

Centering a group of equations and text both which is used in \begin{align*}…\end{align*}

Say I am trying to center a group of equations, written in separate lines, with equality sign aligned one below another, which are defined by: $f(r)+1=g(r^2)+1=O(r)$ as $r\to 1$ by first using the ...
2
votes
1answer
226 views

Centering case-defined functions in the middle of the page and centering a figure(diagram)

I have two questions regarding centering: I am trying to center a case-defined function, say defined as follows: $f_i(z)=$ \begin{cases}\frac{1}{t}dist (z,\gamma_i ) &\text {if} z\in A_i(t)\\ ...
3
votes
1answer
120 views

Align pictures with text

I am having problems to align or better put, make my figures being of equal size/margins like my text What I do is this \documentclass[a4paper,12pt]{book} %%%%%%%%%%%%%%%%%%%%%%%%% %%% Document ...
0
votes
1answer
120 views

Image Alignment [duplicate]

So my latex document looks like this: So as you can see, the picture is aligning vertically with the text, however I need it centered, in other words I need the image moved to the left more so the ...
4
votes
3answers
21k views

How to right align a picture?

Question is very simple. I want to \includegraphics and align it to the right, while having some text or items on the left. Is there a simple command for this?? Edit Here is what I did from previous ...
5
votes
1answer
851 views

Brace spanning multiple rows in a table and horizontal alignment

I'm a beginner trying to do an brace inside a table, that is spanning multiple rows. I assume the best way to achieve this is to do a two-row tabular environment, with an array environment for the ...
3
votes
1answer
366 views

Changing style of unnumbered chapters in memoir

The MWE below illustrates that while I can center numbered chapter headings, I cannot do so for unnumbered chapter headings: \documentclass{memoir} \renewcommand*{\printchaptername}{\centering} \...
7
votes
4answers
220 views

Justify long line with no spaces but a lot of hyphens

% !TEX TS-program = xelatex % !TEX encoding = UTF-8 Unicode \documentclass[11pt]{memoir} \usepackage{fontspec} \usepackage{showframe} %%% Book Layout %%% \setstocksize{4in}{5.75in} \settrimmedsize{...
1
vote
0answers
210 views

Why is centering a TikZ picture from an external file not the same as a centering a .png figure? [closed]

Why can't I put a Tikz picture inside \makebox? \begin{figure}[!ht] \centering \makebox[\textwidth][c]{\includegraphics[width=.8\textwidth]{./Figures/chapter5/procedure_contacts.pdf}} \end{figure} ...
3
votes
1answer
164 views

Aligning parts of equations

So this is a continuation of my previous question but I didn't know if I should edit that post and ask a new question or just post a new question entirely. Anyway, I have this bit of latex: \begin{...
3
votes
1answer
78 views

Does align environment (or an alternative) have an option to choose left, center or right alignment?

I have quite a long set of equations, written in an array environment, but I can't seem to get it to split so that it is spread over multiple pages. I could use the align environment, but I can't seem ...
15
votes
2answers
43k views

Align multiline equation with expression after equal sign

I am trying to align a multiline equation using array within the equation but it turns out it doesn't do very well. The code I am using is as follows: \begin{equation}\ \begin{array}{lcl} \mathcal{L}^...
1
vote
3answers
283 views

Questions on basic LaTeX typesetting in mathematics

I have one or two elementary questions on basic LaTeX typesetting: I know putting $$...$$ sign puts the mathematical expression in the middle (center), but what if I also want to center the ...
2
votes
1answer
820 views

Left align after \specialcell in a centered table

I'm outputting descriptive tables from Stata using estpost and esttab into TeX format, and then importing them in LyX. I use \refcat to label my survey questions, and since some of them are very long ...
10
votes
3answers
1k views

TikZ: How to center captions below figures in matrix

I have three figures that I want to align in a matrix. Each figure is drawn in a different way and needs a caption that is centered below the corresponding figure. Here is what I currently have: ...
7
votes
2answers
4k views

How to move an enumerate environment to the right? [duplicate]

How can I horizontally align \begin{enumerate} more to the right? At the moment I'm using the code below: \begin{enumerate} \item sometext \item sometext \item sometext \end{enumerate} But it goes ...
2
votes
1answer
2k views

How can I left align the text in the figure/table caption?

How can I left align the text in the figure/table caption? This is the text I am using to add an image \begin{figure}[htbp] \centering \includegraphics[width=0.90\textwidth]{Figures/...
1
vote
1answer
107 views

Problem with ragged lines

Somehow, the lines in my document are all ragged, i.e. the further use of \raggedright does not change the document. I do not know the command to undo this (I believe not ragged is the preset). Here ...
6
votes
1answer
188 views

Problem with enumitem and \raggedright [duplicate]

I want my items in lists (enumerate, itemize and description) to be raggedright. So I use enumitem package to make things easier \usepackage{enumitem} \setlist[enumerate]{before = \raggedright}% In ...
3
votes
1answer
591 views

Top-aligned table cells with different font sizes and controlled spacing

I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
1
vote
2answers
160 views

Formatting of an array of equations (left alignment)

I have the following text in a matrix environment. Is there a better way to format it, say with each column being left ordered, and how can this be done? $$ \begin{matrix} \Gamma^{i}_{\mbox{ }0i}=\...
4
votes
3answers
1k views

centering a \hbox

I'm trying to center a collection of nested \hbox and \vbox without any succes :-( Here is the code I use: \begin{figure}[h] \center{ \vbox{\hbox{% \includegraphics{imageA}~% \...
11
votes
2answers
2k views

\RaggedRight makes document longer

I have a document carefully written to fit in 4 pages; but when I added a \raggedright (or \RaggedRight with use of the ragged2e package) the length gets longer. Furthermore, suddenly the output isn'...
2
votes
1answer
337 views

How to justify text after using image in LaTeX?

I am inserting a jpg/png image in my LaTeX document in center environment. The problem is when I insert the image, the text following the image loses the justify property. Also the itemize does not ...
4
votes
1answer
891 views

Beamer: combining footnote in one column with figure in the other one

I'd like to put a figure next to a list which contains a footnote. Without the footnote everything works fine. But when I add the footnote, the figure gets shifted to the right and partly appears to ...
7
votes
1answer
421 views

Horizontal alignment of margin notes in nested enumitem list

I would like to be able to 'tag' certain list items in an enumitem list with a mark in the left margin. I would like the marks in the left margin to be horizontally aligned with respect to each other,...
5
votes
1answer
178 views

Crossed hierarchy

I appreciate it if you let me know the most elegant way to draw a crossed hierarchy such as the followings: X /\ Y Z /\/\ p q t q has two parents Y and Z.
2
votes
1answer
446 views

Using ERT in LyX [duplicate]

Using LyX to create a Beamer presentation I used the TeX button to insert some ERT: \begin{table}\caption{Regression table\label{tab1}} \begin{center} \begin{tabular}{l r l r l r l} \hline & \...
3
votes
1answer
164 views

Caption Centered but Table is not

For some reason the caption is aligned in the center of the page but the table is too far to the right. How can I have both centered? \documentclass{article} \usepackage{booktabs} \usepackage[...
1
vote
1answer
838 views

moderncv - How do I put the date column on the right rather than on the left

The career advisor at my university suggests putting the title of the position on the left, and dates on the right side of the resume. I'm wondering how to I do that in moderncv themes?
5
votes
2answers
102 views

Title over align columns

Using the align environment I have two columns, one for derivation, and another for the rule that was used to create the derivation. However I'm pretty sure that there's a better way to do this? Here ...
6
votes
1answer
467 views

Aligning a \marginnote to a theorem title

I want to create a \marginnote which is aligned to the title of a theorem. However, the \marginnote is always placed over or under the title, when I put the \marginnote command before or into the ...
1
vote
2answers
706 views

Equation number not on the extreme right?

I am trying to number the equation in my thesis. All of the equation numbers are being displayed correctly on the extreme right (of the text area). However, in one equation, I am facing a little ...
1
vote
1answer
237 views

How to fix a table that is too wide for margins?

I have created a table that is too wide for the margins. What I tried to do was implement \hspace*{-50pt} before \begin{tabular} and \hspace{-50pt} after \end{tabluar}. Which gets rid of the overfull \...
2
votes
2answers
920 views

Problems with bottom margin and alignment of text

1.) The space between the page number and the text margin is too small and I'd like to adjust it. Somebody recommended, the geometry package, e.g. \usepackage[ top = 2.75cm, bottom = 5.50cm, left ...
1
vote
0answers
525 views

Vertical/Horizontal alignment for multi-line header [closed]

I have the following code to create my header \documentclass[english]{scrreprt} %%% PAGE DIMENSIONS \usepackage{geometry} \geometry{verbose,a4paper,tmargin=3.5cm,bmargin=2.5cm,lmargin=2.6cm,rmargin=...
2
votes
2answers
4k views

Multiline formula with each column left-aligned

I am using LyX and I want a multiline and multicolumn display formula with each column aligned to the left. But when I add a formula and add columns, some are aligned to the right and some are ...
5
votes
1answer
2k views

Alignment in algorithmic environment

I don't like how there is often a slight misalignment between assignment statements in an algorithmic environment. For example, the first version of the algorithm given below looks strange to me. I ...
2
votes
3answers
3k views

How to center align the whole table?

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
0
votes
2answers
210 views

How to center align the whole table? [duplicate]

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
1
vote
1answer
119 views

Create commands each of the text aligned horizontally?

I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line. here is a sample image: ...