%include "default.mgp"
%default 1 fore "blue", font "thick"
%default 4 fore "yellow", font "standard"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page
%nodefault
%fore "red", size 8, back "darkblue", font "standard", vgap 0, ccolor "gray"
%bgrad 0 0 128 0 1 "black" "black" "blue" "black" "black" "black" "black" "black"



%center, fore "yellow", font "thick"
MagicPoint
%font "standard"



%size 4, fore "red", font "standard"
慶應義塾大学
政策・メディア研究科
西田佳史
%size 3
nishida@sfc.wide.ad.jp


%size 4, fore "yellow"
SPC キーを押して下さい
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

使い方

	1 ページ進む
		左ボタン
		SPC
	1 ページ戻る
		右ボタン
		DEL
	MagicPoint を終了する
		q

%size 5, fore "red"
    それでは特徴をみていきましょう

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

ウインドウ

	通常は全画面を使います
	画面の大きさを自動判定して表示できます
%size 4, fore "red", font "typewriter"
         mgp -o -g 400x300 sample-jp.mgp
%font "standard"
        の様に大きさの指定もできます
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

表示位置制御

	表示の位置を制御できます
%fore "red"
%center
センタリング

%left
左寄せ

%right
右寄せ
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

文字の大きさと色

	さまざまな大きさの文字を表示できます

%SIZE 5
%CENTER
%SIZE 10,FORE "orange"
本日は晴天なり
%SIZE 7,FORE "gray"
本日は晴天なり
%SIZE 5,FORE "blue"
本日は晴天なり
%SIZE 4,FORE "yellow"
本日は晴天なり
%SIZE 3,FORE "green"
本日は晴天なり
%SIZE 2,FORE "red"
本日は晴天なり
%SIZE 1,FORE "pink"
本日は晴天なり
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

フォント

	さまざまなフォントが指定できます

%size 5, fore "red", center
%vfont "min"
これは明朝
%vfont "minsl"
これは明朝斜字
%vfont "goth"
これはゴシック
%vfont "gothsl"
これはゴシック斜字
%size 4
%xfont "times-medium-r", tfont "times.ttf"
This is times-medium-r
%xfont "helvetica-medium-r", tfont "arial.ttf"
This is helvetica-medium-r
%xfont "courier-medium-r", tfont "cour.ttf"
This is courier-medium-r
%xfont "times-medium-i", tfont "timesi.ttf"
This is times-medium-i
%xfont "times-bold-r", tfont "timesbd.ttf"
This is times-bold-r
%xfont "times-bold-i", tfont "timesbi.ttf"
This is times-bold-i
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

行内での属性変更

	行の途中でも属性を変えられます
%size 6, fore "red"

        私の名前は
%cont, fore "green", font "thick", size 8
西田
%cont, fore "red", font "typewriter", size 6
です。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%page

行の折り曲げ

	こんなふうにとても長い行もきちんと折り曲げて表示しています。ソースコード中ではここは1行として書かれています。
		ここが次の行です。段が深くてもほら大丈夫。\
UNIXというくらいで、ソースの行はbackslashで連結できます。
	A quick brown fox jumps over the lazy dog.  A quick brown fox jumps over the lazy dog.

		行末禁則(「。」とかを行頭にださない)してます。window幅をかえてみてね
		英語は単語単位で改行します
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

画像

	イメージ・ファイルを表示できます

%CENTER
%IMAGE "cloud.gif"

これは草刈千晶さんの作品です。ありがとう。

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

対応している画像

	(多分)表示可能なイメージ・フォーマットは以下の通りです
%CENTER,SIZE 3,FORE "red", xfont "times-medium-r", tfont "times.ttf"

  FBM Image
  Sun Rasterfile
  CMU WM Raster
  Portable Bit Map (PBM, PGM, PPM)
  Faces Project
  GIF Image
  Utah RLE Image
  JFIF-style JPEG Image
  X Window Dump
  McIDAS areafile
  G3 FAX Image
  PC Paintbrush Image
  GEM Bit Image
  MacPaint Image
  X Pixmap, Bitmap
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

