[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(mgp-users 00456) defaulting



Hi,

There is something weird about the way mgp processes directives.  In
particular, the fact that "Parameters set in previous lines are
valid unless overwritten" [from USAGE] is counter-intuitive.

Consider this:

	Point A
		subpoint

	Point B

You'd expect the text "Point A" and "Point B" to be identical.  Not
so: the "%tab" directive has reset the "%size"!  

I attach a small .mgp file demonstrating this; the bug is present in both
version 1.07a and snap-20001211.

-Steve


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%deffont "standard" tfont "comic.ttf"
%deffont "thick" tfont "arialb.ttf"
%%
%% Default settings per each line numbers.
%%
%default 1 leftfill, size 2, fore "black", back "white", font "thick"
%default 2 size 7, vgap 10, prefix " "
%default 3 size 2, vgap 20
%default 4 size 5, fore "midnightblue", vgap 30, prefix " ", font "standard"
%%
%% Default settings that are applied to TAB-indented lines.
%%
%tab 1 size 1, vgap 35, prefix "  ", icon arc "tomato" 40
%tab 2 size 1, vgap 20, prefix "      ", icon box "spring green" 40
%tab 3 size 1, vgap 20, prefix "            ", icon delta3 "white" 40 
%%
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page
%size 5

Introduction


Green Linux and Ham:

	Would you like it Here or There?

	Would you try it in a Train?

	Would you like it in a Car? in a Tree?

	In the Dark? In the Rain?

Try it, try it, and you'll like it!

It's so good, so GOOD, you see ...