\documentclass{article}
\usepackage{xcolor}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}

\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{shapes, calc, shapes, arrows, snakes, arrows.meta}
\begin{document}
\begin{preview}
\input{baseline}
\end{preview}
\end{document}
