New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misplaced figures in auto-generated proofs #472

Open
dmey opened this Issue Dec 5, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@dmey

dmey commented Dec 5, 2018

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.

@danielskatz

This comment has been minimized.

Collaborator

danielskatz commented Dec 6, 2018

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.)

@dmey

This comment has been minimized.

dmey commented Dec 6, 2018

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?

@arfon

This comment has been minimized.

Member

arfon commented Dec 6, 2018

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% }
@dmey

This comment has been minimized.

dmey commented Dec 6, 2018

Doing a quick search I got to jgm/pandoc#845 (comment) where it may be enough to override the fig placement but not sure if this is something you are looking to change in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment