Ubuch style
Revision as of 08:34, 14 August 2006 by Taco (talk | contribs) (Reverted edits by 194.165.130.93 (Talk); changed back to last version by Mojca Miklavec)
This is the complete main file of a book about german unitarian religious community ("Was glauben sie eigentlich?"). It was my first book project, so it's rather oldfashioned, feel free to enhance it. Today I'd split it into project and environment file. We should delete this page as soon as we got better examples. --Hraban 23:03, 3 Aug 2004 (CEST)
There is a downloadable version here.
%interface=en tex=pdfetex output=pdf language=de % % Hauptdatei des "Unitarierbuchs" -- Was glauben sie eigentlich? % \language [deo] % deutsch alt (sonst de) / non-reformed german \version [final] % final, concept, temporary \definepapersize [UBuch] [width=14cm,height=21cm] \setuppapersize [UBuch] [A4] % the printshop wanted to impose it manually \setuppagenumbering [alternative=doublesided, location={footer,marginedge}, way=bytext, sectionnumber=no, partnumber=no] \setuplayout [width=11cm, height=16.5cm, header=14pt, headerdistance=10pt, footer=24pt, footerdistance=0pt, grid=yes, marking=on, location=left] \setupheadertexts [][chapter][part][] % line below header / Linie unter Kolumnentitel \setupbackgrounds [header][text][frame=off,bottomframe=on] \setupbodyfont [ber,ppl,10pt] % ppl=Palatino // beware! deprecated font handling! \setupbodyfontenvironment [default][em=italic] % kursiv statt schräg / set italics instead of oblique for "em" \setupindenting [medium] % 1em? Einzug bei neuem Absatz % Fußnotenzeichen = Sternchen usw. % use asterisks, daggers etc. as footnote markers \setupfootnotes [conversion=set 3, way=bypage] \setupinteraction [state=start] % automatische Links usw. %%% Formatierung der hierarchischen Titel %% Hintergrundbild für Part % part title page with background picture \useexternalfigure[hintergrund][part][width=15cm] \def\UPart#1#2% {\tfd\it #1: #2} \def\StartPart#1% {\page \defineoverlay[titelbild][{\externalfigure[hintergrund]}] \setupbackgrounds[rightpage][background=titelbild] \startstandardmakeup \part{#1} \vfill\tfb} \def\StopPart% {\vfill\vfill\stopstandardmakeup \setupbackgrounds[rightpage][background=]} \setupheads [align=right, tolerance=verytolerant, before=\nohyphen\startlinecorrection, after=\stoplinecorrection] \setuphead [part] [command=\UPart, style=\tfd\it, placehead=yes, frame=off, number=yes] \setuphead [chapter] [style=\tfc\it, number=no, page=yes, align=right] \setuphead [title] [style=\tfc, page=yes, placehead=yes, align=right] \setuphead [subject] [style=\tfb\it, align=right] \setuphead [subsubject] [style=\tfa\it, align=right] % Definition des Inhaltsverzeichnis' % ToC definition \definelist [part] \setuplist [part] [before=\blank, style=\it, partnumber=no] \definelist [chapter] \setuplist [chapter] [alternative=b,partnumber=no,criterium=all] \definecombinedlist [inhalt] [part,chapter] [level=chapter, placehead=yes, criterium=all, style=\tfc\it, alternative=b] % Titel-Bestandteile, die nicht ins Inhaltsverzeichnis oder in die Kopfzeile sollen % contents of titles that must not appear in ToC or header \def\nurlang#1{\nomarking{\nolist{#1}}} \def\nllf{\nurlang{\crlf}} % new line only in text / Zeilenvorschub nur im Text \setupfloats [width=11cm] \setupcaptions [number=no, align=right] \setuptables [width=11cm, bodyfont=small, before=\nohyphen] \setupregister [index] [partnumber=no,criterium=all] %%% environments for remarks, poems and author info \definestartstop [anmerkung] [style=small, before={\vfill\startlinecorrection\vbox\bgroup\noindent}, after={\egroup\stoplinecorrection}] \definestartstop [verse] [before={\blank\setuplines[indenting=always]\startalignment[right]\startlines}, after={\stoplines\stopalignment\blank}] \definestartstop [autor] [before={\startalignment[left]\it\noindent}, after=\stopalignment] \def\Autor#1#2{\startautor #1\index{#2}\stopautor} \clubpenalty=10000 % keine Schusterjungen / no clubs \widowpenalty=10000 % keine Hurenkinder / no widows \tolerance=1750 % Zeilenumbruch-Toleranz (ca. 500--3000) // beware! too low-level! there's \setuptolerance instead! \emergencystretch=12 pt % zusätzlich veränderbarer Raum pro Zeile %%%%%%%%%%%%%%%% \starttext %%%%%%%%%%%%%%%% \startfrontmatter % Vorspann \input kap0-1-titelei % beware! better use components instead of inputs! \startstandardmakeup[page=no] \title[inhalt]{Inhaltsverzeichnis} % ToC \placelist \stopstandardmakeup \stopfrontmatter % Hauptteil (wird nummeriert) / main part (gets numbered) \startbodymatter \input kap0-2-vorwort \StartPart{Warum glauben wir?} Ein neuer Religionsbegriff \StopPart \input kap1-1-religionsbegriff \StartPart{Was glauben wir?} Unitarische Gedanken -- \crlf Gedanken von Unitariern \StopPart \input kap2-1-grundgedanken \input kap2-2-kommentar \input kap2-3-praeambel \input kap2-4-religion \input kap2-5-glauben \input kap2-6-leben \input kap2-7-menschen \input kap2-8-zusammenleben \StartPart{Wer sind wir?} Die Religionsgemeinschaft \crlf der Deutschen Unitarier \StopPart \input kap3-1-demokratie \input kap3-3-symbol \input kap3-4-feiern \input kap3-5-lebensfeiern \StartPart{Woher kommen wir?} Unitarische Geistesgeschichte \crlf seit 500 Jahren \StopPart \input kap4-3-pantheismus \input kap4-3a-zeittafel \input kap4-5-freiheit \input kap4-5a-zeittafel \input kap4-6-geschichte \input kap4-6a-zeittafel \StartPart{Wohin gehen wir?} Religion in der Zukunft \StopPart \input kap5-1-zukunft \StartPart{Anhang} \StopPart \switchtobodyfont[small] \input anh1-organisation \input anh2-vereine \input anh3-ut-themen \input anh4-eppelsheim \input anh5-leitged1957 \input anh6-grundged1977 \input anh7-making \completeindex \stopbodymatter \stoptext