dinsdag 21 maart 2017

How to run TeX from the command line interface in Linux

  • pdflatex [options] filename.tex
  • latex [options] filename.tex
  • xelatex [options] filename.tex

dinsdag 14 maart 2017

Find als Find and Replace

Neem bijvoorbeeld dit rijtje:

1. Understanding and Installing QGIS
-
1.1 Overview of QGIS features
-
1.2 Understanding the types of QGIS installs
-
1.3 Installing QGIS
-
1.4 Exploring the QGIS browser
-
2. Vector Data with QGIS
-
2.1 Understanding types of vector data in QGIS
-
2.2 Adding shapefiles to QGIS
-
2.3 Adding WFS data to QGIS
-
3. Raster Data with QGIS
-
3.1 Exploring types of raster data in QGIS
-
3.2 Adding ECW data

En je wilt dat de streepjes aan het begin van elke lijn niet bold zijn.
Je gebruikt dan Find -/ Find all/ en gebruik dan de dikgebruikte B om de streepjes
niet dikgedrukt te maken.

vrijdag 24 februari 2017

Een goede pdf maken van Volkskrant artikel

Als je een goede pdf wilt maken van een Volkskrant artikel, moet je als volgt te werken gaan. Open de Volkskrant pagina, waar je een pdf van wilt maken. Open vervolgens Firebug (een extension) en delete de header. Want het is de header die moeilijkheden veroorzaakt wanneer je een pdf van een pagina wilt maken.

Je moet de hele header weghalen.

zaterdag 7 januari 2017

How to enable a disabled printer

lpstat -p (this gives information about the printer)

printer DeskJet_845C disabled since Sun 08 Jan 2017 08:36:51 AM CET -
Rendering completed
printer PDF is idle.  enabled since Wed 02 Dec 2015 06:39:46 PM CET

Now run the following command:
sudo cupsenable DeskJet_845C

and you will be fine.

sudo hp-setup -i

sudo apt install hplip libsane-hpaio

vrijdag 23 december 2016

How to select files in a directory with the boolean operator AND

I want to select (find/grep/ls) certain files in a directory starting with certain words and ending with a certain extension. Example:
  • bluebelt_hans_hoff.jpg
  • bluebelt_hans_hoff.JPEG
  • bluebelt_peter_gort.jpg
  • bluebelt_peter_gort.JPEG
I only want the files starting with "bluebelt" AND ending with only the ".jpg" extension (and not the JPEG extension). How to do this on the commandline?

Answer:  ls bluebelt* | grep .jpg

donderdag 22 december 2016

Index in LaTeX: dit spreekt voor zichzelf.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{imakeidx}
\makeindex[columns=3, title=Alphabetical Index, intoc]
 
\begin{document}
 
\tableofcontents
 
\section{Introduction}
In this example several keywords\index{keywords} will be 
used which are important and deserve to appear in the 
Index\index{Index}.
 
Terms like generate\index{generate} and some\index{others} 
will also show up. Terms in the index can also be 
nested \index{Index!nested}
 
\clearpage
 
\section{Second section}
This second section\index{section} may include some special 
word, and expand the ones already used\index{keywords!used}.
 
\printindex
\end{document}

dinsdag 6 december 2016

How to delete empty lines in LibreOffice

There is a way to delete empty lines in LibreOffice with regex. 
It is this command: ^$
But sometimes this doesn't work. Because the above mentioned command actually deletes a paragraph and not a line.
What to do in a case like this one:

Marco Borsato
Wat is mijn hart

De Dijk

Niemand in de stad

The above mentioned command doesn't work and doesn't erase the line between the two texts.

What you need to do, is to clear formatting.
Also make sure that after clearing lines, there are no spaces left at the beginning of the lines.

Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.