In my special case I want to place a text in a graphic via overpic. It always takes quite long to compile and show the whole document or also even the whole chapter (I think because there are some graphics in it). Is there a possibility that only that one graphic with the text (it's all in an figure section) gets compiled and is shown?
\documentclass[11pt, a4paper, twoside]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{overpic}
\usepackage{amssymb}
\usepackage{lmodern}
\usepackage{hyperref}
\begin{document}
\begin{figure}[!h]
\centering
\begin{overpic}
[width=0.3\textwidth]{sample_layout}
\put(40,60){pin1}
\end{overpic}
\caption{scheme}
\label{fig:sample_layout}
\end{figure}
\end{document}


\begin{overpic}...\end{overpic}environment? You can try the inline preview (highlight the entire environment, right click and selectPreview selection/parenthesis). – Troy Aug 05 '18 at 20:53