There are too many posts that complains LaTeX is not doing a good enough job in placing floats such as figures, and ways to work around them ([!htbp]
, \usepackage{float}
, etc.). Upon curiosity I cannot help thinking it the other way around. If I am satisfied with the mechanism that LaTeX position the floats and I know exactly which figures I want to appear "here" (the first time they are referenced), which I am happy to place on the top of the pages, and which I am happy even if they appear on a separate page, and that I am feeling lazy (in the sense that I want LaTeX to make the decisions for me),
Is there a way to put the source code for all the floats (you may restrict the discussion to figures if you like) in a tex file that is to be \input
or \include
ed, with all the necessary position specifiers given, and let LaTeX automatically insert them where appropriate by referencing them?
Side question: I don't understand why people should use floats at all if they are using the [H]
specifier of the float
package.
Edit: I prefer pure LaTeX solutions but I don't mind learning something new if solutions in LuaLaTeX or alike are given.
Edit 2: The current implementation I have in mind is closely related to Move command to the beginning or end of the paragraph.
\def\@captype{figure}
). Either that or they don't quite understand what the figure and table environments are for.