Home‎ > ‎

Impressive

Impressive はプレゼンテーションソフトウェアです。プレゼンといえば PowerPoint 一択という人も多いでしょうが、PDF もプレゼン用の機能を用意しています。ReportLab でも canvas.setPageTransition(effectname='Dissolve') のような指定ができます。PDF でプレゼン資料を作ると、次のメリットがあります。
  1. 動作環境を選ばない。Windows でも Mac でも Linux でも表示できる。
  2. 動作環境が変わっても表示が崩れない。
  3. プレゼン資料をそのまま電子配信できる。
ところで PDF 文書を生成するとき、あなたはプレゼン用の機能 (上述の画面切替効果など) をどのように指定するでしょうか? Acrobat を利用していれば、各ページの「効果の設定」で指定できます。でも、別の PDF 作成ツール―― PrimoPDF など――を使っていると、そうした設定ができないことも多いでしょう。

そこで、既存の静的な PDF 文書をそのままプレゼン用に使い、プレゼン時に画面切換効果や画面の一部強調などの効果を持ち込むことが考えられます。Impressive は、Python と OpenGL, Xpdf, MPlayer など様々なツールを駆使して、プレゼンを支援します。

以下に、Impressive 同梱文書の日本語訳を掲載します。


Impressive 取扱説明書

http://impressive.sourceforge.net/
バージョン: 0.10.3
作者: Martin J. Fiedler
最終更新日: 2010-10-17

目次

  1. 概要
  2. 動作条件
  3. インストール
  4. コマンドライン引数
  5. 操作方法
  6. Info スクリプト
  7. Other Useful Information

概要

Impressive は簡単なプレゼンテーション用プログラムです。画像 (JPEG, PNG, TIFF and BMP) や PDF 文書のスライドショーを表示します。レンダリングは OpenGL で行い、視覚効果も加えられます。

動作条件

Impressive の利用にあたっては、次のソフトウェアパッケージが必要です:

Debian ユーザーは次のようにタイプすることで一度にすべてのパッケージをインストールできます。(訳注: 1 行のコマンドラインです。)

aptitude install python python-opengl python-pygame python-imaging xpdf-reader gs pdftk xdg-utils mplayer

Windows ユーザーは「全部入り」ZIP ファイルをダウンロードすることもできます。標準的なソースコード配布の場合と異なり、必要なライブラリーはすべて同梱されています。

以上のソフトウェア条件に加えて、次のハードウェア条件があります:

  • ハードウェア OpenGL サポート付きの、そこそこに高速なグラフィックスアクセラレーターカード/チップ (GeForce2 レベルや i810 レベルのハードウェアで十分です)
  • 高速なプロセッサー (Python での数値計算は本当に遅いので、CPU クロック 1GHz以上が適しています)
  • 大量のディスクスペース (表示するプレゼンの長さによります)

インストール

インストール手順は Windows と Unix ライクなシステムとで異なります。

一般的なインストール

前章に示した前提ソフトウェアのインストールが完了したら、ダウンロードしたアーカイブから impressive.py というファイルを取り出します。 それを直接実行してもかまいませんし、PATH 環境変数が示すどこかの場所 (~/bin/usr/local/bin などがいいでしょう) にコピーしてもかまいません。

プレゼンを開始するには、次のようにタイプします。
impressive.py demo.pdf

Windows でのインストール

Windows 版の ZIP ファイルをダウンロードし、都合のよいフォルダーへ展開してください。フォルダー内に impressive.exe という実行ファイルがあります。この実行ファイル上にエクスプローラーで PDF ファイルや画像ファイルを含んだフォルダーを直接ドラッグ & ドロップしてもかまいませんし、“送る...” メニュー (通常 Windows XP では C:\Documents and Settings\あなたの名前\SendTo、Windows 7 では shell:sendto) に impressive.exe へのリンクを登録してもかまいません。後者の方法をとれば、PDF ファイルを右クリックして “送る... → Impressive” を選べばプレゼンテーションを開始できます。

MacOS X でのインストール

