Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer (or document) some "no theme" themes for RTF output #418

Open
jennybc opened this issue Jun 16, 2022 · 1 comment
Open

Offer (or document) some "no theme" themes for RTF output #418

jennybc opened this issue Jun 16, 2022 · 1 comment
Labels
feature a feature request or enhancement venue 🏛

Comments

@jennybc
Copy link
Member

jennybc commented Jun 16, 2022

Inspired by a recent chat with @DavisVaughan re: exerting a bit of control over highlighting for pasting into a talk

We already document how to use pre-existing themes:
https://reprex.tidyverse.org/articles/rtf.html#highlight-options

But sometimes that is not enough or too much.

In the "not enough" department, I have written up how to create and use a custom theme (also linked from the article):
https://github.com/jennybc/debugging/blob/master/how-to/highlight-custom-theme.md

But it might be nice to create a theme or at least document how to create and use some "no theme" themes, i.e. for when you're happy to apply colour in Keynote or whatever the destination software is.

You could imagine wanting a theme that's just "all black" or "all white" or "black (or white) code, grey output".

I think reprex could ship with themes and then that path could presumably be provided to the highlight. Requires a bit of experimentation.

@jennybc jennybc changed the title Offer (or document) some "no theme" themes Offer (or document) some "no theme" themes for RTF output Jun 16, 2022
@jennybc jennybc added feature a feature request or enhancement venue 🏛 labels Aug 14, 2022
@jtr13
Copy link

jtr13 commented May 15, 2023

Fyi, this might be helpful for a "no theme" theme:

"If the language definition is specified as txt, no highlighting takes place."

highlight -S txt --out-format=latex README > README.tex

https://gitlab.com/saalen/highlight/#user-content-text-processing

It works for me in Terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement venue 🏛
Projects
None yet
Development

No branches or pull requests

2 participants