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} \...
Zarko's user avatar
  • 289k
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 ...
egreg's user avatar
  • 1.1m
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 =...
egreg's user avatar
  • 1.1m
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][]{\...
egreg's user avatar
  • 1.1m
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 ...
Mico's user avatar
  • 490k
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} { \...
egreg's user avatar
  • 1.1m
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,...
F. Pantigny's user avatar
  • 36.6k
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}&\...
Werner's user avatar
  • 595k
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} \...
samcarter_is_at_topanswers.xyz's user avatar
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 \...
Mico's user avatar
  • 490k
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} \...
Werner's user avatar
  • 595k
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 ...
Mico's user avatar
  • 490k
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} \...
F. Pantigny's user avatar
  • 36.6k
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 ...
Mico's user avatar
  • 490k
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 ...
Vincent's user avatar
  • 19.4k
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 ...
Zarko's user avatar
  • 289k
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} \...
MS-SPO's user avatar
  • 7,699
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, ...
MS-SPO's user avatar
  • 7,699
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]{\...
lukeflo's user avatar
  • 1,091
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, ...
cabohah's user avatar
  • 8,258
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) ...
Mico's user avatar
  • 490k
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}}...
Mico's user avatar
  • 490k
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 ...
Mico's user avatar
  • 490k
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 ...
MS-SPO's user avatar
  • 7,699
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/...
pascal974's user avatar
  • 2,667

Only top scored, non community-wiki answers of a minimum length are eligible