Advertisement
Guest User

Org-mode LaTeX/html test file

a guest
Mar 17th, 2013
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. #+include: "~/org/aux/setupfile.org"
  2.  
  3. * Heading 1
  4.  
  5. Here's a simple sentence that's long enough to at least run on to a few lines. That is if
  6. we copy it a few times. Here's a simple sentence that's long enough to at least run on to a few lines. That is if
  7. we copy it a few times. Here's a simple sentence that's long enough to at least run on to a few lines. That is if
  8. we copy it a few times. Here's a simple sentence that's long enough to at least run on to a few lines. That is if
  9. we copy it a few times.
  10.  
  11. * Heading 2
  12.  
  13. Let's try the table function:
  14.  
  15. #+attr_latex: :align lp{4cm}
  16. | *Column 1* | *Column 2* |
  17. |------------+---------------------------------------------------------------------------------|
  18. | Stuff | More stuff |
  19. | Column | A long sentence to see if my latex column width option is going to work, or not |
  20.  
  21. * Heading 3
  22.  
  23. Here's two images
  24.  
  25. #+attr_html: :options width="200px"
  26. #+attr_latex: :width 5cm
  27. [[~/Desktop/tux.jpg]]
  28.  
  29.  
  30. #+begin_center
  31. #+attr_html: :options width="50%"
  32. #+attr_latex: :width 0.5\textwidth
  33. [[~/Desktop/tux.jpg]]
  34. #+end_center
  35.  
  36. * Heading 4
  37.  
  38. Some babel stuff
  39.  
  40. #+name: r-test-block
  41. #+header: :file ./plot.png :width 800 :height 600
  42. #+begin_src R :session r-session :results output graphics :exports results
  43.  
  44. x <- 1:10
  45. y <- x**2
  46.  
  47. plot(x,y)
  48.  
  49. #+end_src
  50.  
  51. #+begin_center
  52. #+attr_html: :options width="400px"
  53. #+attr_latex: :width 10cm
  54. #+RESULTS: r-test-block
  55. [[file:./plot.png]]
  56. #+end_center
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement