Skip to content

Commit a450fc4

Browse files
boxes were spanning the entire textwidth
1 parent 0e97e34 commit a450fc4

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

vignettes/Rcpp-quickref.Rnw

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,16 @@ prettyDate <- format(Sys.Date(), "%B %e, %Y")
3030
\title{\pkg{Rcpp} Quick Reference Guide}
3131
\date{\pkg{Rcpp} version \Sexpr{prettyVersion} as of \Sexpr{prettyDate}}
3232

33-
% \newsavebox{\highlightbox}
34-
% \renewenvironment{Hchunk}%
35-
% {%
36-
% \vspace{0.5em}\noindent\begin{lrbox}{\highlightbox}%
37-
% \begin{minipage}[b]{.42\textwidth}%
38-
% }%
39-
% {%
40-
% \end{minipage}%
41-
% \end{lrbox}%
42-
% \fcolorbox{highlightBorder}{highlightBg}{\usebox{\highlightbox}}%
43-
% \vspace{0.5em}}%
33+
\renewenvironment{Hchunk}%
34+
{%
35+
\vspace{0.5em}\noindent\begin{lrbox}{\highlightbox}%
36+
\begin{minipage}[b]{.42\textwidth}%
37+
}%
38+
{%
39+
\end{minipage}%
40+
\end{lrbox}%
41+
\fcolorbox{highlightBorder}{highlightBg}{\usebox{\highlightbox}}%
42+
\vspace{0.5em}}%
4443

4544
\begin{document}
4645
\maketitle

0 commit comments

Comments
 (0)