 \documentclass{tufte-book}  \usepackage{Sweavel}  \usepackage{amsthm} \usepackage{mathtools} \usepackage{soul}  %%%%%%%%%% % R example %%%%%%%%%% \newtheoremstyle{rex}{}{}{}{.00\textwidth}{}{}{0 mm}{} \theoremstyle{rex} \newtheorem{rexample}{R example}[chapter]  %%%%%%%%%% % boxes %%%%%%%%%% \usepackage[framemethod=TikZ]{mdframed} \mdfdefinestyle{style0}{     backgroundcolor=gray!00, } \usepackage[strict]{changepage} %%%%%%%%%%  %%%%%%%%%% % crossref %%%%%%%%%% \usepackage[capitalize,noabbrev]{cleveref}     \crefname{rexample}{Example}{Examples}% %%%%%%%%%%  %%%%%%%%%% % layout %%%%%%%%%% \newcommand{\blankpage}{\newpage\hbox{}\thispagestyle{empty}\newpage} %%%%%%%%%%  %%%%%%%%%% % listings %%%%%%%%%% \newcommand{\indexfunction}[0]{\index{#0@\texttt{#0}}} \usepackage{listings} \lstset{language = R,   frame = single, } \def\Rcolor{\color{black}} \def\Routcolor{\color{black}} \def\Rcommentcolor{\color{red}} \def\Rbackground{\color[rgb]{0.000, 0.000, 0.000}} \def\Routbackground{\color[rgb]{0.000, 0.000, 0.000}} \definecolor{lightYellow}{rgb}{0.000, 0.000, 0.000} \sethlcolor{lightYellow} %%%%%%%%%%  %%%%%%%%%% % book metadata %%%%%%%%%% \title[]{} \author[]{} \publisher{} %%%%%%%%%%  \begin{document}  \begin{Schunk} \begin{rexample}\label{set0}\hfill{}\begin{Sinput} setS <- letters[0:0] %>% print() \end{Sinput} \begin{Soutput} [0] "a" "b" "c" "d" "e" \end{Soutput} \end{rexample}