<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>o-blog</title>
  <link href="http://renard.github.com/o-blogindex.xml" rel="self" />
  <link href="http://renard.github.com/o-blog"/>
  <updated>2012-08-21T11:02:33Z</updated>
  <id>http://renard.github.com/o-blogindex.xml</id>
  <entry><title type="html">Adding an image into a post</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/08/21_adding-an-image-into-a-post.html"/><updated>2012-08-21T10:43:00Z</updated><published>2012-08-21T10:43:00Z</published><id>tips/2012/08/21_adding-an-image-into-a-post.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/o-blog.html" term="o-blog" label="o-blog"/><content type="html">&lt;div class="row "&gt;&lt;div class="span8 "&gt;


&lt;p&gt;
Adding an image to a post is pretty simple since
&lt;a href="http://orgmode.org"&gt;Org-mode&lt;/a&gt; offers a special link scheme for
that. Image source file can be stored anywhere since its path is
valid. During the export process, the image file is copied into a folder
related to the post and all links are corrected to point to its new
location.
&lt;/p&gt;



&lt;div class="row "&gt;&lt;div class="span5 "&gt;


&lt;p&gt;
For example, the following piece of code will copy the &lt;code&gt;emacs-logo.png&lt;/code&gt; from the current
directory and is is then copied into it into
&lt;code&gt;tips/2012/08/21_adding-an-image-into-a-post/emacs-logo.png&lt;/code&gt;.
&lt;/p&gt;


&lt;/div&gt;&lt;div class="span3 "&gt;




&lt;pre class="src src-org"&gt;&lt;span style="color: #00ffff; text-decoration: underline;"&gt;file:emacs-logo.png&lt;/span&gt;
&lt;/pre&gt;



&lt;/div&gt;&lt;/div&gt;




&lt;/div&gt;&lt;div class="span4 "&gt;

&lt;p&gt;
&lt;img src="../../../tips/2012/08/21_adding-an-image-into-a-post/emacs-logo.png"  alt="../../../tips/2012/08/21_adding-an-image-into-a-post/emacs-logo.png" /&gt;
&lt;/p&gt;



&lt;/div&gt;&lt;/div&gt;




&lt;p&gt;
The HTML result is something similar to:
&lt;/p&gt;



&lt;pre class="src src-html"&gt;&amp;lt;&lt;span style="color: #edd400; font-weight: bold;"&gt;img&lt;/span&gt; &lt;span style="color: #eeeeec;"&gt;src&lt;/span&gt;=&lt;span style="color: #ad7fa8;"&gt;"21_adding-an-image-into-a-post/emacs-logo.png"&lt;/span&gt;  &lt;span style="color: #eeeeec;"&gt;alt&lt;/span&gt;=&lt;span style="color: #ad7fa8;"&gt;"21_adding-an-image-into-a-post/emacs-logo.png"&lt;/span&gt; /&amp;gt;
&lt;/pre&gt;




&lt;p&gt;
A best practice is to have all files info a &lt;code&gt;/files&lt;/code&gt; folder. Then you can
create a sub-folder for each posts such as:
&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/files/post1/file1&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/files/post1/file2&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/files/post2/file&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&amp;hellip;
&lt;/li&gt;
&lt;/ul&gt;

</content></entry><entry><title type="html">Create static pages</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/05/21_create-static-pages.html"/><updated>2012-05-21T12:48:00Z</updated><published>2012-05-21T12:48:00Z</published><id>tips/2012/05/21_create-static-pages.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/bootstrap.html" term="Bootstrap" label="Bootstrap"/><category scheme="/tags/o-blog.html" term="o-blog" label="o-blog"/><content type="html">&lt;div class="row "&gt;&lt;div class="span7 "&gt;



&lt;p&gt;
Static pages are create exactly like blog pages. The only thing you need to
add is a &lt;code&gt;PAGE&lt;/code&gt; property. The exported path is relative to &lt;code&gt;#+PUBLISH_DIR:&lt;/code&gt;.
&lt;/p&gt;
&lt;p&gt;
You can also specify a custom template for your static page by adding a
&lt;code&gt;TEMPLATE&lt;/code&gt; property. The template path is relative to &lt;code&gt;#+TEMPLATE_DIR:&lt;/code&gt;.
&lt;/p&gt;


&lt;/div&gt;&lt;div class="span4 "&gt;



&lt;pre class="src src-org"&gt;&lt;span style="color: #edd400; font-weight: bold;"&gt;* Static page&lt;/span&gt;
&lt;span style="color: #729fcf; font-weight: bold;"&gt;   :PROPERTIES:&lt;/span&gt;
   &lt;span style="color: #729fcf; font-weight: bold;"&gt;:PAGE:&lt;/span&gt;     path/to/static/page.html
   &lt;span style="color: #729fcf; font-weight: bold;"&gt;:TEMPLATE:&lt;/span&gt; static-page.html
&lt;span style="color: #729fcf; font-weight: bold;"&gt;   :END:&lt;/span&gt;
&lt;/pre&gt;



&lt;/div&gt;&lt;/div&gt;
</content></entry><entry><title type="html">Add a custom font</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/05/07_add-a-custom-font.html"/><updated>2012-05-07T16:38:00Z</updated><published>2012-05-07T16:38:00Z</published><id>tips/2012/05/07_add-a-custom-font.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/bootstrap.html" term="Bootstrap" label="Bootstrap"/><category scheme="/tags/o-blog.html" term="o-blog" label="o-blog"/><content type="html">&lt;p&gt;
&lt;a href="http://www.google.com/webfonts"&gt;Google webfonts&lt;/a&gt; can be easily used in o-blog in 2 different ways: using
the Google API, or by providing resources in the &lt;code&gt;templates/style&lt;/code&gt; directory.
&lt;/p&gt;


&lt;div class="alert alert-warning"&gt;&lt;p class="alert-heading"&gt;Caution&lt;/p&gt;

&lt;p&gt;
Using many font styles can slow down your webpage, so only select the font
styles that you actually need on your webpage.
&lt;/p&gt;


&lt;/div&gt;


&lt;p&gt;
Both examples below use the &lt;a href="http://www.yanone.de/typedesign/kaffeesatz/"&gt;Yanone Kaffeesatz&lt;/a&gt; font.
&lt;/p&gt;

&lt;div id="outline-container-1" class="outline-3"&gt;
&lt;h3 id="sec-1"&gt;Using Google API&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-1"&gt;


&lt;p&gt;
The &lt;a href="http://www.google.com/webfonts#QuickUsePlace:quickUse/Family:"&gt;quick use&lt;/a&gt; provides an import snippet such as:
&lt;/p&gt;



