Você está na página 1de 23

LATEX for “Powerpoint” Presentations

Rick Muller
MSC Group Meeting
March X, 2002

Materials and Process Simulation Center 1


Overview

• PDF files have many of the same characteristics as PPT


presentations.
– Can display full-screen
– Most people have Acrobat Reader on their computers
• LATEX can produce very nice PDF files
• The Seminar package in LATEX has tools to define frame styles,
background colors, and other useful tricks.

Materials and Process Simulation Center 2


Why not just use Powerpoint?

I’m not trying to bash Microsoft here. They’re a company that


makes lots of good software. However, I sometimes prefer an
alternative, because Powerpoint:
• is a proprietary program, only runs on Windows, and I can’t
run it on Linux
• uses a binary file format, which I can’t read from all computers
I use
• is often prone to crashing

Materials and Process Simulation Center 3


Advantages to LATEX

• Free (speech, beer)


• Text file format
– Can write using a vast variety of programs
– Can read on any computer
– I’ve written LATEX on my Palm Pilot
• Much faster to write
• Much smaller files
• LATEX equations!

Materials and Process Simulation Center 4


Disadvantages to LATEX slides

• Slide sorter mode in Powerpoint is brilliant


• Ability to make a poster by pasting/resizing powerpoint slides
is similarly brilliant
• WAG doesn’t speak LATEX (showstopper?)
• Making slides is inherently a graphical activity, and having a
WYSIWIG interface is useful (necessary?)

Materials and Process Simulation Center 5


Slide Mode in LATEX

• Original slide mode: SliTeX


• Limited capabilities: can’t display colors
• Use via the \documentclass{slides} command.

Materials and Process Simulation Center 6


Seminar Mode in LATEX

• Improvement to SliTeX, displays colors, advanced formatting


commands
• Use via the \documentclass{seminar} command.
• Can define custom headers and footers, and different slide styles

Materials and Process Simulation Center 7


This is the default slide style in seminar mode. The slide is
enclosed in a box, nothing is in the header, and the page number is
in the footer.
This style is toggled by the \slideframe{plain} command.

8
There are other slides available as well. You can use a double box
with the \slideframe{double} command. . .

9
. . . a shadow box with the \slideframe{shadow}. . .

10
' $

. . . or an oval-shaped box with the \slideframe{oval} command.

& %
11
I prefer not having a slideframe at all so I can define my own
header and footer.
You can turn off the slideframe with the \slideframe{none}
command.

12
Defining your own headers and footers

I prefer not having a slideframe at all so I can define my own


header and footer.
You can turn off the slideframe with the \slideframe{none}
command.

Materials and Process Simulation Center 13


Defining your own headers and footers

Here’s the command I use to define the header and the footer:
\newpagestyle{MSC-Logo}
{\hfil\Large\textbf{\textcolor{blue}{\thetitle}}\hfil
\includegraphics[scale=0.1]{cit_logo.eps}}
{\hfil
\tiny\textcolor{red}{Materials and Process Simulation Center}
\hfil\thepage}
Then I just use the command \pagestyle{MSC-Logo} to turn on
my new mode.

Materials and Process Simulation Center 14


Backgrounds

You can also set the background to be a different color, but I’m a
fan of white backgrounds, so that’s what I use.

Materials and Process Simulation Center 15


Other tricks

The package PPower4 is a Java program that can read in a


LATEX file and put pauses and other effects in the file.
I’m
not a big fan of these effects, so I don’t use them. But you can look at
http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4
for more information.

Materials and Process Simulation Center 16


Putting graphics in your slides

Can’t have a talk without graphics! LATEX can only input


encapsulated Post Script (EPS) files. Here are programs that
output EPS files:
Chemical structures Chemdraw outputs beautiful EPS
structures.
Vector graphics The dia program under Linux, or the Canvas or
Illustrator programs on Windows output very nice vector
graphics to the EPS format.
Plots Gnuplot outputs EPS structures on either Windows or
Linux.

Materials and Process Simulation Center 17


Chemical Structures
2,1 insertion
+4.7 N N ε=10
∆E (probe radius = 2.33 Å -
0.0 +1.2
(kcal/mol) -4.8 Pd methylene chloride)
A D
Cl ε=1
N -13.9
N
B -9.3
Pd N N -17.4
H Pd N N C
-28.0
+ Cl Cl Pd Cl

N N O -30.7
Pd -40.6
Cl
N N -45.2
Pd
Q
N N
2,1 insertion Cl

+14.5
Pd +14.4 N N +10.0
Cl
T +9.2
Pd T'
0.0 -0.3 Cl H
0.0
Cl
O -8.3 O
-0.8
-9.9 R -9.9
-9.4 -12.6
N N S
U -10.7
N N
N N
N N
-11.5 U'
-17.2 N N Pd
-17.2
Pd
Cl Pd -15.2 S'
Pd H
Pd Cl
Q Q Cl
Cl Cl
Cl
Cl

Materials and Process Simulation Center 18


Vector Graphics

Materials and Process Simulation Center 19


Gnuplot Plots
1
sin(x)
sin(x)*sin(x)
0.8

0.6

0.4

0.2

-0.2

-0.4

-0.6

-0.8

-1
-10 -5 0 5 10

Materials and Process Simulation Center 20


Useful LATEX Macros

• The macro
\newcommand{\chem}[1]{\ensuremath{\mathrm{#1}}}
allows chemical formulae such as C2 H6 to be input as
\chem{C_2H_6}.
• The macro
\newcommand{\bracket}[3]{\ensuremath{\left
\langle{#1}\left|{#2}\right|{#3}\right\rangle}}
D ¯ ¯ E
allows Dirac brackets such as Ψ ¯Ĥ ¯ Ψ to be input as
¯ ¯

\bracket{\Psi}{\hat{H}}{\Psi}.

Materials and Process Simulation Center 21


Making good PDF files in LATEX

• Need to use proper fonts


Screen Fonts are optimized to look good on computer
monitors
Printer Fonts are optimized to look good on printouts
Type1 Fonts generally are optimized for both
• LATEX now has Type1 versions of all of their fonts
• dvips -Ppdf -o file.ps file.dvi correctly includes the
Type1 fonts when making ps files.
• RPM will upgrade LATEX and properly patch the dvipdf file.

Materials and Process Simulation Center 22


Presentations with PDF Files

• Ctrl-L in Acrobat Reader redisplays the file in full-screen


mode.
• PgDn and PgUp advance and go back in the presentation.
• Esc returns to normal Acrobat Reader display.

Materials and Process Simulation Center 23

Você também pode gostar