On OS X, an update of the Python version that came with the operating system may be required, as well as an installation of the PyGame, PyOpenGL and PyObjC packages. Prebuilt packages for this purpose are available at http://pythonmac.org/packages/. Xpdf, GhostScript and pdftk for the Mac are available via Fink (packages xpdf, ghostscript, ghostscript-fonts and pdftk).

ビルド済みパッケージ

Some Linux ディストリビューションの中には、標準のパッケージリポジトリーに Impressive が含まれているものもあります。たとえば、Debian や Gentoo を使っているならば、apt-get install impressive あるいは emerge impressive とするだけでこのソフトウェアのインストールに成功するかもしれません。ただし、そうしたパッケージを本プログラムの作者がメンテナンスしているわけではないこと、そのためそうしたパッケージが最新の状態ではないかもしれないことに注意してください。

コマンドライン引数

コマンドライン(some terminal and shell in Unix, cmd.exe on Windows) から利用する場合、Impressive は GNU getopt 記法のコマンドラインオプションを受け付けます。

次のオプションが利用可能です (アルファベット順):

-a <秒数> または --auto <秒数>
指定秒数が過ぎたら自動的に次のページへ進みます。Together with the -w オプション (後述) と組み合わせて使うと、自動スライドショーを作れます。
-A <X>:<Y> または --aspect <X>:<Y>
画面の縦横比を指定します。通常、Impressive はピクセル縦横比を 1:1 (正方形ピクセル) と想定し、設定済みの画面解像度を考慮しません。ディスプレイの縦横比に適合しない解像度が選択された場合、画面はゆがんでしまいます。これを克服するには、このオプションを使用してディスプレイの縦横比を手動で指定します (例: -A 16:9)。ただし、レンダリングに Xpdf を利用している場合は、このオプションは効果がありません。
-b または --noback
バックグラウンドレンダリングを行いません。無指定時は、Impressive はプレゼンテーション実行中にバックグラウンドの別スレッドで全ページを事前レンダリングします。このオプションを指定すると、起動時に全ページをレンダリングします。キャッシュ停止時はこのオプションは効果を失います (後述の --cache none)。
-B <ms> または --boxfade <ms>
ハイライトボックスのフェードイン/アウトにかかる時間 (ミリ秒) を設定します。無指定時は100ミリ秒です。
-c <mode> or --cache <mode>
Specifies the page cache mode to use. Valid options are:
none
Disables page caching altogether, only the current and the following page will be kept in RAM. Jumping between pages will be very slow, because Impressive will need to render the requested pages on the fly. In addition, the overview page won't be complete until every page has been shown at least once.
memory
Caches all page images in memory. This is the fastest method, but it requires very large amounts of memory (about 3 MiB per page at 1024x768 resolution).
disk
Like above, but uses a temporary file rather than memory for storage. This is the default.
persistent
Uses a permanent cache file for caching. This file will not be deleted when Impressive quits and will be reused on subsequent invocations. The default name for the cache file is derived like the names for Info Scripts (see below for an explanation), but with a .cache file name extension instead of .info. This method is a little bit slower than disk mode, but the time span until the overview page is fully populated will be significantly decreased if Impressive is ran again with the same input files and options.
The mode name may be abbreviated at will, down to one character. Thus, --cache persistent, -c persist and even -cp are all synonyms.
-C <filename>[:<X>,<Y>] or --cursor <filename>[:<X>,<Y>]
This option can be used to specify the path to an image file (typically a transparent .png) that shall be used as the mouse cursor instead of the default one. Optionally, the hotspot may be specified (this is the position inside the cursor image where the real mouse position is located). Example: --cursor mycursor.png:2,4
-d <time> or --duration <time>
Specifies the expected run time of the presentation. The time parameter can be either a number of seconds or a human-readable time like 1:23 (1 minute and 23 seconds), 4:56h (4 hours and 56 minutes), 3m45s (3 minutes and 45 seconds), 5m (5 minutes) or 1:23:45 (1 hour, 23 minutes and 45 seconds).
If an expected duration is specified, Impressive will show a semi-transparent green progress bar at the lower edge of the screen, indicating how much time has already passed. If the time is up, the bar will occupy the whole edge and fade to yellow (at 125% of the expected time) to red (at 150% or more).
-D <ms> or --mousedelay <ms>
Sets the time (in milliseconds) the mouse cursor is shown in fullscreen mode if it is not moved. Default value: 3000 ms.
-e or --noext
OpenGL normally only supports textures with power-of-two dimensions. This means that for a 1024x768 screen, the actual texture size will be 1024x1024, for 1600x1200 it will even be 2048x2048. To overcome this limit and save texture memory, Impressive will automatically use the OpenGL extensions GL_ARB_texture_rectangle (available on most graphics cards) or GL_ARB_texture_non_power_of_two (available on modern graphics cards with current drivers). If these cause any trouble, the -e option may be used to prevent Impressive from using the problematic extensions.
-f or --fullscreen
Toggles fullscreen mode. By default, fullscreen mode is activated, and can be deactivated using this switch.
Note: On Windows systems, toggling fullscreen mode while Impressive runs does not work. So, this option is the only way to set whether fullscreen mode shall be used or not.
-F <file> or --font <file>
Impressive uses some kind of text OSD to overlay the current page number and title (if available) on the overview page. This option can be used to specify a TrueType font file (.ttf) to use for the OSD. If the path specified doesn't directly point to a useable font file, Impressive will try to search the system font directories. On Unix-like systems, it assumes that all fonts are stored below /usr/share/fonts, /usr/local/share/fonts or /usr/X11R6/lib/X11/fonts/TTF for this purpose (the latter one is useful for Mac OS X systems specifically). If this option is not specified, Verdana.ttf will be used as a default if the operating system is Windows, or any of DejaVuSans.ttf or Vera.ttf (the typical file name of Bitstream Vera Sans) if it's not.
-g <width>x<height> or --geometry <width>x<height>
Sets the screen size or resolution Impressive shall use (in pixels). On Win32 platforms and Unix platforms with xrandrinstalled, the default screen size for fullscreen mode is the current screen resolution; on other platforms, Impressive uses the highest resolution available to the graphics system. If a standard resolution cannot be determined, the default is 1024x768 pixels. Note that this option is not the standard X “geometry” option and does therefore not support window positioning (e.g. -g 800x600+0-0 will not work!).
-G <gamma>[:<blacklevel>] or --gamma <gamma>[:<blacklevel>]
Sets up the startup gamma and (optional) black level value. The black level is the original image's intensity level (0...254) that is to be mapped to black in Impressive's output. Note that gamma and black level adjustments may be unavailable or constrained on some systems.
-h or --help
If this option is specified, Impressive writes a short command line help screen to standard output and does not start a presentation.
-i <page> or --initialpage <page>
Specifies the page number to start with. The default value is 1 (start with the first page). If another value is specified, the page shown by Impressive right after initialization is not the first one of the PDF or image list. Additionally, pre-rendering (if enabled) will also start at the specified page.
-I <filename> or --script <filename>
Overrides automatic derivation of the info script filename and specifies a script file directly.
-l または --listtrans
すべての画面切換効果のクラスを標準出力へ列挙します。プレゼンテーションは開始しません。デフォルトの画面切換効果は、クラス名の左側にアスタリスク (*) がついたものです。
-L <spec> or --layout <spec>
Specified the OSD layout. Read below for an explanation of this option
-M or --minutes
If this option is set, Impressive will show the on-screen timer (activated with the [T] key) only with 1 minute resolution. By default, it will show a timer with 1 second resolution.
--nologo
This option disables the Impressive logo and version number display. Instead, the loading screen will be just black or, if background rendering is disabled, only the progress bar will be visible.
-o <directory> or --output <directory>
Do not display the presentation, but render it into a series of PNG image files inside the specified directory. The images will be generated in the current resolution as specified by the -g option. This option is useful if you're going to give a presentation on a foreigh PC with an old, broken or otherwise problematic Xpdf or GhostScript installation: By generating images of the PDF pages you can ensure that no rendering bugs will happen on the target system.
-O <mode> or --autooverview <mode>
Enables or disables automatic derivation of whether a page shall or shall not be shown on the overview page. This feature is based on the fact that some LaTeX presentation packages tag all pages with a title (that can be read by Impressive with the help of pdftk), except those that contain multiple reveal steps.
The following modes are available:
off
Disables automatic overview mode. All pages will be shown on the overview page by default. This is also the default setting.
first
All pages with a PDF title will be shown on the overview page. The purpose is to show the initial state of multi-step slides on the overview page.
last
All pages before a page with a PDF title will be shown on the overview page. The purpose is to show the final state of multi-step slides on the overview page.
Again, the mode may be abbreviated arbitrarily, down to one character, just like with the -c option above..
-p <start>-<end> or --pages <start>-<end>
Using this option, the range of the page displayed can be narrowed down. The presentation will start at the first page in the range. All pages outside of the range will not be shown on the overview page and will not be cached. However, they can be entered manually when cycling through the presentation. Due to the fact that these pages are uncached, preparation of the display will take considerably longer.
-P <path> または --gspath <path>
Xpdf / GhostScript のパス自動検出を上書きできます。GhostScript (gs あるいは gs.exe) または Xpdf の pdftoppm ユーティリティーのいずれかの実行形式のフルパスを指定しなければなりません。
-q or --page-progress
If this option is enabled, Impressive will show a light-blue semi-transparent progress bar at the lower edge of the screen that shows the position inside the presentation, i.e. the relation between the current page number and the total number of pages. Note that this progress bar will not be shown if the duration progress bar (-d option) is also enabled.
-r <n> or --rotate <n>
Display all pages rotated by n×90 degrees clockwise. Try -r 1 or -r 3 if you run into problems with PDFs generated by LaTeX on some Xpdf or GhostScript versions.
-R <X>x<Y> or --meshres <X>x<Y>
Most effects subdivide the visible screen into a mesh of rectangular or quadratic pieces, each with its own coordinates and alpha blend values. Using this parameter, the resolution of the subdivision mesh can be defined. The default value is 48x36. On slow machines, lower values like 24x18 or 12x9 can heavily speed up transition rendering at the cost of visual quality. On the other hand, higher values like 64x48 or 96x72 improve quality, but use much more CPU cycles.
-s or --scale (image input only)
If a directory with image files is used as input, Impressive will scale down images that are too big for the screen. But by default, it will not scale up smaller images to fit the screen; it will leave a black border instead. This option overrides this setting and enables upscaling of smaller images.
-s or --supersample (PDF input only)
This switch enables antialiasing by 4x supersampling instead of the normal multisampling method used by Xpdf or GhostScript. While this usually degrades both visual quality and performance, it may be necessary for circumventing white strips or moiré-like patterns in gradients.
-S <pixels> or --fontsize <pixels>
This option sets the size, in pixels, of the OSD font. The default value is 14.
-t <ms> or --transition <trans1[,trans2...]>
Using this switch, the set of transitions Impressive will randomly draw at page changes can be specified. If only one transition class is specified, this class will be used for all pages that do not have another transition explicitly assigned in their page properties. Multiple transitions have to be separated by commas; they will be used in random order. The -l option can be used to get a list of available transitions.
-T <ms> or --transtime <ms>
Sets the duration (in milliseconds) of page transitions. 0 (zero) disables transitions altogether. Default value: 1000 ms.
-u <seconds> or --poll <seconds>
If this option is specified, the source file or directory will be checked for changed regularly. If a change in the input PDF file or any of the image files in the input image directory is detected, the page cache will be flushed and the current page as well as the info script will be reloaded. The current page's transition will be shown between the old and the new version of the page.
The new PDF file must have at least as much pages as the old one; also, it should have the same aspect ratio. If the input is a directory, image files must not have disappeared.
-V <pixels> or --overscan <pixels>
PDF files often contain tiny amounts of white borders around the edges which look bad in screen presentations. To eliminate this problem, Impressive uses »overscan«: PDF files will not be rendered to fit the screen size exactly, but they will be rendered a bit larger so that the (possibly broken) borders can be cropped off. The amount of overscan, in screen pixels, can be set with this option. The default value is 3 pixels, which should remove borders in most presentations at most common screen resolutions without cropping the pages too much.
-w または --wrap
最初のページと最後のページを連結します。つまり、プレゼンテーションの最終ページで次のページへ進もうとするとプレゼンテーション全体が再度開始します。
-x または --fade
プレゼンテーションの開始時にフェードイン効果を、終了時にフェードアウト効果を、それぞれ使用します。
-X or --shuffle
If this option is enabled, the input files will be shuffled into random order before starting the presentation. The individual pages of PDF input files will stay in their original order, though, so this option is mainly useful for image presentations.
-z <factor> or --zoom <factor>
Sets the zoom factor that is used in zoom mode. It must be an integer value of at least 2. The default value is 2. Note that it might not be possible to get high-quality zooming for large zoom factors due to hardware restrictions.
-Z <ms> or --zoomtime <ms>
Sets the duration (in milliseconds) of the overview page zoom-in/zoom-out effects. Default value: 250 ms.
--cachefile <filename>
Activates persistent cache mode and specifies the name of the cache file to use.

