Le informazioni provenienti dai sensori mostrano chi si sta allenando e chi no. L'applicazione darà una rappresentazione visiva di ciò mostrando una cornice verde intorno agli avatar degli utenti attivi e rossa intorno a quelli degli utenti inattivi.
I get a PDF file where all the images are placed at the end of the document, one per page.
I need that order of images and text be respected, cause text refers next images.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
That is a faq. You tell LaTeX to let the figures float in your document to find a good place to put them. If you really don't want your picture to float, just delete the figure environment. Captions won't work, tough (see capt-ot or caption), but you will not need them anyway.
Captions describe the picture (or table) in a few words/sentences and tag it with a number. In your text you can refer to that number (see figure~\ref{fig:myFig}). One needs those numbers, because in a well typeset book, figures and tables are placed where they best fit (floating). If you prevent your objects from floating, placing the figures under the describing text, there is no need to refer to a number, and there is no need to describe them anymore, since »see the figure below« is sufficient.
Drawback: Remember the hack monster? Your text will look ugly with lot's of whitespace.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
I'd avoid \centerline. This is a Plain TeX command that LaTeX only keeps for compatibility. If you use LaTeX's {center} environment you'll get also some vertical space above and below (what I guess you meant by margins?)
Aegidius wrote:but I need to add captions to images. I'm not able to use this external package. Would you please help me?
Instead of capt-of you can use caption and its \captionof command:
Thank you very very much cgnieder! You are an angel!
Now my PDF is much better then the previous one, but I have a little problem. Sometimes, where the figure is close to the bottom of the page, the caption is placed on the next page. Do you know how to avoid it?
Aegidius wrote:Thank you very very much cgnieder! You are an angel!
I simply provided an example. Johannes already mentioned the caption package earlier
Aegidius wrote:Now my PDF is much better then the previous one, but I have a little problem. Sometimes, where the figure is close to the bottom of the page, the caption is placed on the next page. Do you know how to avoid it?
You could put everything inside the {center} environment in a {minipage} or a similar box. This somehow defeats the purpose of the {center} environment as the contents of the {minipage} need to be centered again, but...
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p