Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Hot answers tagged

6

Use some phantom space, such as \mathstrut: \documentclass{article} \usepackage{amsmath} \newcommand{\diff}{\mathop{}\!d} \begin{document} \[ \int_Y \biggl( \int_X f(x,y)\diff y\biggr)\diff x \overset{\substack{\text{Fubini's} \\ \text{theorem}\mathstrut}}{=} \int_X \biggl( \int_Y f(x,y)\diff x\biggr)\diff y \] \end{document}


4

Like this? For above result you only need to remove all math stuff from your algorithm: \documentclass{standalone} \usepackage{amsmath, amssymb} \usepackage[noline,boxed]{algorithm2e} \usepackage[skins]{tcolorbox} % real R \newcommand{\R}{\mathbb{R}} \begin{document} \begin{tcolorbox}[blanker,width=(\linewidth-3.5cm)] \begin{algorithm}[H] ...


2

You can have something like this with package eqparbox (two variants): \documentclass{article} \usepackage{eqparbox} \begin{document} \begin{itemize} \item \emph{c} \eqmakebox[NR]{before \emph{e} or \emph{i} is pronounced as in} \emph{church} \item \emph{g} \eqmakebox[NR]{ — } \emph{gin} \item \emph{g} \eqmakebox[NR][s]{ — — — } \emph{gin} \end{itemize} ...


2

You can measure the width of the text and use it for a box of the same width that only contains, say, quotes. \documentclass{article} \begin{document} \setbox0\hbox{before \emph{e} or \emph{i} is pronounced} \begin{itemize} \item \emph{c} before \emph{e} or \emph{i} is pronounced as in \emph{church} \item \emph{g} \makebox[\the\wd0][c]{"} as in \...


2

Add a negative space (\!), as in \text{null}\_\text{array}\!\left[n\right].


1

paracol allows you to produce such synchronized lists, see here. \documentclass{article} \usepackage{paracol} \begin{document} \begin{enumerate} \begin{paracol}{2} \switchcolumn[1]* \item Et ullamco veniam adipisicing dolore quis cillum cillum laboris nisi id adipisicing proident laboris consequat ut aliqua in dolor ut culpa aliquip est aliqua ut ...


1

You can patch \chapterformat and \chapterlineswithprefixformat: \documentclass{scrreprt} \usepackage{blindtext} %\KOMAoption{parskip}{false}% default \newif\ifspecialchapter \newcommand\specialchapter{% \specialchaptertrue% \KOMAoption{chapterprefix}{true}% } \newcommand\defaultchapter{% \specialchapterfalse% \KOMAoption{chapterprefix}{false}% } \...


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