MagicPointを使う

とにかく、備忘録です。

フォントの設定

研究室発表で、とうとう使うことにしました。 日本語はちゃんといい感じで表示されるのに、なぜかアルファベットが あんまりいい感じで表示されてないです。

理由が分かった。フォントをちゃんと指定できていなかった。 フォントの指定の仕方は、「~/.mgprc」とかで、 下みたいに指定します。

#
# this is a sample for ~/.mgprc.
#

# setting up font directories.
# "vfcap" is commented out because it will be guessed by "configure"
# in most cases.
tfdir "/usr/X11R6/lib/X11/fonts/TrueType/"

# last resort font for TrueType renderer (FreeType).
# this must be specified in full pathname so that it can be used even if
# "tfdir" is changed in presentation file.
tfont0 "/usr/X11R6/lib/fonts/TrueType/arial.ttf"
という感じで書き込んでおく。 そして、読み込む「defalut.mgp」を下みたいに書き込む。
%% CM fonts are avaiable at CTAN mirros, pub/CTAN/fonts/cm/ps-type1/bakoma/ttf.
%% unlike MS ones, it does not require Windows license!
%%
%% see README.fonts{,.jp} for more detailed milage you take.
%%
%deffont "standard" tfont "msgothic.ttc", tmfont "msgothic.ttc"
%deffont "thick" tfont "msmincho.ttc", tmfont "msmincho.ttc"
%deffont "typewriter" tfont "cour.ttf", tmfont "cour.ttf"
%%
%% Default settings per each line numbers.
%%
%default 1 leftfill, size 2, fore "white", back "black", font "thick"
%default 2 size 7, vgap 10, prefix " "
%default 3 size 2, bar "gray70", vgap 10
%default 4 size 5, fore "white", vgap 30, prefix " ", font "standard"
%%
%% Default settings that are applied to TAB-indented lines.
%%
%tab 1 size 5, vgap 40, prefix "  ", icon arc "green" 50
%tab 2 size 4, vgap 40, prefix "      ", icon dia "yellow" 50
%tab 3 size 3, vgap 40, prefix "            ", icon delta3 "white" 40

emacsで編集する

よく使ったキーバインドが上の方にある。
;; Editting Commands:
;;
;;   KEY SEQUENCE    DESCRIPTION
;;   ------------    ----------------------------------------------------------
;;   M-x mgp-mode    Change the mode of current buffer to Magic-Point mode
;;   C-c C-v         Run MagicPoint for the current buffer.
;;                   If prefix argument with explicit numbers are given, the 
;;                   specified page number is displayed as an inital page.
;;                   If prefix argument without numbe (only 'C-u') is given,
;;                   the page where the cursor is displayed.
;;                       Example 1: C-c C-v  ==> the first page
;;                       Example 2: C-u C-c C-v  ==> the current page
;;                       Example 3: C-u 7 C-c C-v  ==> the seventh page
;;   C-c C-p         Insert the "page" directive.
;;   C-c C-i         Insert the "image" directive.      
;;   C-c c           Insert the "center" directive.
;;   C-c l           Insert the "leftfill" directive.
;;   C-c p           Insert the "pause" directive.

;;   C-x ` or C-c `  Jump the cursor to the error line in the MagicPoint file.
;;   C-c C-c         Kill the running MagicPoint (if any).
;;   M-TAB           Completing input. If the character at the beginning of 
;;                   line is %, MagicPoint directives are completed. Othewise,
;;                   ISPELL is invoked to complete a word.
;;   C-c C-f         Insert the "fore" directive.
;;   C-c C-b         Insert the "back" directive.
;;   C-c C-l         Insert the "lcutin" directive.
;;   C-c C-r         Insert the "rcutin" directive.
;;   C-c C-e         Insert a sequence of directives to emphasizing text.
;;   C-c L           Insert the "left-line" directive.
;;   C-c r           Insert the "right-line" directive.
;;   C-c f           Insert the "font" directive.
;;   C-c b           Insert the "bimage" directive.
;;   C-c e           Insert the "embed, endembed" directive sequnce.
;;   C-c i           Insert the "icon" directive.
;;   C-c a           Insert the "again" directive.
;;   C-c m           Insert the "mark" directive.
;;   C-c n           Insert the "nodefault" directive.
;;   C-c s           Insert the "size" directive.
;;   C-c B           Insert the "bar" directive.
;;   C-c C           Insert the "cont" directive.
;;   C-c G           Insert the "bgrad" directive.
;;   C-c P           Insert the "prefix" directive.
;;   C-c S           Insert the "system" directive.
;;   C-c F           Insert the "filter, endfilter" directive sequence.

参照ページ