Posts

Showing posts from September, 2021

Vim, Markdown, Snippets, UltiSnips: how to get a well-formatted link with a single command

Image
Vim, Markdown, Snippets, UltiSnips: how to get a well-formatted link with a single command Table of Contents 1. Objective of this post 2. An interesting solution found on the net 3. My solution 4. A simple animation 1 Objective of this post The objective of this post is to get a correctly formatted link in Markdown by merging in a single command a fragment of text and an Internet address previously saved in the Vim clipboard. Of course I assume that everybody that's reading this post knows how to create a well formatted link in Markdown, i.e. text in square brackets and URL in round brackets. Why did I ask myself this question? Very simple: I noticed that in "the-other-side-of-the-moon-called-Emacs" the link construction from a region (i. e. a selected text) is immediately available (markdown-mode, C-c C-l ) whereas in the honza list, which is used by Vim UltiSnips plugin, the same function is not among the presets.

Emacs, Expand-region and LaTeX

Image
Emacs, Expand-region and LaTeX Table of Contents 1. Emacs and text objects 2. Expand-region and LaTeX 3. Video clips about LaTeX and expand-region 4. Evil: i.e. Vim within Emacs 1 Emacs and text objects In composite documents there are often text fragments within well-defined semantic elements: parentheses of various kinds, single or double inverted commas, trailing commas, etc. In some text editors (Vim, in particular) they're called " text objects ". Emacs can handle these text blocks with a package called Expand-region that " increases the selected region by semantic units (original definition from the programmer's GitHub page): parenthesis, brackets, quotes, sentences and other objects ". To install the package, please read the programmer's instructions . Although the package also works in generic text documents, it must be used, for optimal performance, inside one of the language modes listed in the

LaTeX, LilyPond and lyluatex package: state-of-the-art text and music typesetting

Image
LaTeX, LilyPond and lyluatex package: state-of-the-art text and music typesetting Table of Contents 1. LaTeX and LilyPond 2. Prerequisites for understanding this article 3. The LilyPond official solution 4. The single command solution: lyluatex package 5. INLINE EXAMPLE: 6. BLOCK CODE EXAMPLE: 1 LaTeX and Lilypond LaTeX is a " state-of-the art" pagination system for text, maths and more. LilyPond is the same for musical scores. LaTeX and LilyPond together are a true excellence to mix music notation and text within same documents. But it is not so easy to generate documents by using that combination of markup languages. This post is intended as a simple introduction to start using LaTeX and LilyPond in documents containing text and music notation. 2 Prerequisites for understanding this article In order to understand the content of this article, it is of course necessary to know the markup languages it deals with: