joss icon indicating copy to clipboard operation
joss copied to clipboard

Misplaced figures in auto-generated proofs

Open dmey opened this issue 5 years ago • 4 comments

I am having an issue in openjournals/joss-reviews#1113 with the auto-generated proof -- see this -- the figure ends up in the reference list instead of the summary section.

dmey avatar Dec 05 '18 21:12 dmey

I don't think there's any option. Based on where you have the figure reference in the text (near the end of the first page), the figure cannot go on the same page after it, so it's forced to the next page (which happens to be in the references.)

danielskatz avatar Dec 06 '18 11:12 danielskatz

I am not sure what you mean -- the figure is added just after the 'Summary' heading

# Summary

![Relationships of common functions as implemented in PsychroLib. Bold arrows show the relationship between function involving a direct call while light arrow show the relationship between two or more. For a complete list of functions available in PsychroLib, see the README file in the project’s repository.](psychrolib-relationships.pdf){ width=20% }

see: https://github.com/psychrometrics/psychrolib/blob/7d58638002f2bf6046d745a131ceeecc895a84d4/paper/paper.md

Is there a way to force verbose output?

dmey avatar Dec 06 '18 11:12 dmey

Figure placement in pandoc is a black art as far as I can tell.

I've just tried the following @dmey and it produced this pdf:

# Summary

![Relationships of common functions as implemented in PsychroLib. Bold arrows show the 
relationship between function involving a direct call while light arrow show the 
relationship between two or more. For a complete list of functions available in PsychroLib, 
see the README file in the project’s repository.](psychrolib-relationships.pdf){ width=90% }

arfon avatar Dec 06 '18 11:12 arfon

Doing a quick search I got to https://github.com/jgm/pandoc/issues/845#issuecomment-369944255 where it may be enough to override the fig placement but not sure if this is something you are looking to change in general.

dmey avatar Dec 06 '18 12:12 dmey