[email protected]/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the...

44
L A T E X Update Jörn Clausen [email protected]

Transcript of [email protected]/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the...

Page 1: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

LATEX Update

Jörn [email protected]

Page 2: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Übersicht

• LATEX3-Projekt

• in TEX, um TEX und um TEX herum

• PDF mit LATEX erzeugen

• Syntax (die Schrift)

• Präsentationen mit LATEX erstellen

• TEX & Friends an der Technischen Fakultät

LATEX Update 2/20

Page 3: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

LATEX3-Projekt

• 8 Personen

• Betreuung und Weiterentwicklung von LATEX 2ε

• 1994–1999: zwei Releases pro Jahr (Juni und Dezember)

• 2000, 2001: jeweils ein Release (Juni)

• experimenteller Code, Basis-Funktionen für neue Pakete

• LATEX3-Release???

LATEX Update 3/20

Page 4: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

LATEX Update 4/20

Page 5: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

LATEX Update 4/20

Page 6: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

LATEX Update 4/20

Page 7: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

LATEX Update 4/20

Page 8: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

LATEX Update 4/20

Page 9: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

LATEX Update 4/20

Page 10: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

LATEX Update 4/20

Page 11: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png

LATEX Update 4/20

Page 12: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdf

LATEX Update 4/20

Page 13: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

LATEX Update 4/20

Page 14: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

LATEX Update 4/20

Page 15: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

LATEX Update 4/20

Page 16: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

LATEX Update 4/20

Page 17: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

LATEX Update 4/20

Page 18: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

ppower4

.pdf

LATEX Update 4/20

Page 19: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

ppower4

.pdf

.mmp

LATEX Update 4/20

Page 20: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

ppower4

.pdf

.mmp

.htmllatex2html

LATEX Update 4/20

Page 21: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

ppower4

.pdf

.mmp

.htmllatex2html

.gif

LATEX Update 4/20

Page 22: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

ppower4

.pdf

.mmp

.htmllatex2html

.gif

tex4ht

LATEX Update 4/20

Page 23: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Der TEX-Dschungel

latex.tex .dvi

dvips.ps distill .pdf

ps2pdf

.eps

fig2dev

.fig

pdfthumb

.pdf

dvipdfm

pdflatex

.jpg/.png.pdfepstopdf

mpost

.mp

ppower4

.pdf

.mmp

.htmllatex2html

.gif

tex4htMathML

LATEX Update 4/20

Page 24: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

pdfTEX

• Modifikation von TEX, erzeugt PDF statt dvi

• Hàn Thê Thàn, Universität Brno (Brünn), CZ

• in Web2C eingebunden (teTEX, TEX Live, MiKTEX, . . . )

• funktionieren nicht: PSTricks, psfrag, . . .

• neue Makros für Grafiken, Zusatzinfos, Hypertext

• einfacher: Pakete „graphics“ und „hyperref“ verwenden

• Grafiken einbinden:

\includegraphics[width=.5\textwidth]{image.png}

LATEX Update 5/20

Page 25: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

pdfTEX und hyperref• Zusatzinformationen:

\hypersetup{

pdftitle={pdfTeX test},

pdfauthor={Joe User},

pdfsubject={Example},

pdfkeywords={example, pdfTeX}}

• automatische Links für \label /\ref , \cite , Inhaltsverzeichnis

