Cool stuffs(???)

How to make landscape and portrait slides in latex, with only one file and one compilation? See here...

How to convert postscript slides to two small and large .jpg files? See here...

The decade of Geopotential Research plot
Preview

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.

\documentclass[portrait]{seminar}
\usepackage{epsfig}
\usepackage{rotating}
\usepackage{fancybox}
\usepackage{slidesec}
\usepackage{color}
%\usepackage{...}
\usepackage{include_format}

\input{pst-3d}

%Location of the .epsi files
\graphicspath{{figures/}}

%Page style
\pagestyle{empty}
\slidestyle{bottom}
%Frame format, uncomment one
\slideframe{double}
%\slideframe{shadow}
%\slideframe{oval}
%\slideframe{none}

%label, customize with the meeting name, ...
%\def\slidelabel{ \hspace*{\fill} \thepage}
\def\slidelabel{\tiny{my meeting, my session \hspace*{\fill} \ \thepage}}

%%%%%
%
% DEPENDING ON THE PAPER FORMAT YOU ARE USING
% YOU CAN COMMENT OR UNCOMMENT ONE OF THE TWO BLOCKS BELOW.
%
%%%%%

%%%%%
% This bit is tuned for the Letter paper format
%%%%%
%\newenvironment{landslide}
%{\renewcommand{\slideleftmargin}{11.5cm}
%\renewcommand{\slidetopmargin}{-5.5cm}
%\begin{slide}[225mm,150mm] \special{landscape}}
%{\end{slide}}

%\newenvironment{portslide}
%{\renewcommand{\slideleftmargin}{1.5cm}
%\renewcommand{\slidetopmargin}{2.5cm}
%\begin{slide*}[220mm,155mm] }
%{\end{slide*}}

%%%%%
% This bit is tuned for the A4 paper format
%%%%%
\newenvironment{landslide}
{\renewcommand{\slideleftmargin}{10.0cm}
\renewcommand{\slidetopmargin}{-5.0cm}
\begin{slide}[225mm,150mm] \special{landscape}}
{\end{slide}}

\newenvironment{portslide}
{\renewcommand{\slideleftmargin}{0.5cm}
\renewcommand{\slidetopmargin}{3.0cm}
\begin{slide*}[220mm,155mm] }
{\end{slide*}}

Some parts are optional, and concern the labelling, the frame, ... Then you start your document, with begin{document} and your slidesm depending their orientation:

\begin{landslide}
\centerline{\LARGE This slide is a landscape one.}
\end{landslide}

\begin{portslide}
\centerline{\LARGE This slide is a portrait one.}
\end{portslide}


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:


compil_slide --[a,l,p] slide.tex [first page] [last page]

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: Lansdcape slide Portrait slide


Top

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, ...

Top

For 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

decade, 11/16/02
Top

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.


back