Questions tagged [alignment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Misalignment with PDF

I seem to be having issues with the pdf creation. It seems that certain sections are being moved before certain figures or tables. "5 Overview" being placed in front of the table. It should be 4 ...
1
vote
1answer
20 views

Recentering text in cell in Latex Table after adding an image to the cell next to it

I have created a 3x3 table in Latex, where the the two cells in the first row to the right are merged. It looks something like this: However, when I import the image, the text to the right (first ...
4
votes
2answers
198 views

Why should I “enclose the previous parenthesis with ‘{}’”?

I stumbled across this line in chktex (here) with a note saying This is a warning which you may ignore, but for maximum aestethic pleasure, you should enclose your bracket characters with `{}'s. ...
2
votes
2answers
136 views

Typesetting a fancy grid of figures

So, I need TeX to arrange the page as can be seen below. More specifically, to arrange vector graphics .pdf figures in a rectangular grid, with strict fixed boundaries, captions below and possibly ...
2
votes
2answers
24 views

How to prevent a long break when using align with both single-line and multi-line (aligned) equations?

I have the following code which produces two aligned equations: one is a single line long, while the other one uses aligned to have several lines. \begin{align} W' &= W \cup W^\star &\text{...
2
votes
1answer
48 views

Align a system equation with three separate equations in latex

The equations in LaTeX are: \[\min_{T \geq 0} =\sum_{i,j=1}^n T_{ij}c(i,j) \] \[subject \ to: \sum_{j=1}^n T_{ij = d_{i}} \ \forall \ \in i \{1,...,n\} \tag{2.7}\] \[\sum_{i=1}^n T_{ij} = d_{j}^{'}...
0
votes
1answer
63 views

siunitx: horizontal alignment of rows with integers, non-integers with variable number of decimals, “surrounding material”, and brackets

I have the following table: \documentclass{article} \usepackage{mathtools} \usepackage{amsmath} \usepackage{amsthm} \usepackage{MnSymbol} \usepackage{siunitx} \usepackage{longtable} \usepackage{...
0
votes
1answer
40 views

How to center title including figure vertically in Beamer?

I started using rather large Beamer-based template. Everything is good except title vertical align - for default font size it looks ok: But when I change the fontsize to, e.g. 9pt like this: \...
4
votes
2answers
82 views

How can I write an aligned environment with multiple anchor types?

1. Desired outcome I'm frequently finding myself trying to align parts of an equation block independently of other parts. For example, here is a left-aligned equation block, where some of the ...
1
vote
1answer
28 views

Longtable with multicolumn for 3 column data not working properly

I'm trying to create list of books with 3 columns and using new environment (I have to use environment here) to define my longtable. I want to get something like this : But my code isn't working ...
0
votes
2answers
62 views

How can I align my itemized list to the right?

I would like my itemized list in the second column to be aligned to the right, as currently, the list is aligned to the left of the column. How can I do this? See below for an example. Before ...
0
votes
0answers
21 views

\hfill if possible, new line otherwise [duplicate]

I have the following MWE \documentclass{article} \newcommand\setmarks[1]{\hfill (#1 marks)} \begin{document} This works well, text appears on right \setmarks{10} On the other hand, this line with ...
0
votes
2answers
37 views

siunitx alignment problems related to \num{}

I'm trying to align a table with has a mix of numbers in scientific notation and common notation. Many of these have associated errors in parenthesis. siunitx has a feature - \num{}- which allows to ...
0
votes
2answers
45 views

Table size, alignment and columns alignment

I'm new with LaTeX. I want to have two tables. The first table renders fine. For the second table, I want it to take full page width and I want text from first column to be aligned left and text from ...
2
votes
1answer
34 views

Center equations in table!

I can't seem to figure out how centre the equations in the column so it looks neat!!! (See my latex code below). %3 LAWS OF THERMO SECTION ----- SECTION 5 \section*{Laws of Thermodynamics} \tcbset{...
3
votes
2answers
190 views

How do I align text and an array?

So I wish to have some left-aligned text and an array next to it. However, when I try, the array is slightly above the text (picture added below). Even \aligned isn't working. The text is within a ...
0
votes
0answers
23 views

table of contents page number alignment

I have some problems with the page number alignment in the table of contents of my dissertation. The screenshots of the 3 specific points are shown below. As you can observe the page number related ...
1
vote
1answer
38 views

Enumerate and align equation

I would like to enumerate two equations in the following format (a) For all x < y (b) For all x + y < z that is I would like to tag/number them with a) and b) on the left, I would ...
0
votes
1answer
31 views

Trying to make table with on column align to left and another to right (+command call issue)

I'm a beginner in Latex. I'm trying to create a table with one column aligned to the left and the other to the right. Here is what I tried so far. \newcommand{\cellright}[1]{\begin{flushright} #1 \...
0
votes
1answer
34 views

Right align in fancyhdr not working

I am writing a class template for some documents and would like the \rhead{...} to be right aligned (as it normally is). However with the setup i currently have, the header not on the far right; it ...
0
votes
0answers
25 views

Set alignment of notes in threeparttable(x)

I want to put notes after my tables so I use the threeparttable package. Some of my tables flow over pages so I also use the longtable package along with the extended threeparttablex. I would like to ...
2
votes
3answers
221 views

Align word of two lines

In order to highlight a parallelism between two lines, I want to align specific words. The following example is from a list in Peano's Formulario preface: c) suppressione de ι κ λ … ρ σ … que ...
2
votes
1answer
34 views

How to achieve a centered header over right-aligned columns of numbers when the header is long relative to the width of the column of numbers

I have difficulties to produce a relatively wided centered header entry over a relatively narrow column of right-aligned numbers. The other way around it works fine with the makecell package as shown ...
1
vote
1answer
33 views

How to temporarily escape an 'alignedat' environment nested inside an 'align*' environment?

This is my output: The problem, of course, is with the misplaced third line. What should happen is this: The four left-hand equal signs ought to be aligned; additionally minus signs and plus signs ...
2
votes
1answer
39 views

How do I correctly align this long multi-line equation?

I wish to format the following equation: \documentclass{article} \usepackage{amsmath} \begin{document} \centering \begin{align*} \det\left(\mathbf{A}_{\mp}\right) ...
0
votes
1answer
30 views

Empty line after dirtree?

I have a dirtree in my latex file, followed by a block of text. However, between the end of the diretree and the start of the textblock there is no space. I want to add an empty line in between, but I ...
0
votes
1answer
83 views

Text baseline alignment in filled boxes using tikz

How do I align text in individual boxes to avoid getting results like the following where the second word is shifted up due to parts of the characters stretching below the baseline? Here's my MWE: \...
1
vote
1answer
57 views

Multiple alignments within tables

How can I create tables with multiple alignments as shown? The first row (i.e. the headings) is centre aligned and the subsequent rows are left aligned? \documentclass[a4paper]{book} \usepackage{...
1
vote
1answer
31 views

Minted line numbers outside frame and outside margin

I have a code snippet where I use minted for nice display: \begin{figure}[H] \begin{minted}[ frame=single, obeytabs=true, tabsize=4, linenos, numbersep=6pt ...
1
vote
4answers
45 views

Adding text before an aligned paragraph

How do I add text before I align a paragraph? For example, I want a paragraph that looks something like this Aside: Lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum ...
0
votes
0answers
23 views

left justification problem

just trying it out to see if it will be easy enough to write my thesis (not due for a long while). I wrote the following code and got the following compilation. I don't understand why some of the ...
2
votes
1answer
53 views

How \span influences number of `&' in \halign?

Consider this preamble: \tabskip=0pt plus1fil#&#&#\tabskip=0pt The last template is #, so it should not matter whether a line is \BOX&\BOX&\cr or \BOX&\BOX\cr. But it turns out, ...
2
votes
1answer
37 views

Why is the alignment of an MdFramed environment affected by an included caption differently in the scrbook and the article document classes?

I am trying to produce a floating table with a caption, both the table and the caption should be surrounded by a frame. The frame should have a width which reflects the size of the table and the ...
1
vote
2answers
83 views

Question about exercise 22.14 in TeXbook

The answer to this exercise is: $$\vbox{\tabskip=0pt \offinterlineskip \halign to 36em{\tabskip=0pt plus1em#& #\hfil&#&#\hfil&#&#\hfil&#\tabskip=0pt\cr &&&&&...
3
votes
1answer
20 views

Aligning alternating lines of the text

I am trying to get used to using latex in all of my classes, but I am straggling a bit with some formatting issues. I am trying to align alternating lines of the poem; I was wondering if there is a ...
2
votes
1answer
112 views

How TeX sets glue for \halign entries?

On p.235 of TeXbook it is said: TeX reads an entire \halign{...} specification into its memory before typesetting anything, and it keeps track of the maximum width of each column, assuming that ...
4
votes
1answer
91 views

Why is \halign not centered in display math mode?

This is centered: $$\vbox{\halign{#\cr A\cr}}$$ Why this is not centered? $$\halign{#\cr A\cr}$$ BTW, why \hbox{\halign{#\cr A\cr}} does not work?
0
votes
4answers
90 views

Have text vertically centered left of a tikzpicture

I have an issue regarding aligning of text: I'd like to have a G=(tikzpicture) section, like for the matrix in my example. I didn't find a helping answer, all I found was aligning stuff inside nodes. ...
10
votes
1answer
174 views

How to interpret ``underfull'' warnings in alignment?

I'm trying to figure out why there are warnings for 125pt case of AT&T table example in TeXbook. While trying to understand the meaning of these warnings, I came across p.302 of TeXbook, that says:...
4
votes
3answers
323 views

Aligning case equations, while text on left … argh!

I'm strugling with an alignment case which I don't usually use. See the MWE below and its preview: \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{fontenc} \usepackage{lmodern} \...
0
votes
2answers
46 views

tcolorbox: problem with alignment of text

I have created 3 tcolorbox, one left, one right and one down. The idea is for the text to be at the left of the graph, at the right and below of the graphs ( I included the graphs so it can be better ...
2
votes
2answers
20 views

Modifying alignment of rotated text in tabular figure

I've been trying to fix this but to no avail. Is there a way to move the alignment of the rotated text in the attached figure? I'm using LLNCS document class. My current code is \usepackage{graphicx}...
0
votes
1answer
24 views

Using book.cls makes pdf even pages to be aligned to the right and odd pages to the left

I have started to use book.cls instead of llncs.cls. I have copied the content of book.cls from here. For some reason, the pdf output has the even pages aligned to the right while the odd pages are (...
0
votes
1answer
33 views

Defining the format for Author misaligns the footnotes [duplicate]

I am working on my thesis (in french) and using Biblatex with geschichtsfrkl as the style for defining citations in the footnotes. In addition to the normal footnotes (executed through \footnote{}), ...
2
votes
3answers
234 views

How to set \phantom{-} automatically for entries of matrices?

I want a way to set matrix entries aligned by their sign automatically. For example, output of \begin{bmatrix} 1&1&-1\\ -1&1& 1\\ 1&-1& 1 \end{bmatrix} be same ...
1
vote
3answers
53 views

How can a top alignment of a multigraph image be achieved with the floatrow package?

I am trying to arrange the subimages (a) and (b) of the following MWE such as that they are aligned on top. I tried it such as explained in the solution of How to achieve top-alignment of images in ...
4
votes
3answers
239 views

How to align multiline equations?

I am working with equations that are should be broken to multiple lines. The code I wrote is as follows: \begin{equation} \begin{aligned} O_{max} = w_1 \Sigma_{a=1}^{m} \Sigma_{b=a+1}^{n} (-\...
1
vote
2answers
57 views

Indent for second line in long chapter title

I am using the book class to write a document. I have a long chapter title that only fits in two lines. I'm using a custom chapter heading font and the justification of the chapter title in the second ...
0
votes
0answers
19 views

Problem with \endhead in longtable: misalignment between the rows separated by \endhead

The code is the following: \documentclass[11pt, oneside]{article} % use "amsart" instead of "article" for AMSLaTeX format \usepackage{tablefootnote} \usepackage[flushleft]{threeparttable} %\...
2
votes
2answers
103 views

Is it possible to align caption and caption text of figure(table) separately in ConTeXt?

The align=center option of \setupcaptions can align the caption in the middle of figure or table. It's OK with one-line caption text, while not so good for multiple lines of caption texts, for all ...

1 2 3 4 5 8