ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* good layout for tech manual
@ 2009-05-05 16:17 Markus Hubig
  2009-05-08 19:09 ` Thomas Floeren
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Hubig @ 2009-05-05 16:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 728 bytes --]

Hi @all,

at the moment I'm writing a tech manual with a loooot of screenshots &
plots.
I've played around to find the perfect layout for my document but I'm not
fully
satisfied with what I have till now.

--------8<-------schnipp-----

\setuppapersize[A4][A4]
\setuplayout [topspace=25mm,
              bottomspace=50mm,
              backspace=30mm,
              leftmargin=23mm,
              rightmargin=23mm]

--------8<-------schnapp-----

The big problem I have is because of the many screenshots there's a lot
of unused space in my document. Maybe some of you can give me a  tip
for a better layout ...

Markus

-- 
-------------------"it's like this"------
even samurai have teddy bears
and even teddy bears get drunk

[-- Attachment #1.2: Type: text/html, Size: 870 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: good layout for tech manual
  2009-05-05 16:17 good layout for tech manual Markus Hubig
@ 2009-05-08 19:09 ` Thomas Floeren
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Floeren @ 2009-05-08 19:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]

Hi,

I’m doing also manuals (utility vehicles), graphics are mainly not  
screenshots but drawings (or photos), but I have also chapters which  
consist mainly in screenshots (of a 640px or so  control device).
My messures refere to A5 landscape.
Best solution for me so far: a constant margin of about 45 mm where I  
can put my images/screenshots in; the images go in as  
\place<float>[margin]; so they are always aligned on top and  
respecting each other;). Sometimes I do a  \margintext or \inmargin  
but preferably vers the end of the production.
It happens that on some pages the margin will be empty. For me this is  
ok.
The advantage is, that you’ll rest quite flexible, when you have to  
insert new things or to replace images. The flow-text flow is quite  
good.

In annexe I put my env-file (a bit cleaned-up), so you can get an idea  
(once again: its a5 landscape).

