<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Orgmode on Shaka</title><link>https://shakaxi.github.io/tags/orgmode/</link><description>Recent content in Orgmode on Shaka</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 18 Feb 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://shakaxi.github.io/tags/orgmode/index.xml" rel="self" type="application/rss+xml"/><item><title>Beamer with Orgmode</title><link>https://shakaxi.github.io/posts/beamer_org/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/beamer_org/</guid><description>&lt;p&gt;&#10;Emacs&amp;#39;s builtin utility, orgmode can export an orgmode file to beamer slides. A &lt;a href="../beamer"&gt;template&lt;/a&gt; for beamer can be used directly.&lt;/p&gt;&#10;&lt;p&gt;&#10;In the export, text between a pair of stars will not be exported to boldface stuff as expected by default. Instead, it is colored by red as alert. Following settings can be placed in preamble to correct the behavior.&lt;/p&gt;&#10;&lt;div class="src src-latex"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-latex" data-lang="latex"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#cf222e"&gt;\setbeamercolor&lt;/span&gt;&lt;span style="color:#6639ba"&gt;{&lt;/span&gt;alerted text&lt;span style="color:#6639ba"&gt;}{&lt;/span&gt;fg=black&lt;span style="color:#6639ba"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#cf222e"&gt;\setbeamerfont&lt;/span&gt;&lt;span style="color:#6639ba"&gt;{&lt;/span&gt;alerted text&lt;span style="color:#6639ba"&gt;}{&lt;/span&gt;series=&lt;span style="color:#cf222e"&gt;\bfseries&lt;/span&gt;&lt;span style="color:#6639ba"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Export to HTML5 Slide</title><link>https://shakaxi.github.io/posts/org_ioslide/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/org_ioslide/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Introduction&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;As is well-known, &lt;a href="http://orgmode.org"&gt;orgmode&lt;/a&gt; is a famous major mode of &lt;a href="http://www.gnu.org/software/emacs/"&gt;Emacs&lt;/a&gt;. What deserves notice, it can export org files to a variety of formats, e.g. $\LaTeX$, pdf, text, freemind.&lt;/p&gt;&#10;&lt;p&gt;&#10;Today, I found an interesting export backend, &lt;code class="verbatim"&gt;ox-ioslide&lt;/code&gt;, whereby org files can be directly exported to html5 slides.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-2" class="outline-2"&gt;&#10;&lt;h2 id="headline-2"&gt;&#10;Installation&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-2" class="outline-text-2"&gt;&#10;&lt;p&gt;It can be easily installed via Emacs&amp;#39;s &lt;code class="verbatim"&gt;ELPA&lt;/code&gt; system.&lt;/p&gt;&#10;&lt;div class="src src-emacs-lisp"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-emacs-lisp" data-lang="emacs-lisp"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#953800"&gt;M-x&lt;/span&gt; &lt;span style="color:#953800"&gt;package-install&lt;/span&gt; &lt;span style="color:#953800"&gt;ox-ioslide&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;After that, the backend can be automatically loaded by adding the following line in &lt;code class="verbatim"&gt;.emacs&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="src src-emacs-lisp"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-emacs-lisp" data-lang="emacs-lisp"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;(&lt;/span&gt;&lt;span style="color:#6639ba"&gt;require&lt;/span&gt; &lt;span style="color:#032f62"&gt;&amp;#39;ox-ioslide&lt;/span&gt;&lt;span style="color:#1f2328"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Link in Orgmode</title><link>https://shakaxi.github.io/posts/org_link/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/org_link/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Introduction&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;&lt;a href="http://orgmode.org"&gt;Orgmode&lt;/a&gt; is an extremely powerful tool for get thing done (GTD), project planning, note keeping, etc.&lt;/p&gt;&#10;&lt;p&gt;&#10;Orgmode makes it fairly easy to insert, edit, and reference to a variety types of links.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-2" class="outline-2"&gt;&#10;&lt;h2 id="headline-2"&gt;&#10;Format&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-2" class="outline-text-2"&gt;&#10;&lt;p&gt;The general format for a link looks like &lt;code class="verbatim"&gt;[[link][description]]&lt;/code&gt; or &lt;code class="verbatim"&gt;[[link]]&lt;/code&gt;. If the description is a file name or URL that points to an image, HTML export will inline the image as a clickable button. If there is no description and the link points to an image, the image will be inlined into the exported HTML file.&lt;/p&gt;&#10;&lt;div id="outline-container-headline-3" class="outline-3"&gt;&#10;&lt;h3 id="headline-3"&gt;&#10;Internal links&#10;&lt;/h3&gt;&#10;&lt;div id="outline-text-headline-3" class="outline-text-3"&gt;&#10;&lt;p&gt;An internal link is used to mark an object and assign it a number. The marked object can be referenced by links pointing to it. Particularly, links without description appear as the number assigned.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;An entry with the &lt;code class="verbatim"&gt;CUSTOM_ID&lt;/code&gt; property of &lt;code class="verbatim"&gt;my-custom-id&lt;/code&gt; can be referenced to as &lt;code class="verbatim"&gt;[[#my-custom-id]]&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;code class="verbatim"&gt;[[My Target]]&lt;/code&gt; or &lt;code class="verbatim"&gt;[[My Target][Find my target]]&lt;/code&gt; leads to a text search in the current file for the corresponding target &lt;code class="verbatim"&gt;&amp;lt;&amp;lt;My Target&amp;gt;&amp;gt;&lt;/code&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-4" class="outline-3"&gt;&#10;&lt;h3 id="headline-4"&gt;&#10;Targeted links&#10;&lt;/h3&gt;&#10;&lt;div id="outline-text-headline-4" class="outline-text-3"&gt;&#10;&lt;p&gt;File links can contain additional information for more precise jumping, which can be a line number or a search option after a double colon.&lt;/p&gt;&#10;&lt;table&gt;&#10;&lt;thead&gt;&#10;&lt;tr&gt;&#10;&lt;th&gt;Link&lt;/th&gt;&#10;&lt;th&gt;Target&lt;/th&gt;&#10;&lt;/tr&gt;&#10;&lt;/thead&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;[[file:/path/to/filename::9]]&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Line 9 of the target file.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;[[file:/path/to/filename::My Target]]&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Find &lt;code class="verbatim"&gt;&amp;lt;&amp;lt;My Target&amp;gt;&amp;gt;&lt;/code&gt; in the target file.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;[[file:/path/to/filename::*My Target]]&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Find headline &lt;code class="verbatim"&gt;My Target&lt;/code&gt; in the target file.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;[[file:/path/to/filename::#my-custom-id]]&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Find entry with the &lt;code class="verbatim"&gt;CUSTOM_ID&lt;/code&gt; property of &lt;code class="verbatim"&gt;my-custom-id&lt;/code&gt;.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;[[file:/path/to/filename::/regexp/]]&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Find regular expression &lt;code class="verbatim"&gt;regexp&lt;/code&gt; in the target file.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Table in Orgmode</title><link>https://shakaxi.github.io/posts/org_tab/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/org_tab/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Introduction&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;&lt;a href="http://orgmode.org"&gt;Orgmode&lt;/a&gt; provides a minor mode &lt;em&gt;orgtbl-mode&lt;/em&gt;, which makes table creating and editing extremely easy.&lt;/p&gt;&#10;&lt;p&gt;&#10;Any line with &lt;code class="verbatim"&gt;|&lt;/code&gt; as the first non-whitespace character is treated as a part of a table. &lt;/p&gt;&#10;&lt;p&gt;&#10;The fastest way to create a table is to directly type &lt;code class="verbatim"&gt;|Column1|Column2|Column3&lt;/code&gt; followed by &lt;code class="verbatim"&gt;C-c RET&lt;/code&gt;. Then a 3-column table will be created immediately, with the head of &lt;code class="verbatim"&gt;Column1&lt;/code&gt;, &lt;code class="verbatim"&gt;Column2&lt;/code&gt;, and &lt;code class="verbatim"&gt;Column3&lt;/code&gt; respectively.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-2" class="outline-2"&gt;&#10;&lt;h2 id="headline-2"&gt;&#10;Keybinding&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-2" class="outline-text-2"&gt;&#10;&lt;table&gt;&#10;&lt;thead&gt;&#10;&lt;tr&gt;&#10;&lt;th&gt;Keybinding&lt;/th&gt;&#10;&lt;th&gt;Functionality&lt;/th&gt;&#10;&lt;/tr&gt;&#10;&lt;/thead&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;C-c&lt;/code&gt; |&lt;/td&gt;&#10;&lt;td&gt;Convert the active region to a table.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;C-c SPC&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Clear the current cell.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;C-c C-c&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Re-align the table.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;TAB&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Re-align the table move to the next column.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;S-TAB&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Re-align the table move to the previous column.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-a&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Move the beginning of the current cell, or on to the previous cell.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-e&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Move the end of the current cell, or on to the next cell.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;RET&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Re-align the table and move to the next row.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-left/right&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Move the current column left/right.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-up/down&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Move the current row up/down.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-S-left&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Kill the current column.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-S-up&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Kill the current row.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-S-right&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Insert a new column to the right.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;M-S-down&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Insert a new row above.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;C-c -&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Insert a horizontal line below.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;C-u C-c -&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Insert a horizontal line above.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;C-c +&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;Sum the numbers in the current column, or a active region.&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-3" class="outline-2"&gt;&#10;&lt;h2 id="headline-3"&gt;&#10;Alignment and width&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-3" class="outline-text-2"&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code class="verbatim"&gt;&amp;lt;l&amp;gt;&lt;/code&gt;, &lt;code class="verbatim"&gt;&amp;lt;r&amp;gt;&lt;/code&gt;, and &lt;code class="verbatim"&gt;&amp;lt;c&amp;gt;&lt;/code&gt; can align the column at point to the left, right, and center respectively.&lt;/li&gt;&#10;&lt;li&gt;&lt;code class="verbatim"&gt;&amp;lt;N&amp;gt;&lt;/code&gt; can fix the width of the column at point to &lt;code class="verbatim"&gt;N&lt;/code&gt; characters.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-4" class="outline-2"&gt;&#10;&lt;h2 id="headline-4"&gt;&#10;Reference&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-4" class="outline-text-2"&gt;&#10;&lt;table&gt;&#10;&lt;thead&gt;&#10;&lt;tr&gt;&#10;&lt;th&gt;Symbol&lt;/th&gt;&#10;&lt;th&gt;Reference&lt;/th&gt;&#10;&lt;/tr&gt;&#10;&lt;/thead&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;@r&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;r-th row&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;$c&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;c-th column&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;@r$c&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;The cell in r-th row c-th column&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;@r1..@r2&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;The rows from r1 to r2&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code class="verbatim"&gt;$c1..$c2&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;The columns from c1 to c2&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Tikz in Orgmode</title><link>https://shakaxi.github.io/posts/org_tikz/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/org_tikz/</guid><description>&lt;p&gt;&#10;Tikz/pgf is an excellent $\LaTeX$ package to draw pictures. It can be used in Emacs &lt;code class="verbatim"&gt;org mode&lt;/code&gt;. An example can be provided as follows.&lt;/p&gt;&#10;&lt;div class="verse-block"&gt;&#10;&lt;div class="src src-latex"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-latex" data-lang="latex"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#cf222e"&gt;\begin&lt;/span&gt;&lt;span style="color:#6639ba"&gt;{&lt;/span&gt;tikzpicture&lt;span style="color:#6639ba"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; tikz statements;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#cf222e"&gt;\end&lt;/span&gt;&lt;span style="color:#6639ba"&gt;{&lt;/span&gt;tikzpicture&lt;span style="color:#6639ba"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item></channel></rss>