First of all, related: How to fix table position
Here it is said how to fix a position to the exact place you position it in the latex document. I was wondering if it is also possible to float it within a \section or \subsection, but keep it fixed to that (sub)section. In other words: let it float within only a certain (sub)section and not the entire document, so I am certain table X will end up somewhere in section X and table Y will end up somewhere in section Y.
EDIT The question was already answered here: Use placeins for subsections
placeinspackage and its\FloatBarrierdeclaration? – GuM Jun 09 '18 at 09:24\FloatBarriercommand to point to as a question of which this one is a duplicate, although I knew that there must be at least one! Maybe that, now that you have found it, this one can be closed as a duplicate. I’m taking care of this, as a user with enough rep to do so. – GuM Jun 09 '18 at 10:41