Skip to main content
replaced http://tex.stackexchange.com/ with https://tex.stackexchange.com/
Source Link

Background

I have seen Increase badness based on distance between float and referenceIncrease badness based on distance between float and reference which was closed as a duplicate of our generic How to influence the position of float environments like figure and table in LaTeX?How to influence the position of float environments like figure and table in LaTeX?, but I'm still curious about if and/or how penalties might be used to assist the float placement algorithm.

It seems to me that a penalty could be inserted at each page break for each float in the deferred float "holding queue" to provide a greater incentive for the algorithm to place a float as the distance from the insertion point grows.

With the current "greedy" algorithm, this might not have much effect, since deferred floats are placed essentially as soon as they fit in the specified float position(s), but I think it might make a difference for full-width floats in two-column documents and it could also interact with any \clubpenalty, \widowpenalty, and other penalties involving page-breaking locations.


Question

Is such an approach used in the current float placement algorithm? egreg's answeregreg's answer to What are penalties and which ones are defined?What are penalties and which ones are defined? mentions a \@floatpenalty:

\@floatpenalty used for the float mechanism (in a quite involved way)

but doesn't have any more details, and this penalty is mentioned in neither David Carlisle's accepted answeraccepted answer to the penalty question nor Frank Mittelbach's accepted answeraccepted answer to How to influence the position of float environments like figure and table in LaTeX?How to influence the position of float environments like figure and table in LaTeX?


Follow-up Question

Penalty-enhanced approach to float placement in LaTeX3Penalty-enhanced approach to float placement in LaTeX3

Background

I have seen Increase badness based on distance between float and reference which was closed as a duplicate of our generic How to influence the position of float environments like figure and table in LaTeX?, but I'm still curious about if and/or how penalties might be used to assist the float placement algorithm.

It seems to me that a penalty could be inserted at each page break for each float in the deferred float "holding queue" to provide a greater incentive for the algorithm to place a float as the distance from the insertion point grows.

With the current "greedy" algorithm, this might not have much effect, since deferred floats are placed essentially as soon as they fit in the specified float position(s), but I think it might make a difference for full-width floats in two-column documents and it could also interact with any \clubpenalty, \widowpenalty, and other penalties involving page-breaking locations.


Question

Is such an approach used in the current float placement algorithm? egreg's answer to What are penalties and which ones are defined? mentions a \@floatpenalty:

\@floatpenalty used for the float mechanism (in a quite involved way)

but doesn't have any more details, and this penalty is mentioned in neither David Carlisle's accepted answer to the penalty question nor Frank Mittelbach's accepted answer to How to influence the position of float environments like figure and table in LaTeX?


Follow-up Question

Penalty-enhanced approach to float placement in LaTeX3

Background

I have seen Increase badness based on distance between float and reference which was closed as a duplicate of our generic How to influence the position of float environments like figure and table in LaTeX?, but I'm still curious about if and/or how penalties might be used to assist the float placement algorithm.

It seems to me that a penalty could be inserted at each page break for each float in the deferred float "holding queue" to provide a greater incentive for the algorithm to place a float as the distance from the insertion point grows.

With the current "greedy" algorithm, this might not have much effect, since deferred floats are placed essentially as soon as they fit in the specified float position(s), but I think it might make a difference for full-width floats in two-column documents and it could also interact with any \clubpenalty, \widowpenalty, and other penalties involving page-breaking locations.


Question

Is such an approach used in the current float placement algorithm? egreg's answer to What are penalties and which ones are defined? mentions a \@floatpenalty:

\@floatpenalty used for the float mechanism (in a quite involved way)

but doesn't have any more details, and this penalty is mentioned in neither David Carlisle's accepted answer to the penalty question nor Frank Mittelbach's accepted answer to How to influence the position of float environments like figure and table in LaTeX?


Follow-up Question

Penalty-enhanced approach to float placement in LaTeX3

edited tags
Link
Joseph Wright
  • 271.1k
  • 35
  • 729
  • 1.1k
added follow-up link
Source Link
Paul Gessler
  • 30.2k
  • 5
  • 115
  • 218

Background

I have seen Increase badness based on distance between float and reference which was closed as a duplicate of our generic How to influence the position of float environments like figure and table in LaTeX?, but I'm still curious about if and/or how penalties might be used to assist the float placement algorithm.

It seems to me that a penalty could be inserted at each page break for each float in the deferred float "holding queue" to provide a greater incentive for the algorithm to place a float as the distance from the insertion point grows.

With the current "greedy" algorithm, this might not have much effect, since deferred floats are placed essentially as soon as they fit in the specified float position(s), but I think it might make a difference for full-width floats in two-column documents and it could also interact with any \clubpenalty, \widowpenalty, and other penalties involving page-breaking locations.


Question

Is such an approach used in the current float placement algorithm? egreg's answer to What are penalties and which ones are defined? mentions a \@floatpenalty:

\@floatpenalty used for the float mechanism (in a quite involved way)

but doesn't have any more details, and this penalty is mentioned in neither David Carlisle's accepted answer to the penalty question nor Frank Mittelbach's accepted answer to How to influence the position of float environments like figure and table in LaTeX?


Follow-up Question

Penalty-enhanced approach to float placement in LaTeX3

Background

I have seen Increase badness based on distance between float and reference which was closed as a duplicate of our generic How to influence the position of float environments like figure and table in LaTeX?, but I'm still curious about if and/or how penalties might be used to assist the float placement algorithm.

It seems to me that a penalty could be inserted at each page break for each float in the deferred float "holding queue" to provide a greater incentive for the algorithm to place a float as the distance from the insertion point grows.

With the current "greedy" algorithm, this might not have much effect, since deferred floats are placed essentially as soon as they fit in the specified float position(s), but I think it might make a difference for full-width floats in two-column documents and it could also interact with any \clubpenalty, \widowpenalty, and other penalties involving page-breaking locations.


Question

Is such an approach used in the current float placement algorithm? egreg's answer to What are penalties and which ones are defined? mentions a \@floatpenalty:

\@floatpenalty used for the float mechanism (in a quite involved way)

but doesn't have any more details, and this penalty is mentioned in neither David Carlisle's accepted answer to the penalty question nor Frank Mittelbach's accepted answer to How to influence the position of float environments like figure and table in LaTeX?

Background

I have seen Increase badness based on distance between float and reference which was closed as a duplicate of our generic How to influence the position of float environments like figure and table in LaTeX?, but I'm still curious about if and/or how penalties might be used to assist the float placement algorithm.

It seems to me that a penalty could be inserted at each page break for each float in the deferred float "holding queue" to provide a greater incentive for the algorithm to place a float as the distance from the insertion point grows.

With the current "greedy" algorithm, this might not have much effect, since deferred floats are placed essentially as soon as they fit in the specified float position(s), but I think it might make a difference for full-width floats in two-column documents and it could also interact with any \clubpenalty, \widowpenalty, and other penalties involving page-breaking locations.


Question

Is such an approach used in the current float placement algorithm? egreg's answer to What are penalties and which ones are defined? mentions a \@floatpenalty:

\@floatpenalty used for the float mechanism (in a quite involved way)

but doesn't have any more details, and this penalty is mentioned in neither David Carlisle's accepted answer to the penalty question nor Frank Mittelbach's accepted answer to How to influence the position of float environments like figure and table in LaTeX?


Follow-up Question

Penalty-enhanced approach to float placement in LaTeX3

remove LaTeX3 portion
Source Link
Paul Gessler
  • 30.2k
  • 5
  • 115
  • 218
Loading
Source Link
Paul Gessler
  • 30.2k
  • 5
  • 115
  • 218
Loading