Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [alignment]

The tag has no usage guidance.

10
votes
2answers
403 views

Matrix in TikZ and Equation

The following code draw the matrix I want: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,decorations.pathreplacing, calc, positioning} \begin{document} \begin{tikzpicture} \matrix [...
8
votes
4answers
363 views

Make equation number in middle with left alignment in latex

I need to place the following bulk of equation to left alignment with keeping the equation number in the middle, however using flalign require set option on/off by line for equation number which at ...
7
votes
2answers
208 views

Nested cases, alignment and numbering

I have tried all different sorts of solutions including align, aligned, cases and equation to have the result I get with this code except that I want numbering for the three lines in the aligned ...
7
votes
1answer
153 views

bend text between ellipsoids

I want to have some text aligned to the center of the top or bottom of an ellipse. I've tried \documentclass[border=0.5]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...
6
votes
2answers
166 views

Precise placement of arrow anchors

I have a (TikZ) diagram with several "blocks" of text connected by arrows. For reasons the (centers of the) blocks are not precisely horizontally aligned, but I'd still like my vertical arrows to be ...
6
votes
1answer
70 views

How to emphasize in a listing and keep source columns aligned?

I use moredelim with * to highlight some text in my lstlisting. \documentclass{article} \usepackage{listings} \usepackage[LY1]{fontenc} \renewcommand{\rmdefault}{ptm} \renewcommand{\ttdefault}{...
6
votes
1answer
129 views

Overbrace not aligning with itself

Why aren't my overbraces displaying correctly? The code for this segment is as follows \documentclass[12pt]{amsart} \usepackage{amsfonts} \usepackage{verbatim} \usepackage{amsbsy} \usepackage{...
5
votes
4answers
1k views

Problems with making formula look great [closed]

I have problems to make the below formula look great. Do you have any ideas on how I can make it look better? This is this LaTeX code I have for it: PTK = $PRF(PMK, \text{"Pairwise key expansion"} ||...
5
votes
4answers
372 views

Rubber banding integrands around nested fractions

I've been stuck on this problem for a while and can't find anything similar that is able to help me. I am attempting to write an equation where there is an integral, with limits, of a fraction, where ...
5
votes
3answers
248 views

List of equation aligned on the left and which return to the line

I am trying to write different equations aligned on the left (that's ok) and which go back to the line after the = sign. Also, I do not want any numeration of the equation: that's why there is a *. \...
5
votes
2answers
101 views

Aligning limits of multiple summations

I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations. \begin{align} \max \sum\limits_{k\in K}\sum\limits_{a\in A^{k,V}_{L}(f,v)}x^{k}_{...
5
votes
3answers
183 views

Displayed, single line equations with quantifiers aligned to the left

Is there an environment (or standard framework) to typeset a (single line) displayed equation with a "short" quantification that gives the following result? That is, the "main" part of the equation ...
5
votes
3answers
205 views

Line break and Numbering inside align environment

I'm trying to number a set of equations within the align environment. \tag{...} doesn't work for some reason. Moreover, I would like to have line breaks in the text elements in order to save space. ...
5
votes
2answers
96 views

Left aligned equations

In my document, I have a block of 3 equations that need to be aligned on the = sign. This is the code: \documentclass[a4paper, 11pt]{book} \usepackage{amsmath} \begin{document} \begin{alignat}...
5
votes
1answer
67 views

`\startalign` and `\startcases` are not compatible

In ConTeXt, it seems that \startalign and \startcases are not compatible. If so, what should I do when I want to align an equation containing a case-statement and a following equation? \starttext \...
5
votes
1answer
75 views

Put children around the parent in the forest

How can I put Dan, Eve, and Frank under the mother node? I tried changing anchor points and level distances but I couldn't put these children on the same horizontal level as the parent. I prefer a ...
5
votes
3answers
251 views

Align arrows in a column of different cells of a table

How can I align the \rightarrow symbols in the cells below? \begin{table*}[t] \begin{adjustbox}{center} \begin{tabular}{L{3cm}C{2.6cm}C{2.6cm}C{2.6cm}} \toprule Norwegian $\rightarrow$ Swedish &...
5
votes
2answers
41 views

How do I get this descriptive list aligned nicely?

I have worked out an exercise consisting of multiple parts in LaTeX, as a descriptive list consisting of part a, b and c. However, it aligns in a very weird way and I can't get it to look better. Is ...
5
votes
2answers
252 views

Alignment and dotfill in cases

This is what I want: This is what I get: I want two (or three) equations in cases and I want to align the equal sign (that's no problem). And then I want to have some text in every row. The text ...
5
votes
1answer
51 views

Is this possible to align all the underbrace text

My code are follows: \documentclass{book} \usepackage{amsmath} \begin{document} \begin{equation} \underset{\text{consumption}}{\underset{\uparrow}{\underset{}{C_{t}^{j}}}% }+\underset{\text{net ...
4
votes
2answers
109 views

How can I adjust the table caption left/right align with a table?

This is an example picture. I want to make my table like that. Here what I am doing. \documentclass{svjour3} \usepackage{tabularx} \captionsetup{labelfont=bf, justification=raggedleft, ...
4
votes
4answers
390 views

Text misaligned in multicolumn

I am trying to have part of the page divided into three columns and in each one a centered title and a description of different length. The problem is that the start of the bottom of the descriptions ...
4
votes
3answers
149 views

How to fit wide table on a page

I am building a table in latex but it is too wide to fit the page. Centering will only align it on the left side so that it will spill out on the right side. I already tried to rotate it and to set ...
4
votes
2answers
100 views

Align plots within tikz pictures one above the other

I have an issue I trust you will solve. I am plotting two graphs in order to represent Bode diagrams. For correspondance of abscissa they should be one above the other. I can align the figures but ...
4
votes
2answers
232 views

How can I place multiple images in a table and align them nicely

I'm currently trying to place multiple images inside a table. with the Multirow package. My current code looks like this: \begin{figure} \centering \begin{tabular}{cc} & \...
4
votes
2answers
64 views

3-level Verse in LaTeX

In Vietnamese, there is a type of poem (song thất lục bát -- double seven - six - eight) which goes like this LIPSUM Lorem ipsum dolor sit amet, consectetur adipiscing ...
4
votes
2answers
60 views

Align multiple answers in equation

I want the following nicely aligned \begin{alignat*}{3} & x^2(x-1) &&= 0\\ x^2 &= 0 \vee x-1 &&= 0\\ x &= 0 \vee x&&=1 \end{alignat*} result: edit: ...
4
votes
2answers
61 views

Alignment and phantom

The MWE shows in the result the alignment as I need it in the first step. My questions are: Now after the "1" there should appear again a "4", exactly beneath the "4" of the very first line. How can ...
4
votes
2answers
92 views

Forest: How do I automatically align tiers and have parent anchor=south

I am trying to make basic linguistic trees in Forest that do two things: 1) have the bottom leaves aligned on a single tier, and 2) have parent anchor=south. (Actually I have a third requirement as ...
4
votes
1answer
51 views

Adding sign + betwen lines (not math mode)

I edited a function about vertical mltiplication to achieve horizontal placement of the two multipliers. I need the sign + centered between 6942 and 4628 in black color.I tried with \begin{align} ...
4
votes
2answers
42 views

Aligning two adjacent numbered equations central to the vertical, and the horizontal

So I have an issue aligning two equations which I wish to label/number. I wish to place the equations adjacent to each other, with equidistant spacing in the horizontal (between the equations and the ...
4
votes
2answers
49 views

Is it possible to right-align the second line inside a “split” environment inside an “align” environment?

When breaking a long equation over exactly two lines, the multiline allows doing so without adding spurious equation numbering and without manually placing \notag tags. It also right-aligns the second ...
3
votes
2answers
139 views

How to left alignment of formulas in parentheses?

I want the follow one, but my code dosen't achieve, can someone help? my code: \begin{equation} \begin{aligned} \rho=\left\{ \begin{array}{lr} 0, & |v_{y}^{CH}|<V_{...
3
votes
2answers
188 views

Function definition diagram

I'm wondering if it exists a canonical/natural/smooth/economical way of drawing such a diagram for the definition of a function. The best I managed to do with tikz and align is very poor. I'm a ...
3
votes
2answers
144 views

How to properly align Tikz pictures in Latex fraction environment

How to properly align Tikz pictures in Latex environment to get the following picture? My trial code does not compile, \documentclass[preview]{standalone} \usepackage{tikz} \usepackage{amsmath} \...
3
votes
1answer
477 views

tabu m-column vertical alignment not working after package updates

After MIKTEX package updates vertical m-column alignment in tabu does not work anymore. See MWE below \documentclass{article} \usepackage{tabu} \begin{document} \tabulinesep=3pt Result using tabu: ...
3
votes
2answers
46 views

How to align braces and \mid in a set in order to get the same height

Main question How to align braces and \mid in a set in order to get the same height? Code: My following code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{...
3
votes
3answers
69 views

Nested alignments

I want to make alignments that look like this: which I have done by using \begin{align} & \frac{dx}{dt} = y \qquad \frac{dy}{dt} = x \\ \implies & \frac{d^2x}{dt^2} = \frac{d}{dt}\...
3
votes
2answers
108 views

align section content with first line in runin section

I'm currently using the following layout for my weekly exercises at my university: \documentclass[a4paper, 12pt]{article} \usepackage{titlesec} \usepackage{lipsum} % section title format and spacing ...
3
votes
2answers
40 views

Horizontal alignment on bmatrix environment

I'm writing a report that contains a lot of matrices. At some point in the text, I've written the following code EDIT: as I've been told, I'll upload a code that better represents the problem I'm ...
3
votes
2answers
127 views

Dividing a table too wide

For my thesis, I am trying to show the results of the cross-correlation analysis, but, due to the high number of variables, the table results to wide in any way I arrange it. I would like to know if ...
3
votes
2answers
76 views

Making this text look good

I have some problems making this text look good: This is the LaTeX code I have right now: \begin{equation} \begin{split} alert\ http\ \$EXTERNAL\_NET\ any\ \rightarrow \$HOME\_NET\ any\ ...
3
votes
2answers
98 views

Difficulty aligning footnotes in a thesis

In a thesis, I am using \footnote and \footcite[][]{} (as well as \footcites[][]{}[][]{}) simultaneously to add footnotes and citations. However, I am unable to align the footnotes uniformly. The ...
3
votes
1answer
77 views

Import csv and multiple eps files into table

How can I import all the elements of a csv file along with corresponding eps files? Basically I have 3 columns, NSC, Name, Structure. I was able to import text using csvsimple package and I think I ...
3
votes
1answer
41 views

Right-aligning TikZ nodes - bug?

I've just wasted over an hour trying to figure out why vertically-stacked nodes weren't right-aligning as I'd expect. Turns out, simply changing the order of the anchor and below attributes is enough ...
3
votes
1answer
285 views

How to anchor a transistor along a direction with circuitikz

I'm drawing a simple nmos differential pair with a bias transistor and I want to connect the drain of the bias transistor to the midpoint of the sources of the differential pairs. \documentclass[...
3
votes
1answer
25 views

Centering a symbol with overset

I'm attempting to center the \faPiedPiper symbol over a single letter like so: \documentclass[letterpaper,12pt]{article} \usepackage{fontawesome, amsmath, fourier} \begin{document} $\overset{\text{\...
3
votes
1answer
38 views

How to align numbers in all rows

I have a table which contains numbers and their percentages. Because the numbers and percentages length is different, they become unaligned. The following figure illustrates: As shown in the table, I ...
3
votes
1answer
43 views

Alignment of equations with implies and equals to

In amsmath package, the following doesn't get aligned properly. Here is the code. \begin{alignat*}{2} & 0 &= \dfrac{1}{4}(2(-1)+1)+C\mathrm{e}^{2(-1)}\\ & \implies 0 &= \dfrac{-1}{4}+...
3
votes
1answer
85 views

Root index \sqrt[n]{x} misaligned with libertinust1math

I'm porting all my libertine-based documents to use \usepackage{libertinust1math} instead of \usepackage[libertine]{newtxmath} and a side effect seems to be the misalignment of the n-th root symbol: ...