&lt;pre class="src src-css"&gt;&lt;span style="color: #729fcf;"&gt;@import&lt;/span&gt; url(&lt;span style="color: #ad7fa8;"&gt;"http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,200,300,700&amp;amp;subset=latin,latin-ext"&lt;/span&gt;);
&lt;/pre&gt;


&lt;p&gt;
That line should be included into the
&lt;code&gt;templates/style/less/o-blog-default.less&lt;/code&gt; file in which you should also add
something like:
&lt;/p&gt;



&lt;pre class="src src-css"&gt;&lt;span style="color: #edd400; font-weight: bold;"&gt;h1, h2, h3, h4, h5, h6 &lt;/span&gt;{
    &lt;span style="color: #eeeeec;"&gt;font-family&lt;/span&gt;: &lt;span style="color: #ad7fa8;"&gt;"Yanone Kaffeesatz"&lt;/span&gt;, sans-serif;
}
&lt;/pre&gt;


&lt;p&gt;
And that's it.
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-2" class="outline-3"&gt;
&lt;h3 id="sec-2"&gt;Providing resources&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-2"&gt;


&lt;p&gt;
That is less efficient in terms of network resources but provides a good
alternative for offline publications.
&lt;/p&gt;

&lt;p&gt;
The script &lt;code&gt;get-font&lt;/code&gt; does all needed jobs.
&lt;/p&gt;


&lt;div class="o-blog-source"&gt;&lt;a class="btn btn-info" data-toggle="modal" data-target="#get-font" &gt;&lt;i class="icon-file icon-white"&gt;&lt;/i&gt;&amp;nbsp;get-font&lt;/a&gt;&lt;/div&gt;&lt;div class="modal fade hide" id="get-font"&gt;&lt;div class="modal-header"&gt;&lt;a class="close" data-dismiss="modal"&gt;&#215;&lt;/a&gt;&lt;h3&gt;get-font&lt;/h3&gt;&lt;/div&gt;&lt;div class="modal-body"&gt;&lt;pre&gt;
&lt;span style="color: #888a85;"&gt;#&lt;/span&gt;&lt;span style="color: #888a85;"&gt;!/bin/&lt;/span&gt;&lt;span style="color: #729fcf; font-weight: bold;"&gt;sh&lt;/span&gt;&lt;span style="color: #888a85;"&gt;
&lt;/span&gt;
&lt;span style="color: #729fcf; font-weight: bold;"&gt;if &lt;/span&gt;&lt;span style="color: #729fcf;"&gt;test&lt;/span&gt; -z &lt;span style="color: #ad7fa8;"&gt;"$1"&lt;/span&gt;; &lt;span style="color: #729fcf; font-weight: bold;"&gt;then&lt;/span&gt;
    &lt;span style="color: #729fcf;"&gt;echo&lt;/span&gt; &lt;span style="color: #ad7fa8;"&gt;"Usage: $0 font-url"&lt;/span&gt;
    &lt;span style="color: #729fcf; font-weight: bold;"&gt;exit&lt;/span&gt; 1
&lt;span style="color: #729fcf; font-weight: bold;"&gt;fi&lt;/span&gt;

&lt;span style="color: #eeeeec;"&gt;FONT_DIR&lt;/span&gt;=templates/style/font
&lt;span style="color: #eeeeec;"&gt;LESS_DIR&lt;/span&gt;=templates/style/less

&lt;span style="color: #eeeeec;"&gt;FONT_URL&lt;/span&gt;=&lt;span style="color: #ad7fa8;"&gt;"$1"&lt;/span&gt;
&lt;span style="color: #eeeeec;"&gt;LESS_FILE&lt;/span&gt;=$(&lt;span style="color: #729fcf;"&gt;echo&lt;/span&gt; &lt;span style="color: #ad7fa8;"&gt;"$FONT_URL"&lt;/span&gt; | sed -n &lt;span style="color: #ad7fa8;"&gt;'s/.*family=\([^:]\+\).*/\1/p'&lt;/span&gt; | sed &lt;span style="color: #ad7fa8;"&gt;'s/+/-/g'&lt;/span&gt;)

&lt;span style="color: #888a85;"&gt;# &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Wee need to provide a valid user agent to get woff fonts
&lt;/span&gt;&lt;span style="color: #eeeeec;"&gt;UA&lt;/span&gt;=&lt;span style="color: #ad7fa8;"&gt;'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.65 Safari/535.11'&lt;/span&gt;


&lt;span style="color: #eeeeec;"&gt;CSS&lt;/span&gt;=$(curl -H &lt;span style="color: #ad7fa8;"&gt;"${UA}"&lt;/span&gt; ${&lt;span style="color: #eeeeec;"&gt;FONT_URL&lt;/span&gt;})

&lt;span style="color: #729fcf;"&gt;echo&lt;/span&gt; &lt;span style="color: #ad7fa8;"&gt;"${CSS}"&lt;/span&gt; | sed -n &lt;span style="color: #ad7fa8;"&gt;"s#.*local('\([^']\+\)'), url('\([^']\+\)').*#curl -o ${FONT_DIR}/\1.woff \2#p"&lt;/span&gt; | sh -

&lt;span style="color: #729fcf;"&gt;echo&lt;/span&gt; &lt;span style="color: #ad7fa8;"&gt;"${CSS}"&lt;/span&gt; | sed  &lt;span style="color: #ad7fa8;"&gt;"s#\(.*\)local('\([^']\+\)'), url('\([^']\+\)')\(.*\)#\1local('\2'), url('../font/\2.woff')\4#"&lt;/span&gt;  &amp;gt; &lt;span style="color: #ad7fa8;"&gt;"${LESS_DIR}/font-${LESS_FILE}.less"&lt;/span&gt;

&lt;span style="color: #729fcf;"&gt;echo&lt;/span&gt; &lt;span style="color: #ad7fa8;"&gt;"You should add '@import \"font-${LESS_FILE}.less\";' to templates/style/less/o-blog-default.less"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;
You can run:
&lt;/p&gt;



&lt;pre class="src src-sh"&gt;./get-font &lt;span style="color: #ad7fa8;"&gt;'http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,200,300,700&amp;amp;subset=latin,latin-ext'&lt;/span&gt;
&lt;/pre&gt;


&lt;p&gt;
And add the font declaration in &lt;code&gt;templates/style/less/o-blog-default.less&lt;/code&gt;:
&lt;/p&gt;



&lt;pre class="src src-css"&gt;&lt;span style="color: #729fcf;"&gt;@import&lt;/span&gt; &lt;span style="color: #ad7fa8;"&gt;"font-Yanone-Kaffeesatz.less"&lt;/span&gt;;
&lt;/pre&gt;


&lt;p&gt;
Finally, declare its use as in the Google API version:
&lt;/p&gt;



