TransWikia.com

How to place graphics/image/figure after a paragraph

TeX - LaTeX Asked by amateur99 on August 12, 2021

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:

enter image description here

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.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP