# Tag Info

## Hot answers tagged spacing

5

If you want to try with tcolorbox, it seems that before skip and after skip work as expected. \documentclass{article} \usepackage{tcolorbox} \begin{document} Text above \begin{tcolorbox}[before skip=2cm, after skip=2cm] Text in box \end{tcolorbox} Text below \end{document} Update: more minimalistic If more minimalistic means a box like the ...

4

How about something like this? This uses minipages as the tabular doesn't really seem appropriate here. The environment altassumption becomes a command \altassumption{}{} which takes 2 arguments. \documentclass[12pt]{article} \pagestyle{plain} \usepackage[margin=1.8cm]{geometry} \geometry{a4paper} \usepackage[parfill]{parskip} \usepackage{setspace,array} ...

4

Use aligned. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{cases} \begin{aligned} \dot{x} &= f(x) \\ x(0) &= x_0 \end{aligned} \end{cases} \end{equation*} \end{document} Now compare with \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{cases} \dot{x} = f(x) \\ ...

4

Use the empheq package (needless to load amsmath in this case): \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{empheq} \begin{document} \begin{empheq}[left=\empheqlbrace]{align*} \dot x & = f(x)\\% x(0) & = x_0 \end{empheq} \end{document}

3

Here's a solution that doesn't require loading any packages. \documentclass{article} \begin{document} $\left\{ \begin{array}{r @{{}={}} l} \dot{x} & f(x) \\ x(0) & x_0 \end{array} \right.$ \end{document}

3

Here, I take parskip.sty, rename it as myparskip.sty and make the following changes: 1) change to \ProvidesPackage{myparskip} 2) change \parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt to \ifdim\parskip>0pt\relax \advance\parskip by 0pt plus 2pt \else \parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt \fi This has the effect ...

2

Warning: long answer ahead! The setspace package has a long history that dates back (perhaps with a different name, I don’t remember) to the late Eighties of the past century, to the ancient days of LaTeX 2.09 and TeX2; the comments at the beginning of setspace.sty witness to this, as well as to a long and not always linear incremental development, during ...

1

The parskip package sets \topsep to zero, so you get what you were asking for. ;-) The output in your picture was generated with \theoremstyle{pcap}, not with \theoremstyle{plain}. Perhaps you want something like this: \documentclass[10pt,a4paper]{amsbook} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsthm} \usepackage{parskip} ...

1

Just do \usepackage{parskip} \setlength{\parskip}{0.75\baselineskip plus 2pt} which will override the default value 0.5\baselineskip plus 2pt. If you want a packaged version, save the following as oparskip.sty \ProvidesPackage{oparskip}[2016/05/02] \DeclareOption{parfill}{\PassOptionsToPackage{parfill}{parskip}} ...

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