2016-02-19 6 views
5

लाटेक्स \texttt के समतुल्य आर मार्कडाउन क्या है?लाटेक्स टेक्स्टेट के बराबर आर मार्कडाउन क्या है?

इस मेगावाट के साथ

:

--- 
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)`. 

मैं इस पीडीएफ मिलती है:

enter image description here

मैं इस .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} 

enter image description here

से उत्पादन प्राप्त करना चाहते हैं जबकि

उत्तर

4

ऐसा करने का कोई मूल चिह्न नहीं है। लेकिन जब उत्पादन प्रारूप pdf_document है, \texttt की rmarkdown बराबर \texttt ही है:

Product names are: \texttt{`r sort(d$product_name)`}. 

Rmarkdown हुड के नीचे लेटेक्स का उपयोग करता है, पीडीएफ के लिए संकलन इसलिए अधिकांश कच्चे लेटेक्स आदेश अपेक्षा के अनुरूप काम करना चाहिए।

Product names are: <tt>`r sort(d$product_name)`</tt>. 
:

ही एचटीएमएल उत्पादन के लिए सच है

संबंधित मुद्दे