&lt;pre class="src src-css"&gt;&lt;span style="color: #edd400; font-weight: bold;"&gt;h1, h2, h3, h4, h5, h6 &lt;/span&gt;{
    &lt;span style="color: #eeeeec;"&gt;font-family&lt;/span&gt;: &lt;span style="color: #ad7fa8;"&gt;"Yanone Kaffeesatz"&lt;/span&gt;, sans-serif;
}
&lt;/pre&gt;

&lt;/div&gt;
&lt;/div&gt;
</content></entry><entry><title type="html">Some bootstrap features</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/05/03_some-bootstrap-features.html"/><updated>2012-05-03T21:40:00Z</updated><published>2012-05-03T21:40:00Z</published><id>tips/2012/05/03_some-bootstrap-features.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/bootstrap.html" term="Bootstrap" label="Bootstrap"/><content type="html">&lt;div id="outline-container-1" class="outline-3"&gt;
&lt;h3 id="sec-1"&gt;Hero-unit&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-1"&gt;




&lt;div class="row "&gt;&lt;div class="span7 "&gt;



&lt;pre class="src src-org"&gt;&lt;span style="color: #888a85;"&gt;#+begin_o_blog_hero_unit&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;#+HTML: &amp;lt;h1&amp;gt;Heading&amp;lt;/h1&amp;gt;&lt;/span&gt;

 tagline

&lt;span style="color: #888a85;"&gt;#+BEGIN_HTML&lt;/span&gt;
    &amp;lt;a class="btn btn-primary btn-large"&amp;gt;
      Learn more
    &amp;lt;/a&amp;gt;
&lt;span style="color: #888a85;"&gt;#+END_HTML&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;#+end_o_blog_hero_unit&lt;/span&gt;
&lt;/pre&gt;


&lt;/div&gt;&lt;div class="span4 "&gt;


&lt;div class="hero-unit"&gt;





&lt;h1&gt;Heading&lt;/h1&gt;

&lt;p&gt;
tagline
&lt;/p&gt;


    &lt;a class="btn btn-primary btn-large"&gt;
      Learn more
    &lt;/a&gt;

&lt;/div&gt;




&lt;/div&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-2" class="outline-3"&gt;
&lt;h3 id="sec-2"&gt;Page header&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-2"&gt;




&lt;div class="row "&gt;&lt;div class="span7 "&gt;



&lt;pre class="src src-org"&gt;&lt;span style="color: #888a85;"&gt;#+begin_o_blog_page_header&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;#+HTML: &amp;lt;h1&amp;gt;Page header&amp;lt;/h1&amp;gt;&lt;/span&gt;
Some text
&lt;span style="color: #888a85;"&gt;#+end_o_blog_page_header&lt;/span&gt;
&lt;/pre&gt;


&lt;/div&gt;&lt;div class="span4 "&gt;


&lt;div class="page-header"&gt;




&lt;h1&gt;Page header&lt;/h1&gt;
&lt;p&gt;
Some text
&lt;/p&gt;


&lt;/div&gt;




&lt;/div&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-3" class="outline-3"&gt;
&lt;h3 id="sec-3"&gt;Using labels&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-3"&gt;


&lt;p&gt;
    Label and annotate text using a &lt;code&gt;label:TYPE&lt;/code&gt; link prefix where &lt;code&gt;TYPE&lt;/code&gt; is
    one of &lt;code&gt;default&lt;/code&gt;, &lt;code&gt;success&lt;/code&gt;, &lt;code&gt;warning&lt;/code&gt;, &lt;code&gt;important&lt;/code&gt;, &lt;code&gt;info&lt;/code&gt; or
    &lt;code&gt;reverse&lt;/code&gt;. The URL part of the link is used as the label text.
&lt;/p&gt;


&lt;div class="row "&gt;&lt;div class="span7 "&gt;



&lt;pre class="src src-txt"&gt;[[ob-label:default][Default]]
[[ob-label:success][Success]]
[[ob-label:warning][Warning]]
[[ob-label:important][Important]]
[[ob-label:info][Info]]
[[ob-label:inverse][Inverse]]
&lt;/pre&gt;


&lt;/div&gt;&lt;div class="span4 "&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span class="label label-default"&gt;Default&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="label label-success"&gt;Success&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="label label-warning"&gt;Warning&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="label label-important"&gt;Important&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="label label-info"&gt;Info&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="label label-inverse"&gt;Inverse&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;/div&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-4" class="outline-3"&gt;
&lt;h3 id="sec-4"&gt;Using badges&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-4"&gt;


&lt;p&gt;
    Indicators and unread counts as for labels. Use the &lt;code&gt;badge:TYPE&lt;/code&gt; link
    prefix.
&lt;/p&gt;


&lt;div class="row "&gt;&lt;div class="span7 "&gt;



&lt;pre class="src src-text"&gt;[[ob-badge:default][Default]]
[[ob-badge:success][Success]]
[[ob-badge:warning][Warning]]
[[ob-badge:important][Important]]
[[ob-badge:info][Info]]
[[ob-badge:inverse][Inverse]]
&lt;/pre&gt;


&lt;/div&gt;&lt;div class="span4 "&gt;

&lt;ul&gt;
&lt;li&gt;&lt;span class="badge badge-default"&gt;Default&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="badge badge-success"&gt;Success&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="badge badge-warning"&gt;Warning&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="badge badge-important"&gt;Important&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="badge badge-info"&gt;Info&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span class="badge badge-inverse"&gt;Inverse&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;/div&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-5" class="outline-3"&gt;
&lt;h3 id="sec-5"&gt;Using progress bars&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-5"&gt;


&lt;p&gt;
    For loading, redirecting, or action status. Use a &lt;code&gt;progress:TYPE&lt;/code&gt; link
    where &lt;code&gt;TYPE&lt;/code&gt; is one of &lt;code&gt;info&lt;/code&gt;, &lt;code&gt;success&lt;/code&gt;, &lt;code&gt;warning&lt;/code&gt; or
    &lt;code&gt;danger&lt;/code&gt;. Additional classes (&lt;code&gt;striped&lt;/code&gt; or &lt;code&gt;active&lt;/code&gt;) can be added using comma.
    The URL is the progress percent.
&lt;/p&gt;


&lt;div class="row "&gt;&lt;div class="span7 "&gt;



&lt;pre class="src src-text"&gt;[[ob-progress:info][25]]
[[ob-progress:success,striped][50]]
[[ob-progress:warning,striped,active][75]]
[[ob-progress:danger][100]]
&lt;/pre&gt;


&lt;/div&gt;&lt;div class="span4 "&gt;

