Changes

Jump to navigation Jump to search
8,771 bytes added ,  21:19, 27 July 2004
new (raw, still with german comments)
< [[Sample documents]]

This is the environment for a presentation style that tries to be close to the former corporate PowerPoint style of Hraban's employer "Südkurier Medienhaus, Druckerei Konstanz" (SKDK). It was first used for a PDF/Acrobat tutorial, see [http://www.ramm.ch/fiee/texnique/?menu=0-3-1&lang=en ''fiëé teXnique''].

It's not really sophisticated – corrections are welcome!

<pre>
\startenvironment env_pdf-info
\setupoutput [pdftex]

\version [final] % final, temporary, concept
\enableregime [il1] % Eingabecodierung
\mainlanguage [de]
\setuptolerance [tolerant] % Silbentrennung

\setupinteraction [state=start,
title={PDF-Info},
author={Henning Hraban Ramm}] % PDF-Dokumenteigenschaften

\setupencoding [default=ec]
\usetypescriptfile [type-lino]
\usetypescript [lino][neu-ten]
\setupbodyfont [neu-ten,ss]
\setuphyphenmark [-]

% Für Bildschirm-PDF (ist hier der Standardmodus)
\startnotmode [handout]
\usemodule [pre-general]
\setupalign [right]

\setupcolors [state=start, system=rgb]
\definecolor [SK-Blau] [r=.2, g=.25, b=.5]
\definecolor [Hellblau] [r=.4, g=.5, b=1]
\definecolor [SK-Rot] [r=.7, g=.1, b=.2]
\definecolor [SK-Beige] [r=.9, g=.8, b=.7]
\definecolor [SK-Gruen] [r=.5, g=.6, b=.4]
\definecolor [SK-Grau] [r=.5, g=.5, b=.5]
\definecolor [Weiss] [r=1, g=1, b=1]

% same paper size as PowerPoint corporate template...
\definepapersize [PP][width=24cm, height=18cm]
\setuppapersize [PP][PP]

\setuplayout
[width=180mm,
height=160mm,
backspace=10mm,
topspace=10mm,
top=10mm,
header=0mm,
footer=0mm,
bottom=10mm,
margin=0mm,
rightedgedistance=5mm,
rightedge=50mm]

\setuppagenumbering[state=stop]

\setupinteractionscreen[option=max]

\def\NormalBackground{%
\setupbackgrounds
[top,text,bottom][rightedge]
[background=color,
backgroundcolor=SK-Blau,
state=start]
}
\NormalBackground

\setupinteraction
[state=start,
menu=on,
color=black,
style={\tf\underbars}]

\setupunderbar[alternative=c, rulecolor=SK-Blau] % underdots

\setupinteractionmenu
[right]
[style={\ss\bfx},
color=Weiss,
contrastcolor=SK-Grau,
frame=off,
offset=10pt,
align=right,
before=,
after=,
inbetween=\endgraf,
width=\rightedgewidth]

\startinteractionmenu[right]
\placelist
[Subject]
[criterium=all,
alternative=right,
maxwidth=.8\rightedgewidth,
interaction=all,
before=,
after=]
\vfill
\setupinteractionmenu
[right]
[height=24pt]
\but [CloseDocument] Ende \\
\stopinteractionmenu

\setupwhitespace[big]
\setupblank[big]

% Wir brauchen ein paar externe Grafiken...

\setupexternalfigures[directory={../bilder}]
%\setupexternalfigures[directory={c:/daten/dokumente/tex/bilder}]

% Logo Fische / Druckerei Konstanz
\useexternalfigure [FischInvers] [skdk-dklogo-neg] [width=0.66\rightedgewidth]

% Hintergrundbilder
\useexternalfigure [treppe] [skdk-treppenhaus]

\defineoverlay [NextPage] [\overlaybutton{forward}]

\definelogo [Suedkurier][bottom][left]
[command={\externalfigure[Medienhaus][height=24pt]}, state=start]
\defineoverlay [Treppenhaus] [{\externalfigure[treppe][width=\rightedgewidth, height=\printpaperheight]}]
\defineoverlay [Treppe-Logo][{\framed[
frame=off, background=Treppenhaus]
{\framed[frame=off, height=\textheight, align=top]
{\externalfigure[FischInvers]}}}]

\def\StartTitlePage%
{\setupbackgrounds[rightedge][background={color,NextPage}]
\setupinteraction[menu=off]
\setupinteractionbar[state=stop]
\setupbackgrounds[top,text,bottom][rightedge][background=]%[state=stop]
\setupbackgrounds[text][rightedge][background={Treppe-Logo}]
\startstandardmakeup
\setupalign[right]
\stelinterliniein
\vfil
\let\\=\vfil}