Following the options, the input file name(s) must be specified. Recognized file types are PDF, JPEG, PNG, TIFF, BMP and PGM/PPM. If the name of a directory is put on the command line, all recognized image files (no PDF files!) in this directory will be played in alphanumeric order (case-insensitive).

In addition, Impressive can use a text file containing a list of files or directories to show: This text file must contain at most one file name per line; every character after a hash sign (#) is treated as a comment and will be ignored. If such a comment is put on the same line as an image file name, it will be used as the page's title. List file names must be prefixed with an at sign (@) on the command line, e.g. impressive @my_list_file.

Impressive will also expand wild-card characters (* and ?) if this isn't already done by the shell, but apart from that, it will not reorder the arguments. Thus, it will show the documents in the order specified at the command line.

レイアウトオプション

The OSD layout option (-L/--layout) accepts a string with comma-separated key=value pairs. The following keywords are recognized:

alpha
The opacity of the OSD text, either as a floating-point value between 0 and 1 or a percentage between 2 and 100.
margin
The distance (in pixels) of the OSD text to the screen borders.
time
The position of the timer.
title
The position of the page title in overview mode.
page
The position of the page number in overview mode.
status
The position of the status line.

The position specifications are composed by one character that indicates whether the text shall be displayed at the top (T) or bottom (B) edge of the screen and one character that indicates whether it shall appear on the left (L), on the right (R) or centered (C).

For example, the default OSD layout equals the following option string:
-L margin=16,alpha=1,time=TR,title=BL,page=BR,status=TL

操作方法

起動すると、Impressive は真っ暗な画面を表示し、中央に Impressive ロゴを表示します。キャッシュは有効になっているけれどもバックグラウンドレンダリングが無効になっている場合は、プレゼンテーションの全ページが 1 回レンダリングされます。この動作の進捗を画面下半分のバーが表します。任意のキー (Q と Esc を除く) またはマウスのクリックでこの動作をスキップできますが、そうすると Impressive は残りのページを表示の際にレンダリングすることになります。全ページが最低 1 回はレンダリングされないと俯瞰ページが完成しないことに注意してください。言い換えれば、プリキャッシングプロセスがスキップされた場合、まだレンダリングされていないページすべてについてプレースホルダーが表示されます。初期状態では、Impressive はキャッシュをプレゼンテーションの実行中にバックグラウンドで生成します。このため、プログレスバーは出現せず、準備にかかる時間はプレゼンテーションの冒頭 2 ページ分のレンダリングにかかる分だけとなります。

この初期化プロセスの後、Impressive は直接 1 ページ目へ画面切換効果なしに画面を切り換えます。この瞬間から、次のキーボードおよびマウス操作を利用できます:

Q キーまたは Esc キー
Impressive を即時終了させます。
LMB (left mouse button), Page Down key, Cursor Down key, Cursor Right key or Spacebar
Go to the next page (using a transition).
RMB (right mouse button), Page Up key, Cursor Up key, Cursor Left key or Backspace key
Go to the previous page (using a transition).
Home key / End key
Go directly to the first or last page of the presentation.
L key
Return to the last (most recently displayed) page. This can be used to toggle back and forth between two pages.
F key
Toggle fullscreen mode. Unfortunately, this does not work on Windows systems.
Tab key or MMB (middle mouse button)
Zoom back to the overview page. While in overview mode, a page can be selected with the mouse and activated with the left mouse button. The right or middle mouse button or the Tab key leave overview mode without changing the current page.
LMB over a PDF hyperlink
Jump to the page referenced by the hyperlink. Two types of hyperlinks are supported: Links that point to some other page of the same document, and URL hyperlinks like Web links and e-mail addresses. This feature is only available if pdftk is installed. Furthermore, xdg-open from the freedesktop.org Portland project is required for URL links on non-Win32 platforms. Please note that the hyperlink feature will not work properly when pages are rotated.
click&drag with LMB (left mouse button)
Create a new highlight box. While at least one highlight box is defined on the current page, the page itself will be shown in a darker and blurry rendition. Only the highlight boxes will be displayed in their original lightness and sharpness.
If a page with highlight boxes is left, the boxes will be saved and restored the next time this page is shown again.
RMB (right mouse button) over a highlight box
If the right mouse button is clicked while the mouse cursor is above a highlight box, the box will be removed. If the last box on a page is removed, the page will turn bright and sharp again.
S key
Save the info script associated with the current presentation. The main purpose for this is to permanently save highlight boxes or keyboard shortcuts, so they will be restored the next time this presentation is started.
T key
Activate or deactivate the time display at the upper-right corner of the screen. If the timer is activated while the very first page of the presentation is shown, it activates »time tracking» mode. In this mode, a report of all pages visited with their display duration, enter and leave times will be written to standard output. This can be very useful when preparing presentations.
R key
Reset the presentation timer.
Return key or Enter key
Toggle spotlight mode. In this mode, the page is darkened in the same way as if highlight boxes are present, but instead of (or in addition to) the boxes, a circular “spotlight” will be shown around the mouse cursor position, following every motion of the mouse cursor.
+ key / key or mouse wheel
Adjust the spotlight radius.
Z key
Toggle zoom mode. When this key is first pressed, the current page will zoom in. The page will be displayed at double size, but in its original resolution (i.e. it will be blurry). Impressive will re-render the page at the new resolution if the graphics hardware supports it. During this time, Impressive will not accept any input, so don't even think about clicking the mouse or pressing keys before the image gets crisp again.
In zoom mode, all other functions will work as normal. Any operations that leave the current page, such as flipping the page or entering the overview screen, will leave zoom mode, too.
[ / ] key
Adjust the gamma value of the display (might not be supported on every hardware).
{ / } key
Adjust the black level of the display (might not be supported on every hardware).
\ key
Revert gamma and black level back to normal.
O key
This will toggle the »visible on overview page« flag of the current page. The result will not be visible immediately, but it can be saved to the info script (using the S key) and will be in effect the next time the presentation is started.
I key
This will toggle the skip flag of the current page. A page marked as skipped will not be reachable with the normal forward/backward navigation keys.
B key / W key
Fade to black or white, respectively. This feature can be used if a whiteboard or blackboard in front of the projection area is to be used during the presentation. Using these two keys, the screen will fade into a solid color. On any keypress or mouse click, it will fade back to normal. These keys are not available in overview mode.
click&drag with RMB (right mouse button) in zoom mode
Move the visible part of the page in zoom mode.
Cursor keys in overview mode
Navigate through pages.
Alt+Tab keys
Leaves fullscreen mode on Unix-like systems to facilitate task switching while running full-screen presentations.

Any other alphanumeric (A-z, 0-9) or function key (F1-F12) can be used to assign shortcuts to pages that require quick access. If one of the keys is pressed together with Shift, the currently displayed page is associated with this key. To recall the page later, it is sufficient to press the shortcut key again. Shortcuts can be permanently stored with the S key.

Info スクリプト

Impressive offers a powerful way to customize individual presentations using so-called info scripts. An info script is a text file having the same name and located in the same directory as the presentation file itself, except for the additional suffix .info. Thus, a presentation file called BrandNewProduct.pdf would have a info script with the name BrandNewProduct.pdf.info. If multiple arguments were specified on the command line, the info script will be called just .info (a dot file, so to speak). If a directory name was specified as the only argument, either a file called DirectoryName.info or a file called .info inside the directory will be used, depending on whether a path separator was specified at the end of the directory name or not – Impressive simply appends .info to whatever the input path name was.
In any case, the default file name can be overridden by the -I command line option.

Info scripts are actually Python scripts with full access to Impressive's global data structures and functions. (It is possible to write real interactive applications using info scripts.) Thus, they can modify a broad range of settings concerning Impressive. This manual will only cover the most basic ones.

ページ属性

The main part of an info script defines the properties of each page. At the moment, the following properties are defined:

title
Each page can have a title that is displayed in the Impressive window's title bar. If there is no title explicitly specified in the info script, the title of the page will be extracted from PDF metadata if pdftk is installed, or the image file name will be used if the presentation is an image slideshow.
transition
With this property, the transition class to be used for rendering the transition between this page and the following page can be specified. For pages lacking this property, random transitions will be chosen. A list of available transition classes can be obtained with impressive -l.
transtime
This property overrides the global transition time parameter (-T at the command line). It contains the integer time (in milliseconds) the transition between this page and the following page shall be shown.
overview
This property holds a boolean value (0/False or 1/True) that specifies whether the page shall be included in the overview page. If this property isn't specified, it is assumed to be True.
skip
This boolean property can be set to 1/True if the page shall be skipped during the presentation.
Pages with overview:True, skip:False will be accessible both by cycling through the pages and using the overview page,
pages with overview:True, skip:True will be silently skipped in the normal page cycle, but remain accessible from the overview page,
pages with overview:False, skip:False will appear in the normal cycle, but not on the overview page
and pages with overview:False, skip:True will not be accessible at all.
boxes
This property stores a list of highlight box coordinates. Normally, there is no need to edit this by hand, as Impressive handles this automatically if the S key is pressed.
timeout
If a timeout property is present and the page is shown, Impressive will automatically switch to the next page after the specified number of milliseconds. Normally, the timeout will only be effective the first time the page is shown unless wrap mode is used (command-line option -w or --wrap). This restriction makes it possible to create self-running presentations with individual per-page timeouts.
comment
This property can hold a string with a single line of text that will be displayed on screen while the page is shown. Display of this text can not be disabled.
sound
Specifies the file name of a sound file to be played (via MPlayer) when the page is first entered. Once started, the sound will be played until its end is reached, another sound or video is played, or Impressive is exited.
video
Specifies the file name of a video file to be played when the page is first entered. The video will be displayed full-screen. Any key or mouse click stops playback, except the cursor keys, which are used to seek in the video file, and space, which can be used to pause playback. Note that this function is highly experimental and might not work reliably on every system!
always
If this property is present and set to 1 or True, the media file specified in the sound or video properties will be played every time the page is entered, not just the first time.
progress
If this property is set to zero, the presentation progress bar (which is usually set up with the -d/--duration command line switch) will not be shown on this page. In practice, it might be useful to hide the bar from the first page so that it is not visible during the introduction.
reset
If this property is set to 1 or True, the timer will be reset each time this page is left, just as if the R has been pressed. If the special value 2 or FirstTimeOnly is used, the reset will only take place if the page was shown for the first time. Again, this is particularly useful on the first page: A combination of progress:False, reset:FirstTimeOnly makes it possible to set up the presentation long before it actually begins – the first page can be showed as long as desired, actual timing starts at the second page.
rotate
This property is a per-page override of the global -r command line option: It specifies how the page shall be rotated, in 90-degree steps clockwise.
OnEnter, OnLeave, OnEnterOnce, OnLeaveOnce
These properties can contain a Python callable (i.e. a function reference or lambda expression) that is executed when the page is entered or left. The ~Once variants will only be executed when the page is entered or left for the first time. The callable must not take any arguments. This feature can be used to associate arbitrary Python code with specific pages, for example to execute external programs.
Warning: Lambda expressions cannot be properly processed by the Info Script save function (S key). If Impressive encounters lambda expressions when saving, it will remove them. In addition, it will not overwrite the original info script, but generate an extra file that needs to be merged withe the original script by hand.
keys
This property can be assigned a dictionary that maps alphanumerical keys to Python functions. For example, 'keys': { 'x': SomeFunction } will invoke SomeFunction() if the lowercase character 'x' is typed while the page is displayed. Regarding the functions, the same restrictions as for the OnEnter/OnLeave family apply: the function must not take any parameters and lambda functions can not be saved. Also note that it is not possible to overwrite Impressive's pre-defined key bindings with this method.

The properties are stored together in a Python dictionary called PageProps. The syntax looks like in this example:

PageProps = {
1: {
'title': "Title Page",
'transition': PagePeel,
'sound': "background_music.mp3"
},
2: {
'title': "Another Page",
'timeout': 5000
}
}

The PageProps definition (and only the PageProps definition) will be rewritten by Impressive if the S key is pressed. User-defined PageProps entries will also be left untouched, except for some pretty-printing.

Global Presentation Properties

The name of the presentation is shown in the title bar of the Impressive window (if not in fullscreen mode). By default, the file name or (if available) PDF metadata title will be used for this purpose, but the presentation title can also be explicitly set by overwriting the DocumentTitle variable:
    DocumentTitle = "My Presentation"

Another useful variable, AvailableTransitions, contains a list of all transition classes that may be used for randomly assigning transitions to pages lacking the transition property. Thus, if you want to exclude a certain transition (either because you don't like it or because you want to have it exclusively on pages where you manually assigned it using PageProps), you can write something like
    AvailableTransitions.remove(WipeBlobs)
On the other side, it's possible to activate transitions that are not enabled by default:
    AvailableTransitions += [SlideUp, SlideDown]
Alternatively, you can completely overwrite AvailableTransitions to have the same transition (or set of transitions) assigned to all pages:
    AvailableTransitions = [Crossfade]

オプションの上書き

Another use of info scripts is overriding the default or command-line settings on a per-file basis. This can be done by simply overwriting one of the variables that are defined at the beginning of impressive.py. Each of these variables corresponds either to a command-line setting, or to some constant related to visual appearance or performance. So, for example, to force fullscreen mode for a presentation, write
    Fullscreen = True

Other Useful Information

便利なサードパーティー製ツール

Rob Reid が書いた Perl スクリプトを利用して、画面切替情報 (transition information) を LaTeX beamer ソースファイルの特殊コメントから抽出し、それらの情報から Impressive info スクリプトを生成できます: gettransitions

Joel Berger も同様のツールを書いています: makebeamerinfo

ライセンス

Impressive はフリーソフトウェアです。再配布、改変は、Free Software Foundation が発行した GNU General Public License (GPL) の条件に従う限り自由です。GPL バージョン 2 以降のいずれかを選択できます。

このプログラムは有用を期していますが無保証です。商用利用可能性および特定目的への適合性についての暗黙の保証も存在しません。詳しくは GPL を参照してください。

連絡先

いつでも Impressive の 作者へメールで連絡する ことができます...

  • バグ報告
  • 仕様のご要望やヒント
  • はげましのお便り (fan mail)
  • ウェブページに関する訂正 (作者はネイティブスピーカーではありません – any grammatical, ortographical or stylistic corrections or suggestions are welcome!)
  • new silly quotations for the web page's title bar :)
Comments