Using this following script, you'll be able to produce landscape
and portrait slides in a single latex file. This requires several
definitions.
First, start your latex file (one assumes it is named slide.tex), with the following.
Some parts are optional, and concern the labelling, the frame,
... Then you start your document, with begin{document} and
your slidesm depending their orientation:
Don't forget to end your document (\end{document}), save
it, and compile it. Here you have to download the file compil_slides and save it. My advise: put it
in a directory named ~/bin, modify its properties by
chmod u+x ~/bin/compil_slides and add in your
.cshrc file the line set path=( $HOME/bin
$path. Actualize your path (type rehash), and
type:
The option --a will compil all pages under the file slide.ps, --l will compil only the landscapes sildes and save it under slide_land.ps, and the --p option will do the same for the portrait slides under the file slide_port.ps. As an option, you can precise the first page, and if you want more than one page, the last page.
The resulting slides are displayed here:
This small shell is usefull when one needs to convert postscipt slides to jpg files. I used it to build the html presentations presented on my communication page. The use of this shell, ps2jpg, supposes that you have the ImageMagick convert utility. It is designed for the outputs of compil_slides (see description).
This will produce two jpg files. The sizes will be roughly 350x250 for the small slides, and 700x500 for the large ones. The input postscript file must be named following this convention: [your_name]_land.ps for a lanscape slide, and [your_name]_port.ps for a portrait slide. The shell will look for the characters *_land.ps and *_port.ps. If the input is lanscape, then the output will be rotated. You must give a page number, as the output will be numbered ([your_name]_01.jpg, [your_name]_02.jpg, ...
TopFor those who want to produce their own postscript of the decade of Geopotential Research (see the example below, or see Mike Purucker's one , they can download the C shell I wrote, together with the data file. These files are plot_decade.c and satellites.dat. You'll need GMT commands.
Then you'll need to compile the C code, by typing gcc plot_decade.c -o plot_decade.exe -lm. You can edit the satellites.dat file, modify it as needed (but respect the conventions --- read the C code for description), and run plot_decade.exe [sizeX] [sizeY]. Typically, one might want to plot a 6.5-in large plot, with height proportionnal to the number of satellites (number/3). for 18 satellites, this gives 6.5 in. The following example was made with plot_decade.exe 6.5 6.5
Comparison of DGRF candidate models:
Color charts of differences between candidate model for DGRF1995.
Black and white charts of differences between candidate model for DGRF1995.
Color charts of differences between candidate model for DGRF2000.
Black and white charts of differences between candidate model for DGRF2000.