Franco Pasut Web Site

  • it
  • About
  • Contact
  • Posts
  • Privacy

Posts

May 26, 2024

Extract a list of files from a folder and paste it into a document, in MS Windows, GNU/Linux and macOS.

Article on how to copy a list of files in a folder and paste the list into an open document. The operation is performed only with resources internal to the tested operating systems, which are MS Windows, GNU/Linux (Arch, Fedora and Ubuntu) and macOS, although in the last one, only in command-line mode.

  • 1. Topic of this article.
  • 2. Command line solution in MS Windows.
  • 3. Command-line solution in GNU/Linux and macOS.
  • 4. Graphical solution in Windows with File Explorer.
  • 5. Graphical solution in Linux with File Manager.

1. Topic of this article.

Have you ever had a folder on your computer full of files and need to insert the list of those files in a page you are editing?

read more
April 26, 2024

A Python program to copy text from various PDFs and collect it into a single document in Markdown language.

  • 1. Subject of this article.
  • 2. Python source analysis.
  • 3. The full source code in Python.

1. Subject of this article.

The goal is to generate a simple program to collect the text contained in various PDFs generated directly from word processing programs and insert the various fragments into a single document in Markdown language by separating the fragments with second-level headings corresponding to the name of the source documents.

read more
April 12, 2024

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

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 “MarkdownEditing”.
    • 4.3. Sublime Text 4 and preview in Markdown.
  • 5. Visual Studio Code and Markdown.
    • 5.1. VSCode without plugins
    • 5.2. VSCode with the plugin “Markdown All in One”.
  • 6. In summary.

1. Introduction.

Markdown is a simple markup language that is within anyone’s reach, compatible with HTML, and allows very elegant, well-formatted text to be written for both web and print publication.

read more
March 9, 2024

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

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.

read more
February 11, 2024

Using Visual Studio Code to write scores in LilyPond.

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 subject of writing musical scores using LilyPond, a markup language equivalent to LaTeX for lyrics, I recall my previous articles devoted to Emacs and Vim, respectively:

read more
January 8, 2024

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

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.

read more
  • ««
  • «
  • 2
  • 3
  • 4
  • 5
  • 6
  • »
  • »»
© Franco Pasut Web Site 2026