画像の拡大と縮小

	横を1.5倍、縦を1/3した場合

%center, image "cloud.gif" 0 150 33 1


%leftfill
	横を画面の幅の50%、縦を画面の幅の30%にした場合

%center, image "cloud.gif" 0 50 30 0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

画像の減色

	256色→16色→4色→2色に減色した場合


%left, image "cloud.gif" 256 40 40 1, cont
%image "cloud.gif" 16 40 40 1, cont
%image "cloud.gif" 4 40 40 1, cont
%image "cloud.gif" 2 40 40 1, cont
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

こんなことも...

%CENTER
%SHRINK
%FORE "red"
本日は晴天なり

%rcutin, FORE "blue"
本日は晴天なり

%lcutin, fore "green"
本日は晴天なり
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

一行ずつ表示

	SPC を 2 回押して下さい

%center, fore "red"
   本日は晴天なり
%pause, fore "blue"
   本日は晴天なり
%pause, fore "green"
   本日は晴天なり
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

アニメーション

	SPC を押して下さい

%center, fore "white"
%mark, image "mgp-old1.gif"

%pause, again, mark, image "mgp-old2.gif"

%again, mark, image "mgp-old3.gif"

%again, mark, image "mgp-old2.gif"

%again, mark, image "mgp-old1.gif"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

コマンドの出力

	子プロセスの結果を表示できます

		% ls -l /kernel /bsd
%size 3, prefix "     "
%filter "ls -l /kernel /bsd"
%endfilter

		% echo this is test | rev
%filter "rev"
this is test
%endfilter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

サブプロセスの起動

%system "xeyes -geometry %50x15+25+80"
	xanimを呼んでプレゼンに動画を貼ろう!

	1行の命令は同時に1プロセスしか起動しません
	(そのページを再度表示しても安心です)
	プレゼン画面に対する相対値でgeometryを指定できます

	ページを移るとxeyesは死にます
	(殺さない設定もできます)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

サブプロセスの張りつけ

	サブプロセスをウインドウに張りつけられます

%xsystem "xeyes -geometry %50x10+25+60"

	センタリングも一応できます。

%center
%xsystem "xclock -geometry %30x30+25+60 -update 1 -bg black -fg blue -hands green"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% %PAGE
%%% 
%%% コマンドの出力 - あわせわざ
%%% 
%%% 	動的にグラフを生成します
%%% 
%%% %filter "gnuplot"
%%% set output "/tmp/hoge.pbm"
%%% set term pbm
%%% plot sin(x)
%%% %endfilter
%%% %system "xv -geometry %50x50+25+40 /tmp/hoge.pbm"
%%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE

その他の機能

	画像をtab commandに指定できます。
	itemize用アイコン(
%cont
%icon box "green" 50
%icon arc "green" 50
%icon delta1 "green" 50
%icon delta2 "green" 50
%icon delta3 "green" 50
%icon delta4 "green" 50
%icon dia "green" 50
)が描けます。
	属性が混ざったテキストも正しくセンタリングできます
%center
私の名前は
%cont, fore "green", font "thick", size 8
西田
%cont, fore "red", font "typewriter", size 6
です。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE
%pcache 1 1 0 0

先読み機能

	１ページ先の内容をキャッシュします
	２つの指定方法があります
%fore "red"
		-F
%cont, fore "yellow"
 option を使う
		"
%cont, fore "red"
pcache
%cont, fore "yellow"
" directiveを使う

	キャッシュ機能により描画処理が高速になります
		SPCキーを押して下さい
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE
%pcache 1 1 1 30

先読み機能の特殊効果

	先読み機能には特殊機能が指定できます

	SPCを押すと特殊効果の例を楽しめます

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PAGE
%pcache 0

おしまい

    アップデートなどの情報は
%font "typewriter"
        http://www.Mew.org/mgp/
%font "standard"
    に掲示されますので御覧ください。

    コメントがあれば
%font "typewriter"
        mgp-users-jp@Mew.org
%%font "standard"
    まで送って下さい