[-- Attachment #2: env_rxt_cleaned.tex --]
[-- Type: application/octet-stream, Size: 30474 bytes --]

% coding: utf-8

\startenvironment env_rxt
%\runutilityfiletrue
\synctex=1
% \version[file]
%\showstruts
%\showsetups
%\showframe
%\showmakeup
%\showboxes


\enableregime       [utf]
\setuppapersize     [A5,landscape] [A5,landscape]

\usemodule			  [t][layout]
\SetupShowLayout
	[units=pt,
	digits=2,
	round=0.1,
	showmore=1,
	graphonly=0]
	
\usemodule          [lettrine]
\usemodule          [m-units]
	\SIunitstrue
\usesymbols         [mvs]
\usesymbols         [was]
\usesymbols			[uzd]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\pdfminorversion=7		
\pdfcompresslevel=9			% 0-9
\pdfobjcompresslevel=0		% 0-3


\def\addPDFdocumentinfo
  {\doPDFaddtocatalog{\currentPDFpagemode\currentPDFviewerprefs}%
   \doPDFaddtocatalog{/Version \ifdim\PDFversion00\points>100\points 1.\fi\PDFversion}% 
   \doPDFaddtoinfo{/Trapped /False}% 
   \doPDFaddtoinfo{/ConTeXt.Version (\contextversion)}% 
   \doPDFaddtoinfo{/ConTeXt.Time    (\number\normalyear.\twodigits\normalmonth.\twodigits\normalday\space \twodigits\currenthour:\twodigits\currentminute)}% 
   \doPDFaddtoinfo{/ConTeXt.Jobname (\jobname)}% 
   \doPDFaddtoinfo{/Boschung.mailto.Redaktion     (doc.mechanical@boschung.com)}
   \doPDFaddtoinfo{/Boschung.mailto.SAV    (after-sales@boschung.com)}
   }

\appendtoksonce % hack to prevent duplicates
    \addPDFdocumentinfo
\to \everyfirstshipout

\addPDFdocumentinfo

\doPDFaddtocatalog
	{
% 	/OpenAction [0 /Fit] 
	/PageMode /UseOutlines
% 	/PageLayout /TwoColumnRight
	}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% will isolate graphics from backgrounds; verhindert, dass footnotes 
% im textbackground landen:				

\chardef\kindofpagetextareas=1

% \usepath	[./Tables/]

\setupexternalfigures[directory={../images_rexter_vectorisees,
	../images_rexter_opt,../images_rexter_LL,../images_optimisees}]

% ==========
% = LAYOUT =
% ==========

\setuplayout       
	[alternative=doublesided,backspace=.9in,cutspace=1.4cm,topspace=6mm,
	bottomspace=0.6cm,height=fit,width=fit,leftmargin=0pt,rightmargin=45mm,
	rightmargindistance=7mm]

\definelayout[marginless]
	[alternative=doublesided,backspace=.9in,cutspace=1.4cm,topspace=6mm,
	bottomspace=0.6cm,height=fit,width=fit,leftmargin=0pt,rightmargin=0mm,
	rightmargindistance=0mm]

\definelayout [fuses]
	[alternative=doublesided,backspace=.9in,cutspace=1.4cm,topspace=6mm,
	bottomspace=0.6cm,height=fit,width=fit,leftmargin=0pt,rightmargin=70mm,
	rightmargindistance=7mm]

\definepagebreak    [chapterpagebreak][yes,header,right]

\setupheader		[style=slanted,after=\hrule]

\setupheadertexts   
	[][{\getmarking[chapter]}\hfill{\getmarking[section]}\hskip-\outercombitotal]
	[\hskip-\outercombitotal{\getmarking[section]}\hfill {\getmarking[chapter]}][]


\setupfootertexts   [margin][][\hfill\pagenumber][\pagenumber\hfill][]
 
\setuppagenumbering	[conversion=numbers,alternative=doublesided,location=]

\setupsectionblock[frontpart][page=yes]
\setupsectionblock[bodypart][page=chapterpagebreak]
\setupsectionblock[backpart][page={yes,blank,right}]
%\setupsectionblock[appendix][page=chapter]
	
\definemakeup	    [boschung]
\setupmakeup 		[boschung] [doublesided=no,pagestate=start,
								% background=pagelogo,
								]

\definemakeup		[FullPage]
\setupmakeup		[FullPage]	[headerstate=normal,
								footerstate=normal,
								doublesided=yes]
								




\startsetups [pagestyle:normal]
\setuplayout   [reset]    
\setupheadertexts   
	[][{\getmarking[chapter]}\hfill{\getmarking[section]}\hskip-\outercombitotal]
	[\hskip-\outercombitotal{\getmarking[section]}\hfill {\getmarking[chapter]}][]
\setupfootertexts [margin][][\hfill\pagenumber][\pagenumber\hfill][]
\setuppagenumbering[location=]
\stopsetups

\startsetups [pagestyle:marginless]
\setuplayout [marginless]
\setupheadertexts   
	[][{\getmarking[chapter]}\hfill{\getmarking[section]}]
	[{\getmarking[section]}\hfill{\getmarking[chapter]}][]
\setupfootertexts [][][][][]
\setuppagenumbering[location={footer,right}]
\stopsetups

\startsetups [pagestyle:fuses]
\setuplayout  [fuses]     
\setupfootertexts [margin][][\hfill\pagenumber][\pagenumber\hfill][]
\setuppagenumbering[location=]
\stopsetups

\startsetups [pagestyle:frontmatter]
\setups{pagestyle:marginless}
\setuppagenumbering [conversion=romannumerals]
\stopsetups

\startsetups [pagestyle:backmatter]
\setups[pagestyle:marginless]
\setupheadertexts[][\hfill{\getmarking[entete]}]
		[{\getmarking[entete]}\hfill][]
\setuppagenumbering [location={footer,right}]
\stopsetups


% \defineoverlay [boschunglogo][\overlayfigure{logo_fond}]

% \setupbackgrounds[page=chapterpagebreak]
% 	[background=pagelogo]


\definelayer[pagelogo]
			
\setlayerframed [pagelogo]
		% [preset=middle] 
		[frame=off,
		width=\paperwidth,
		height=\paperheight,
		align={middle,lohi},
		]
		{\externalfigure[logo_fond][width=.62\paperwidth]}
		
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setupregister[index]	[compress=no]
\define \I \index

% \setupsectionblock[frontpart][environment=BAa5_front]
% \setupsectionblock[bodypart][page=no]
% \setupsectionblock[appendix][page=no]
% \setupsectionblock[backpart][page=no]


%%% PENALTIES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\defaultclubpenalty {8000}
\def\defaultwidowpenalty {8000}
%\def\defaultdisplaywidowpenalty {8000}
%\def\defaultbrokenpenalty {0}

\setdefaultpenalties 

\setuptolerance[strict,stretch]
% \pretolerance100% 	TeX def: 100
% \tolerance1414%		TeX def: 200	verystricy=200,strict=1500,tolerant=3000,verytolerant=4500
% \hbadness1414%		TeX def: 1000
% \emergencystretch0.5em% stretch=\bodyfontsize
% \hfuzz0.3pt
% \vfuzz\hfuzz

\setupwhitespace[medium,flexible]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% \setuphead[subsubsubject][after=\blank\penalty10000\relax]

\defineblankmethod [nobreak] {\penalty\plustenthousand}

% \setuphead[subsubsubject][after=\nobreak]
% \setuphead[subsection][after={\page[no]}]
% \setuphead[subsection][after=\blank\penalty10000\relax]




%%%% FONT   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\setupcapitals[sc=yes]

\preloadtypescripts

\usetypescriptfile[type-lucida-tf]
\usetypescript[lucida][texnansi]

\setupbodyfont[lucida,9pt]
\setuplettrine[Hang=.25, Nindent=1em, Findent=1em, Image=yes, Lines=3]




\pdfprotrudechars=2		% 0-2

% \font\BODY=texnansi-lbr at 9pt			%gibt Fehler
% \pdffontexpand\BODY 900 900 1 autoexpand	%gibt Fehler
\pdfadjustspacing=2		% 0-2              


\setupfonthandling [hz] [min=27,max=27,step=3]

\setupalign
  [hz,hanging]

  \setupfontsynonym [Serif]            [handling=quality]
  \setupfontsynonym [SerifBold]        [handling=quality]
  \setupfontsynonym [SerifSlanted]     [handling=quality]
  \setupfontsynonym [SerifItalic]      [handling=quality]
  \setupfontsynonym [SerifBoldSlanted] [handling=quality]
  \setupfontsynonym [SerifBoldItalic]  [handling=quality]

\setupbodyfontenvironment [default] [em=italic]


\definebodyfont[18.7pt,15.6pt,13pt,10.8pt,9pt,8.1pt,7pt,6pt][rm,ss,tt,fx]
% [x=0.9] 
% 	sa 1,
%   bca=SerifBoldCaps sa a,
%   bcb=SerifBoldCaps sa b,
%   bcc=SerifBoldCaps sa c,
%   bcd=SerifBoldCaps sa d,
%   bcx=SerifBoldCaps sa x,
%   bcxx=SerifBoldCaps sa xx
% ] % dunno if required from now

