% Doc:
\documentclass[a4paper]{article}
\usepackage{}
\begin{document}
\end{document}
\begin{document}
)
\usepackage{graphicx}
\includegraphics{graphics_file_name}
To change graphic dimensions and orientation, clipping and other
operations use \includegraphics
options. For instance,
to change graphics width to width of document page, write
\includegraphics[width=\textwidth]{graphics_file_name}
Both mentioned commands can be use with option draft
(such as \usepackage[draft]{graphicx}
,
\includegraphics[draft]{graphics_file_name}
)
for inserting only graphics bounding box not graphics itself.
It drasticaly speeds up text debugging.
More information you can find in Using EPS Graphics in LaTeX 2e Documents (PS, 767K bytes) by Keith Reckdahl (available in both CMP rooms 110, 129) or The LaTeX Graphic Companion in CMP library, signature C23.
\include epsf
\epsfbox{graphics_file_name}
\epsfxsize=size
or \epsfysize=size
,
respectively.
dvips
, and gv
can maintain compressed
graphics files automatically (under UNIX), we can store them compressed by
gzip
to save disk space.
The only things you should do are:
.eps.bb
file with bounding box information about
your graphics as followsgetbbox file
getbbox '*.eps'
gzip file(s)
\includegraphics
command.
\url|...|
the same way as the
\verb|...|
macro. The splitting lines at reasonable places
is prefered now.
More informatin you can find in my internal report URL v TeXu (72K bytes, PS, in Czech) and at the end of the url.sty source code (17K bytes).
\usepackage{fullpage}
.Generaly use in both LaTeX2e and LaTeX209 style Vmargin. There are two main macros:
\setpapersize{A4} % or A0-A9, B0-B9, C0-C9, USletter, USlegal, USexecutive
[landscape]
\setmargins{leftmargin}{topmargin}{textwidth}{textheight}%
{headheight}{headsep}{footheight}{footskip}
Only loading style, not setting parameters described above, it sets default margin as follows:
\usepackage{vmargin}
\setpapersize{A4}
\setmarginsrb{35mm}{20mm}{25mm}{15mm}{12pt}{11mm}{0pt}{11mm}
\usepackage{vmargin}
\setpapersize[landscape]{A4}
\setmarginsrb{35mm}{20mm}{25mm}{15mm}{12pt}{11mm}{0pt}{11mm}
DVIPS -t landscape
.lscape
package in LaTeX 2e in the next way:
\usepackage{lscape} ... \begin{landscape} Your landscape page. \end{landscape} ...
rotating
package and use sidewaysfigure
or sidewaystable
environment instead of figure
or table
, respectively.
rotating
package. If you wish to insert
text rotated left with appropriate space write
\usepackage{rotating} ... \begin{turn}{-90} Rotating text, table items, \parbox, ... \end{turn}
\usepackage{rotating} ... \begin{rotate}{-90} Rotating text, table items, \parbox, ... \end{rotate}
rotate.sty
macro and
its syntax is
\rotate[l|r|u|f]{text}
l
is for left, r
for right,
u
for upside-down, or f
for flip.
Make handouts from your slides:
printout
option in texpower
package. Run pdflatex
.
printcmptalk [-p] your_presentation_file.pdf
-p
send output directly to the default
printer. Otherwise the output file name is printyour_presentation_file.pdf
.
Instalation on personal (non-CMP net) computers:
Y:\TeX.new\texmf.local\tex\latex\cmp\cmptalk\*.*
or
from /usr/TeX/texmf-local/tex/latex/cmp/cmptalk/*
to $(MY_LOCAL_TEX_TREE)/tex/latex/cmp/cmptalk/
.
Y:\TeX.new\texmf.local\tex\latex\foiltex\*.*
or
from /usr/TeX/texmf-local/tex/latex/foiltex/*
to $(MY_LOCAL_TEX_TREE)/tex/latex/foiltex/
.
mktexlsr
).
Translation with psfrag
package:
latex file
dvips -P pdf -t screen file
ps2pdf file.ps file.pdf
Package texpower
makes possible pages with incremental material
(overly) (TeXPower demos+manual
).
Consult the concise and good PDFTex manual (PDF, 322K bytes). If you are PDF addicts, you probably know PDF manual (5.3Mb, PDF) with complete PDF description. Both manuals in printed form (but not latest versions) are available in CMP library (rooms 110 or 129). More information on CsTUG page (in Czech).
Brief course:
pdf
preposition,
e.g. pdflatex
, pdfcslatex
, or
pdfcsplain
. Be sure pdftex
means
pdfplain
.
\usepackage[pdftex]{graphicx}
. For document
independency not to write file extensions in
\includegraphics{}
macro. The same
[pdftex]
options add if you need
color
package.
.pdf
,
.png
, .jpg
, .mps
.
Thanks to automatic convertor Encapsulated PostScript from
only (!) METAPOST program can be incorporated too with
.mps
file extension.
To convert .eps
graphics files to
.pdf
use program: epstopdf
file. If it colapses (Matlab figure with both
image and lines) use Adobe Distiler.
\usepackage[pdftex]{hyperref}
, for non default
usage see hyperref manual
(PDF, 1.8K bytes). Printed version also in rooms 110
and 129.
\usepackage{ifpdf}
and write just like:
\ifPDF ... \else ... \fi
seminar
class. Use foiltex
or slides
classes instead.
.avi, .mov
) use
prfTeX primitive \pdfannot
(for its parameters
check PDFTex manual (PDF, 322K bytes). For example, the latex
macro looks like that:
\newlength{\wwww}
\newlength{\hhhh}
\newcommand{\includepdfanim}[4]{%
%\includepdfanim{file.avi}{file[.pdf,.eps]}{width}{height}
\ifPDF%
\setlength{\wwww}{#3}%
\setlength{\hhhh}{#4}%
\fbox{\parbox[b][#4][t]{#3}{\hskip0pt plus0fil%
\pdfannot height\hhhh width\wwww depth0cm{/Subtype /Movie
/Movie << /F (#1) /Aspect [480 352] /Poster true >>
/A << /ShowControls true /Mode /Open /Rate 0.1 >> }}}%
\else%
\includegraphics[width=#3,height=#4]{#2}%
\fi}
It is called from your LaTeX file as follows:
\includepdfanim{mymovie.avi}{static_file_replacement}{width}{height}
The replacement is either .pdf or .eps image that is replaced
if not pdf is created at the output. The parameter Rate gives
the rate of the movie. It is deliberately selected as very
slow. This is to avoid the problem that, unfortunately, the
Control interface on the screen does not provide buttons for
frame forward, backward, etc. When the movie is started by
clicking the left mouse button in Acrobat Reader, the control
interface occures below the movie. There are two items on
it. Clicking the button on the left stops/resumes the
movie. The arrow in the middle indicates corresponds to the
ordinal number of the frame in the movie. As the movie is slow
(due to small parameter Rate) the movie can be stopped
immediately. The individual frames can be shown by dragging
the arrow.
Remember fill size of movie window and correct name of your
.avi
file after /F mark! Template parameters are
described in PDF manual
(5.3Mb, PDF), part about movie. All possible behaviour you can try
in Acrobat Exchange interactively.
To create .avi
from a set of static pictures of
the same size the avi
file format has to be
created by MainActor or Corel-Paint (menu File->New, tick
Create a movie; give its size in pixels; then individual
frames can be included from a disk file, select in menu
Movie->Insert from file) under Windows. Recommended format
options are: millions of colors and type cinepak radius
.
To create .avi
file from Geomview, do:
- Save sequence of snapshots
.ppm
through
`Video capture' application under Geomview (right list in
main panel).
-
.ppm -> .gif
by mogrify -format gif
*.ppm
- Move all
.gif
files to Novell and use
WinActor program.
Movie has not been supported by any plug-in on Linux yet. You
should use Acrobat under Windows as described in previous paragraph.