default to latex treatment of common characters?
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.2k
- Forks
- 225
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 11
Description
Hi there, please can as_gt() with as_latex and as.character be updated to default to preserving as latex formatting for characters, to save manual editing and associated error in tex editors? add_p() in gt_summary() for instance reports the < but it doesn't show as $<$ , likewise | to denote 'conditional on' or 'absolute value' is commonly used, and should be contained by default as $|$ . Thank you!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the as_gt() path used with as_latex and as.character, and compare how add_p() in gt_summary() emits characters such as < and |. Confirm how LaTeX output currently represents these examples, then update the behavior so the requested characters are preserved as LaTeX by default and verify both examples produce usable output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100