jhelvy / jhelvy/renderthis

LaTeX equations are rendered much smaller in PDF from xaringan slides, with partial_slides = TRUE

Open
#84 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
178
Forks
13
PR merge metrics
No merged PRs in 30d

Description

E.g. these slides:

---
title: "test"
output:
  xaringan::moon_reader:
    seal: false
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
---

class: title-slide center middle inverse

# Title

---

### Slide 1 with formula $Q = 1 - P$

Formula is smaller here as well: $$Q = 1 - P$$

This is what I use to render the slides:

chromote::local_chrome_version(binary = "chrome-headless-shell")
renderthis::to_pdf("test.Rmd", partial_slides = TRUE)

It seems fine when I don't use partial_slides = TRUE.

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

Reproduce the issue from test.Rmd by running renderthis::to_pdf with partial_slides = TRUE, then compare it with the same document without that option. Trace the PDF rendering path involving chromote and the xaringan::moon_reader output. Done means LaTeX equations have consistent sizing in both rendering modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.