Update example with our own class name

pull/2/head
Fabrice Niessen 2015-04-24 16:19:16 +02:00
parent d76dd4b558
commit c382847d30
2 changed files with 15 additions and 8 deletions

View File

@ -2172,10 +2172,9 @@ See equation <span class="org-org-link"><a href="pythag">pythag</a></span>.
<div class="outline-text-4" id="text-orgheadline124"> <div class="outline-text-4" id="text-orgheadline124">
<p>You can create named classes (to get style control from your CSS) with:</p> <p>You can create named classes (to get style control from your CSS) with:</p>
<pre class="example"> <pre class="example">
#+begin_note #+begin_myclass
*Note example* \\ This text is wrapped in a myclass DIV...
Did you know... #+end_myclass
#+end_note
</pre> </pre>
<p>You can also add interactive elements to the HTML such as interactive R plots.</p> <p>You can also add interactive elements to the HTML such as interactive R plots.</p>
<p>Finally, you can include an HTML file verbatim (during export) with:</p> <p>Finally, you can include an HTML file verbatim (during export) with:</p>

View File

@ -1278,10 +1278,9 @@ Similarly, you can incorporate JS or do anything else you can do in a Web page
You can create named classes (to get style control from your CSS) with: You can create named classes (to get style control from your CSS) with:
#+begin_example #+begin_example
,#+begin_note ,#+begin_myclass
,*Note example* \\ This text is wrapped in a myclass DIV...
Did you know... ,#+end_myclass
,#+end_note
#+end_example #+end_example
You can also add interactive elements to the HTML such as interactive R plots. You can also add interactive elements to the HTML such as interactive R plots.
@ -1457,6 +1456,15 @@ The resulting chart:
#+results: R-plot #+results: R-plot
[[file:images/Rplot.png]] [[file:images/Rplot.png]]
** COMMENT ggplot2
#+begin_src R :results output graphics :file foo.png :session *foo*
library(ggplot2)
ggplot(data.frame(x = rnorm(10), y = rnorm(10)),
aes(x = x, y = y)) +
geom_point()
#+end_src
* Citations * Citations
Cross-referenced to bibliography. Cross-referenced to bibliography.