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
How to right justify a table cell using package tabular
With table tblr of tabularray package your table code is short and simple:
\documentclass[11pt,a4paper]{article}
\usepackage{newtxtext,newtxmath}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\...
2
votes
How to right justify a table cell using package tabular
As you've discovered, the contents of a p-type column are left-aligned (as well as fully justified) by default. To change its behavior to right-alignment, it's necessary to (a) load the array package ...
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
center and adapt width in tcolorbox
The example below is based on OP's box3 environment, with some changes:
Option breakable is commented out since it's not supported when hbox is used.
Option varwidth upper sets a max width for hbox ...
1
vote
Accepted
How to ignore text when centering equations in the align* environment?
This effectively requests the comment to be set in a zero-width box. This will, however, cause (lengthy) content to spill over into the margin.
\documentclass{article}
\usepackage{amsmath}
\begin{...
1
vote
Accepted
Make dashes appear in between underbraces
If you're willing to do some measurements, you can set the dashes (\textminus below) between the elements without problem. \tmpbox is used to store the entire construction without the dashes, while \...
1
vote
How to right justify a table cell using package tabular
The package nicematrix provides an environment {NiceTabular} similar to the classical environment {tabular} but with new functionalities.
In particular, the columns p, m, b and X have an optional ...
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, ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
horizontal-alignment × 5525tables × 1049
align × 481
vertical-alignment × 473
equations × 420
math-mode × 322
tikz-pgf × 309
spacing × 289
floats × 213
captions × 196
graphics × 192
amsmath × 191
beamer × 186
lists × 166
tabularx × 129
minipage × 124
formatting × 123
table-of-contents × 118
sectioning × 116
enumerate × 115
alignment × 115
indentation × 114
subfloats × 106
siunitx × 95
margins × 92