Projects

Sometimes I fancy developing some projects. Whenever I think a project could be of someones use, I list it here.

imgresize

is a small python script which resizes/scales images passed as arguments. The scaling factor is specified by the parameter -s. Furthermore you can convert images into another file format using the option -c.

download: imgresize (1.1 KB)

textable

is a small AWK script, that reads in an ASCII table and outputs Latex code thereof. I used the script to include benchmark data of my thesis project in my final report and it proved itself quite handy. The script is not very flexible, but the code is easy to understand, so you can change it with almost no effort.
The script assumes, that the first row of the ASCII file contains a description of table columns. This description will be formated in bold face. All other columns are printed as-is. A whitespace indicates a new column.

Here an example:
The input file, named test, looks like this:

Col1	Col2	Col3
1	2	3
4	5	6

Issue the command: awk -f textables.awk test > test.tex and you will retrieve the following code:

\begin{table}[!htbp]
\begin{center}
\begin{tabular}{|l|l|l|}
\hline
\textbf{Col1}& \textbf{Col2}& \textbf{Col3}\\ \hline
1 & 2 & 3 \\
4 & 5 & 6 \\
\hline
\end{tabular}
\end{center}
\caption{\label{tab:}}
\end{table}

download: textable.awk (639 B)