Difference between revisions of "Ubuch style"

From Wiki
Jump to navigation Jump to search
(new (raw, still with german comments))
 
m (Reverted edits by 194.165.130.93 (Talk); changed back to last version by Mojca Miklavec)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
< [Sample documents]
+
< [[Sample documents]]
  
 
This is the complete main file of a book about german unitarian religious community ([http://www.unitarier.de/verlag/?menu=0-2-2 "Was glauben sie eigentlich?"]).
 
This is the complete main file of a book about german unitarian religious community ([http://www.unitarier.de/verlag/?menu=0-2-2 "Was glauben sie eigentlich?"]).
Line 7: Line 7:
 
--[[User:Hraban|Hraban]] 23:03, 3 Aug 2004 (CEST)
 
--[[User:Hraban|Hraban]] 23:03, 3 Aug 2004 (CEST)
  
<pre>
+
There is a downloadable version [[media:Ubuch.tex|here]].
 +
 
 +
<texcode>
 
%interface=en tex=pdfetex output=pdf language=de
 
%interface=en tex=pdfetex output=pdf language=de
 
%
 
%
 
% Hauptdatei des "Unitarierbuchs" -- Was glauben sie eigentlich?
 
% Hauptdatei des "Unitarierbuchs" -- Was glauben sie eigentlich?
 
%
 
%
\language [deo] % deutsch alt (sonst de) / non-reformed german
+
\language [deo] % deutsch alt (sonst de) / non-reformed german
\version [final] % final, concept, temporary
+
\version [final] % final, concept, temporary
\definepapersize [UBuch] [width=14cm,height=21cm]
+
\definepapersize [UBuch] [width=14cm,height=21cm]
\setuppapersize [UBuch] [A4] % the printshop wanted to impose it themselves
+
\setuppapersize [UBuch] [A4] % the printshop wanted to impose it manually
 
\setuppagenumbering [alternative=doublesided,
 
\setuppagenumbering [alternative=doublesided,
location={footer,marginedge},
+
location={footer,marginedge},
way=bytext,sectionnumber=no,partnumber=no]
+
way=bytext, sectionnumber=no, partnumber=no]
\setuplayout [width=11cm,height=16.5cm,
+
\setuplayout [width=11cm, height=16.5cm,
header=14pt,headerdistance=10pt,
+
header=14pt, headerdistance=10pt,
footer=24pt,footerdistance=0pt,
+
footer=24pt, footerdistance=0pt,
grid=yes, marking=on, location=left]  
+
grid=yes, marking=on, location=left]  
\setupheadertexts [][chapter][part][]  
+
\setupheadertexts [][chapter][part][]  
  
 
% line below header / Linie unter Kolumnentitel  
 
% line below header / Linie unter Kolumnentitel  
\setupbackgrounds [header][text][frame=off,bottomframe=on]  
+
\setupbackgrounds [header][text][frame=off,bottomframe=on]  
  
\setupbodyfont [ber,ppl,10pt] % ppl=Palatino
+
\setupbodyfont [ber,ppl,10pt] % ppl=Palatino // beware! deprecated font handling!
\setupbodyfontenvironment [default][em=italic] % kursiv statt schräg
+
\setupbodyfontenvironment [default][em=italic] % kursiv statt schräg / set italics instead of oblique for "em"
  
 
\setupindenting [medium] % 1em? Einzug bei neuem Absatz
 
\setupindenting [medium] % 1em? Einzug bei neuem Absatz
Line 60: Line 62:
  
  
\setupheads [align=right,tolerance=verytolerant,
+
\setupheads [align=right, tolerance=verytolerant,
before=\nohyphen\startlinecorrection,
+
before=\nohyphen\startlinecorrection,
after=\stoplinecorrection]
+
after=\stoplinecorrection]
 
\setuphead [part]
 
\setuphead [part]
[command=\UPart,
+
[command=\UPart,
style=\tfd\it,
+
style=\tfd\it,
placehead=yes,frame=off,
+
placehead=yes, frame=off,
number=yes]
+
number=yes]
 
\setuphead [chapter]
 
\setuphead [chapter]
[style=\tfc\it, number=no, page=yes, align=right]
+
[style=\tfc\it, number=no, page=yes, align=right]
 
\setuphead [title]
 
\setuphead [title]
[style=\tfc, page=yes, placehead=yes, align=right]
+
[style=\tfc, page=yes, placehead=yes, align=right]
 
\setuphead [subject]
 
\setuphead [subject]
[style=\tfb\it, align=right]
+
[style=\tfb\it, align=right]
 
\setuphead [subsubject]
 
\setuphead [subsubject]
[style=\tfa\it, align=right]
+
[style=\tfa\it, align=right]
  
 
% Definition des Inhaltsverzeichnis'
 
% Definition des Inhaltsverzeichnis'
Line 85: Line 87:
 
\setuplist [chapter]
 
\setuplist [chapter]
 
[alternative=b,partnumber=no,criterium=all]
 
[alternative=b,partnumber=no,criterium=all]
\definecombinedlist[inhalt]
+
\definecombinedlist [inhalt]
 
[part,chapter]
 
[part,chapter]
 
[level=chapter, placehead=yes, criterium=all,
 
[level=chapter, placehead=yes, criterium=all,
Line 96: Line 98:
  
 
\setupfloats [width=11cm]
 
\setupfloats [width=11cm]
\setupcaptions [number=no,align=right]
+
\setupcaptions [number=no, align=right]
\setuptables [width=11cm,bodyfont=small,before=\nohyphen]
+
\setuptables [width=11cm, bodyfont=small, before=\nohyphen]
 
\setupregister [index]
 
\setupregister [index]
[partnumber=no,criterium=all]
+
[partnumber=no,criterium=all]
  
 
%%% environments for remarks, poems and author info
 
%%% environments for remarks, poems and author info
 
\definestartstop [anmerkung]
 
\definestartstop [anmerkung]
[style=small, before={\vfill\startlinecorrection\vbox\bgroup\noindent}, after={\egroup\stoplinecorrection}]
+
[style=small, before={\vfill\startlinecorrection\vbox\bgroup\noindent}, after={\egroup\stoplinecorrection}]
 
\definestartstop [verse]
 
\definestartstop [verse]
[before={\blank\setuplines[indenting=always]\startalignment[right]\startlines}, after={\stoplines\stopalignment\blank}]
+
[before={\blank\setuplines[indenting=always]\startalignment[right]\startlines},
 +
after={\stoplines\stopalignment\blank}]
 
\definestartstop [autor]
 
\definestartstop [autor]
[before={\startalignment[left]\it\noindent},
+
[before={\startalignment[left]\it\noindent},
after=\stopalignment]
+
after=\stopalignment]
 
\def\Autor#1#2{\startautor #1\index{#2}\stopautor}
 
\def\Autor#1#2{\startautor #1\index{#2}\stopautor}
  
% use graphics as text symbols
+
\clubpenalty=10000 % keine Schusterjungen / no clubs
\def\runleben{\sbox{\externalfigure[lebensrune][height=\lineheight]}}
+
\widowpenalty=10000 % keine Hurenkinder / no widows
\def\runtod{\sbox{\externalfigure[todesrune][height=\lineheight]}}
+
\tolerance=1750 % Zeilenumbruch-Toleranz (ca. 500--3000) // beware! too low-level! there's \setuptolerance instead!
 
 
\clubpenalty=10000 % keine Schusterjungen
 
\widowpenalty=10000 % keine Hurenkinder
 
\tolerance=1750 % Zeilenumbruch-Toleranz (ca. 500--3000)
 
 
\emergencystretch=12 pt % zusätzlich veränderbarer Raum pro Zeile
 
\emergencystretch=12 pt % zusätzlich veränderbarer Raum pro Zeile
  
Line 124: Line 123:
 
%%%%%%%%%%%%%%%%     
 
%%%%%%%%%%%%%%%%     
 
\startfrontmatter % Vorspann
 
\startfrontmatter % Vorspann
\input kap0-1-titelei
+
\input kap0-1-titelei % beware! better use components instead of inputs!
  
 
\startstandardmakeup[page=no]
 
\startstandardmakeup[page=no]
\title[inhalt]{Inhaltsverzeichnis}
+
\title[inhalt]{Inhaltsverzeichnis} % ToC
 
\placelist
 
\placelist
 
\stopstandardmakeup
 
\stopstandardmakeup
Line 191: Line 190:
 
\stopbodymatter
 
\stopbodymatter
 
\stoptext
 
\stoptext
</pre>
+
</texcode>
 +
 
 +
[[Category:Sample documents]]

Latest revision as of 08:34, 14 August 2006

< Sample documents

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