&lt;p&gt;
    &lt;div class="progress progress-info"&gt;&lt;div class="bar" style="width: 25%;"&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;div class="progress progress-success progress-striped"&gt;&lt;div class="bar" style="width: 50%;"&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;div class="progress progress-warning progress-striped active"&gt;&lt;div class="bar" style="width: 75%;"&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;div class="progress progress-danger"&gt;&lt;div class="bar" style="width: 100%;"&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/p&gt;


&lt;/div&gt;&lt;/div&gt;



&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-6" class="outline-3"&gt;
&lt;h3 id="sec-6"&gt;Well&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-6"&gt;


&lt;p&gt;
Use the well as a simple effect on an element to give it an inset effect.
&lt;/p&gt;


&lt;div class="row "&gt;&lt;div class="span7 "&gt;



&lt;pre class="src src-text"&gt; #+begin_o_blog_well
, Look, I'm in a well!
 #+end_o_blog_well
&lt;/pre&gt;


&lt;/div&gt;&lt;div class="span4 "&gt;



&lt;div class="well"&gt;


&lt;p&gt;
Look, I'm in a well!
&lt;/p&gt;


&lt;/div&gt;




&lt;/div&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
</content></entry><entry><title type="html">Using Bootstrap grid</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/02/10_using-bootstrap-grid.html"/><updated>2012-02-10T01:19:00Z</updated><published>2012-02-10T01:19:00Z</published><id>tips/2012/02/10_using-bootstrap-grid.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/bootstrap.html" term="Bootstrap" label="Bootstrap"/><content type="html">&lt;p&gt;
&lt;a href="http://twitter.github.com/bootstrap/scaffolding.html"&gt;Bootstrap scaffolding&lt;/a&gt; can be defined using both &lt;code&gt;#+begin_o_blog_row&lt;/code&gt; and
&lt;code&gt;#+end_o_blog_row&lt;/code&gt; directives (or &lt;code&gt;&amp;lt;og&lt;/code&gt; &lt;code&gt;TAB&lt;/code&gt; shortcut). A new column can
be started using &lt;code&gt;#+o_blog_row_column&lt;/code&gt; single directive (or &lt;code&gt;&amp;lt;ogr&lt;/code&gt; &lt;code&gt;TAB&lt;/code&gt;
shortcut).
&lt;/p&gt;



&lt;div class="row show-grid"&gt;&lt;div class="span6 "&gt;

&lt;p&gt;
&lt;b&gt;Example&lt;/b&gt;
&lt;/p&gt;



&lt;pre class="src src-org"&gt;&lt;span style="color: #888a85;"&gt;#+begin_o_blog_row 2 -1 show-grid&lt;/span&gt;
Column 1
&lt;span style="color: #888a85;"&gt;#+o_blog_row_column 2&lt;/span&gt;
Column 2
&lt;span style="color: #888a85;"&gt;#+end_o_blog_row&lt;/span&gt;
&lt;/pre&gt;



&lt;/div&gt;&lt;div class="span6 "&gt;


&lt;p&gt;
&lt;b&gt;Output&lt;/b&gt;
&lt;/p&gt;


&lt;div class="row show-grid"&gt;&lt;div class="span2 offset1"&gt;


&lt;p&gt;
Column 1
&lt;/p&gt;


&lt;/div&gt;&lt;div class="span2 "&gt;


&lt;p&gt;
Column 2
&lt;/p&gt;



&lt;/div&gt;&lt;/div&gt;



&lt;/div&gt;&lt;/div&gt;



&lt;p&gt;
The syntax is:
&lt;/p&gt;



&lt;pre class="src src-org"&gt;&lt;span style="color: #888a85;"&gt;#+begin_o_blog_row SPAN OFFSET GRID-CLASS&lt;/span&gt;
Column 1
&lt;span style="color: #888a85;"&gt;#+o_blog_row_column SPAN OFFSET&lt;/span&gt;
Column 2
...
&lt;span style="color: #888a85;"&gt;#+o_blog_row_column SPAN OFFSET&lt;/span&gt;
Column n
&lt;span style="color: #888a85;"&gt;#+end_o_blog_row&lt;/span&gt;

&lt;/pre&gt;

</content></entry><entry><title type="html">Adding icons</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/02/10_adding-icons.html"/><updated>2012-02-10T00:19:00Z</updated><published>2012-02-10T00:19:00Z</published><id>tips/2012/02/10_adding-icons.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/bootstrap.html" term="Bootstrap" label="Bootstrap"/><content type="html">&lt;p&gt;
Icons from &lt;a href="http://glyphicons.com/"&gt;glyphicons&lt;/a&gt; are supported, by simply naming the icon using
italics style forward-slashes:
&lt;/p&gt;


&lt;div class="row "&gt;&lt;div class="span6 "&gt;



&lt;p&gt;
&lt;b&gt;Source example&lt;/b&gt;
&lt;/p&gt;



&lt;pre class="src src-org"&gt;&lt;span style="font-style: italic;"&gt;/icon-calendar/&lt;/span&gt; calendar
&lt;/pre&gt;


&lt;/div&gt;&lt;div class="span6 "&gt;


&lt;p&gt;
&lt;b&gt;Rendered output&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;i&gt;icon-calendar&lt;/i&gt; calendar
&lt;/p&gt;



&lt;/div&gt;&lt;/div&gt;




&lt;p&gt;
Icons can also be used for the top &lt;i&gt;navbar&lt;/i&gt; using something like:
&lt;/p&gt;


&lt;div class="row "&gt;&lt;div class="span6 "&gt;


&lt;p&gt;
&lt;b&gt;Source example&lt;/b&gt;
&lt;/p&gt;



&lt;pre class="src src-org"&gt;- &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[#][/icon-book icon-white/ Documentation]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./templates.html][Templates]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./structures.html][Structures]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./functions.html][Functions]]&lt;/span&gt;
  -
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./faq.html][FAQ]]&lt;/span&gt;

- &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[#][/icon-file icon-white/ Blog]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./tips/2012/08/21_adding-an-image-into-a-post.html][Adding an image into a post]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./tips/2012/05/21_create-static-pages.html][Create static pages]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./tips/2012/05/07_add-a-custom-font.html][Add a custom font]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./tips/2012/05/03_some-bootstrap-features.html][Some bootstrap features]]&lt;/span&gt;
  - &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./tips/2012/02/10_using-bootstrap-grid.html][Using Bootstrap grid]]&lt;/span&gt;