\def\StopTitlePage%
{\vfill
{\tfx Version \currentdate[year,-,mm,-,dd] }
\stopstandardmakeup
\setupinteraction[menu=on]
\setupinteractionbar[state=start]
\NormalBackground
}
\def\TitlePage#1%
{\StartTitlePage\Part{#1}\StopTitlePage}

\def\Topics#1{}
\def\Subjects{\placelist[Subject]
[pagenumber=no,
style=\ss\tfa,
symbol=1,
interaction=all]}
\def\Subsubjects{\placelist[Subsubject]
[pagenumber=no,
style=\ss\tfa,
symbol=1,
interaction=all]}

\definehead [Part] [chapter]
\definehead [Topic] [chapter]
\definehead [Nopic] [title]
\definehead [Subject] [section]
\definehead [Subsubject][subsection]
\definehead [Subsubsubject][subsubsection]

\setuphead
[Part]
[after={\vfil},
number=no,
style=\ss\bfd,
color=SK-Blau,
page=yes]

\setuphead
[Topic, Nopic]
[after={\blank[3*medium]},
number=no,
style=\ss\bfc,
color=SK-Blau,
page=yes]

\setuphead
[subject, Subject]
[after=\blank,
number=no,
page=yes,
continue=no,
style=\ss\bfb,
color=SK-Blau]

\setuphead
[subsubject, Subsubject]
[after=\blank,
number=no,
page=yes,
continue=no,
style=\ss\bfa,
color=SK-Blau]

\setuphead
[subsubsubject, Subsubsubject]
[after={},
number=no,
style={\ss\bf},
color=SK-Blau]

\setupbodyfont [16pt]
\stopnotmode

\setupexternalfigures[directory={../bilder}]
\useexternalfigure [Medienhaus] [skdk-medienhaus][height=24pt]

% allgemeine Standardgrößen für Bilder
\useexternalfigure [dummy] [keinedatei] [width=0.32\textwidth]
\useexternalfigure [bigdummy] [keinedatei] [width=0.65\textwidth]
\startnotmode[handout]
\useexternalfigure [wzdummy] [keinedatei] [height=1.5\lineheight]
\stopnotmode
\startmode[handout]
\useexternalfigure [wzdummy] [keinedatei] [height=2\lineheight]
\stopmode

\usemodule [chart]

\setupFLOWcharts
[height=3\bodyfontsize,
maxwidth=\textwidth,
maxheight=\textheight]

\setupFLOWshapes
[framecolor=SK-Blau,
background=color,
backgroundcolor=Hellblau]

\setupFLOWlines
[corner=rectangular,
color=SK-Blau]

\setupregister [index]
[style={\cap\bf}, % ‹berschriften
textstyle=\tfx, % Begriff
pagestyle=\tfx] % Seitenzahlen

%% PRINT (handout) MODE %%%
\startmode[handout]

\setupinteraction[color=black,style={\tf\underbars}]
\setupunderbar[alternative=a, rulecolor=SK-Beige]

\setupcolors [state=start, system=cmyk]
\definecolor [SK-Blau] [c=1,m=.7,y=0,k=0]
\definecolor [Hellblau] [c=.5,m=.35,y=0,k=0]
\definecolor [SK-Rot] [c=.2,m=1,y=1,k=0]
\definecolor [SK-Beige] [c=0,m=0,y=.15,k=.07]
\definecolor [SK-Gruen] [c=.33,m=.09,y=.33,k=.19]
\definecolor [SK-Grau] [k=.35]
\definecolor [Weiss] [k=.001]
\setuppapersize [A4][A4]
\setuplayout[grid=yes,
backspace=20mm,
width=175mm,
topspace=10mm,
header=7mm,
headerdistance=8mm,
height=270mm,
footer=20mm,
bottomspace=17mm]

\setupbodyfont [rm,10pt]
\setupindenting [10pt]

\setupalign [hanging]
\setupcolumns [n=2, tolerance=tolerant,
distance=6mm, balance=yes]
\setuppagenumbering [alternative=singlesided,
location={footer,right},
way=bytext, partnumber=no]

\setupbackgrounds [header][text][frame=off,bottomframe=on,framecolor=SK-Grau]
\setupheader [location=text, style=\ss, state=start]
\setupheadertexts [chapter][subject]
\setupfootertexts [{\externalfigure[Medienhaus]}][pagenumber]
\setupfootnotes [way=bypage, bodyfont=8pt]

\definehead [Part][chapter]
\definehead [Subject][section]
\definehead [Subsubject][subsection]
\definehead [Subsubsubject][subsubsection]

\setuphead
[Part]
[number=no,
style={\ss\bfd},
color=SK-Blau,
page=right]

\setuphead
[subject, Subject]
[after={\blank},
number=no,
page=yes,
continue=no,
style={\ss\bfb},
color=SK-Blau]

\setuphead
[title, Nopic]
[after={\blank},
number=no,
page=no,
continue=yes,
style={\ss\bfb},
color=SK-Blau]

\setuphead
[subsubject, Subsubject]
[after={\blank\page[no]},
number=no,
color=SK-Blau,
style={\ss\bfa}]

\setuphead
[subsubsubject, Subsubsubject]
[after={},
number=no,
style={\ss\bf},
color=SK-Blau]

\def\Subjects{\placelist[Subject]
[alternative=f,
style={\ss\tfa},
interaction=all,
color=black]}

\def\Subsubjects{\startcolumns[2]\placelist[Subsubject]
[pagenumber=no,
alternative=f,
style=\ss,
interaction=all,
color=black]\stopcolumns}

\def\StartTitlePage%
{\startstandardmakeup[doublesided=no]
\setupbackgrounds[header][text][background=]
\switchtobodyfont[ss,18pt]
\setupalign[right]
\setupindenting[0pt]
\stelinterliniein
\vfil
\let\\=\blank}

\def\StopTitlePage%
{\vfill
{\tfx Version \currentdate[year,-,mm,-,dd] }

\stopstandardmakeup
}

\def\TitlePage#1{\StartTitlePage\Part{#1}\StopTitlePage}

\stopmode

\hyphenation{
Aus-ga-be-farb-raum
Do-ku-men-ten-ma-na-ge-ment
Do-ku-men-ten-ma-na-ge-ment-Sy-s-te-men
Farb-raum
Illu-s-tra-tor
Werk-zeug-lei-s-ten
}

\def\Tindex#1{\index{#1}#1}

\stopenvironment
</pre>

Navigation menu