Guest User

Untitled

a guest
Jan 11th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1.  
  2. # Pandoc
  3. a universal document converter
  4.  
  5. From LaTeX to Word docx:
  6. ```
  7. pandoc -s input.tex -o output.docx
  8. ```
  9.  
  10. More detail: http://johnmacfarlane.net/pandoc/
  11.  
  12.  
  13. # R markdown
  14.  
  15. $$ P(X < x) = \frac{1}{\sqrt{2 \pi \sigma^2}} \exp{-\frac{(x-\mu)^2}{2 \sigma^2}} $$
  16.  
  17.  
  18. ```r
  19. summary(cars)
  20. ```
  21.  
  22. ```
  23. ## speed dist
  24. ## Min. : 4.0 Min. : 2
  25. ## 1st Qu.:12.0 1st Qu.: 26
  26. ## Median :15.0 Median : 36
  27. ## Mean :15.4 Mean : 43
  28. ## 3rd Qu.:19.0 3rd Qu.: 56
  29. ## Max. :25.0 Max. :120
  30. ```
  31.  
  32.  
  33. # R markdown (continue)
  34. You can also embed plots, for example:
  35.  
  36.  
  37. ```r
  38. plot(cars)
  39. ```
  40.  
  41. ![plot of chunk unnamed-chunk-2](figure/unnamed-chunk-2.png)
  42.  
  43.  
  44. From markdown to slides:
  45. ```
  46. pandoc -s -S -i -t dzslides --mathjax input.md -o output-slides.html
  47. ```
  48.  
  49. More detail: http://www.rstudio.com/ide/docs/r_markdown
Advertisement
Add Comment
Please, Sign In to add comment