Reduce PDF size

Here is a bash script that reduces the size of a PDF file provided as an argument.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/bash
# PP 29/08 …
more ...

Ambient occlusion-like with PyMOL

QuteMol allows production of nice realistic molecular pictures. PyMOL could do similar things albeit results are not strictly equivalent. Here is an example taken from the PyMOL wiki that produced the picture above.

fetch 1BTA
set_color oxygen, [1.0,0.4,0.4]
set_color nitrogen, [0.5,0.5,1 …
more ...

LaTeX conditions

In a LaTeX document, conditions regarding the compilation of specific portions of the text could be included

The \ifthenelse instruction provided by the ifthen package is a solution to deal with conditions but it is quite sensitive and does not handle the verbatim environment nor the \verb command.

Getting back …

more ...