Pages

2021 on Linux Terminal

Here is a bash script which can be used to create the text 2021 on the terminal using any characher of your choice.



Copy the script and save it as 2021.sh. Open a terminal and type

It will prompt for the characher which should be used. We have entered "*" as the characher, and you should see the output as shown below.

Extracting images from a PDF

To extract images from a pdf document we can use the command



The syntax to use the command is



The above command will extract the images from page number 1 to page number 4 and the name of the images will be image-000.ppm ,image-001.ppm etc. The default format is ppm if the format of the file is to be changed, png option can be passed.



The above command will extract the images in the png format.

Package inputenc Error: Unicode character Σ (U+03A3) (inputenc) not set up for use with LaTeX.

Running Pdflatex with math symbols not put inside proper math block can throw this error



In the above message the sigma symbol is being used outside the math block as shown below.

The solution is to put the equation into the math block, so surround the text with $ symbols and use the sum command which is the latex for sigma.



The error should not apper now on the usage of pdflatex .