Closed friendly closed 9 years ago
krantz.cls class should have considered other specifications in order to give more flexibility to place a float. I usually use {\textfraction}{0.15}, {\topfraction}{0.85}, {\bottomfraction}{0.5}, {\floatpagefraction}{0.7} to this end.
There are two solutions: either modify the class or manually modify the position of the figures that they ask to modify. The practical solution is the second one.
In order to manually put a float in an exactly place one can call the 'float' package in the preamble so one can declare fig.pos='H' (or \begin{figure}[H]) for the asked figures. It could also be declared in the Rpofile.R file but It may be better to define the exact position of the figures that are asked to move.
If there is no way to satisfy the editors preferences by automated processes I could help you with the micro-manage page layout.
That would be great. One problem is that, once you start to adjust figure/table positions, all that follows can move around, so you have to do it iteratively, one or two at a time to see what happens to the rest of the text.
I'm working on the copy edit of Ch 4 now, and once I produce new copies of Ch 1-3.pdf, you can start to work on those. I'll have to get you a copy of the copy edited PDF, because it is too large (~280 Mb) to fit in my Dropbox account.
On second thought, let's wait to micro-manage page layout until we have tried other global options first, like (a) latex float parameters, (b) global option fig.pos
for knitr chunks.
Looking at the pages of the copy edit, in most (or almost all) cases they are asking for figures/table to be placed at the top or bottom of a page, rather than here
After having done several tests, it seems that the position setting, for tables and figures, that best fits to the editor's requirements is [tb]. It may be better to change this settings in the Rprofile.R file, figures and tables.
Should I do so?
Just went through the nearly final version of the book, and fixed a few instances where fig.pos="H" or
\pagebreak` led to bad page formatting.
In many places we are asked by the copy editors to move a figure/table to a different position on the page or to a different page. I'm not sure whether or how to improve this, and I don't know what style rule has been used. I surely want to avoid having to micro-manage page layout in the book.
In the
Rprofile.R
file, I set the default chunk optionfig.pos='!htbp'
, giving strong preference to placing the figure where it is created. Some R chunk figures override this, typically omitting thep
when this causes a figure-only page. For non-R figures, I typically use either[htb]
or[!htb]
.This behavior is also affected by the LaTeX float placement parameters. The only place I can see where this is set is in
krantz.cls
,