Posts

Four text commands in GNU/Linux, MS Windows, and, with a bit of nostalgia, MS-DOS.

Image
Table of Contents 1. Does it still make sense to perform operations via the command line? 2. How do you open a command terminal? 3. The “cd” command. 4. The “ls” and “dir” commands. 5. The “cp” command. 6. The “rm” command. 7. In conclusion. 1. Does it still make sense to perform operations via the command line? Talking about the command line in today's operating systems might seem a bit vintage, as if the topic were a historical remnant of the first personal computers of the 1980s. In reality, even today, the command line is an extraordinarily efficient resource, despite the most modern graphical interfaces. MS-DOS was my first operating system back when “windows” had not yet been invented. To write this article, I recovered from my paper library an old book published in 1989 dedicated to MS-DOS, in which I found my underlinings from that time. Graphical systems have made everything easier but not faster . The advantage of text commands over thei...

LibreOffice Writer and non-sequential page numbering.

Image
Table of Contents 1. Subject of the article. 2. How to insert a page number other than 1. 3. Change the page number when inserting a page break. 4. The common denominator. 1. Subject of the article. LibreOffice is an open source, multi-platform suite for document processing. Great for writing, calculating, drawing, and much more. The reference page in English can be found at this page . Writer is the module of the Suite dedicated to word processing. This article is not a tutorial on how to use the LibreOffice Writer module, for which there are numerous pages on the internet, but focuses on a specific feature that, although perfectly efficient, initially caused me some confusion: non-sequential page numbering . I would therefore like to share some considerations that may be useful. 2. How to insert a page number other than 1. The first difficulty came when I had to change the numbering of the first page of a document by inserting a number othe...

MS Windows: xcopy and robocopy with mentions of batch procedures and rsync.

Image
Table of Contents 1. Copy and Paste: the universal method. 2. A short introduction to the Command Line in MS Windows. 3. Two integrated command-line solutions: xcopy and robocopy. 4. Basic scheme and some options, among many, of the robocopy command. 5. Robocopy and batch procedures. 6. Robocopy and Rsync. 7. FreeFileSync 1. Copy and Paste: the universal method. To transfer files from one folder to another folder we usually use “copy and paste.” The “universal method” is “copy and paste”: we all know how it works and it is certainly simple and straightforward. But is it also the most efficient method? If there were some documents already previously transferred and others to be transferred, it would be necessary to manually select those to be transferred before doing the “copy and paste,” and this operation could be particularly time-consuming. In cases like these, more efficient solutions should be sought. These solutions exist but are somewhat hidden...

Study on an example of integration between Python and LaTeX

Image
Table of Contents 1. Subject of this article. 2. Description of the steps without using Python. 3. Python file content. 4. Program analysis. 5. Source in LaTeX generated by Python. 6. To try the program. 1. Subject of this article. I am not a computer scientist but I have been using LaTeX for over ten years to write court documents. Only a few months ago I started to follow some tutorials on programming with Python. I immediately wondered if LaTeX and Python could interact with each other. So I asked Gemini to generate a source in Python for that purpose. The structure of the program in Python is as follows: an array consisting of 5 columns and 10 rows of random numbers is generated, and a LaTeX language document containing the newly generated array is created. Although the code is generated by Gemini, the observations and analysis are my own. The study was fully conducted on GNU/Linux operating systems , mostly Arch Linux. 2. Description ...

LaTeX with Sublime Text and LaTeXools.

Image
ABSTRACT An article illustrating the use of Sublime Text for creating complex documents, with a focus on legal briefs written in LaTeX. INDEX 1. This article is about LaTeX and Sublime Text. 2. The bad news: LaTeXTools is out of date. 3. Placeholders and Variables. 4. Multiple cursors. 5. Paste lists of documents copied from folders. 6. Create and use bookmarks. 7. Persistence of open documents. 8. Snippet for the creation of Sections. 9. A useful little “script”. 10. Compilation, viewers and other commands. 11. Conclusion. 1. This article is about LaTeX and Sublime Text. The outstanding typographic quality of LaTeX cannot be doubted. To manage complex documents in LaTeX, however, one needs to use editors that allow one to quickly perform a number of operations including: Quickly jumping between the titles of the various levels of sections. Quickly compile variables and other related data by jumping between preset bookmarks, Quickly compil...

Vim, Sublime Text, Visual Studio Code and the multiple cursors.

Image
ABSTRACT Article on comparative handling of multiple cursors in Sublime Text, Visual Studio Code and Vim. 1. Multiple cursors? Multi-cursors? What are we talking about? 2. Who "invented" multiple cursors? 3. Multiple cursors in Sublime Text 3 and 4. 4. Multiple cursors in Visual Studio Code. 5. Comparison of Sublime Text and Visual Studio Code. 6. Vim and the built-in multiple editing functions. 7. Effective multi cursors also on Vim. 1. Multiple cursors? Multi-cursors? What are we talking about? What are multiple cursors? An example is worth more than many words: imagine that you have a list consisting of a hundred lines and you have to insert a certain characters, for example a pair of asterisks, at the beginning and at the end of each term in the list. Try performing the operation manually a hundred times and then measuring the time spent! Now imagine, instead, entering those characters once for all the rows but using a hundred or so cursors si...

Vim and snippet lists for UltiSnips and other plugins.

Image
ABSTRACT Article about the different collections of snippets designed for different plugins of Vim and the possibility of converting from type of format to another. 1. Preamble 2. Steps for using snippets 3. Local custom snippets. 4. Honza : Why two different collections of snippets ? 5. Overview of both collections. 6. Is it possible to "mix" the snippets of the two collections? 1. Preamble In the article "Vim, UltiSnips and Honza vim-snippets: difference and management of the snippets and UltiSnips folders" I have already covered the topic of snippets and UltiSnips for Vim: This article is a refinement of the previous one, especially from the aspect of syntactic differences and the possibility of "mixing" together various code fragments from the collections of snippets . 2. Steps for using snippets For the introduction part about UltiSnips and Honza vim-snippets I refer to my previous article mentioned above. I briefly...