5
votes
Accepted
How to split a long set
To my opinion is your text better readable, if long sets are written in display math form:
For this I use aligned* and multlined of mathtools package:
\documentclass[a4paper,12pt]{article}
\...
5
votes
Top aligning chemmacros pictures
Lower both formulas by their height.
I changed the loading part, bacause a warning appears if module is given in \chemsetup.
\documentclass[12pt]{article}
\usepackage{upgreek}% to avoid an annoying ...
4
votes
How can I center mathematical symbols in table?
The MMM/23 tags don't fit in one twelfth of the line width, so you cannot get equal size for twelve columns.
\documentclass[12pt]{book}
\usepackage[
a4paper,
width = 160mm,
top = 35mm,
bottom =...
4
votes
Multi-Line Equation Alignment Across 5 Lines
I'd use split and vertically align all the + signs. A local command easily does the job, and \pder vastly simplifies the input.
\documentclass{article}
\usepackage{amsmath}
\newcommand{\pder}[2][]{\...
3
votes
How to split a long set
I doubt that there's a general rule that answers your question.
There will be cases for which it's clearly preferable to put the math material containing commas out of the running text and into a ...
3
votes
Accepted
Create a new environment that can switch between center, flushleft, flushright from based on a parameter
Here's with expl3; you can use l, c or r besides left, center or right.
\documentclass{article}
\usepackage{lipsum} % for mock text
\ExplSyntaxOn
\NewDocumentEnvironment{withalignment}{m}
{
\...
3
votes
How can I center mathematical symbols in table?
For information, here is a way to construct that table with {NiceTAbular} of nicematrix. You need several compilations.
\documentclass[12pt]{book}
\usepackage{alltt}
\usepackage[a4paper, width = 160mm,...
3
votes
Multi-Line Equation Alignment Across 5 Lines
...just shifted the alignment within the aligned environment:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{aligned}
\frac{\partial}{\partial t}&\...
3
votes
Accepted
How can I center mathematical symbols in table?
you can centre all cells with e.g. cells={halign=c}
to centre Cal-23 either place it in the cell in the middle of your columns, or merge all cells in this row together:
\documentclass[12pt]{book}
\...
3
votes
Accepted
Align last subfigure on the left side
I would delete all \centering directives, set the widths of the individual graphs to 1\textwidth rather than 0.9\textwidth, insert \hfill directives between adjacent subfigure environments, and issue \...
2
votes
Align last subfigure on the left side
Add a "fake image" in the form of \hspace{0.48\textwidth} after the final (5th) image.
\documentclass{article}
\usepackage[draft]{graphicx}
\usepackage{subcaption}
\begin{document}
\...
2
votes
Accepted
Alignment problems with regression table and math in heading
My main recommendation would be that you employ the dcolumn package and its D column type instead of the c column type to align the numbers on their respective decimal markers (the commas, which no ...
2
votes
Alignment problems with regression table and math in heading
You can try to use \mathrlap.
\documentclass[12pt]{scrartcl}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{unicode-math}
\usepackage{booktabs}
\usepackage{array}
\usepackage{threeparttable}
\...
2
votes
How to align text and equation in two columns?
I suggest using a tabularx environment with a target width of \textwidth and two equal-width X-type columns with horizonally and vertically centered contents.
The framelines at the edges of the ...
2
votes
Create a new environment that can switch between center, flushleft, flushright from based on a parameter
Still not very elegant with all the \ifs, but it works.
\documentclass{article}
\newcommand*{\alignment}{}
\newenvironment{withalignment}[1]{%
\renewcommand*{\alignment}{#1}
\if\alignment c
...
1
vote
How can I vertically align four different sized subfigures and their respective captions?
Welcome to TeX:SE!
Like this?
One (only possible) way is to move images baseline to their vertical center and insert images in table (as suggested @John Kormylo in his comment) with one row with ...
1
vote
How to align text and equation in two columns?
Please find attached two ways to do it:
using Tikz and paracol (lets you switch columns)
using tabular (similar to Mico's approach)
\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\...
1
vote
Accepted
Quick Reference in Two Columns
Here is a way to approach your problem:
Part 1: write text as usual, using \section and \subsection
Part 2: use \twocolumn AND replace sections by own commands \qrs and \qrsub
Part 3: same as Part 2, ...
1
vote
Accepted
Right aligning all page numbers in overleaf bibliography footer and appendix
Since you're using the book class, you have twosided output. Thus, you have to define the pagenumber for odd (R) and even (L) pages: change the line \fancyfoot[RO]{\thepage} to \fancyfoot[LE,RO]{\...
1
vote
Accepted
Horizontal centering of section name
You can use a class, that provides such a feature, e.g.,
\documentclass[emulatestandardclasses]{scrartcl}
\begin{document}
\let\raggedsection\centering
\section*{centered section, centered section, ...
1
vote
Illegal character in array argument
The two main changes you should make -- other than, of course, making sure to load all required packages, and especially the dcolumn package, and that all macros, incl. \sym, are defined -- are (a) ...
1
vote
Accepted
How to align multiple lines in tabular
Starting on line 424 of awesome-cv.cls, one finds the following definitions:
% Use to align an element of tabular table
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}...
1
vote
Multi-Line Equation Alignment Across 5 Lines
In addition to shifting the alignment point in the first row to the left, you may want to rearrange the additive terms on the RHS so that it becomes immediately clear that 15 of the 17 terms can be ...
1
vote
Accepted
Adjust Height Minipage and Tikz Pic
You can try it this way:
replace the second minipage by a raisebox (neg raise=lowerbox)
avoid an empty line between end of first minipage and raisebox
with a blank line the Tikz picture coincides ...
1
vote
tabularray table nesting and alignment issues
With the inner array built with tabularray I was not successful. If using tabular is sufficient for you, I suggest:
\documentclass[border=3mm]{standalone}
%https://tex.stackexchange.com/questions/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
alignment × 1139tables × 200
equations × 122
horizontal-alignment × 115
align × 104
vertical-alignment × 80
tikz-pgf × 68
math-mode × 60
amsmath × 48
spacing × 43
tabularx × 33
minipage × 29
alignat × 25
matrices × 24
table-of-contents × 23
floats × 23
enumerate × 23
text × 23
vertical × 23
beamer × 22
captions × 22
graphics × 21
longtable × 21
positioning × 18
arrays × 18