![]() |
|
|
|
|
|
From Power (point) to Magic(point) -- Presentations using your Linux box
By Trevor Warren <trevor@freeos.com>
So we decided to look around and what better place than Freshmeat (www.freshmeat.net). A little sniffing around Freshmeat and we came up with some good tools to make simple and handsome presentations. We downloaded the following software: Prestimel Prestimel turned out to be a no-brainer as we could not install it. We were testing it on a SuSE 6.4 Installation running the 2.2.14 kernel. However, we just could not figure out why Prestimel would not compile on our box although all the dependencies were satisfied. We finally gave up and are therefore unable to review Prestimel. We however did have some previous experience with Prestimesl and would recommend that you give it a try (i.e. if you can compile it). Creating slides in Prestimel was a piece of cake as we remember. It was as simple as taking the sample XML file provided with the stock compilation of Prestimel and tweaking it to suit our needs. You then run Prestimel again with the appropriate command line switches parsing it a template for the background and color scheme according to your choice and lo....... Prestimel creates all the slides as separate HTML files interlinked to each other and created using the template mentioned by you during parsing of the XML file. All you then need is an HTML browser to view the slides. That was as far as Prestimel goes. The next application to be chucked off our list was PPresenter. This was another pain in the .......? You know how cryptic some of these packages can be. We soon realized that getting started with PPresenter would require us to code our own slides in some scripting language that was almost equivalent to messing around with assembly code. Not that PPresenter was any different from the others in the way things worked, but we felt that it was too cryptic for the average user to get a hold on. And to expect a novice to start coding in some cryptic scripting language just to make a elegant presentation is asking quite a lot. Than left us with Magic Point and fortunately for our CEO (or us!), we had a better experience. Let us get started with down loading and compiling MagicPoint. The official home page of MagicPoint is http://www.mew.org/mgp/. Get the tarball from the homepage or look out for RPMs. The latest tarball available at the site is magicpoint-1.07a.tar.gz. Untar the source as follows. tar -xvzf magicpoint-1.07a.tar.gz Follow the steps below to compile MagicPoint: ./configure When you believe that everything is OK, install MagicPoint as follows after logging in as root: make install In case, you were able to lay hands on the MagicPoint RPM, more the better. First login as root and type the following command rpm -ivh mgp-*.rpm This wraps up installing MagicPoint using either the sources or the RPMS?s. Having installed MagicPoint we will test some of the sample presentations. In the directory in which you have down loaded the source, there is another directory called sample. Illustrated below is a snapshot of part of our MagicPoint directory structure. -rw-r--r-- 1 trevor users 40668 Feb 11 09:47 print.o mgp -g 800x600 sample.mgp The above command will run the MagicPoint presentation for you in window of size 800x600. Creating your own Presentations We would suggest you first have a look at the various sample presentations, most of them are good enough to get you started. You can also create your own slides using the default ?sample.mgp? as reference. The basic funda of MagicPoint is all the slides are created in a single ASCII TEXT file stored with an extension of ?mgp?. Every slide is scripted using a very simple language as we are going to illustrate as follows. Open your favorite text editor and name your first presentation with an extension of mgp(*.mgp). The first slide is illustrated as follows:
%center, fore red, font thick <--5
%include default.mgp <-- 1 One of the golden rules to remember while using MagicPoint is that every line begins with a "%? sign. Every line in the script line is of significance even the blank ones. The blank lines in the script file(*.mgp) are interpreted by MagicPoint as blank lines in the respective slide. So you know how to keep your distance. %page <--2 %nodefault <--3 In short this means that this slide isn't going to make use of the default parameters supplied by the default template( default.mgp). Therefore, you have some more scripting coming your way. %fore yellow, size 5, font standard, back darkblue <-- 4 Now let's jump to the rendering of the first line. %center, fore red, font thick <--5 These positions are relative to the size of the frame you ask the MagicPoint to be drawn in. Let us illustrate with this example, mgp -g 800x600 timepass.mgp and Both of these lines would display the same slide but in a frame of reducing size. As a word of caution always test your slides for the positioning and the way they look as the frame size changes. %center, fore red, font thick <--5 You might have noticed the particular feature in PowerPoint, which allows your point to be shot in from the sides of the screen with a bullet effect. Similar is the rcutin and lcutin options out here. The rcutin option causes the following line to be shot in from the right of the screen while lcutin causes the line to be shot in from the left of the screen. Try out some of these exquisite effects for your presentations, it makes things look really impressive. WELCOME TO THE MAGIC POINT TUTORIAL <--7 All the commands that we mentioned in lines 5 and 6 were applicable to line number 7. %center, size 4, fore white, lcutin <--8 Let us have a look at the following lines as mentioned above. There is nothing new out here in lines 8 and 9. All the points as explained earlier apply themselves similarly. %rcutin <--10 %size 3, lcutin <--12 %size 4, fore yellow <--14 Similar is the situation for the following lines as illustrated above. Also note that the functionality is mentioned by the last line, i.e line number 15. This brings us to the end of the first slide. We now look at some more concepts. %page <--16 The second slide as mentioned above gives the effect of drawing a color gradient on the background. The color gradient is between blue and darkblue. These are just some of the stunning effects possible with MagicPoint. To know more about some of the default templates available check out the MagicPoint homepage for good links. Let's now go through line numbers 16-25 in this section. %page <--16 Line 16 denotes the starting of a new slide. Line 17 creates a color gradient between blue and dark blue. The grade variable takes 5 parameters, which can be described as follows. %bgrad For simplicity sake, just follow the values that we have given you and tweak them a bit to get satisfactory results. %size 5, font standard, fore yellow, lcutin <--18 %size 4, font standard, fore yellow, rcutin <--20 %rcutin <--22 %rcutin <--24 %CENTER <-- 32 Now we take a look at the next slide. %page <--47 %fore red, font thick <--48 %center <--50 The above lines insert an image, dad.jpg into the slide and notice how closely the image is center justified. Now a look at the next slide. The important feature that we want to highlight out here is as follows, %center, fore red <--57 %pause, fore blue <--59 %pause, fore green <--61 If you notice carefully, lines 57-58 are of the normal type. However, after displaying lines 57-58 the presentation will pause due to the use of the pause keyword in line number 59. To continue the presentation you can use the SPACEBAR key. This feature is important if you don't want all the points barging onto the screen in one go and you would want to decide when the next point should appear on screen. The next slide is quite interesting. Using this particular feature, you could embed output of live system commands into your presentation. %filter ls -l /boot " <--67 %filter rev <--70 trevor@freeos.com:~ > ls -al /boot Last but not the least we will demonstrate how you can embed an X application into your slide. This powerful feature allows you to display a movie or an mpeg video during your presentation or maybe even run some other application as a demo during the slide. %page <--69 For a start you could use the script given at the bottom of the article. Run it using the following command: The above command will run the MagicPoint presentation for you in window of size 800x600. This is as far as we go for now. We sincerely hope this tutorial has helped you discover some of the finer aspects of making some elegant presentations on Linux using MagicPoint. Till next time CIAO !
Other articles by Trevor Warren
Current Rating: [ 7.91 / 10 ]
Number of Times Rated: [ 23 ]
|
|
|
© 1998-2004 FreeOS Technologies (I) Pvt. Ltd. All rights reserved.
[Privacy Policy]
![]() |