hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
321 stars 28 forks source link

Hardcoded captionsetup in LATEX breaks journal template #8

Closed ghost closed 7 years ago

ghost commented 7 years ago

Please remove or make choiсe of using \captionsetup in LaTeX.R. The journal rules demand left-jusified captions and centered tables. Your package is the best for rmarkdown -> LaTeX complex tables, but now I have to manually remove \captionsetup lines from .tex file generated.

hughjonesd commented 7 years ago

Can I ask which journal this is?

On Thu, 4 May 2017 at 17:34, UlvHare notifications@github.com wrote:

Please remove or make choiсe of using \captionsetup in LaTeX.R. The journal rules demand left-jusified captions and centered tables. Your package is the best for rmarkdown -> LaTeX complex tables, but now I have to manually remove \captionsetup lines from .tex file generated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hughjonesd/huxtable/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AFjJ9yVxxO7NoXTDj2eSMBOBdniHRC2Uks5r2f4ngaJpZM4NQ7A3 .

-- Sent from Gmail Mobile

ghost commented 7 years ago

No problem - http://pleiades.online/en/journal/biobull/ Really the site content is outdated, editors are old mammoths and demand printed manuscript with bilingual bibliography (so only biblatex) formatted strictly as they say. In any case it's more convenient to put \captionsetup at the preamble, IMO. But if your question is a delicate hint at the rareness of this problem, remember that I'm not an editor and don't demanding anything :-), just attract your attention. And again, many thanks for your package! Before it emerging it was easier to make tables in LaTeX manually then understand Hmisc :-))))

hughjonesd commented 7 years ago

I was indeed trying to gauge the rareness of the problem. I might add a caption_position property - would that fix your problem?

On Fri, 5 May 2017 at 08:56, UlvHare notifications@github.com wrote:

No problem - http://pleiades.online/en/journal/biobull/ Really the site content is outdated, editors are old mammoths and demand printed manuscript with bilingual bibliography (so only biblatex) formatted strictly as they say. In any case it's more convenient to put \captionsetup at the preamble, IMO. But if your question is a delicate hint at the rareness of this problem, remember that I'm not an editor and don't demanding anything :-), just attract your attention. And again, many thanks for your package! Before it emerging it was easier to make tables in LaTeX manually then understand Hmisc :-))))

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/hughjonesd/huxtable/issues/8#issuecomment-299404610, or mute the thread https://github.com/notifications/unsubscribe-auth/AFjJ9_Y6f52qY1tEInpcaGii1xnc4PIUks5r2tYxgaJpZM4NQ7A3 .

-- Sent from Gmail Mobile

ghost commented 7 years ago

Thanks for immediate answer! As I remember there is caption_position option in v2.2, it puts a caption top or bottom. In caption package manual (http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf) there is special option justification (justified by default). But I think adding this option is odd work. OK, maybe it's really uncommon problem to bother you. Now I must write my article ASAP, maybe then I'll try to fork your package and play myself.

hughjonesd commented 7 years ago

I forgot about that. Sounds like a simple answer is to allow caption position to be 'topleft' etc. as well as just 'top' or 'bottom'.

hughjonesd commented 7 years ago

Try github version, see if it works for you.