Posts

Showing posts from March, 2018

From spreadsheets to LaTeX tables

Image
Definition of the target You've a table with some columns and rows (in the example: four columns and six rows) in a spreadsheet. You need to transpose the table in a LaTeX document. Yes, I know! You could use the features of an IDE to add speedly everything you need. But considering that we are inside a worksheet, why not use the column management functions of the worksheet itself? To reach the target directly from the spreadsheet, you can proceed in three steps. The first step is entirely inside the spreadsheet. The second one consist of the transfer of the prepared data to the LaTeX document. The third is the completion of the code in LaTeX.

Quickly enter data in legal documents with bookmarks in Vim

Image
A working scenario: legal acts with preset data In a legal act there are standard data used in many documents: name of the lawyer, name of the claimant, place of the court of justice, date of the hearing, etc. So, to save time, it is useful to have a system to upload data into the document once and to use them whenever you need during the preparation of the document. LaTeX is an excellent system to write legal acts. And one of the most effective tools for writing LaTeX code is Vim . Create a Vim document with bookmarks Vim has a native command to set bookmarks: the mark command. In the simplest way you can set a bookmark in Vim by pressing, in Normal Mode, the key m followed by a letter. An elementary example could be the combination: ma that create the a bookmark. You can put this bookmark wherever you want in the document. So you can put a bookmark, for example, where you need to enter data in a legal act: ma for the name of the defendant, mb for the name or the claima

LaTeX: create and use variable names

Image
latex_variable.html Why we talk about variables in LaTeX? I use LaTeX to write legal documents. Legal documents are full of names and data that can be entered several times. I need a system to enter the names and the recurrent data only once in the act, both to avoid wasting time rewriting the same things and to reduce the risk of typing errors. The solution is the newcommand command.