vincentarelbundock / vincentarelbundock/tinytable

Setting caption to be wider than table

Open
#653 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

latex
Dominant language
R
Stars
344
Forks
30
Avg merge
23h 45m
Merged PRs (30d)
1

Description

When outputting some narrow tables to pdf, I would like the caption to be wider than the table, rather than ending up in multiple lines. I might have missed something but could not get it to be so.

Tried setting the parbox width in label_string but I think it is not working as hoped as caption is set inside the tabular array.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the PDF output for a narrow table and inspect how label_string sets the caption inside the tabular array. Trace the caption-width handling and verify that the caption can exceed the table width without wrapping unnecessarily; done means the resulting PDF shows the wider caption as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.