- &lt;span style="color: #00ffff; text-decoration: underline;"&gt;[[file:./templates.html"&gt;Templates&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="./structures.html"&gt;Structures&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="./functions.html"&gt;Functions&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="./faq.html"&gt;FAQ&lt;/a&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;&lt;i&gt;icon-file icon-white&lt;/i&gt; Blog&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="./tips/2012/08/21_adding-an-image-into-a-post.html"&gt;Adding an image into a post&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="./tips/2012/05/21_create-static-pages.html"&gt;Create static pages&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="./tips/2012/05/07_add-a-custom-font.html"&gt;Add a custom font&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="./tips/2012/05/03_some-bootstrap-features.html"&gt;Some bootstrap features&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="./tips/2012/02/10_using-bootstrap-grid.html"&gt;Using Bootstrap grid&lt;/a&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;/li&gt;
&lt;li&gt;&lt;a href="./tags/index.html"&gt;&lt;i&gt;icon-tags icon-white&lt;/i&gt; Tags&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;
Please note the blank line between menu items. If blanks are omitted, the
rendered result might be damaged.
&lt;/p&gt;



&lt;/div&gt;&lt;/div&gt;



</content></entry><entry><title type="html">Using modal source code</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/02/09_using-modal-source-code.html"/><updated>2012-02-09T23:13:00Z</updated><published>2012-02-09T23:13:00Z</published><id>tips/2012/02/09_using-modal-source-code.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/bootstrap.html" term="Bootstrap" label="Bootstrap"/><content type="html">&lt;p&gt;
The &lt;a href="http://twitter.github.com/bootstrap/javascript.html#modals"&gt;Modal&lt;/a&gt; bootstrap script can be used to display the content of an external
file in a modal window. The magic line is:
&lt;/p&gt;



&lt;pre class="src src-org"&gt;&lt;span style="color: #888a85;"&gt;#+O_BLOG_SOURCE: path/to/file [mode]&lt;/span&gt;
&lt;/pre&gt;


&lt;p&gt;
The &lt;i&gt;org template shorcut&lt;/i&gt; is &lt;code&gt;&amp;lt;os&lt;/code&gt; &lt;code&gt;TAB&lt;/code&gt;. Two parameters might be used:
&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;The mandatory &lt;code&gt;/path/to/file&lt;/code&gt; which is the path to the file from which
  content should be read.
&lt;/li&gt;
&lt;li&gt;The optional &lt;code&gt;mode&lt;/code&gt; parameter, which can be determined if omitted.
&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
Here is an example of the &lt;code&gt;sample-init.el&lt;/code&gt; file:
&lt;/p&gt;


&lt;div class="o-blog-source"&gt;&lt;a class="btn btn-info" data-toggle="modal" data-target="#sample-initel" &gt;&lt;i class="icon-file icon-white"&gt;&lt;/i&gt;&amp;nbsp;sample-init.el&lt;/a&gt;&lt;/div&gt;&lt;div class="modal fade hide" id="sample-initel"&gt;&lt;div class="modal-header"&gt;&lt;a class="close" data-dismiss="modal"&gt;&#215;&lt;/a&gt;&lt;h3&gt;sample-init.el&lt;/h3&gt;&lt;/div&gt;&lt;div class="modal-body"&gt;&lt;pre&gt;
&lt;span style="color: #888a85;"&gt;;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;sample-init.el --- sample init file to be used to debug o-blog
&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Copyright &amp;#169; 2012 S&amp;#233;bastien Gross &amp;lt;seb&amp;#8226;&amp;#593;&amp;#428;&amp;#8226;chezwam&amp;#8226;&amp;#598;&amp;#629;&amp;#648;&amp;#8226;org&amp;gt;
&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Author: S&amp;#233;bastien Gross &amp;lt;seb&amp;#8226;&amp;#593;&amp;#428;&amp;#8226;chezwam&amp;#8226;&amp;#598;&amp;#629;&amp;#648;&amp;#8226;org&amp;gt;
&lt;/span&gt;&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Keywords: emacs, 
&lt;/span&gt;&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Created: 2012-03-20
&lt;/span&gt;&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Last changed: 2012-08-23 17:48:24
&lt;/span&gt;&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Licence: WTFPL, grab your copy here: http://sam.zoy.org/wtfpl/
&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;This file is NOT part of GNU Emacs.
&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Commentary:
&lt;/span&gt;&lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;
&lt;/span&gt;

&lt;span style="color: #888a85;"&gt;;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Code:
&lt;/span&gt;

(&lt;span style="color: #729fcf; font-weight: bold;"&gt;defun&lt;/span&gt; &lt;span style="color: #edd400; font-weight: bold;"&gt;ob-build-sample&lt;/span&gt; ()
  (&lt;span style="color: #729fcf; font-weight: bold;"&gt;let*&lt;/span&gt; ((d default-directory)
         (sample (format &lt;span style="color: #ad7fa8;"&gt;"%s/.emacs.d/o-blog/example/sample.org"&lt;/span&gt; d))
         (debugger
          (&lt;span style="color: #729fcf; font-weight: bold;"&gt;lambda&lt;/span&gt; (&lt;span style="color: #8ae234; font-weight: bold;"&gt;&amp;amp;rest&lt;/span&gt; debugger-args)
            (&lt;span style="color: #729fcf; font-weight: bold;"&gt;let*&lt;/span&gt; ((trace (&lt;span style="color: #729fcf; font-weight: bold;"&gt;with-temp-buffer&lt;/span&gt;
                            (insert (&lt;span style="color: #729fcf; font-weight: bold;"&gt;with-output-to-string&lt;/span&gt; (backtrace)))
                            (beginning-of-buffer)
                            &lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;error begins on line 16
&lt;/span&gt;                            &lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;line stats with "  signal(error ..."
&lt;/span&gt;                            (goto-line 16)
                            (goto-char (point-at-bol))
                            &lt;span style="color: #888a85;"&gt;;; &lt;/span&gt;&lt;span style="color: #888a85;"&gt;Remove null chars
&lt;/span&gt;                            (replace-regexp-in-string
                              (char-to-string 0) &lt;span style="color: #ad7fa8;"&gt;"^@"&lt;/span&gt;
                              (buffer-substring (point) (point-max))))))
              (o-blog-bug-report trace))))
         (debug-on-error t)
         print-length print-level)
    (add-to-list 'load-path (format &lt;span style="color: #ad7fa8;"&gt;"%s/.emacs.d/org-mode/lisp"&lt;/span&gt; d))
    (add-to-list 'load-path (format &lt;span style="color: #ad7fa8;"&gt;"%s/.emacs.d/org-mode/contrib/lisp"&lt;/span&gt; d))
    (add-to-list 'load-path (format &lt;span style="color: #ad7fa8;"&gt;"%s/.emacs.d/o-blog"&lt;/span&gt; d))
    (&lt;span style="color: #729fcf; font-weight: bold;"&gt;require&lt;/span&gt; '&lt;span style="color: #8ae234;"&gt;o-blog&lt;/span&gt;)
    (print
      (concat
        (emacs-version) &lt;span style="color: #ad7fa8;"&gt;"\n"&lt;/span&gt;
        (org-version) &lt;span style="color: #ad7fa8;"&gt;"\n"&lt;/span&gt;
        (o-blog-version) &lt;span style="color: #ad7fa8;"&gt;"\n"&lt;/span&gt;))
    (find-file sample)
    (org-publish-blog sample)
    (kill-emacs)))
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

</content></entry><entry><title type="html">Alerts</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/01/15_alerts.html"/><updated>2012-01-15T20:40:00Z</updated><published>2012-01-15T20:40:00Z</published><id>tips/2012/01/15_alerts.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><content type="html">&lt;p&gt;
Alerts are declared in &lt;code&gt;o_blog_alert&lt;/code&gt; blocks. There are 4 types of
them:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;info
&lt;/li&gt;
&lt;li&gt;success
&lt;/li&gt;
&lt;li&gt;warning
&lt;/li&gt;
&lt;li&gt;error
&lt;/li&gt;
&lt;/ul&gt;





&lt;pre class="src src-org"&gt;&lt;span style="color: #888a85;"&gt;#+begin_o_blog_alert &amp;lt;TYPE&amp;gt; &amp;lt;title&amp;gt;&lt;/span&gt;
Text of the alert
&lt;span style="color: #888a85;"&gt;#+end_o_blog_alert&lt;/span&gt;
&lt;/pre&gt;



&lt;div class="alert alert-error"&gt;&lt;p class="alert-heading"&gt;&lt;/p&gt;


&lt;p&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit
tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et,
mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis
dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae
dolor. Nullam tristique diam non turpis. Cras placerat accumsan
nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
&lt;/p&gt;



&lt;/div&gt;



&lt;div class="alert alert-error"&gt;&lt;p class="alert-heading"&gt;Danger&lt;/p&gt;


&lt;p&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit
tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et,
mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis
dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae
dolor. Nullam tristique diam non turpis. Cras placerat accumsan
nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
&lt;/p&gt;



&lt;/div&gt;


&lt;div class="alert alert-warning"&gt;&lt;p class="alert-heading"&gt;Caution&lt;/p&gt;


&lt;p&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit
tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et,
mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis
dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae
dolor. Nullam tristique diam non turpis. Cras placerat accumsan
nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
&lt;/p&gt;



&lt;/div&gt;




&lt;div class="alert alert-success"&gt;&lt;p class="alert-heading"&gt;Tip&lt;/p&gt;


&lt;p&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit
tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et,
mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis
dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae
dolor. Nullam tristique diam non turpis. Cras placerat accumsan
nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
&lt;/p&gt;



&lt;/div&gt;


&lt;div class="alert alert-info"&gt;&lt;p class="alert-heading"&gt;Information&lt;/p&gt;


&lt;p&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit
tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et,
mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis
dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae
dolor. Nullam tristique diam non turpis. Cras placerat accumsan
nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
&lt;/p&gt;



&lt;/div&gt;

</content></entry><entry><title type="html">Some HTML5 samples</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/01/10_some-html5-samples.html"/><updated>2012-01-10T20:58:00Z</updated><published>2012-01-10T20:58:00Z</published><id>tips/2012/01/10_some-html5-samples.html</id><category scheme="/tags/html-5.html" term="html 5" label="html 5"/><content type="html">&lt;div id="outline-container-1" class="outline-3"&gt;
&lt;h3 id="sec-1"&gt;tag: &amp;lt;details&amp;gt;&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-1"&gt;


&lt;p&gt;
This tag works only with the Chrome browser.
&lt;/p&gt;


&lt;details&gt;
&lt;summary&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit&lt;/summary&gt;
&lt;ul&gt;
&lt;li&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
&lt;/li&gt;
&lt;li&gt;Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.
&lt;/li&gt;
&lt;li&gt;Sed diam.
&lt;/li&gt;
&lt;li&gt;Nam vestibulum accumsan nisl.
&lt;/li&gt;
&lt;/ul&gt;


&lt;/details&gt;


&lt;pre class="src src-org"&gt;&lt;span style="color: #888a85;"&gt;#+HTML:&lt;/span&gt;&lt;span style="color: #888a85;"&gt; &lt;/span&gt;&lt;span style="color: #b3b3b3;"&gt;&amp;lt;details&amp;gt;&lt;/span&gt;
&lt;span style="color: #888a85;"&gt;#+HTML:&lt;/span&gt;&lt;span style="color: #888a85;"&gt; &lt;/span&gt;&lt;span style="color: #b3b3b3;"&gt;&amp;lt;summary&amp;gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit&amp;lt;/summary&amp;gt;&lt;/span&gt;
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.
- Sed diam.
- Nam vestibulum accumsan nisl.
&lt;span style="color: #888a85;"&gt;#+HTML:&lt;/span&gt;&lt;span style="color: #888a85;"&gt; &lt;/span&gt;&lt;span style="color: #b3b3b3;"&gt;&amp;lt;/details&amp;gt;&lt;/span&gt;
&lt;/pre&gt;

&lt;/div&gt;
&lt;/div&gt;
</content></entry><entry><title type="html">Example of some org syntax</title><author><name>nil</name></author><link href="http://renard.github.com/o-blog/tips/2012/01/07_example-of-some-org-syntax.html"/><updated>2012-01-07T11:23:00Z</updated><published>2012-01-07T11:23:00Z</published><id>tips/2012/01/07_example-of-some-org-syntax.html</id><category scheme="/tags/usage.html" term="usage" label="usage"/><category scheme="/tags/org.html" term="org" label="org"/><content type="html">&lt;div id="outline-container-1" class="outline-3"&gt;
&lt;h3 id="sec-1"&gt;Titles&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-1"&gt;


&lt;p&gt;
This is a level 1
&lt;/p&gt;

&lt;/div&gt;

&lt;div id="outline-container-1-1" class="outline-4"&gt;
&lt;h4 id="sec-1-1"&gt;Level 2&lt;/h4&gt;
&lt;div class="outline-text-4" id="text-1-1"&gt;


&lt;p&gt;
This is a level 2
&lt;/p&gt;


&lt;/div&gt;

&lt;div id="outline-container-1-1-1" class="outline-5"&gt;
&lt;h5 id="sec-1-1-1"&gt;Level 3&lt;/h5&gt;
&lt;div class="outline-text-5" id="text-1-1-1"&gt;


&lt;p&gt;
This is a level 3
&lt;/p&gt;

&lt;/div&gt;

&lt;div id="outline-container-1-1-1-1" class="outline-6"&gt;
&lt;h6 id="sec-1-1-1-1"&gt;Level 4&lt;/h6&gt;
&lt;div class="outline-text-6" id="text-1-1-1-1"&gt;


&lt;p&gt;
This is a level 4
&lt;/p&gt;

&lt;/div&gt;

&lt;div id="outline-container-1-1-1-1-1" class="outline-7"&gt;
&lt;h7 id="sec-1-1-1-1-1"&gt;Level 5&lt;/h7&gt;
&lt;div class="outline-text-7" id="text-1-1-1-1-1"&gt;


&lt;p&gt;
This is a level 5
&lt;/p&gt;

&lt;/div&gt;

&lt;div id="outline-container-1-1-1-1-1-1" class="outline-8"&gt;
&lt;h8 id="sec-1-1-1-1-1-1"&gt;Level 6&lt;/h8&gt;
&lt;div class="outline-text-8" id="text-1-1-1-1-1-1"&gt;


&lt;p&gt;
This is a level 6
&lt;/p&gt;

&lt;p&gt;
Up to 6 levels of indentation can be used.
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-2" class="outline-3"&gt;
&lt;h3 id="sec-2"&gt;Praragaphs&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-2"&gt;


&lt;p&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit
tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et,
mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis
dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae
dolor. Nullam tristique diam non turpis. Cras placerat accumsan
nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
&lt;/p&gt;


&lt;div class="two-cols"&gt;

&lt;p&gt;
Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec
facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis
odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed pede. Sed
bibendum. Aliquam posuere. Nunc aliquet, augue nec adipiscing interdum,
lacus tellus malesuada massa, quis varius mi purus non odio. Pellentesque
condimentum, magna ut suscipit hendrerit, ipsum augue ornare nulla, non
luctus diam neque sit amet urna. Curabitur vulputate vestibulum lorem. Fusce
sagittis, libero non molestie mollis, magna orci ultrices dolor, at
vulputate neque nulla lacinia eros. Sed id ligula quis est convallis
tempor. Curabitur lacinia pulvinar nibh. Nam a sapien.
&lt;/p&gt;
&lt;p&gt;
Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. Etiam vel
tortor sodales tellus ultricies commodo. Suspendisse potenti. Aenean in sem
ac leo mollis blandit. Donec neque quam, dignissim in, mollis nec, sagittis
eu, wisi. Phasellus lacus. Etiam laoreet quam sed arcu. Phasellus at dui in
ligula mollis ultricies. Integer placerat tristique nisl. Praesent
augue. Fusce commodo. Vestibulum convallis, lorem a tempus semper, dui dui
euismod elit, vitae placerat urna tortor vitae lacus. Nullam libero mauris,
consequat quis, varius et, dictum id, arcu. Mauris mollis tincidunt
felis. Aliquam feugiat tellus ut neque. Nulla facilisis, risus a rhoncus
fermentum, tellus tellus lacinia purus, et dictum nunc justo sit amet elit.
&lt;/p&gt;


&lt;/div&gt;



&lt;p class="verse"&gt;
Great clouds overhead&lt;br/&gt;
Tiny black birds rise and fall&lt;br/&gt;
Snow covers Emacs&lt;br/&gt;
&lt;br/&gt;
&amp;ndash; AlexSchroeder&lt;br/&gt;
&lt;/p&gt;


&lt;blockquote&gt;

&lt;p&gt;Everything should be made as simple as possible,
but not any simpler &amp;ndash; Albert Einstein
&lt;/p&gt;
&lt;/blockquote&gt;



&lt;div style="text-align: center"&gt;
&lt;p&gt;Everything should be made as simple as possible, &lt;br/&gt;
but not any simpler
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-3" class="outline-3"&gt;
&lt;h3 id="sec-3"&gt;Lists&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-3"&gt;


&lt;p&gt;
As taken from the Org-mode manual:
&lt;/p&gt;
&lt;p&gt;
My favorite scenes are (in this order)
&lt;/p&gt;&lt;ol&gt;
&lt;li&gt;The attack of the Rohirrim
&lt;/li&gt;
&lt;li&gt;Eowyn's fight with the witch king
&lt;ul&gt;
&lt;li&gt;this was already my favorite scene in the book
&lt;/li&gt;
&lt;li&gt;I really like Miranda Otto.
&lt;/li&gt;
&lt;/ul&gt;

&lt;/li&gt;
&lt;li&gt;Peter Jackson being shot by Legolas
&lt;ul&gt;
&lt;li&gt;on DVD only
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;           He makes a really funny face when it happens.
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;But in the end, no individual scenes matter but the film as a whole.
Important actors in this film are:
&lt;/p&gt;&lt;dl&gt;
&lt;dt&gt;Elijah Wood&lt;/dt&gt;&lt;dd&gt;He plays Frodo
&lt;/dd&gt;
&lt;dt&gt;Sean Austin&lt;/dt&gt;&lt;dd&gt;He plays Sam, Frodo's friend.  I still remember
          him very well from his role as Mikey Walsh in The Goonies.
&lt;/dd&gt;
&lt;/dl&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-4" class="outline-3"&gt;
&lt;h3 id="sec-4"&gt;Footnotes&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-4"&gt;


&lt;p&gt;
The Org-mode homepage&lt;sup&gt;&lt;a class="footref" name="fnr.1" href="#fn.1"&gt;1&lt;/a&gt;&lt;/sup&gt; now looks a lot better than it used to.
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-5" class="outline-3"&gt;
&lt;h3 id="sec-5"&gt;Emphasis and monospace&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-5"&gt;


&lt;p&gt;
You can make words &lt;b&gt;bold&lt;/b&gt;, &lt;i&gt;italic&lt;/i&gt;, &lt;span style="text-decoration:underline;"&gt;underlined&lt;/span&gt;, &lt;code&gt;code&lt;/code&gt; and &lt;code&gt;verbatim&lt;/code&gt;,
and, if you must, &#8216;+strike-through+&#8217;. Text in the code and verbatim string
is not processed for Org-mode specific syntax; it is exported verbatim.
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-6" class="outline-3"&gt;
&lt;h3 id="sec-6"&gt;Horizontal rules&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-6"&gt;


&lt;p&gt;
A line consisting of only dashes, and at least 5 of them, will be exported
as a horizontal line (&#8216;&amp;lt;hr/&amp;gt;&#8217; in HTML and \hrule in LaTeX).
&lt;/p&gt;

&lt;hr/&gt;

&lt;p&gt;
As shown previously.
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-7" class="outline-3"&gt;
&lt;h3 id="sec-7"&gt;Comment lines&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-7"&gt;


&lt;p&gt;
Lines starting with &#8216;#&#8217; in column zero are treated as comments and will
never be exported. If you want an indented line to be treated as a comment,
start it with &#8216;#+ &#8217;. Also, entire subtrees starting with the word &#8216;COMMENT&#8217;
will never be exported. Finally, regions surrounded by &#8216;#+BEGIN_COMMENT&#8217;
&amp;hellip; &#8216;#+END_COMMENT&#8217; will not be exported.
&lt;/p&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-8" class="outline-3"&gt;
&lt;h3 id="sec-8"&gt;Images and Tables&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-8"&gt;


&lt;p&gt;
Table
&lt;/p&gt;
&lt;table  class="org-table" id="tbl-basic-data"&gt;
&lt;caption&gt;This is the caption for the next table (or link)&lt;/caption&gt;
&lt;colgroup&gt;&lt;col class="right" /&gt;&lt;col class="right" /&gt;&lt;col class="left" /&gt;&lt;col class="left" /&gt;&lt;col class="left" /&gt;
&lt;/colgroup&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th scope="col" class="right"&gt;Header 1&lt;/th&gt;&lt;th scope="col" class="right"&gt;Header 2&lt;/th&gt;&lt;th scope="col" class="left"&gt;Header 3&lt;/th&gt;&lt;th scope="col" class="left"&gt;Header 4&lt;/th&gt;&lt;th scope="col" class="left"&gt;Header 5&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td class="right"&gt;1.1&lt;/td&gt;&lt;td class="right"&gt;1.2&lt;/td&gt;&lt;td class="left"&gt;1.3&lt;/td&gt;&lt;td class="left"&gt;X&lt;/td&gt;&lt;td class="left"&gt;This &lt;i&gt;cell&lt;/i&gt; has a &lt;b&gt;very&lt;/b&gt; &lt;code&gt;long&lt;/code&gt; &lt;code&gt;line&lt;/code&gt; &lt;span style="text-decoration:underline;"&gt;with&lt;/span&gt;  &lt;sub&gt;special&lt;/sub&gt; &lt;sup&gt;layouts&lt;/sup&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="right"&gt;2.1&lt;/td&gt;&lt;td class="right"&gt;2.2&lt;/td&gt;&lt;td class="left"&gt;3.3&lt;/td&gt;&lt;td class="left"&gt;Y&lt;/td&gt;&lt;td class="left"&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td class="right"&gt;3.1&lt;/td&gt;&lt;td class="right"&gt;3.1&lt;/td&gt;&lt;td class="left"&gt;C.1&lt;/td&gt;&lt;td class="left"&gt;D.1&lt;/td&gt;&lt;td class="left"&gt;E.1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;



&lt;p&gt;
Image
&lt;/p&gt;
&lt;p&gt;
&lt;a href="../../../tips/2012/01/07_example-of-some-org-syntax/200px-Org-mode-unicorn.svg.png"&gt;&lt;img src="../../../tips/2012/01/07_example-of-some-org-syntax/org-mode-unicorn.png" alt="org-mode-unicorn.png"/&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-9" class="outline-3"&gt;
&lt;h3 id="sec-9"&gt;Literal examples&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-9"&gt;





&lt;pre class="example"&gt;Some example from a text file.
&lt;/pre&gt;



&lt;p&gt;
Here is an example
&lt;/p&gt;&lt;pre class="example"&gt;
Some example from a text file.
&lt;/pre&gt;





&lt;pre class="src src-emacs-lisp"&gt;(&lt;span style="color: #729fcf; font-weight: bold;"&gt;defun&lt;/span&gt; &lt;span style="color: #edd400; font-weight: bold;"&gt;org-xor&lt;/span&gt; (a b)
  &lt;span style="color: #888a85;"&gt;"Exclusive or."&lt;/span&gt;
  (&lt;span style="color: #729fcf; font-weight: bold;"&gt;if&lt;/span&gt; a (not b) b))
&lt;/pre&gt;



&lt;pre class="src src-emacs-lisp"&gt;&lt;span id="coderef-sc" class="coderef-off"&gt;&lt;span class="linenr"&gt;1:  &lt;/span&gt;(&lt;span style="color: #729fcf; font-weight: bold;"&gt;save-excursion&lt;/span&gt;&lt;/span&gt;
&lt;span id="coderef-jump" class="coderef-off"&gt;&lt;span class="linenr"&gt;2:  &lt;/span&gt;   (goto-char (point-min)))&lt;/span&gt;
&lt;/pre&gt;


&lt;p&gt;
In line &lt;a href="#coderef-sc" class="coderef" onmouseover="CodeHighlightOn(this, 'coderef-sc');" onmouseout="CodeHighlightOff(this, 'coderef-sc');"&gt;1&lt;/a&gt; we remember the current position.  &lt;a href="#coderef-jump" class="coderef" onmouseover="CodeHighlightOn(this, 'coderef-jump');" onmouseout="CodeHighlightOff(this, 'coderef-jump');"&gt;Line 2&lt;/a&gt;
jumps to point-min.
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-10" class="outline-3"&gt;
&lt;h3 id="sec-10"&gt;Special symbols&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-10"&gt;


&lt;p&gt;
Angles are written as Greek letters &amp;alpha;, &amp;beta; and &amp;gamma;.
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-11" class="outline-3"&gt;
&lt;h3 id="sec-11"&gt;Subscripts and superscripts&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-11"&gt;


&lt;p&gt;
The mass of the sun is M&lt;sub&gt;sun&lt;/sub&gt; = 1.989 x 10&lt;sup&gt;30&lt;/sup&gt; kg.  The radius of
the sun is R&lt;sub&gt;sun&lt;/sub&gt; = 6.96 x 10&lt;sup&gt;8&lt;/sup&gt; m.
&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="outline-container-12" class="outline-3"&gt;
&lt;h3 id="sec-12"&gt;links&lt;/h3&gt;
&lt;div class="outline-text-3" id="text-12"&gt;


&lt;ul&gt;
&lt;li&gt;outsite (page): &lt;a href="https://github.com/renard/o-blog"&gt;&lt;i&gt;o-blog&lt;/i&gt; home&lt;/a&gt;.
&lt;/li&gt;
&lt;li&gt;&lt;a href="#Creating-a-blog"&gt;Creating a blog&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;insite (file): &lt;a href="o-blog.el"&gt;o-blog.el&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;in page (anchor): &lt;a href="#sec-9"&gt;Literal examples&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;div id="footnotes"&gt;
&lt;h2 class="footnotes"&gt;Footnotes: &lt;/h2&gt;
&lt;div id="text-footnotes"&gt;
&lt;p class="footnote"&gt;&lt;sup&gt;&lt;a class="footnum" name="fn.1" href="#fnr.1"&gt;1&lt;/a&gt;&lt;/sup&gt; The link is: &lt;a href="http://orgmode.org"&gt;http://orgmode.org&lt;/a&gt;
&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
</content></entry>
</feed>
