Archive for May 2001

It went well…

I had an exam in Physics today, and it went very well. Actually it was perfect — I got the grade 13 on the Danish scale :-D 13 is the maximum, so I couldn’t be happier about this!

I must say, that I didn’t expect such a high score. I knew that I had done well after the examination, but I was really surprised when my teacher and censor told me the great news. Next is Danish — it’s six days from now.

Studying…

The last few days I’ve been busy reading for the exam in Physics this Thursday. I’ve not done this alone — Cookie has been with me, and we’ve had a great time!

It really helps when there’s someone there to motivate you, although we’ve cought ourselves discussing Linux a couple of times :-)

My first Makefile

I’ve been playing a lot with MetaPost lately. I really like the way you construct your figures — it’s clean, precise and mathematical.

But there’s one problem: I now have to first run mpost to generate the figures, and then dvips to put them into my document. I can’t just view the figures in xdvi together with the text, as there’s some problems with the fonts used in the figures. The only good way to view it is in gv, which means that I also have to run dvips.

But this Makefile solves that — I can now just run make, and then it will re-run all necessary programs:

#
# This Makefile re-runs all the necessary programs, so that the
# PostScript-file is updated whenever the LaTeX- or MetaPost-files
# change.
#
# Martin Geisler <[email protected]> — Just use it :-)
#
all: main.ps
.mpost: *.mp
    TEX=latex mpost -interaction nonstopmode $?
    touch .mpost
.gnuplot: *.gnuplotrc *.data
    gnuplot $?
    touch .gnuplot
%.dvi: %.tex
    latex ‘\nonstopmode\input $<’ && latex ‘\nonstopmode\input $<’
%.ps: .mpost %.dvi
    dvips $*.dvi -o

(Please remember that there should be a tab in front of the command-lines — those that does not start with a blue word.)

As I’ve never written a Makefile before, I’m pretty certain that there’s something in it, that can be done in a better way. But at least this one works for me :-)

If you can suggest some improvements, then please write me.

The final written exam

I’ve just finished my final written exam! I’ve spend five hours trying to write a Danish essay, and I think the result was pretty good.

I used my dads notebook with Windows and Word. I did this, just to remind myself of why it is, that I’ve spend countless hours reading manuals and books for LaTeX. Why have I spend entire evenings trying to achieve a particular effect in LaTeX? Now that I’ve started to use Metapost, I’ve also had to read the manual for that — it’s large but really good. The question remains: why do I do it.

The answer just occurred to me today: Word is full of bugs! It’s a faulty, PITA-program! It crashed on my today, even though I didn’t do anything fancy. I wasn’t playing with a lot of OLE-objects, nor was I trying to do anything else. I was just writing an essay with perhaps three different fontsizes. But when I tried to change the size of the skip after paragraphs, it just died. And it did this several times.

So, luckily there won’t be a next time, but if I ever have to write something important on a computer, I’ll use LaTeX. It’s the only program that I know of, that if reliable. It might be a little difficult to do some of the more advanced things, but if you’re just writing a plain essay, then it’ll never let you down. It was only because it was easier for me to transport the notebook that I used it instead of my normal machine.

Building Cookies computer

Yesterday I helped Cookie build his new machine. After some initial problems with the jumpers, the machine now runs at 1050 MHz — 5% more that the specs :-)

We also tried to download Gnome from Ximian, but there were all sorts of problems with the packages. Now that he has a fast machine, I persuaded him into trying Nautilus… But then we discovered that Eazel is closed! (You’ll find the real link here: Eazel). What a shame — I was beginning to really like Nautilus, now that it’s stable and fast.