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

Add tint as a sans-serif tufte layout option #21

Closed
benmarwick opened this issue Sep 28, 2016 · 9 comments
Closed

Add tint as a sans-serif tufte layout option #21

benmarwick opened this issue Sep 28, 2016 · 9 comments

Comments

@benmarwick
Copy link

There is a very nice sans-serif adaptation of this tufte template in the tint package by @eddelbuettel. I wonder if that template could be added to this package?

It would be great to have an easy sans-serif tufte template for bookdown, too. Perhaps tint would be suitable for that? The current tufte html output for bookdown is the least pleasant of all the bookdown output options (on my screen at least), with the yellow background and big black navigation buttons at the top).

@eddelbuettel
Copy link

Thanks, Ben. I had already emailed several times with JJ and Yihui, and only released/announced tint when Yihui indicated he was temporarily busy -- we are all on the same page. I am still quite hopeful tint will end up here, at least for html, provided we find some time to do it.

@yihui yihui closed this as completed in c5ffbd0 Oct 4, 2016
yihui added a commit that referenced this issue Oct 4, 2016
… and also make it possible to select a subset of the default Tufte style features, e.g. you can disable the et-book fonts
@yihui
Copy link
Member

yihui commented Oct 4, 2016

I have made the default fonts, the background color, and italic headers optional. You can choose which features to enable in the default Tufte style. I didn't really study what Dirk did in tint carefully (it would be much easier to know the exact changes if this started as a pull request or a new git branch; all I did was in ed6ed37), so I don't know if I have provided all features you want via tufte_html(tufte_variant = 'envisioned'). See the last section here: http://rstudio.github.io/tufte/envisioned/

@benmarwick RE: bookdown our primary support is obviously on the Gitbook style. A Tufte example is here: https://bookdown.org/yihui/bookdown-demo3/ There is certainly more work to do, but I have ran out of time. Anyway, you do have all the freedom to customize the style by using CSS, so if you really love the Tufte style, please help us improve it in bookdown (in other words, pull requests welcome). The key thing I haven't quite got right is the navigation menu. I really don't know what a good design could be in this case. The bottom buttons are easy enough to style.

@eddelbuettel
Copy link

Did you support pdf as well? I have that mostly ready to commit on my laptop.

@benmarwick
Copy link
Author

Thanks very much for adding this!

@yihui
Copy link
Member

yihui commented Oct 5, 2016

@eddelbuettel What do you mean by "support pdf"? The PDF support was there from day one as the output formats tufte::tufte_handout and tufte::tufte_book.

@eddelbuettel
Copy link

@yihui pdf output using RobotoCondensed, no italics, ... similar to what tufte envisioned and tint do in html. I have something for that now. I only looked at supporting tufte-handout, not tufte-book.

@yihui
Copy link
Member

yihui commented Oct 5, 2016

Just like for HTML output, you always have the css option for customizing the styles. For LaTeX output, you have the includes option, e.g. you can define the fonts in preamble.tex

% if you use xelatex
\setmainfont{Roboto Condensed}

and set the output format option

---
output:
  tufte::tufte_handout:
    includes:
      in_header: preamble.tex
---

R Markdown is very customizable and extensible. If there is anything hardcoded in rmarkdown/tufte that prevents you from customizing the output, we can certainly consider removing these constraints, but so far I have not seen such things in your cases.

@eddelbuettel
Copy link

Point takem and I am aware of that as I have been doing for a few years for (heavily customized) beamer presentations from markdown, following some initial help from JJ.

I have some GH repos with style and fonts support, mostly delivered as .deb packages suiting my deployments. There was one blog post, written mostly in a rushed break at useR, when someone prompted me to allow some peeks behind the curtain.

Here, I am going a different route as I wanted to explore templates for rmarkdown. Which tint now does in the way I wanted it to work, so we may as well end here.

@github-actions
Copy link

github-actions bot commented Nov 4, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants