{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
1answer
32 views

How to align item labels?

When I try to answer the a matching question in my assignment, I find that my final PDF of the four answers shown above are not aligned with each other. It seems that the lowercase "b" is taking more ...
2
votes
1answer
40 views

TeX expert needed: how to \setto(optimal)width?

there is a problem I have been trying to solve for a while but without success so far. As far as I know, TeX is very good at appropriately breaking text lines with respect to a fixed container width. ...
2
votes
1answer
34 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 ...
4
votes
3answers
56 views

Aligning headers with column better

The columns are slightly offset from the headers. I've tried playing around with a bunch of things (which is why the code is a bit of a mess now). Any suggestions how to fix this? ...
3
votes
2answers
27 views

equations overlaping equation number in cases environment

I'm working with a long equation in case environment, the problem is that the equation overlaps the equation number... any ideas on how to solve that problem. I've thought on aligning it all to the ...
3
votes
2answers
112 views

How to make things symmetric around an arrow

Can someone tell me what commando is needed to make expressions like in the text below. I mean like it is symmetric around the arrow.
1
vote
0answers
29 views

Is there any difference in the default text alignment between document classes book, report, article, and so on?

I've come to the question if there are differences in the text alignments regarding the document classes. I'm trying to justify a text in my whole document (report). Reading question I came to the ...
2
votes
1answer
33 views

How to specify the starting point of a horizontal bar in latex?

How to specify the starting point of a horizontal bar in latex ? For example, I want to plot a horizontal bar between (2, 5) and (10, 5), which is a horizontal bar with a length of 8 and starting at ...
2
votes
0answers
38 views

Adding words centered above other words with TikZ v2 [closed]

EDIT: Please vote to close this question as "Unclear what you're asking". My problem and my understanding of it have developed in such a way that this question is now too messy. I have opened the new ...
4
votes
1answer
19 views

Make memoir class \flexlabelled left justified

In Memoir class, I can \usepackage{enumitem}, and then make a nice description list. I tried to do the same with Memoir's built-in flexlabelled environment, but the labels are fully justified. MWE: ...
6
votes
4answers
85 views

Aligning equations with two equal signs

I am trying to write three equations, second with two equal signs. I would like the first two to be aligned by the first equal sign, and the second and third by the second equal sign. I have the ...
4
votes
1answer
116 views

Interrupted list formatting options [duplicate]

I have an odd list, interrupted by normal text introducing its last item: \documentclass{memoir} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{enumerate}[itemsep=-4pt] ...
1
vote
0answers
32 views

How to align item labels according to the longest one automatically?

Time for revenge! I've been fighting with this problem of aligning items according to the longest label automatically for some time now (see first two examples below). The left side of the longest ...
0
votes
0answers
14 views

How to position two figures side by side with custom alignment? [duplicate]

I would like to put two figures side by side such that they are centered on the page and have an arbitrary (given) space between them. Although there are a lot of similar questions here, none has ...
1
vote
1answer
20 views

center environment nag-warning for floats in beamer

The nag packages gives a warning when using floats in beamer presentations. When removing the figure or table environment, no warnings are given. How to proceed from here? Tried ...
2
votes
0answers
55 views

How to place two plots inside a node?

I'm eager to have two plots (of the algebraic functions) placed horizontally inside a node. I'd like them to be signed, so something like caption (below the plot) is needed. One of them — "the good ...
5
votes
1answer
26 views

Trouble with nested matrices

I have tried repeatedly to google for the solution to this problem. I have a matrix that looks like this. But I want it to look like this. Notice how the B, C, D and E are "very tightly centered" ...
1
vote
0answers
29 views

How to align a single header to the right?

This is my situation \begin{minipage}{\textwidth} \begin{minipage}[t]{0.65\textwidth} \section{Section 1} Content 1 \end{minipage} \hfill \begin{minipage}[t]{0.25\textwidth} \section{Section 2} ...
2
votes
2answers
57 views

Multicolumns with equation format

I'm currently writing a summary for my semiconducter devices course and I'm trying to do it with Latex (just started today). I have the following problem: I have two chapters with two formulas each. ...
1
vote
1answer
34 views

Latex table centering

I'm wondering how could I center text in table vertically and horizontally? I've seen several manuals and answred questions, but there are many way to create a table and as I'm a begginer in Tex I ...
4
votes
3answers
61 views

How do I center an entry across columns in a pmatrix?

I have a matrix of the form: \documentclass[]{scrartcl} \usepackage{amssymb,amsmath,amsthm,amsfonts} \begin{document} \begin{equation} \begin{pmatrix} \boldsymbol{\Phi}_{l,t}^F \\ \mathbf{0} & ...
0
votes
0answers
8 views

Change spacing of the matching environment in examdesign?

I'm using the matching environment in the examdesign class. My problem is that the left column contains longish sentences that makes the layout look a bit wonky: Is there a simple way to extend the ...
6
votes
2answers
79 views

Left-aligning nested labels in enumerate

I'm trying to tweak the way nested lists appear for enumerate. Right now, using enumitem package, I've got something like this: \documentclass{article} \usepackage{enumitem} \begin{document} ...
1
vote
2answers
98 views

How to align text and picture horizontally and vertically?

I'd like to align text and a picture horizontally as well as vertically, based on the text area. So far I have tried using TikZ. I managed to get the effect alignment of the items in either direction, ...
3
votes
1answer
26 views

Using custom-aligned subarray in LyX

I need to write a vertically stacked subscript in a notation meant to say "evaluate expression at k=..., and k'=...". In the end it should look like / SOME \ | BIG | \ ...
1
vote
1answer
80 views

Auto spacing in math mode

I have a long line of math expression, which is as follows: $verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword ...
0
votes
0answers
22 views

table alignment specification

When I use \begin{tabular}{l*{20}{c}} it works perfectly. But when I use \begin{tabular}{l|c*{4}|c*{8}|c*{8}} It gives me error. How can I specify the alignment operator as multiples without ...
3
votes
1answer
17 views

longtable inside enumerate

When I have a longtable left-aligned inside an enumerate, it isn't indented properly. For example \begin{enumerate} \item text % \setlength\LTleft{\itemindent} % \setlength\LTright{\fill} ...
1
vote
1answer
64 views

The photo doesn't center when using \centering

I just saved an .eps file that it can not be uploaded to latex and it shows as in the photo , how would I resolve it ? this is the code , when I use smaller dimensions it's in the center , but with ...
0
votes
0answers
21 views

Table caption alignment with respect to table [duplicate]

How to align table caption in following example to the left of table (instead of being centered) ? Unfortunately I cannot find any switch which would govern this. Command ...
1
vote
0answers
27 views

Figure centered (horizontally and vertically) + subsection on same page

I want to center my figure (horizontally and vertically). I have a subesction that I want to keep on the same page (at the top), but it is "pushed" on the next page. I am using the following code: ...
6
votes
2answers
254 views

How do you center everything

Is there a way to center everything in a LaTeX document even the text?
3
votes
1answer
86 views

Background color across the entire textwidth for chapter headings - koma script

I have a very similar question to this old (and already answered) one: Giving headlines a background color spanning across the entire typearea However, the solutions provided there only work for ...
6
votes
2answers
77 views

More than two columns amsmath cases

I'm trying to use the cases environment to show an arbitrary equation. But I noticed that it only allows me to use 2 columns. However, I would require a third column, or perhaps a fourth as well. An ...
2
votes
1answer
46 views

Format table number alignment

I am having a few problems with the following code: \documentclass{standalone} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{tabular}{ l S[table-format = 4.2] ...
0
votes
0answers
43 views

How to justify one part of a line left and the other on the right hand side

I was wondering if it was possible to have two sections of text, on the same line be both left justified and right justified. For example doing this: {\itshape{\begin{flushleft}I'm on the ...
1
vote
2answers
56 views

Spacing in align environment

I am familiar with the \flushright and \hfill commands for positioning text to the far right of the page. However throughout my document I am using the terms (x\rightarrow\infty) on many lines and I ...
1
vote
0answers
52 views

Align fixed-width columns to the decimal point

I define a new column type for a fixed width column with centre aligned text as follows: \newcolumntype{d}[2]{>{{\rightdots{#1}}r<{\rightdots}\let\newline\\\arraybackslash\hspace{0pt}}m{#2}} ...
0
votes
0answers
21 views

how to arrange figures in 2rows x 2 columns format

I need to arrange 4 figures in 2x2 format in a two-columned LaTex document. Can anyone please help me out with this?
1
vote
1answer
17 views

get the page horizontal and put 3x3 images

First, I used following: \usepackage{rotating} \usepackage{subfigure} .... \begin{sidewaysfigure} \subfigure[Title A]{\includegraphics[width=7cm]{figures/plot1a.png}} \subfigure[Title ...
3
votes
1answer
28 views

Dummy error with \center

I know this is a silly thing but I don't understand why does this happens. My text is not well centered but I'm using the \center command with all the page. This is my output: The phrase "Ingeniero ...
0
votes
1answer
31 views

pspicture alignment

How can I align these three pspictures so the first two are on the same line and the third is under them ,aligned to the left? \begin{figure}[ht!] \psscalebox{1.0 1.0} % Change this value to rescale ...
1
vote
0answers
40 views

How can I align the cells vertically?

I'd like to align my table cell vertically and horizontally.... can anyone help here is my code \begin{table}[htbp] \small \centering \caption{comparisons} \subfloat[Approximation accuracy ...
1
vote
1answer
18 views

Aligning texts and drawings in beamer

I am making a presentation using beamer for the first time. Please see the following code. \documentclass{beamer} \mode<presentation> { \usetheme{Warsaw} \setbeamercovered{transparent} } ...
0
votes
1answer
34 views

Custom pseudocode style

I want to write a custom pseudocode in latex in a similar style as the exemple below: . I didn't manage to get what I want using existing pseudocode package, is there another way to get this kind of ...
2
votes
2answers
35 views

Center text in minipage along page center

For a one-page bulletin, I need some text and a logo on the end of a page. I've gotten first results with using minipages so far: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
4
votes
1answer
34 views

Putting two derivations on the same line

I'm trying to put two logic derivations on the same line, but I'm having trouble figuring out how to do this. Here is a sample of the code that I'm using: \documentclass{article} ...
3
votes
2answers
30 views

Centre Decimal aligned multicolumn

I have some decimal values in a table that I have aligned by decimal point but I would like them to be centred to the column. So far I have: \begin{tabular}{l r@{}l r@{}l r@{}l r@{}l} \toprule Weeks ...
1
vote
1answer
32 views

Cannot make \arraybackslash work after defining custom columns

I use: \usepackage{array} \newcolumntype{fwLa}[1]{>\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} ...
5
votes
1answer
52 views

Using TikZ current page node in memoir class

I need to use the current page.center position in a memoir document to center some images on a page. (unless someone has an entirely different suggestion about how to display images like this.) ...