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

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} \...
Zarko's user avatar
  • 289k
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 ...
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

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 ...
muzimuzhi Z's user avatar
  • 25.5k
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{...
Werner's user avatar
  • 595k
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 \...
Werner's user avatar
  • 595k
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 ...
F. Pantigny's user avatar
  • 36.6k
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

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