4
votes
Accepted
tabularray keeps middle vertical alignment of its content
When each cell has only a single line of text in a row, the vertical alignment options t/m/b are the same for this row. This is true also for traditional tabular environment (except that there is ...
3
votes
How to center-align the numbering, vertically, in the enumerate environment?
The following assumes that the text in the items is equally vertically spaced (no too high or deep line) and is a single paragraph.
The idea is to count the number of lines in the paragraph and raise ...
3
votes
Accepted
How to Best Raise (One-Time) the Beginning of a New Chapter on a New Page
\documentclass[openany]{book}
\usepackage{lipsum}
\usepackage{xcolor}
\begin{document}
\thispagestyle{empty}
\Large
\textbf{Introduction}
\AddToHookNext{cmd/@makeschapterhead/before}{\vspace*{-50pt}...
3
votes
Indentation in Beamer Frametitle
With that clues, the answer only can be "stop doing whatever you are doing to change the default output":
\documentclass[12pt]{beamer}
\usetheme{Goettingen}
\begin{document}
\begin{...
2
votes
Align first table’s line with context baseline
I'm not sure of what you would like to achieve, but here are a couple of examples with tabularray.
I wrote "hieroglyphic" instead of the hieroglyphic itself just to show the alignment.
\...
2
votes
Accepted
Align first table’s line with context baseline
You can use \vtop and deactivate \trivlist and \vskip inside the group of \vtop:
\documentclass{article}
\begin{document}
Les Égyptiens disent :
\vtop{\def\trivlist#1\relax{}\def\vskip{\skip0=}
\...
2
votes
Aligning a Multi-line Expression in Table
It's not very clear what you want to achieve, you should provide a complete minimal example.
Anyway, with tabularray:
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\...
2
votes
Accepted
Rotated page starts at the edge of the paper
For point 1, see here: https://tex.stackexchange.com/a/239570/101651.
For point 2, you guessed right, the amsbook class forces the caption labels to be in small caps.
With
\usepackage{xpatch}
\...
2
votes
Accepted
Aligning xilene isomeri with chemfig
You can use chemfig only. The nvisible bonds adjust the molecule position.
\documentclass{article}
\usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry}
\usepackage{...
2
votes
tikz: fit rectangle to content and rectangle nodes
For nodes positioning I would use positioning library and define anchors for nodes. For nodes I suggest to use common defined style (without definition of minimum node size) with parameter for colors:
...
2
votes
Accepted
How to center-align the numbering, vertically, in the enumerate environment?
I suggest you encase the multi-line items in parboxes of width \linewidth.
\documentclass{article}
\usepackage{calc} % allow simplified syntax for length calculations
\begin{document}
\begin{...
2
votes
Accepted
Algorithm2e: framed environment shifts line numbers
The package algorithm2e uses \llap put the line numbers in a box of width zero, with the numbers plus their space from the algorithm, sticking out to the left of this box. This code patch adds more ...
2
votes
Formatting chemistry reaction
Is it possible to do something similar with chemfig's "merge" command
\documentclass[margin={2mm 2mm}]{standalone}
\usepackage{tikz}
\usepackage{chemfig}
\begin{document}
\schemestart[-90]
%...
2
votes
Beamer overprint: center content vertically
Quick & dirty with \raisebox (maybe there are better methods I don't know).
\documentclass{beamer}
\usepackage{mwe}
\begin{document}
\begin{frame}
\hrulefill{}
\begin{columns}
\begin{...
1
vote
Accepted
Changing the Default Vertical Page Position for a group of New Chapters with Patchcmd Command
You should take a look the etoolbox document page.13.
\patchcmd[prefix]{command}{search}{replace}{success}{failure}
\patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{}{}{}
According to your ...
1
vote
Accepted
Formatting chemistry reaction
If I understood correctly ...
\documentclass[12pt]{article}
\usepackage{chemfig}
\begin{document}
\schemestart
\makebox[2em][l]{(A)}\chemfig{*6(-(-OH)=-=(-Cl)-=)} \+ 2 \chemfig{@{a}NH_3}
\schemestop
...
1
vote
tikz: fit rectangle to content and rectangle nodes
Not the best solution but at least one possibility:
\documentclass{article}
\usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry}
\usepackage{tikz}
\usetikzlibrary{...
1
vote
Center reaction with chemfig: subscript causes shifting
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{CH_4}
\+
\chemfig{\vphantom{C}-[,.6,,,dotted]M-M-M-[,.6,,,dotted]}
\arrow
\chemfig{-[,.6,,,dotted]M(-[2]CH_3)-M(-[2]...
1
vote
Fix vertical space
UPDATED
If you want question #2 to remain fixed on the page regardless of the text you type after the first question, you must reserve the space beforehand.
This example uses a minipage with a width ...
1
vote
Accepted
top align lrbox
An lrbox is always single line so doesn't have an alignment option, but inside it you want \begin{minipage}[t] to top align the minipages
1
vote
vertical alignment when using \underbrace for Matrix
You need to force a width that makes XITS Math to choose the bigger brace.
\documentclass{article}
\usepackage{mathtools}
%\usepackage[no-math]{fontspec}
\usepackage{unicode-math}
\setmathfont[...
1
vote
Latex Beamer Slides alignment
With tabularray you can set the table row height.
You can write your pieces of text as table cell text.
\documentclass{beamer}
\usepackage{tabularray}
\begin{document}
\begin{frame}
\...
1
vote
Line with left margin and vertically centered text from environment using mdframed package
Is a solution with tcolorbox acceptable?
To vertical center the patercite environment I've used
\usepackage{etoolbox}
\BeforeBeginEnvironment{patercite}{\vspace*{\fill}}
\AfterEndEnvironment{...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
vertical-alignment × 3451tables × 834
horizontal-alignment × 446
tikz-pgf × 282
spacing × 236
graphics × 197
align × 184
math-mode × 154
beamer × 153
minipage × 140
equations × 138
floats × 124
tabularx × 122
subfloats × 92
lists × 85
multirow × 84
amsmath × 76
longtable × 75
boxes × 69
positioning × 67
itemize × 65
formatting × 62
enumerate × 62
alignment × 61
multicol × 57