Closed slochower closed 6 years ago
That's a good idea. It should be consistent with the figures.
Yeah figure formatting is NOT GOOD. I made some changes for the Project Rephetio Manuscript in https://github.com/dhimmel/rephetio-manuscript/commit/c78f9ad09d063982a1668a285b2fdf7b14c9df05. This includes the caption fix:
/**
* Make caption text left-aligned (previousely it was centered).
*/
caption {
text-align: left;
}
I'll open a PR here.
Nice, happy to take a look at the PR. This has motivated me to find my tweak for centering non-full-width images mentioned in https://github.com/greenelab/manubot-rootstock/issues/55#issuecomment-398908740.
We can also set the caption-side
property to top
or bottom
to specify where the caption should go. top
is default and current behavior. PeerJ uses top for tables. However, bottom
would match the figure behavior. Preferences?
I prefer top.
I prefer bottom, but I think most journals have it at top.
Consider changing https://github.com/greenelab/manubot-rootstock/blob/9aec6f5c2eeca9002a5ce4dc06808fc2fbec24f3/webpage/github-pandoc.css#L282-L284 to
img {
display:block;
margin-left:auto;
margin-right:auto;
max-width:100%
}
to center non-full-width images.
I prefer bottom, but I think most journals have it at top.
Here's some LaTeX discussion on why top is standard, although I think I'm starting to prefer bottom for consistency with figure captions and the order in the markdown-pandoc source.
I've grown accustomed to table captions on top, but I'm perfectly fine being overruled if others prefer bottom.
I suggest changing the CSS to left justify table captions, since the main text is left justified and the figure captions are as well. For example, only the table caption in this document is center justified: https://greenelab.github.io/meta-review/v/b8eeea542ce238bbcaf2023add2aecb86ef726bd/
It's not immediately obvious where to change the CSS to accomplish this, but I didn't look thoroughly.