Difference between revisions of "Skdk style"
Jump to navigation
Jump to search
(new (raw, still with german comments)) |
(correct example link) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
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'']. | 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 looks like this: | ||
+ | |||
+ | [[Image:Skdk-style-shot.png]] | ||
It's not really sophisticated – corrections are welcome! | It's not really sophisticated – corrections are welcome! | ||
− | < | + | There is a downloadable version [[media:Skdk_style.tex|here]]. |
+ | |||
+ | <texcode> | ||
\startenvironment env_pdf-info | \startenvironment env_pdf-info | ||
\setupoutput [pdftex] | \setupoutput [pdftex] | ||
\version [final] % final, temporary, concept | \version [final] % final, temporary, concept | ||
− | \enableregime [il1] % | + | \enableregime [il1] % input encoding |
\mainlanguage [de] | \mainlanguage [de] | ||
− | \setuptolerance [tolerant] % | + | \setuptolerance [tolerant] % hyphenation |
\setupinteraction [state=start, | \setupinteraction [state=start, | ||
− | + | title={PDF-Info}, | |
− | + | author={Henning Hraban Ramm}] % PDF document properties | |
− | \setupencoding [default=ec] | + | % typescript and fonts |
+ | \setupencoding [default=ec] | ||
\usetypescriptfile [type-lino] | \usetypescriptfile [type-lino] | ||
\usetypescript [lino][neu-ten] | \usetypescript [lino][neu-ten] | ||
\setupbodyfont [neu-ten,ss] | \setupbodyfont [neu-ten,ss] | ||
− | \setuphyphenmark [-] | + | \setuphyphenmark [-] % otherwise the hyphen mark came from CM |
− | % | + | %%% SCREEN MODE (default) %%% |
\startnotmode [handout] | \startnotmode [handout] | ||
\usemodule [pre-general] | \usemodule [pre-general] | ||
Line 40: | Line 47: | ||
% same paper size as PowerPoint corporate template... | % same paper size as PowerPoint corporate template... | ||
\definepapersize [PP][width=24cm, height=18cm] | \definepapersize [PP][width=24cm, height=18cm] | ||
− | \setuppapersize [PP][PP] | + | \setuppapersize [PP][PP] |
\setuplayout | \setuplayout | ||
Line 57: | Line 64: | ||
\setuppagenumbering[state=stop] | \setuppagenumbering[state=stop] | ||
− | \setupinteractionscreen[option=max] | + | \setupinteractionscreen[option=max] % Acrobat screen mode |
\def\NormalBackground{% | \def\NormalBackground{% | ||
Line 102: | Line 109: | ||
[right] | [right] | ||
[height=24pt] | [height=24pt] | ||
− | \but [CloseDocument] | + | \but [CloseDocument] End \\ |
\stopinteractionmenu | \stopinteractionmenu | ||
Line 108: | Line 115: | ||
\setupblank[big] | \setupblank[big] | ||
− | % | + | % some external graphics... |
− | |||
− | |||
− | |||
− | |||
− | |||
\useexternalfigure [FischInvers] [skdk-dklogo-neg] [width=0.66\rightedgewidth] | \useexternalfigure [FischInvers] [skdk-dklogo-neg] [width=0.66\rightedgewidth] | ||
− | |||
− | |||
\useexternalfigure [treppe] [skdk-treppenhaus] | \useexternalfigure [treppe] [skdk-treppenhaus] | ||
− | \defineoverlay [NextPage] [\overlaybutton{forward}] | + | \defineoverlay [NextPage] [\overlaybutton{forward}] % whole page links to next page |
− | \definelogo | + | \definelogo [Suedkurier] [bottom][left] |
[command={\externalfigure[Medienhaus][height=24pt]}, state=start] | [command={\externalfigure[Medienhaus][height=24pt]}, state=start] | ||
\defineoverlay [Treppenhaus] [{\externalfigure[treppe][width=\rightedgewidth, height=\printpaperheight]}] | \defineoverlay [Treppenhaus] [{\externalfigure[treppe][width=\rightedgewidth, height=\printpaperheight]}] | ||
− | \defineoverlay [Treppe-Logo][{\framed[ | + | \defineoverlay [Treppe-Logo] [{\framed[ |
frame=off, background=Treppenhaus] | frame=off, background=Treppenhaus] | ||
{\framed[frame=off, height=\textheight, align=top] | {\framed[frame=off, height=\textheight, align=top] | ||
Line 133: | Line 133: | ||
\setupinteraction[menu=off] | \setupinteraction[menu=off] | ||
\setupinteractionbar[state=stop] | \setupinteractionbar[state=stop] | ||
− | \setupbackgrounds[top,text,bottom][rightedge][background= | + | \setupbackgrounds[top,text,bottom][rightedge][background=] |
\setupbackgrounds[text][rightedge][background={Treppe-Logo}] | \setupbackgrounds[text][rightedge][background={Treppe-Logo}] | ||
\startstandardmakeup | \startstandardmakeup | ||
Line 214: | Line 214: | ||
\setupbodyfont [16pt] | \setupbodyfont [16pt] | ||
\stopnotmode | \stopnotmode | ||
+ | %%% END of SCREEN MODE %%% | ||
\setupexternalfigures[directory={../bilder}] | \setupexternalfigures[directory={../bilder}] | ||
+ | %\setupexternalfigures[directory={c:/daten/dokumente/tex/bilder}] | ||
\useexternalfigure [Medienhaus] [skdk-medienhaus][height=24pt] | \useexternalfigure [Medienhaus] [skdk-medienhaus][height=24pt] | ||
− | % | + | % generic default sizes for pictures (screenshots etc.) |
− | \useexternalfigure [dummy] [ | + | \useexternalfigure [dummy] [nofile] [width=0.32\textwidth] |
− | \useexternalfigure [bigdummy] [ | + | \useexternalfigure [bigdummy] [nofile] [width=0.65\textwidth] |
\startnotmode[handout] | \startnotmode[handout] | ||
− | \useexternalfigure [wzdummy] [ | + | \useexternalfigure [wzdummy] [nofile] [height=1.5\lineheight] |
\stopnotmode | \stopnotmode | ||
\startmode[handout] | \startmode[handout] | ||
− | \useexternalfigure [wzdummy] [ | + | \useexternalfigure [wzdummy] [nofile] [height=2\lineheight] |
\stopmode | \stopmode | ||
Line 245: | Line 247: | ||
\setupregister [index] | \setupregister [index] | ||
− | [style={\cap\bf}, % | + | [style={\cap\bf}, % title style |
− | textstyle=\tfx, % | + | textstyle=\tfx, % item |
− | pagestyle=\tfx] % | + | pagestyle=\tfx] % page number |
%% PRINT (handout) MODE %%% | %% PRINT (handout) MODE %%% | ||
\startmode[handout] | \startmode[handout] | ||
− | \setupinteraction[color=black,style={\tf\underbars}] | + | \setupinteraction[color=black, style={\tf\underbars}] |
− | \setupunderbar[alternative=a, rulecolor=SK-Beige] | + | \setupunderbar[alternative=a, rulecolor=SK-Beige] % nearly invisible underbar |
− | + | \setupcolors [state=start, system=cmyk] | |
\definecolor [SK-Blau] [c=1,m=.7,y=0,k=0] | \definecolor [SK-Blau] [c=1,m=.7,y=0,k=0] | ||
\definecolor [Hellblau] [c=.5,m=.35,y=0,k=0] | \definecolor [Hellblau] [c=.5,m=.35,y=0,k=0] | ||
Line 263: | Line 265: | ||
\definecolor [SK-Grau] [k=.35] | \definecolor [SK-Grau] [k=.35] | ||
\definecolor [Weiss] [k=.001] | \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] | \setupbodyfont [rm,10pt] | ||
Line 288: | Line 290: | ||
\setupheadertexts [chapter][subject] | \setupheadertexts [chapter][subject] | ||
\setupfootertexts [{\externalfigure[Medienhaus]}][pagenumber] | \setupfootertexts [{\externalfigure[Medienhaus]}][pagenumber] | ||
− | \setupfootnotes [way=bypage, bodyfont=8pt] | + | \setupfootnotes [way=bypage, bodyfont=8pt] |
− | \definehead [Part][chapter] | + | \definehead [Part] [chapter] |
− | \definehead [Subject][section] | + | \definehead [Subject] [section] |
− | \definehead [Subsubject][subsection] | + | \definehead [Subsubject] [subsection] |
− | \definehead [Subsubsubject][subsubsection] | + | \definehead [Subsubsubject] [subsubsection] |
\setuphead | \setuphead | ||
Line 380: | Line 382: | ||
\stopenvironment | \stopenvironment | ||
− | </ | + | </texcode> |
+ | |||
+ | [[Category:Sample documents]] |
Latest revision as of 10:28, 1 October 2012
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 fiëé teXnique.
It looks like this:
It's not really sophisticated – corrections are welcome!
There is a downloadable version here.
\startenvironment env_pdf-info \setupoutput [pdftex] \version [final] % final, temporary, concept \enableregime [il1] % input encoding \mainlanguage [de] \setuptolerance [tolerant] % hyphenation \setupinteraction [state=start, title={PDF-Info}, author={Henning Hraban Ramm}] % PDF document properties % typescript and fonts \setupencoding [default=ec] \usetypescriptfile [type-lino] \usetypescript [lino][neu-ten] \setupbodyfont [neu-ten,ss] \setuphyphenmark [-] % otherwise the hyphen mark came from CM %%% SCREEN MODE (default) %%% \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] % Acrobat screen mode \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] End \\ \stopinteractionmenu \setupwhitespace[big] \setupblank[big] % some external graphics... \useexternalfigure [FischInvers] [skdk-dklogo-neg] [width=0.66\rightedgewidth] \useexternalfigure [treppe] [skdk-treppenhaus] \defineoverlay [NextPage] [\overlaybutton{forward}] % whole page links to next page \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=] \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 %%% END of SCREEN MODE %%% \setupexternalfigures[directory={../bilder}] %\setupexternalfigures[directory={c:/daten/dokumente/tex/bilder}] \useexternalfigure [Medienhaus] [skdk-medienhaus][height=24pt] % generic default sizes for pictures (screenshots etc.) \useexternalfigure [dummy] [nofile] [width=0.32\textwidth] \useexternalfigure [bigdummy] [nofile] [width=0.65\textwidth] \startnotmode[handout] \useexternalfigure [wzdummy] [nofile] [height=1.5\lineheight] \stopnotmode \startmode[handout] \useexternalfigure [wzdummy] [nofile] [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}, % title style textstyle=\tfx, % item pagestyle=\tfx] % page number %% PRINT (handout) MODE %%% \startmode[handout] \setupinteraction[color=black, style={\tf\underbars}] \setupunderbar[alternative=a, rulecolor=SK-Beige] % nearly invisible underbar \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