rstudio / rstudio/gt

default to latex treatment of common characters?

Open
#809 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Focus: LaTeX Output
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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.