<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Org on Shaka</title><link>https://shakaxi.github.io/tags/org/</link><description>Recent content in Org on Shaka</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 29 Feb 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://shakaxi.github.io/tags/org/index.xml" rel="self" type="application/rss+xml"/><item><title>CDLaTeX</title><link>https://shakaxi.github.io/posts/cdlatex/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/cdlatex/</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;code class="verbatim"&gt;CDLaTeX&lt;/code&gt;&lt;sup class="footnote-reference"&gt;&lt;a id="footnote-reference-1" href="#footnote-1"&gt;1&lt;/a&gt;&lt;/sup&gt; is a minor mode for fast $\LaTeX$ environment and macro insertion&lt;sup class="footnote-reference"&gt;&lt;a id="footnote-reference-2" href="#footnote-2"&gt;2&lt;/a&gt;&lt;/sup&gt;. In this sense, its functionalities are very similar to &lt;code class="verbatim"&gt;AUCTeX&lt;/code&gt;&lt;sup class="footnote-reference"&gt;&lt;a id="footnote-reference-3" href="#footnote-3"&gt;3&lt;/a&gt;&lt;/sup&gt;. What&amp;#39;s more, some of its convenience provided are also covered by AUCTeX.&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;The package of &lt;code class="verbatim"&gt;cdlatex&lt;/code&gt; is available at &lt;code class="verbatim"&gt;melpa&lt;/code&gt;, which can be easily installed.&lt;/p&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;Configuration&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-3" class="outline-text-2"&gt;&#10;&lt;p&gt;If &lt;code class="verbatim"&gt;AUCTeX&lt;/code&gt; is installed, &lt;code class="verbatim"&gt;CDLaTeX&lt;/code&gt; can be activated on top of it via&lt;/p&gt;&#10;&lt;div class="src src-emacs"&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" data-lang="emacs"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;(&lt;/span&gt;&lt;span style="color:#953800"&gt;add-hook&lt;/span&gt; &lt;span style="color:#032f62"&gt;&amp;#39;LaTeX-mode-hook&lt;/span&gt; &lt;span style="color:#032f62"&gt;&amp;#39;turn-on-cdlatex&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;p&gt;Otherwise, &lt;code class="verbatim"&gt;CDLaTeX&lt;/code&gt; can be directly turned on with latex mode, i.e.,&lt;/p&gt;&#10;&lt;div class="src src-emacs"&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" data-lang="emacs"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;(&lt;/span&gt;&lt;span style="color:#953800"&gt;add-hook&lt;/span&gt; &lt;span style="color:#032f62"&gt;&amp;#39;latex-mode-hook&lt;/span&gt; &lt;span style="color:#032f62"&gt;&amp;#39;turn-on-cdlatex&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 id="outline-container-headline-4" class="outline-3"&gt;&#10;&lt;h3 id="headline-4"&gt;&#10;Org&#10;&lt;/h3&gt;&#10;&lt;div id="outline-text-headline-4" class="outline-text-3"&gt;&#10;&lt;p&gt;In &lt;code class="verbatim"&gt;org&lt;/code&gt; mode, instead of &lt;code class="verbatim"&gt;CDLaTeX&lt;/code&gt; itself, its light version &lt;code class="verbatim"&gt;org-cdlatex-mode&lt;/code&gt; should be used, which depends on &lt;code class="verbatim"&gt;cdlatex.el&lt;/code&gt; (in package &lt;code class="verbatim"&gt;CDLaTeX&lt;/code&gt;) and &lt;code class="verbatim"&gt;texmathp&lt;/code&gt; (in package &lt;code class="verbatim"&gt;AUCTeX&lt;/code&gt;). To automatically turn it on in a &lt;code class="verbatim"&gt;org&lt;/code&gt; file, add the following line in the emacs configuration file, e.g., &lt;code class="verbatim"&gt;~/init.el&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="src src-emacs"&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" data-lang="emacs"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;(&lt;/span&gt;&lt;span style="color:#953800"&gt;add-hook&lt;/span&gt; &lt;span style="color:#032f62"&gt;&amp;#39;org-mode-hook&lt;/span&gt; &lt;span style="color:#032f62"&gt;&amp;#39;turn-on-org-cdlatex&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;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item></channel></rss>