Franco Pasut Web Site

  • it
  • About
  • Contact
  • Posts

Posts

September 21, 2023

Two open-source solutions for framing images

What is the topic of this article?

In this article, I describe two simple methods for decorating both single and multiple images with an outline frame, using two open-source resources in the GNU/Linux operating environment.

The first solution uses a graphics application. The second, on the other hand, is command-line.

Adding a frame to images is very useful in excerpts of documents published on sites and blogs.

In these cases, in fact, adding a border serves to “detach” documents published as images from the base document in which they are published.

read more
August 11, 2023

LaTeX: some considerations on font size

LaTeX: class definition, standard classes and font sizes.

In LaTeX, the term “class” refers to a predefined or custom document type that determines the general layout, style, and options available for formatting a document.

The classes in LaTeX are identified by the file extension .cls and provide the basic instructions for document structure.

The main features of a class in LaTeX relate to the page format as well as the style of the title, of the sections and text.

read more
June 26, 2023

Powerful OCR system under GNU/Linux for PDF documents managed from command line and with refinement by Vim.

Introduction.

The idea came from reading this article about optical character recognition (OCR) in the GNU/Linux environment from images and PDF, managed from the command line.

Obviously, PDF documents are those scanned from paper original, i.e., not obtained by direct saving of document in digital format. For the latter, no OCR is needed.

The article is very well written and the end result is very good.

I wondered if it would be possible to aggregate all the steps into a single text command.

read more
May 7, 2023

Notes on resolving differences between two documents with the built-in resources of Vim and Emacs

What are we talking about?

In this article, I report my practical experience on how to use the built-in resources of Vim and Emacs to resolve and undo differences between two documents.

In fact, I’ve occasionally updated two documents in such a “messy” way that I could no longer remember which updates to keep on one and the other.

Both Vim and Emacs offer very simple and effective built-in tools for checking and resolving such differences.

read more
April 25, 2023

Emacs, portable self-installing configuration with "use-package" and "straight"

Emacs, use-package and straight in short.

Emacs uses the GNU ELPA (Emacs Lisp Package Archive) for updating installed packages.

MELPA (Milkypostman’s Emacs Lisp Package Archive) is, on the other hand, an unofficial manager with numerous other packages and must be installed by following the directions on this page.

The original methods for installing packages are as follows:

  • M-x package-install <RET> package-name <RET>
  • M-x package-list-packages <RET> followed by i on the desired packages and x for the actual installation of the selected packages.

To update packages you open the package-list above and press U followed by x.

read more
March 11, 2023

About LaTeX, standalone, PDF and PNG

LaTeX and the document format

As, of course, you all already know (:smiley:), LaTeX is a language dedicated to the typesetting of documents with state-of-the-art quality.

It is, therefore, unnecessary to note that the basics of LaTeX can be learned in about 30 minutes, as illustrated in this page.

For the purposes of this article, it is sufficient to recall that sources in LaTeX are composed of a preliminary part, also called the preamble, and the document with the contents.

read more
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
© Franco Pasut Web Site 2025