• eigene : \href{http://www.Uni-Bielefeld.DE}{hier}

• automatische Bookmarks für Standardklassen

• Funktionen des Acrobat Readers, z.B. Navigation:

\Acrobatmenu{NextPage}{n"achste Seite}

• funktioniert auch mit latex+dvips+ps2pdf

LATEX Update 6/20

Page 26: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

PDF und Fonts

• METAFONT erzeugt Bitmap-Fonts

• PDF bevorzugt Vektor-Fonts (Type1 oder TrueType)

• „echte“ PostScript-Schriften: Times, Helvetica, Syntax, . . .

• Type1-Versionen von Computer Modern (von Blue Sky Research)

• bisher keine Type1-Fonts für European Computer Modern (EC)

• Pakete „t1enc“ oder „fontenc“ nicht verwenden

• Almost European Computer Modern („ae“): EC-Kodierung für CM

• TEXtrace: Type1-Fonts aus Metafont-Bitmaps

LATEX Update 7/20

Page 27: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Hausschrift „Syntax“

• bereits seit längerer Zeit im Einsatz

• Nachteil: nur drei Schnitte (Roman, Italic, Bold, kein Bold-Italic)

• neue Version: Linotype Syntax („ltsyntax“)

Light upright italic Small Caps

Regular upright italic Small Caps

Medium upright italic Small Caps

Bold upright italic

Heavy upright italic

Black upright italic

• 15 weitere Schnitte: Small Caps Italic, Old Style Figures

LATEX Update 8/20

Page 28: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

alte und neue Syntax

abcABC123 %@$abcABC123 %@$

Universität BielefeldUniversität Bielefeld

LATEX Update 9/20

Page 29: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

alte und neue Syntax

abcABC123 %@$abcABC123 %@$

Universität BielefeldUniversität BielefeldUniversität Bielefeld

LATEX Update 9/20

Page 30: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Präsentationen mit LATEX

• Dokumentklassen: SLiTEX, slides, FoilTEX, Seminar, . . .

• PDF-Datei im Fullscreen-Modus anzeigen

• farbiger Hintergrund, Farbverlauf

• Folien schrittweise aufbauen, Überblendeffekte

• verschiedene Ansätze:

– Prozessor-neutral, single-pass

– abhängig von pdfLATEX, Post-Prozessor

• druckbare Version zur Präsentation

LATEX Update 10/20

Page 31: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

TEXPower und prosper

• TEXPower:

– unabhängig von Dokumentklasse

– latex+dvips+ps2pdf und pdfLATEX

– alpha-Version von 2000

• prosper:

– latex+dvips+ps2pdf

– Darstellungsfehler

– eigene Dokumentklasse, vorgefertigte Stile

– schlechte Erweiterbarkeit

LATEX Update 11/20

Page 32: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

Programming Perl

the three virtues of a Perl Programmer arelazinessimpatiencehubris

the Perl Motto is

There’s More Than One Way To Do It

. – p.1/1

Programming Perl

the three virtues of a Perl Programmer arelazinessimpatiencehubris

the Perl Motto is

There’s More Than One Way To Do It

. – p.1/1

Programming Perl

• the three virtues of a Perl Programmer are• laziness• impatience• hubris

• the Perl Motto is

There’s More Than One Way To Do It

. – p.1/1

Programming Perl

the three virtues of a Perl Programmer arelazinessimpatiencehubris

the Perl Motto is

There’s More Than One Way To Do It

. – p.1/1

LATEX Update 12/20

Page 33: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

PPower4

• funktioniert mit herkömmlichen Folien-Stilen

• benötigt pdfLATEX

• Post-Prozessor in Java:

– erkennt Markierungen in PDF-Datei

– teilt Seite an Markierungen

• Vorteil: Folie wird nur einmal formatiert, keine Darstellungsfehler

• farbiger Folienhintergrund

• pdfthumb als Zugabe

LATEX Update 13/20

Page 34: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

die orange \pause

• pause.sty

• pdflatex + ppower4

\begin{itemize}

\item foo\pause

\item bar\pause

\item baz\pause

\item boom

\end{itemize}

• foo

• Überblendeffekte: \pauseDissolve , \pauseGlitter , . . .

LATEX Update 14/20

Page 35: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

die orange \pause

• pause.sty

• pdflatex + ppower4

\begin{itemize}

\item foo\pause

\item bar\pause

\item baz\pause

\item boom

\end{itemize}

• foo

• bar

• Überblendeffekte: \pauseDissolve , \pauseGlitter , . . .

LATEX Update 14/20

Page 36: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

die orange \pause

• pause.sty

• pdflatex + ppower4

\begin{itemize}

\item foo\pause

\item bar\pause

\item baz\pause

\item boom

\end{itemize}

• foo

• bar

• baz

• Überblendeffekte: \pauseDissolve , \pauseGlitter , . . .

LATEX Update 14/20

Page 37: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

die orange \pause

• pause.sty

• pdflatex + ppower4

\begin{itemize}

\item foo\pause

\item bar\pause

\item baz\pause

\item boom

\end{itemize}

• foo

• bar

• baz

• boom

• Überblendeffekte: \pauseDissolve , \pauseGlitter , . . .

LATEX Update 14/20

Page 38: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

PPower4, cont.

• \pauselevel : Aufbau in beliebiger Reihenfolge

• Grafiken:

– mit xfig erstellen, jede Phase als eigene Ebene (depth)

– als Multi MetaPost abspeichern

– \multiinclude[graphics={width=\textwidth}]{image-anim}

• Farbverlauf: color.sty + background.sty

\definecolor{ltblue}{rgb}{0.25,0.59,1.00}

\definecolor{rgbwhite}{rgb}{1.00,1.00,1.00}

\vpagecolor[ltblue]{rgbwhite}

• Seminar-Stil mit pdfLATEX: fixseminar.sty (TEXPower)

LATEX Update 15/20

Page 39: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

druckbare Präsentationen

• Präsentationsformat schlecht druckbar:

– viele partielle Folien

– farbiger Hintergrund

• Effekte ausschalten:

\usepackage[ignore]{pause}

%\vpagecolor[ltblue]{rgbwhite}

• Problem: Quelltext ändern? Zwei LATEX-Dateien?

LATEX Update 16/20

Page 40: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

pdfTEX – oder auch nicht

• Test zur Laufzeit:

\newif\ifpdf

\@ifundefined{pdfoutput}{\pdffalse}{\pdftrue}

• Extras gegen Aufpreis:

\ifpdf

\usepackage{pause,color,background}

\definecolor{ltblue}{rgb}{0.25,0.59,1.00}

\definecolor{rgbwhite}{rgb}{1.00,1.00,1.00}

\vpagecolor[ltblue]{rgbwhite}

\else

\usepackage[ignore]{pause}

\fi

LATEX Update 17/20

Page 41: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

druckbare Präsentationen, cont.

• gleichzeitige Verarbeitung mit LATEX und pdfLATEX ermöglichen

• image.eps für LATEX, image.{png,pdf} für pdfLATEX

\includegraphics[width=.5\textwidth]{image}

• \includegraphics vs. \multiinclude

pdf-Datei fig EPS PNG/JPG

Präsentation pdflatex, ppower4 mmp epstopdf direkt

Ausdruck latex, dvips, ps2pdf mp direkt NetPBM

• Makefile

LATEX Update 18/20

Page 42: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

TEX & Friends an der Technischen Fakultät

• /vol/tex-7/ , rcinfo-Paket

• Solaris 2, Tru64 UNIX, IRIX

• teTEX-Basis, texmf-Baum von TEX Live-CD

• unterhalb von /vol/tex-7/share/

texmf teTEX

texmf-texlive TEX Live 7

texmf-staging Updates

texmf-local Syntax, techbrief, . . .

LATEX Update 19/20

Page 43: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

HappyTEXing

LATEX Update 20/20

Page 44: joern@TechFak.Uni-Bielefeldjoern/edu/tex/latexupdate... · 2002. 11. 20. · Pr ogramming P erl the three vir tues of a P er l Prog r ammer are laziness impatience hubr is the P er

HappyTEXingWill TEX for Food

LATEX Update 20/20