I have hacked together a small command that I can use to include graphics, scale them as I want and create a label for it and reference to it.
I use it like this:
As can be seen from
\screencap{voltage-regulation}{Voltage Regulation Circuitry}.
the input is proteced against reverse polarity by the diode D1
and from thence the internal nominally 24 VDC voltage is derived with
the pre-regulator U8/LM317.
The command is
\newcommand{\screencap}[2] {
\begin{figure}[htb]
\includegraphics[scale=1.0]{#1.png}
\caption{#2}
\label{fig:#1}
\end{figure}
figure~\ref{fig:#1}
}
And it renders like this:
This is almost good enough but I don't want the image to appear in the middle of the paragraph. But after it, or basically anywhere after the place I refer to it but not inside the paragraph.
\ref
where you refer to it. That is the standard latex markup, and does what you want here. – David Carlisle Jan 11 at 20:06%
at ends of line in your definition (which is why your image shows a spurious space before the . after 4.1 – David Carlisle Jan 11 at 20:08h
specifier from the figure placement options? Does\begin{figure}[tb]
produce better results? – gernot Jan 11 at 22:29