Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6781087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:34:59+00:00 2026-05-26T16:34:59+00:00

I must confess that today is my first day using either Sweave or LaTeX.

  • 0

I must confess that today is my first day using either Sweave or LaTeX. Yes, it’s true. I realized today that my “before 40” bucket list was not going to resolve itself in the absence of my involvement. And like so many men of my generation, learning Sweave and LaTeX is on my bucket list.

So with that long preamble, I have a very nice first Sweave document:

\documentclass{article}
\begin{document}
\title{Look Mom! I'm doing \LaTeX}
\author{JD Long}
\maketitle
\section{Where I get both funky and fresh}
<<make some randomness>>=
  set.seed(12)
  t <- rnorm(100)
@
and an example plot
\begin{center}
<<fig=TRUE,echo=FALSE>>=
  plot(density(t))
@
\end{center}
This is a very simple example of how we might get started with Sweave. You know what comes next, right? That's right... Lorem Ipsum, ladies! 

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sed sem est. Pellentesque massa magna, ullamcorper eget lacinia sit amet, dignissim ac leo. Fusce hendrerit elit vitae lacus mollis suscipit. 
\end{document}

Which produces this wonderful output:

enter image description here

So that much is great. But what I really would like to do is start bringing in wonderful LaTeX classes like the Tufte-LaTeX class which, from what I understand, basically turns my documents into brilliant, inspired works of art.

So how would I bring the Tufte-LaTeX business into my Sweave document and use it to make my documents more magical?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:34:59+00:00Added an answer on May 26, 2026 at 4:34 pm

    I kind of like this as my standard header wrapped around your document:

    \documentclass{tufte-handout}
    \usepackage{amsmath}  % extended mathematics
    \usepackage{booktabs} % book-quality tables
    \usepackage{units}    % non-stacked fractions and better unit spacing
    \usepackage{multicol} % multiple column layout facilities
    \usepackage{lipsum}   % filler text
    \usepackage{fancyvrb} % extended verbatim environments
      \fvset{fontsize=\normalsize}% default font size for fancy-verbatim environments
    \usepackage{xspace}
    

    I would note you should not put any markup in things like the title or author, as tufte-handout really doesn’t do too well with it:

    enter image description here

    The Tufte classes are easily installed via TeXLive as the “tufte-latex” package, which includes the necessary material and some examples, if I recall correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure there is something simple that I am missing, but I must confess
must create a rule that captures the first preg_replace bar url: http://localhost/item/other must take
I must confess I'm somewhat of an OOP skeptic. Bad pedagogical and laboral experiences
I must confess I'm a bit of a noob when it comes to MSBuild
Context I realized that in Twitter , the profile page is displayed in different
Must EF4 Entities be saved by the same thread that created them? I seem
Must be: all digits. 2 or 3 positions. if 3 positions, first character must
Must I assign the relationship in each direction? Using the textbook domain classes for
I must confess to being largely ignorant on most of the high-tech security issues
Must be something basic I'm missing here. I thought that font-weight:bold should not change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.