Posts

Markdown with Vim, Emacs, Sublime Text 4 and Visual Studio Code

Image
1. Introduction. Abstract: How are four generalist editors, i.e., designed to be used with a wide range of programming languages and text files, performing when writing documents in Markdown language? This is the subject of this article based on my personal experiences in using Vim, Emacs, Sublime Text 4 and Visual Studio Code both directly and with extensions dedicated to the above mentioned markup language. 1. Introduction. 2. Vim and Markdown. 2.1. Vim without plugins . 2.2. Vim with the plugin vim-markdown. 2.3. Vim with the plugin UltiSnips. 2.4. Vim and Markdown preview. 3. Emacs and Markdown. 3.1. Emacs without plugins . 3.2. Emacs with markdown-mode . 3.3. Emacs and preview in Markdown. 4. Sublime Text 4 and Markdown. 4.1. Sublime Text 4 without plugins . 4.2. Sublime Text 4 with the plugin &qu

Reducing the size of single or multiple PDF documents in GNU/Linux Bash and Python

Image
1. The necessary condition. Abstract : Compression of PDF documents is a useful technique to reduce the space occupied by these files and facilitate their transmission and storage. In this article, starting from a page devoted to compressing single PDFs, I present two methods for compressing multiple PDF documents. The reference page is as follows: " Linux shell script to reduce PDF file size (simple verification required to enter) and allows you to operate on single PDFs in command-line bash code in the GNU/Linux terminal. Based on the previous one, I tried to extend the procedure to operate on multiple PDFs. In the end I present a simple application in Python with graphical interface. I admit that I asked for some help from ChatGPT and Copilot. Table of Contents: 1. The

Using Visual Studio Code to write scores in LilyPond.

Image
1. Previous articles on editors for LilyPond. title: "Using Visual Studio Code to write scores in LilyPond." date: 2024-02-11 slug: vscode-lilypond categories: Blog tags: VSCode LilyPond image: placement: 3 preview_only: false caption: 'LilyPond and Visual Studio Code' Abstract: Visual Studio Code is an excellent integrated environment for writing programming codes, but can it also be used as an editor for the LilyPond language dedicated to writing music? 1. Previous articles on editors for LilyPond. 2. Original Visual Studio Code or Code - OSS? 3. Installation of the VSLilyPond extension. 4. Using VSCode with the VSLilyPond plugin as an IDE for LilyPond. 5. Concluding remarks on VSCode as an IDE For LilyPond. 1. Previous articles on editors for LilyPond. On the

Automatic generation of hyperlinks in LaTeX environment, using Vim's Regular Expressions, between PDF documents.

Image
1. Subject of this article. Vim is an editor with endless capabilities. It can also generate hyperlinks in LaTeX language to other locally stored documents, thanks to its built-in Regular Expressions. For lawyers, this means linking a legal document with its related evidentiary materials. This is the analysis of the procedure. 1. Subject of this article. 2. Main document configuration. 3. RegEx formula for automatic link generation. 4. Explanation of the RegEx formula. 5. Management of "underline character". 6. Links within the text 6.1. "Indirect linkage" solution: 6.2. "Direct link" solution: 1. Subject of this article. Sometimes it is necessary to include in a main PDF document a list of documents to be retrieved with specific hyperlinks dedicated to each item in the list. For

From Text Objects in Vim to Text Blocks in Gutenberg for WordPress.

Image
1 Examples of “text objects” in Vim. 2 Examples of text blocks in Gutenberg. 3 Vim and Gutenberg together. 4 In conclusion. {{% toc %}} ## About Vim and Gutenberg . Vim is a command-line editor . Gutenberg for WordPress is a visual editor. Vim was created in 1987, as an evolution from the earlier Vi. Gutenberg has become the default editor for WordPress since version 5.0 of the CMS, released on November 27, 2018 . They are chronologically and structurally very distant writing tools. But despite the differences, there are also some similarities. Vim allows writing by treating text as an “object.” Gutenberg allows writing by treating text as a “block.” Vim’s “text objects” can be edited or moved “in bulk.” The same happens, of course, with Gutenberg’s “text blocks.” The principle of “block writing” has origins far back in time: Vim is the first example. Gutenberg the last. 1 Examples of “text objects” in Vim. Text objects ca

Linux: rename, rename.ul, prename, perl-rename: what a confusion!

Image
1 Summary of this article. 2 One for all: mv . 3 The rename command: this is where the problems begin! 4 How does the rename command behave that is NOT compatible with regular expressions? 5 The regular expressions compatible commands. 6 The “ sed ” command in GNU/Linux. 7 Using regular expression compatible commands. 1 Summary of this article. In this article I report some observations on how to rename documents in GNU/Linux using text commands, clarifying some differences between various distributions. The rename command does not, in fact, have unique behavior in distributions derived from Debian versus those derived from Fedora and Arch. I will try to clarify the content of different commands and the different behavior of commands that have the same name. All steps were personally tried during the writing of the article. If you find inaccuracies or errors, please let me know. 2 One for a