Was ist der R-Abschrift entspricht LaTeX \texttt
?Was ist die R-Abschrift entspricht LaTeX texttt?
Mit diesem MWE:
---
title: "A test"
author: "Alessandro"
date: "February 19, 2016"
output: pdf_document
---
```{r, echo=FALSE}
d<-data.frame(product_name=c('d','a','b','c')) # what to write here to get a typewriter font?
```
Product names are: `r sort(d$product_name)`.
Ich erhalte diese pdf:
Während ich möchte die Ausgabe von dieser .tex
file
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\title{A test}
\author{Alessandro}
\begin{document}
\maketitle
Product names are: \texttt{a, b, c, d}.
\end{document}
erhalten