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

Full-width text blocks #33

Closed
mlovelace opened this issue Mar 6, 2017 · 7 comments
Closed

Full-width text blocks #33

mlovelace opened this issue Mar 6, 2017 · 7 comments

Comments

@mlovelace
Copy link

mlovelace commented Mar 6, 2017

I love using the tufte_handout theme in RMarkdown. At times, I want to use the full width of the page for the main text. Is there a full-width text block feature similar to the full-width figure feature? If not, are there YAML or knitr options I could change to make the main text full width?

@yihui
Copy link
Member

yihui commented Mar 6, 2017

No, this is currently not supported.

@josiekre
Copy link

If you are not opposed to sprinkling in a little latex, you can simply do the following:

\begin{fullwidth}
This is text that will span full width.
\end{fullwidth}

@kuochang
Copy link

It works!

@mlovelace
Copy link
Author

Yep! A great solution. Thanks @josiekre! Unless I'm missing something, though, I think it only applies to pdf output. I haven't found a solution for html output that is just as quick as this one.

@yihui yihui closed this as completed in cb47f35 May 7, 2020
@yihui
Copy link
Member

yihui commented May 7, 2020

It is supported now, and works for both PDF and HTML output. Please see the documentation: https://rstudio.github.io/tufte/#arbitrary-full-width-content Thanks!

@mlovelace
Copy link
Author

Thank you so much for adding this feature, @yihui! This is great news. So happy to hear that I can now easily add a full-width block for text to html docs. Thanks, again!

@github-actions
Copy link

github-actions bot commented Dec 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 Dec 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

4 participants