Skip to content

Commit fd509c6

Browse files
committed
escape underscores for LaTeX
1 parent b93dee8 commit fd509c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vignettes/Rcpp-FAQ.Rnw

+5-5
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,8 @@ This is what is currently supported:
11961196
\item Pre-defined constants including:
11971197
\begin{itemize}
11981198
\item Booleans: \code{true} and \code{false}
1199-
\item Null Values: \code{R_NilValue}, \code{NA_STRING},
1200-
\code{NA_INTEGER}, \code{NA_REAL}, and \code{NA_LOGICAL}.
1199+
\item Null Values: \code{R\_NilValue}, \code{NA\_STRING},
1200+
\code{NA\_INTEGER}, \code{NA\_REAL}, and \code{NA\_LOGICAL}.
12011201
\end{itemize}
12021202
\item Selected vector types can be instantiated using the empty form of the
12031203
\code{::create} static member function.
@@ -1222,9 +1222,9 @@ how to:
12221222
void sample_defaults(NumericVector x = NumericVector::create(), // Size 0 vector
12231223
bool bias = true, // Set to true
12241224
std::string method = "rcpp rules!"){ // Default string
1225-
Rcpp::Rcout << "x size: " << x.size() << ", ";
1226-
Rcpp::Rcout << "bias value: " << bias << ", ";
1227-
Rcpp::Rcout << "method value: " << method << std::endl;
1225+
Rcpp::Rcout << "x size: " << x.size() << ", ";
1226+
Rcpp::Rcout << "bias value: " << bias << ", ";
1227+
Rcpp::Rcout << "method value: " << method << std::endl;
12281228
}
12291229
12301230
/*** R

0 commit comments

Comments
 (0)