%\definebodyfontenvironment[default][y=0.9]
%\definebodyfont[9pt][][tfy=Regular sa .9]
%\definefont[tfy][Normal sa .9]
\define[1]\Mcaps{\getscaledglyph{.88}{}{\WORD{#1}}}

\definefont[ssxbf][LucidaSans-Bold]
\definefont[ssitxbf][LucidaSans-BoldItalic]
\definefont[ssbbf][LucidaSans-Bold]
\definefont	[scbf]	[SerifBoldCaps]
\definefont [Stepsfont] [SansBold sa 1]
% \definefont	[fx][LucidaFax] % nicht nötig (\fx im Typescript)
% \definefont [Casual] [LucidaCasual] % nicht nötig (\cs im Typescript)
% \definefont [HandWr] [LucidaHandwriting] % nicht nötig (\hw im Typescript)
% \definefont	[noteF]	[LucidaSans at 7pt]

\define		\noteF			{\tfx\ss\setupinterlinespace}
\define		\aW				{\tt}
\define		\actioN			{\it}
\define		\textHead		{\bf}
\def \fuseNr#1 {\WORD{#1}}
\def\emptY{\emdash}
\define	[1]	\liqK			{\Mcaps{#1}}


\define \lH {\lineheight}
\define \Vcorr {\vskip-\baselineskip}
% Headers %%%%%
%\defineoverlay      [Watermark][{\externalfigure[logo_fond][width=120mm]}][page=chapterpagebreak]
% \setupfooter[style=regular]
% \setupfootertexts[margin]
% [][\hfill\pagenumber][\pagenumber\hfill][]


\define\Dep{\;\high{\circledast}}

% \let\normalin\in 
% \definereferenceformat [test][command=\normalin,left=\ssbf]
% \let\in\test

\definereferenceformat [inF]
	[text=Abb.,
	left=\ssbf
	]


%%%%%%   Heads   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setuphead
[index,Index]
[%
%alternative=text,
color=darkblue,
style={\vii},
number=no,
] 


\newsignal\sectionsignal

\def\sectionbefore
	{\ifdim\lastskip=\sectionsignal
	%\blank[-medium]%
	\vskip-\medskipamount
\else
	\blank[2*big]%
\fi}

\def\subsectionbefore
	{\ifdim\lastskip=\sectionsignal
	%\blank[-medium]%
	\vskip-\medskipamount
\else
	\blank[3*medium]%
\fi}



\setuphead[chapter]
	[style={\tfd\ssxbf},page=chapterpagebreak,after={\blank[4*big]},
	header=empty]
\setuphead[section]
	[style={\tfb\ssxbf},page=bigpreference,before={\blank[4*big]},
	after={\blank\vskip\sectionsignal}]
\setuphead[subsection]
	[style={\tfa\ssxbf},page=bigpreference,before=\sectionbefore,
	after={\blank\vskip\sectionsignal}]
\setuphead[subsubsection]
	[style={\tf\ssxbf},page=bigpreference,before=\sectionbefore,
	after={\blank\vskip\sectionsignal}]
\setuphead[subsubsubsection]
	[style={\ssbf},page=preference,number=no,before=\subsectionbefore,
	after={\blank\vskip\sectionsignal}]
\setuphead[subsubsubsubsection]
	[style={\ssit},page=preference,number=no,before=\subsectionbefore,
	after={\blank[small]}]



%%% TOC %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setupcombinedlist [content]
	[alternative=c,
	level=4,
% 	interaction=all,
	]
	
\setuplist [chapter]
	[width=25pt,style=\bfa\ss,alternative=b,
	before={\blank[2*big]},
	after={\blank[nobreak,big]},
	]
	
\setuplist [section]
	[width=50pt,
	textstyle=\bf\ss,
	numberstyle=\bf\ss,
	pagestyle=\bf\ss,
	after={\blank[nobreak]},
	]
	
\setuplist [subsection]
	[width=60pt,
	textstyle=\sl,
	numberstyle=\sl,
	]
	
\setuplist [subsubsection]
	[width=65pt]
	



%% FOOTNOTES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setupnote[footnote][way=bypage,margindistance=0em,command=\myfootnotecommand,split=verystrict]
\setupnotedefinition[footnote][location=left,hang=0]
\def\myfootnotecommand#1{\hbox to 1.1em{\high #1}}
% \setupnotedefinition[footnote][indenting={medium,yes}] 


%% LISTS, DESCRIPTIONS, TABLES etc. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\chardef\characteralignmentmode=2

\setuptabulate	[% 
% 				before={\page[preference]},
% 				after=,
				]

\def\tabulateuse#1% 
	{\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}

	\appendtoks
	\let\use\tabulateuse
	\defineTABLEshorthands
	\to \everytabulate 


% ]
\setupitemize	[each]	
				[4,
%				factor=2,
%				paragraph,
%				packed,
%				joinedup,
%				nowhite,
				autointro]				
				[%
				command={\setupwhitespace[small]},
				before={\blank[medium]},
 				inbetween={\blank[small]},
				after={\blank[medium]},
]

\setupitems	[location=left,symbol=2,before=,after=]


\defineitemgroup [SmallLegTwoCol]
\setupitemgroup[SmallLegTwoCol][each][stopper=,before={\switchtobodyfont[small]},style={\ssxbf},% 
width=1.7em,symalign=flushright][n,columns,two]

\defineitemgroup [LegOneCol]
\setupitemgroup  [LegOneCol] [each]
	[stopper=,before={\setupwhitespace[none]\blank[medium]},style={\ssxbf},
	inbetween={\blank[small]},after={\blank[medium]},width=1.7em,symalign=flushright]
	[n]


\defineitemgroup [SmallLegOneCol]
\setupitemgroup  [SmallLegOneCol] [each]
	[stopper=,before={\switchtobodyfont[small]\setupwhitespace[none]\blank[medium]},
	style={\ssxbf},inbetween={\blank[small]},after={\blank[medium]}, 
	width=1.7em,symalign=flushright]
	[n]

\defineitemgroup [Mleg]
\setupitemgroup  [Mleg] [each]
	[stopper=,before={\setupwhitespace[none]\blank[medium]},style={\ssxbf},
	inbetween={\blank[small]},after={\blank[medium]},width=1.7em,symalign=flushright]
	[n]

\defineitemgroup [Steps]
\setupitemgroup  [Steps] [each] [n]
	[command={\setupwhitespace [small]}, stopper=, before={\blank[medium]},
	style={\Stepsfont},
	inbetween={\blank[small]}, 
	after={\blank[medium]},
%	width=1.25em,
 	symalign=flushright,
	]

\defineitemgroup [itzaH]
	\setupitemgroup  [itzaH] [each] [4]
		[command={\setupwhitespace [small]}, 
		before={\blank[disable]}, 
		inbetween={\blank[small]}, 
		after={\blank[medium]}, 
		]



\definedescription
	[listext]
	[location=serried,headstyle=bold,width=broad]
	
\definedescription
	[listtext]
	[location=serried,headstyle=bold,width=broad]
	
\definedescription
	[variante]
	[location=left,headstyle=bold,width=30mm,distance=1em]
	
\definedescription	[definition][	location=serried,
									headstyle=bold,
									width=broad,
									before=,
									after=,
									]

\definedescription	[Definition][	location=left,
									headstyle=bold,
									width=broad,
									before=,
									after=,
									]



\defineenumeration[option][location=serried,text=Option]
\setupenumerations[option][headstyle=bold]

\defineenumeration[niveau][location=serried,text=Niveau]
\setupenumerations[niveau][headstyle=bold]

% \setupitemize[4,packed,joinedup,serried,intro]

%%%%%% FLOATS & FIGURES   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\definefloat [fig][figs]
\definefloat [marginfigure][marginfigures]
\definefloat [legende] [legendes]
\definefloat [notice] [notices]
\definefloat [Note] [Notes]
\setupfloat[Note]
	[default={margin,none}]

\definefloat [fNote]	[fNotes]
\setupfloats [spacebefore=0pt,spaceafter=6pt]

\definefloat 	[Pagefloat] [fig]
\setupfloat 	[Pagefloat] [default={page},
							location=inner,
							] 

\definefloat 	[Widefloat] [fig]
\setupfloat 	[Widefloat] [
							location=inner,
							] 


\definefloat 	[Bigfloat] [fig]
\setupfloat 	[Bigfloat] [% 
							default={margin},
							location=outermargin,
							] 


\definefloat 	[BGMfig] [fig]
\setupfloat 	[BGMfig] [% 
							default={margin},
							background=color,
							backgroundcolor=lightgray,
							] 

\definefloat 	[Mfig] [fig]
\setupfloat 	[Mfig] [% 
							default={margin},
							] 

\definefloat 	[innerMfig] [fig]
\setupfloat 	[innerMfig] [% 
							default={margin},
							location=inner] 


\setupfloatsplitting[lines=1]

\setupfloat[fNote][spacebefore=1cm%
	,before={\godown[1cm]}%
	,width={\dimexpr\outermarginwidth-1ex \relax}%
	,topframe=on%
	,bottomframe=on%
	,frameoffset=.5ex%
	]%
	
% Labels
\setuplabeltext     [de]    [fig=Abb.~]
\setuplabeltext     [de]    [innerMfig=Abb.~]
\setuplabeltext     [de]    [Mfig=Abb.~]
\setuplabeltext     [de]    [Pagefloat=Abb.~]
\setuplabeltext     [de]    [Widefloat=Abb.~]
\setuplabeltext     [de]    [Bigfloat=Abb.~]
\setuplabeltext     [de]    [notice=Notiz~]
\setuplabeltext     [de]    [Note=Notiz~]
\setuplabeltext		[de]	[fNote=Anmerkung~]
\setuplabeltext     [fr]    [fig=Fig.~]
\setuplabeltext     [fr]    [notice=Notice~]
\setupsynonyms      [unit]  [textstyle=]

	
\setupcaptions	[style=\tfx\ss\sl\setupinterlinespace,width=max,
				headstyle=\vii\bfx, 
				align=justified,location=bottom,
% 				maxwidth=2cm, 
				inbetween={\blank[3pt]},
				]
% 				
% \setupcaption [fig] [align=right]

\setupcaption[table:top][%
	location=top,
	]
% \setupcaption[innerMfig]
	% [location={right,high}]

\startsetups [caption:lefthigh]
	\setupcaptions
		[location={left,high},align=no]
\stopsetups

\startsetups [caption:righthigh]
	\setupcaptions
		[location={right,high},align=no]
\stopsetups

\startsetups [m-blocks:normal]
\setupmarginblocks [top=,bottom=\vfill]
\stopsetups

\startsetups [m-blocks:middle]	
\setupmarginblocks [top=\vfill,bottom=\vfill]
\stopsetups

\setupcombinations[style={\tfx\ss\setupinterlinespace},distance=3pt,% 
                before={\unskip\blank[8pt]},
				]

\definecombination	[cric] [distance=0pt,inbetween={\blank[0pt]},after={\blank[0pt]},% 
							before={\blank[0pt]}]

\definecombination [Intro] [align={right},location=top]

\definecombination [heating]
	[width=1\makeupwidth,align=right]


\def\Mfig{%      					FRAMED MARGIN FIG
	\dodoubleargumentwithset%
	\dosinglegroupempty%
	\dosingleempty%
	\doMfig%
}%
\long\def\doMfig[#1]#2[#3]#4{%
		\placefig[margin][#1]{#2}{\externalfigure[#3][width=\mfigW]%
				\noteF#4}%
				}%



\def\FMfig{%      					FRAMED MARGIN FIG
	\dodoubleargumentwithset%
	\dosinglegroupempty%
	\dosingleempty%
	\doFMfig%
}%
\long\def\doFMfig[#1]#2[#3]#4{%
		\placefig[margin][#1]{#2}{\Framed{\externalfigure[#3][width=\mfigW]}%
				\noteF#4}%
				}%

\def\textSymb{\dotripleargument\dotextSymb}%		SYMBOL IM TEXT
\def\dotextSymb[#1][#2][#3]{%
	\ifthirdargument
		\smash{\lower#3\hbox{\externalfigure[#1][height=#2]}}%
	\else
		\ifsecondargument
		\smash{\lower.3ex\hbox{\externalfigure[#1][height=#2]}}%
	\else
		\smash{\lower.3ex\hbox{\externalfigure[#1][height=1.9ex]}}%
	\fi\fi
		\autoinsertnextspace}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newdimen\mfigW
\mfigW=45mm

\define [1] \pTwo {\externalfigure[#1][height=1.8\lineheight]}


%% COLORS, BACKGROUNDS & BOXES   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setupcolors 
	[state=start,
% 	conversion=always
	]
%\definecolor[lightgray][s=0.90]
%\setupcolor[rgb]

\setupfloat [notice] [width=30mm]

\startsetups [marginblocks]
	\setupmarginblocks[location=inmargin,
						style=\ssx\setupinterlinespace,
						width=\rightmarginwidth,
						bottom=,
						top=,
						inbetween={\blank[3*big]},
						]
\stopsetups
					
\setupinmargin[style={\noteF},stack=yes,align=no]
	
\setuptextrules	[style=bold,
				width=0pt,
				distance=0pt
				]


\define[1] \Framed {\framed [frame=off,background=color,backgroundcolor=lightgray,offset=overlay]{#1}}
\define[1] \CombFramed {\framed [frame=off,background=color,backgroundcolor=lightgray,offset=3pt]{#1}}
\define[1] \Framedk {\framed [frame=off,background=screen,backgroundscreen=0,offset=overlay]{\white #1}}

\def\Margintextrule#1{\textrule{#1\enskip}}
\def\Texttextrule#1{\textrule{#1\enskip}}

%\define[2] 	\security 		{\blank[16pt]\textrule{\externalfigure[#1][width=2em] \quad #2\;}}

\def\Security{\doSecurity}
\def\doSecurity[#1]#2{%
	\blank[16pt]\textrule{\externalfigure[#1][width=2em]\enskip#2\enskip}%
	}

\defineframedtext[MFT][frame=off,topframe=on,bottomframe=on,style={\noteF},offset=0pt,
width=\mfigW,height=fit]

\defineframedtext[FT][frame=on%
%	,style={\noteF}%
	,offset=0.5em%
	,width=\textwidth%
%	,height=fit%
	]
	
\defineframedtext[HalfFT][frame=off%
	,bottomframe=on%
	,strut=no%
	,location=top%
	% ,background=color
	% ,backgroundcolor=lightgray%
	,offset=0pt%
	,width=\makeupwidth%
%	,height=1cm%
	]

\defineframedtext[HalfMFT][frame=off,bottomframe=on,offset=0pt,
width=\mfigW]
	

\long\def\HFT#1#2{%									HALF FRAMED TEXT
	\Texttextrule{#1}\godown[-.5\lineheight]\startHalfFT #2\stopHalfFT}%
	

\def\HFdbendT{\dosingleempty\doHFdbendT}%			HALF FRAMED DBEND TEXT
\long\def\doHFdbendT[#1]#2{%
	\bigskip
	\iffirstargument
		\starttextrule{\externalfigure[dbend][width=1.8em]\enskip%
		#1\enskip} #2\stoptextrule%
	\else
		\starttextrule{\externalfigure[dbend][width=1.8em]\enskip%
		} #2\stoptextrule% 
	\fi
	}





\def\HFMnote{\dosingleempty\doHFMnote} % 		HALF FRAMED MARGIN NOTE

\long\def\doHFMnote[#1]#2{% 
	\iffirstargument\placeNote[margin,none]{}{\noteF \starttextrule{#1} #2\stoptextrule}% 
	\else
	\placeNote[margin,none]{}{\noteF\starttextrule #2\stoptextrule}% 
	\fi}

\define[2] \FMnote{\placeNotee[margin]{#1}{\noteF \startMFT #2 \stopMFT}}% 	FRAMED MARGIN NOTE

%\define[2] \Mnote{\placeNote[margin]{#1}{\noteF #2}}%					MARGIN NOTE

\def\Mnote{\doMnote}%					MARGIN NOTE
\long\def\doMnote#1#2{%
	\placeNote[margin]{#1}{\noteF #2}%
	}
	





\definetextbackground[CB][%				COLOR BOX
        location=paragraph,
        background=color,backgroundcolor=lightgray,
        leftoffset=.5em,rightoffset=.6em,
        topoffset=.3em,bottomoffset=.3em,
		before={\blank[small]},after={\blank[small]},
%        before={\startnarrower\switchtobodyfont[small]},
%        after={\stopnarrower},
        frame=off]

\definetextbackground[Frame][%				FRAMED BOX
        location=paragraph,
        background=,backgroundcolor=,
        leftoffset=.8em,rightoffset=.8em,
        topoffset=.5em,bottomoffset=.5em,
%        before={\startnarrower\switchtobodyfont[small]},
%        after={\stopnarrower},
        frame=on]



%\setupmarginblocks [style=\vii\ss]
% \setuptextrules[style=bf]


%%%%%  SYMBOLS  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\definemarking[entete]

\define \Diam		{\WaldiSymbol{31}\autoinsertnextspace}
\define \Diameter 	{\WaldiSymbol{31}\autoinsertnextspace}


\define 	\dbend 			{\externalfigure[dbend][width=4mm]}
\define 	\rdbend 		{\externalfigure[rdbend][width=4mm]}
\define[1] 	\figconcept 	{\textrule{#1\;}}
\define[1] 	\concept 		{\textrule[top]{#1\;}}
\define[2] 	\temoin 		{\textrule{\externalfigure[#1][width=1.8em] \quad #2\;}}
\define[2] 	\Temoin 		{\textrule{\externalfigure[#1][width=2.5em] \quad #2\;}}
\define[2] 	\attention 		{\textrule{\externalfigure[#1][width=1.8em]\enskip#2\enskip}}

\define \vogelflecheh {\externalfigure[vogel_flecheh][width=1.5em]}
\define \vogelflecheb {\externalfigure[vogel_flecheb][width=1.5em]}
\define \vogelfleches {
\startcombination[2*1]
{\externalfigure[vogel_flecheh][width=1.5em]}{}
{\externalfigure[vogel_flecheb][width=1.5em]}{}
\stopcombination}
\define[1] \vogelpar {\externalfigure[#1][width=11em]}
\define[1] \graisseplan  {\externalfigure[#1][width=14em]}


\define \min {$'$}
\define \premier {1\high{er} }
\define[1] \ordinal {#1\high{e} }


\define	\hintSymbol{\symbol[Unicode Dingbats][BlackDiamondMinusWhiteX]}
	
\define	\infoSymbol{\symbol[martinvogel 2]	[Info]}

\define	\torqueSymb{\symbol[martinvogel 2] [Righttorque]}

\define	\IntervallSymb{\symbol[martinvogel 2] [CheckedBox]}

	
\define	[1]	\infoPar	{\sym{\tfa\infoSymbol} #1}
% \define	[1]	\infoLineS	{{\sym{\tf\infoSymbol} \vi #1}}
\define	[1]	\hintPar	{\sym{\hintSymbol} #1}

\long\def \intPar#1 {\godown[-.2\lineheight]{\sym{\IntervallSymb}\slx #1}\nobreak\par\nobreak}

\long\def \intMar#1 {\inmargin{\godown[-\lineheight]{\sym{\IntervallSymb}\slx #1}}}


%%%%%%%%   CIRCLED NUMBERS   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\define \Lone {\symbol[Unicode Circled Sans-serif Digits][CircledOne]}
\define \Ltwo {\symbol[Unicode Circled Sans-serif Digits][CircledTwo]}
\define \Lthree {{\symbol[Unicode Circled Sans-serif Digits][CircledThree]}}
\define \Lfour {{\symbol[Unicode Circled Sans-serif Digits][CircledFour]}}
\define \Lfive {\symbol[Unicode Circled Sans-serif Digits][CircledFive]}
\define \Lsix {\symbol[Unicode Circled Sans-serif Digits][CircledSix]}
\define \Lseven {\symbol[Unicode Circled Sans-serif Digits][CircledSeven]}
\define \Leight {\symbol[Unicode Circled Sans-serif Digits][CircledEight]}
\define \Lnine {\symbol[Unicode Circled Sans-serif Digits][CircledNine]}
\define \Lten {\symbol[Unicode Circled Sans-serif Digits][CircledTen]}

%% (M= for margin use)

\define \LMone {\symbol[Unicode Circled Sans-serif Digits][CircledOne]}
\define \LMtwo {\symbol[Unicode Circled Sans-serif Digits][CircledTwo]}
\define \LMthree {\symbol[Unicode Circled Sans-serif Digits][CircledThree]}
\define \LMfour {\symbol[Unicode Circled Sans-serif Digits][CircledFour]}
\define \LMfive {\symbol[Unicode Circled Sans-serif Digits][CircledFive]}
\define \LMsix {\symbol[Unicode Circled Sans-serif Digits][CircledSix]}
\define \LMseven {\symbol[Unicode Circled Sans-serif Digits][CircledSeven]}
\define \LMeight {\symbol[Unicode Circled Sans-serif Digits][CircledEight]}
\define \LMnine {\symbol[Unicode Circled Sans-serif Digits][CircledNine]}
\define \LMten {\symbol[Unicode Circled Sans-serif Digits][CircledTen]}


%%%%%%%%   SELFMADE CIRCLED NUMBERS   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Die "Tbl"-Sachen sind für Natural Tables in tfx ausgelegt; align=lohi,
%% andernfalls: \godown[.25\lH]
%% Falsch; passen auch für Bodytext

% \defineframed[CircledNum][strut=no,align=left,corner=round,width=1.4ex,height=1.4ex,radius=.7ex]
\defineframed[CircledNum]	[top=\vss,bottom=\vss,strut=no,align={low},
								corner=round,width=1.4ex,
								height=1.4ex,radius=.7ex,rulethickness=.073ex]

\defineframed[CircledTblNum]	[top=\vss,bottom=\vss,strut=no,align={low},
								corner=round,width=1.4ex,
								height=1.4ex,radius=.7ex,rulethickness=.073ex]
							
\definefont [circlednumbersintablesFont] [Sans sa 0.6]

% \define[1]\CNum{% 
% 	\smash{\lower-.00ex\hbox{\CircledNum{\tfx\ss#1}}}% 
% }

\define[1]\CNum{% 
	\CircledTblNum{\circlednumbersintablesFont #1}% 
}

\define[1]\CTblNum{% 
	\CircledTblNum{\circlednumbersintablesFont #1}% 
}

\define	\Leleven		{\CNum{\kern-.15em 1\kern-.3em 1}}
\define	\Ltwelve		{\CNum{\kern-.15em 1\kern-.3em 2}}
\define	\Lthirteen		{\CNum{\kern-.15em 1\kern-.3em 3}}
\define	\Lfourteen		{\CNum{\kern-.15em 1\kern-.3em 4}}
\define	\Lfifteen		{\CNum{\kern-.15em 1\kern-.3em 5}}
\define	\Lsixteen		{\CNum{\kern-.15em 1\kern-.3em 6}}
\define	\Lseventeen		{\CNum{\kern-.15em 1\kern-.3em 7}}
\define	\Leighteen		{\CNum{\kern-.15em 1\kern-.3em 8}}
% \define	\Lnineteen		{\CNum{\kern-.02em 1\kern-.2em 9}}
% \define	\Ltwenty		{\CNum{\kern-.03em 2\kern-.1em 0}}

\define \LTeleven		{\CTblNum{\kern-.15em 1\kern-.3em 1}}


%%% SYNONYMS   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\definesynonyms	[BoschungAbbreviation][BoschungAbbreviations][\infull]
\setupsynonyms	[BoschungAbbreviation][next=\autoinsertnextspace,character=smallcaps]

\BoschungAbbreviation	[Boschung]	{\sc Boschung}	
	{\sc Marcel~Boschung~AG}
\BoschungAbbreviation	[BoschungNote]	{B\kap{OSCHUNG}}
	{M{\tfx ARCEL} B{\tfx OSCHUNG} AG}
	
\BoschungAbbreviation	[Rxt]		{\sc Rexter}
	{\sc Boschung Rexter}
\BoschungAbbreviation	[RxtB]		{\scbf Rexter}
	{\scbf Boschung Rexter}
\BoschungAbbreviation	[RxtNote]	{R\kap{EXTER}}
	{B{\tfx OSCHUNG} R{\tfx EXTER}}
\BoschungAbbreviation	[RxtChapter]	{R{\tfc\ssxbf EXTER}}
	{B{\tfc\ssxbf OSCHUNG} R{\tfc\ssxbf EXTER}}
\BoschungAbbreviation	[RxtSection]	{R{\tfa\ssxbf EXTER}}
	{B{\tfa\ssxbf OSCHUNG} R{\tfa\ssxbf EXTER}}	
\BoschungAbbreviation	[RxtSubsection]	{R{\sevenpoint\ssxbf EXTER}}
{B{\sevenpoint\ssxbf OSCHUNG} R{\sevenpoint\ssxbf EXTER}}


\definesynonyms	[StandardAbbreviation]	[StandardAbbreviations]	[\infull]
\setupsynonyms	[StandardAbbreviation]	[next=\autoinsertnextspace]

\StandardAbbreviation	[zB]	{z.\,B.}	{zum Beispiel}
\StandardAbbreviation	[nB]	{n.\,B.}	{nach Bedarf}
\StandardAbbreviation	[uA]	{u.\,a.}	{unter anderem}
\StandardAbbreviation	[vA]	{v.\,a.}	{vor allem}
\StandardAbbreviation	[dH]	{d.\,h.}	{das heißt}


\definesynonyms	[TechAbbreviation]	[TechAbbreviations]	[\infull]
\setupsynonyms		[TechAbbreviation]	[next=\autoinsertnextspace]

\TechAbbreviation	[ABS]	{\Mcaps{abs}}	{Antiblockiersystem}
\TechAbbreviation	[DIN]	{\Mcaps{din}}	{Deutsches Institut für Normung~e.\,V.}
\TechAbbreviation	[CAN]	{\Mcaps{can}}	{Controller Area Network}
\TechAbbreviation	[DKS]	{\Mcaps{dks}}	{Druck||Kalibrier||System}


\def\synCorr
	{\vphantom{\zB\nB\uA\vA\dH\ABS\DIN\Boschung\BoschungNote\Rxt\RxtB\RxtNote
	\RxtChapter\RxtSection\RxtSubsection}\vskip-2\lineheight}
	
%% Warnmeldung für 'readfile' 

\def \Warn {\framed[width=.8\makeupwidth,height=.7\makeupheight,align=justified]
				{?? \dorecurse{15}{\de Hier fehlt etwas -- \en Something's missing here -- 
				\fr Ici manque quelque chose -- }??\de}}

%%% BAUSTELLE   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% HANGAROUND RIGHT SIDE  (from mailing list) $$$$$$$$$$$$$$$$$$$$$$$

\unprotect

\def\stopRighthangaround
   {\endgraf
    \egroup}

\def\startRighthangaround
   {\noindent\bgroup
    \dowithnextbox
      {\ifdim\nextboxht>\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
       \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}% 
       \getboxheight\scratchdimen\of\box\nextbox
       \getnoflines\scratchdimen
       \nextboxht\strutht
       \nextboxdp\strutdp
       \hangindent-\nextboxwd
       \hangafter-\noflines
       \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces}
    \hbox}

\protect


% \long\def\doflushatpar#1%
%%{\dogotopar{#1}}
%%{\dogotopar{\dontleavehmode#1}}   % this one can introduce empty lines
% {\dogotopar{#1\ifvmode\nobreak\fi}} % while this one can mess up vertical space


%\def\FrMfig{\dosinglegroupempty\FrMfig}
%
%\long\def\doFrMfig[#1][#2][#3]#4{%
%	\iffourthargument
%		\placefig[margin][#1]{#2}{%
%		\Framed{\externalfigure[#3][width=\mfigW]}%
%		\noteF #4}%
%	\else
%		\placefig[margin][#1]{#2}{%
%		\Framed{\externalfigure[#3][width=\mfigW]}}
%	\fi%
%	}
%
%
%\FrMfig[idleSp][Leerlaufdrehzahl][idleSp]{Automatische Steuerung, Manuelle Steuerung}




\stopenvironment


[-- Attachment #3: Type: text/plain, Size: 1496 bytes --]

Although a bit cleaned it contain s much stuff of a context newby, but  
maybe you get the idea.

Hope I could help

Greetings from Switzerland
Thomas



On May 5, 2009, at 18:17 , Markus Hubig wrote:

> Hi @all,
>
> at the moment I'm writing a tech manual with a loooot of screenshots  
> & plots.
> I've played around to find the perfect layout for my document but  
> I'm not fully
> satisfied with what I have till now.
>
> --------8<-------schnipp-----
>
> \setuppapersize[A4][A4]
> \setuplayout [topspace=25mm,
>               bottomspace=50mm,
>               backspace=30mm,
>               leftmargin=23mm,
>               rightmargin=23mm]
>
> --------8<-------schnapp-----
>
> The big problem I have is because of the many screenshots there's a  
> lot
> of unused space in my document. Maybe some of you can give me a  tip
> for a better layout ...
>
> Markus
>
> -- 
> -------------------"it's like this"------
> even samurai have teddy bears
> and even teddy bears get drunk
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an  
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-08 19:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 16:17 good layout for tech manual Markus Hubig
2009-05-08 19:09 ` Thomas Floeren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).