Posts

Showing posts from December, 2022

Converting from Org Mode to Markdown GFM

Image
Converting from Org Mode to Markdown GFM Table of Contents 1. Does it make sense to talk about Org Mode instead of Markdown? 2. The export problems 3. Some examples to make it clearer 4. The solution: export from Org-Mode to Markdown via Pandoc with GFM option. 5. The special case of exporting code blocks. 1. Does it make sense to talk about Org Mode instead of Markdown? Why should I use Org-Mode to write articles to be published network in Markdown format? Wouldn't it be more convenient to write the articles directly in Markdown? The question is more than justified and the answer is not obvious. First, let me remind you that Org-Mode is a mode of GNU/Emacs. While there are various plugins for other editors, including Vim, none of them can match the outstanding efficiency of the original system. So: to write in Org-Mode, it's best to must use GNU/Emacs. Org-Mode is a complete and extremely powerful structured writing system, alth

Vim - VimTex, Emacs - AucTeX: create environments in empty fields

Image
Table of Contents 1. Subject of this post 2. Add environment tags in LaTeX to empty objects using Vim 3. Add environment tags in LaTeX to empty text using Emacs and AucTeX 4. Vim vs Emacs, or VimTeX vs AucTeX 1. Subject of this post This post is a follow-up to my previous one named " Vim, VimTex: environments and commands in LaTeX " in which I described the creation of environment tags in the LaTeX language through Vim's "surround.vim" plugin. Specifically, I described how to add environment tags to words and lines objects non-empty , that is, starting from already existing text. If you need a reminder about the concept of "line" in Vim, you can refer to this article of mine: "What is intended by "line" in Vim? How to configure a dual alternate mode of movement between lines? " Here I will add some considerations about tags for environments in LaTeX by using Vim, but now in empty objects , that is,

About Vim and the Global Command

Image
Vim and the Global Command: basic structure This post is not a complete review of Vim's Global Command but is just a series of personal observations on it. You can find a good review, written by those who know much more about it than I do, on this page . With the “Global Command” of Vim ( g ) you can replicate various ex-commands on multiple lines. The basic structure of the Global Command is very simple: :g/pattern/command , meaning: : activates the “command mode”. g activates the “global command”. /pattern/ is the “search zone” for matching patterns in the document. /command/ is the command applied to the entire lines where the results are. The basic structure is, therefore, biphasic: an initial search phase and a command phase. To demonstrate how this structure works, let’s assume the existence of the following lines: abc def ghi jkl mno If you want to delete the line containing the “a” letter, you can use the following command :g/a/d in which: : is th