Questions tagged [alignment]
{alignment} is for questions about text arrangement in correct relative orientation or position.
1,139
questions
0
votes
0
answers
27
views
How to vertically align equation tags? [duplicate]
Consider the following example
\documentclass{article}
\usepackage{mathtools}
\usepackage{xcolor}
\makeatletter % make "@" a letter-like symbol
\renewcommand{\tagform@}[1]{\maketag@@@{\...
2
votes
2
answers
201
views
How to split a long set
I have this MWE where there are two long set
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\begin{document}
Supponiamo che l'insieme sia $A=\{a,b,c\}$. L'insieme delle parti di $...
1
vote
1
answer
38
views
How can I vertically align four different sized subfigures and their respective captions?
I want to have a Figure out of 4 different sized subfigures in one line. The subfigures should be centered vertically and the captions should be at the same height.
I tried with and without [c] after \...
2
votes
2
answers
56
views
Align last subfigure on the left side
I have 5 pictures and want to align them that three pictures are on the left side above each other and two on the right side.
I have tried it like this
\begin{figure}
\centering
\begin{subfigure}[h]{....
5
votes
2
answers
83
views
Alignment problems with regression table and math in heading
I have a problem with the alignment of the commas in a regression table. Due to the fact that I also have mathematical expressions in the heading, other solutions I found do not work.
Is it still ...
0
votes
1
answer
62
views
Quick Reference in Two Columns
Pramod Achar's book on perverse sheaves has a quick reference in the back that looks like this. How can I achieve something similar? The important things to me are: the general spacing (although maybe ...
-1
votes
0
answers
23
views
conway-conxeter frieze diagram [closed]
I am trying to draw a conway-coxeter frieze diagram in $LaTeX$. It looks like the following. I am not sure how to get the alternating alignment with the regular matrix package, so can somebody help ...
0
votes
1
answer
70
views
Right aligning all page numbers in overleaf bibliography footer and appendix
I have to as part of my thesis guidelines have this line at the bottom of every page "A.N.Other, PhD Thesis, Random University 2021" except on the title page and my page numbers all need to ...
0
votes
1
answer
31
views
Horizontal centering of section name
Consider, as a starting, point the code below.
I would like to have the multi-lined section name horizontally centered, but I have been unsuccessful.
This type of centering is to be applied only on ...
1
vote
1
answer
28
views
Illegal character in array argument
I produced a table several weeks ago (reference image attached) that I am now trying to add into a larger document. The first issue I am running into is that I now get an error message "Illegal ...
1
vote
2
answers
82
views
Create a new environment that can switch between center, flushleft, flushright from based on a parameter
I would like to create an environment that, provided with either center, left or right creates a center, flushleft, or flushright environment.
My current code is the following:
\newenvironment{...
1
vote
2
answers
45
views
How to align text and equation in two columns?
What I need to do is this:
I would like to have those two columns separated with the formulas aligned under.
The result I got is disappointing though. I altro tried with the align command but it ...
0
votes
0
answers
11
views
Vertical Alignment of multicol and image nested in minipage
I have been googling and trying the TeX Exchange to find a solution and I am unable to find one yet. I would like to move my three columns (I, II and III) to be the same height as the image I have ...
0
votes
0
answers
40
views
Minted Assembly code indentation problems
I want to align the code as in the source code (image 1), because as you can see in the output (image 2) it comes out completely different.
\documentclass[12pt, a4paper]{article}
% Language setting
% ...
4
votes
3
answers
144
views
How can I center mathematical symbols in table?
I want to center the arrows as well as the \vdots, but can't figure out how. I want to create a figure, but thought the smartest way to do it is to create it as an table. Any help would be ...
5
votes
1
answer
28
views
Top aligning chemmacros pictures
How can I top align these two chemmacros pictures? I tried with tabular, but maybe I forgot something
\documentclass[12pt]{article}
\usepackage{chemmacros}
\chemsetup{formula=mhchem,modules=newman} % ...
1
vote
1
answer
14
views
Trying to vertically 3 align fractions - one has a hidden rule
Im attempting to align the X12 over X12 with the fractions. It looks OK until I make the text LARGE then the vertical alignment is off - I think I need to change the baseline for the X12 over X12 but ...
1
vote
1
answer
43
views
Horizontally centering and vertically filling svg
I am trying to fill the remaining space of a page with a tcbox wrapped includesvg item. There is funny behavior when I do this. When including a tall svg, one which will not fill the entire width of ...
0
votes
0
answers
30
views
changing alignment of columns
I have the following code from a CV template and currently it has two columns that are left aligned. Is there a way for the second column to be aligned a certain distance (1ex) from the end of the ...
1
vote
1
answer
31
views
How to align multiple lines in tabular
I am using the following code from this repo
% Define an environment for cvskill
\newenvironment{cvskills}{%
\vspace{\acvSectionContentTopSkip}
\vspace{-2.0mm}
\begin{center}
\setlength\...
3
votes
3
answers
94
views
Multi-Line Equation Alignment Across 5 Lines
I would like to present an equation in the following manner:
However, utilising the amsmath package, this is the best I can get:
\begin{equation}
\begin{aligned}
\frac{\partial}{\partial t}\left[...
2
votes
1
answer
44
views
Adjust Height Minipage and Tikz Pic
I am working within the same document and I am having difficulty moving my picture. Ideally, I would like it lower and more aligned with the table (see image). I tried adjusting the minipages, and ...
1
vote
1
answer
40
views
tabularray table nesting and alignment issues
When drawing nested tables with tabularray, I cannot accurately align them within the surrounding table.
\documentclass[a4paper,12pt]{article}
\usepackage{ctex}
\usepackage{tabularray}
\begin{document}...
1
vote
1
answer
47
views
How to set the Question width in nested enumerate
Based on the answer here, i want align XXX and YY in nested enumerate
\documentclass[a4paper,12pt]{article}
\usepackage{tabto}
\usepackage{newtxtext}
\usepackage{enumitem}
% Margins
\usepackage[
top=...
0
votes
1
answer
29
views
How to set the Question width
I want to bring XXX and YY in the first line in question number 2. I do not know how to do it
\documentclass[a4paper,12pt]{article}
\usepackage{tabto}
\usepackage{newtxtext}
% Margins
\usepackage[
...
1
vote
1
answer
50
views
How to align text vertically in beamer frame
In continuation of the previous question How to show the frametitle only on the first slide of a frame , there was a problem with text alignment. The problem is that I am trying set bottomsep and top ...
0
votes
1
answer
25
views
Make contents of several tabularx environments' corresponding columns flush
I am in a situation in which it seems desirable to use multiple tabularx environments to feign a single one. But I would like for the contents of their right-most columns to be flush left with each ...
1
vote
1
answer
67
views
Alignment problem when I write a lot of map
When I write a lot of map the alignment of map is not good.
\documentclass{article}
\usepackage{amsmath,amssymb,amsthm,mathtools,xcolor,enumitem}
\usepackage[hmargin=3cm,vmargin=3cm]{geometry}
\...
0
votes
1
answer
57
views
How to create double fullpage spreads in a two-column environment
To create a double-page spread, in which an image is spread across two pages of an open book, with no white space (no margins, headers, and footers), the package hvfloat is recommended.
This package, ...
2
votes
1
answer
33
views
How to make horizontal alignment for characters in grid?
I have a LaTeX script that renders characters within a grid. While it functions adequately, there is a minor problem where the alignment of characters is disrupted if some of them occupis a ...
0
votes
2
answers
63
views
Align texts with the formula
I'm using the package xymatrix to create the following diagram:
The diagram is bigger than the text, but the texts don't automatically go to the center of the line.
Here is the code:
\documentclass[...
0
votes
1
answer
35
views
How to center equations inside flalign
I have noticed that, for multiple single-column lines, flalign produces right-aligned formulas, while other alignment environments provided by amsmath produce center-aligned formulas. See the MWE ...
8
votes
2
answers
130
views
Align \vdots at the center of an `aligned` environment
In the following set of equations, I would like to have the vertical dots, \vdots, horizontally aligned at the center of the page. I tried a gathered environment nested within an aligned environment ...
0
votes
0
answers
27
views
How to format options in a neat and space efficient way?
I am making a question paper. The question paper contains multiple choice type questions and are to formatted in two columns. The first question while neatly formatted takes a lot of space. The second ...
0
votes
1
answer
49
views
How to align the icon in an itemize environment? [duplicate]
I'd like to align the icon with the text. I prefer to put the icon outside the text instead of changing the line height.
The svg file https://svgur.com/s/vr6
\documentclass{article}
\...
0
votes
0
answers
34
views
How do i make Text in my longtable move away from borders
Basically I got this code:
\documentclass{article}
\setlength{\arrayrulewidth}{0.5mm}
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{2.5}
\usepackage{longtable}
\usepackage{array}
\...
0
votes
0
answers
40
views
Using tikzpicture to customize labels in enumerate shifts item text below label level
Here is my MWE
\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{enumitem}
\usepackage{tcolorbox}
\usepackage{...
4
votes
3
answers
84
views
Equation alignment of an optimization problem
In the following excerpt of a write-up, I was wondering how to left-align \hat{L} and f on the second column of the first two lines. The best I could produce is below.
Thanks.
\documentclass{extbook}
...
0
votes
2
answers
35
views
Align by decimal points and flush left five columns but flush right one column
I have a table where I need to align the numbers by the decimal point. After that I need flush left five columns (from Country to Robust S.E. in the example below) but flush right the last one (p-...
0
votes
1
answer
22
views
Centering the text in table columns
I can't figure out why the text in the second and third column of my table isn't centered. I tried using \usepackage{array} with |>{\centering\arraybackslash}c| for the columns but it didn't work ...
0
votes
1
answer
31
views
Triple aligment for multiple equations with cases
I'm trying to perform triple alignment for equations that involve cases environment
\begin{alignat*}{3}
\gamma_t(i,j) &= f(s_t = i, s_{t+1} = j \mid X, \lambda) \quad && = \sum\limits_k \...
3
votes
3
answers
169
views
Vertical alignment of specific tikz tree nodes to another specific node in another tree level
I am trying to make a tree of semittic languages. In the process I want to vertically align a specific tree node in level 2 to a specific tree node in level 1, as indicated in the figure.
The figure ...
4
votes
3
answers
153
views
How do I set the distance between equations to be equal to the distance to the surrounding text?
I would like to display a set of equations divided into subsets, where the spacing between two subsets is the same as between the first line and the text above (and between the last line and the text ...
0
votes
2
answers
41
views
How to split complex alignments into multiple columns?
My document includes multiple recursive definitions. To increase readability, I split these definition into multiple (usually two) columns. To get more accurate alignments, I use array. Thus, ...
1
vote
1
answer
28
views
How to center or align cells in the table if the cell text is in multiple lines?
The code I am using centers horizontally and vertically all cells.
But if the cell text breaks in multiple lines (cells under the Summary column), the left cells are not centred horizontally any more (...
0
votes
1
answer
23
views
Aligning lines of text while \raggedleft
Here is an example of the desired effect (hrule to show margins of the page):
As shown in the picture, the text consists of two columns - each line in the left column ends together while each line in ...
0
votes
0
answers
53
views
System with Gauss method, not very good
I'd like to do this with LaTeX (or tikz maybe)?
For the first step, I can do it with array:
$$\left\{
\begin{array}{ccc}
3x-2y & = & 4 \\
5x+3y & = & 9 \\
\end{array}
\right|
\begin{...
0
votes
0
answers
34
views
How to justify text width in latex like in a Word document [duplicate]
I faced a problem that in LaTeX it is not a trivial thing to apply a text justification based on line width like in Word.
I have tried \usepackage[hyphenate]{microtype} and \usepackage{ragged2e} with \...
1
vote
1
answer
29
views
Different alignments with alignat
\begin{equation}\label{eq:f_formulation}
\left\{
\begin{alignedat}{3}
\E(u,z) &= \int_I(u_N,z)_{L^2(\Gamma_N)}+ \int_I(u_V,z)&\\
&\text{for all } z \in W_{,0D} \text{ with } z(T)=0\\
\tr ...
2
votes
1
answer
59
views
Left align the title of sections and subsections
I want the titles of sections and subsection to align on the same line (red in the picture):
How can I do it, preferably, without a package (titlesec for example)? I.e., by modifying the commands \@...