ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* last questions, urgent
@ 2000-11-13 20:56 Hraban
  2000-11-14  6:17 ` Berend de Boer
  2000-11-14  8:28 ` last questions, urgent Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Hraban @ 2000-11-13 20:56 UTC (permalink / raw)


Hello again!

End of this week "my" book goes to the printshop.
I could solve most probplems, most with your valuable help. Thank you!

But some remain, and I hope they can be solved quickly:

- I need \nolist and \nomarking to hide parts of long chapter titles.
But the "..." in head and t.o.c. must disappear. How? (Sorry, I can't
understand the syntax of "geenlijst" and "geenmarkering" definition.)

- I try to clean some widows and orphants, but my only working tool
is "\page" -- \blank has no effect, even \blank[force]. (I tried to
insert additional blank lines before subject titles.) Maybe a problem
of grid setting? What to do?

- after redefining my complex part start pages, there's no part entry
in my headers any more. (The old version used standardmakeup. I changed
it to \page[right] etc.) Should I mail my whole definition?

Grüßlis vom Hraban!
---
http://angerweit.tikon.ch/lieder/
http://www.planet-interkom.de/fiee.visuelle/formelsammlung.html


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

* Re: last questions, urgent
  2000-11-13 20:56 last questions, urgent Hraban
@ 2000-11-14  6:17 ` Berend de Boer
  2000-11-14 17:57   ` Hraban
  2000-11-14 21:58   ` lost part header et al (was: last questions) Hraban
  2000-11-14  8:28 ` last questions, urgent Hans Hagen
  1 sibling, 2 replies; 7+ messages in thread
From: Berend de Boer @ 2000-11-14  6:17 UTC (permalink / raw)
  Cc: ConTeXt

Hraban wrote:

> - I try to clean some widows and orphants, but my only working tool
> is "\page" -- \blank has no effect, even \blank[force]. (I tried to
> insert additional blank lines before subject titles.) Maybe a problem
> of grid setting? What to do?

You can also use

\adaptlayout
	[5]
	[width=+1cm]

or

\adaptlayout
	[3,9,12]
	[width=+0.5cm]

or something like that to make certain pages a bit smaller or larger.
Put this on top of your document. Probably preferred instead of changing
the document itself.

> - after redefining my complex part start pages, there's no part entry
> in my headers any more. (The old version used standardmakeup. I changed
> it to \page[right] etc.) Should I mail my whole definition?

Yes please.

Groetjes,

Berend. (-:


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

* Re: last questions, urgent
  2000-11-13 20:56 last questions, urgent Hraban
  2000-11-14  6:17 ` Berend de Boer
@ 2000-11-14  8:28 ` Hans Hagen
  2000-11-14 18:11   ` Hraban
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2000-11-14  8:28 UTC (permalink / raw)
  Cc: ConTeXt

At 09:56 PM 11/13/00 +0100, Hraban wrote:

>- I need \nolist and \nomarking to hide parts of long chapter titles.
>But the "..." in head and t.o.c. must disappear. How? (Sorry, I can't
>understand the syntax of "geenlijst" and "geenmarkering" definition.)

hm, configuring this is on the to do list, you may try: 

\bgroup
\let\unknown\relax
\placelist...
\egroup

and 

\setupheadertexts [{\let\unknown\relax\getmarking[chapter]}] []

there by killing the dots. A good alternative is to set 

  maxwidth=.75\hsize

to some dimension in lists and 

  leftwidth=.5\hsize

in setupheader and alike commands, which limits the length. We mostly use
that one. 

>- I try to clean some widows and orphants, but my only working tool
>is "\page" -- \blank has no effect, even \blank[force]. (I tried to
>insert additional blank lines before subject titles.) Maybe a problem
>of grid setting? What to do?

see berends answer

hans

-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: last questions, urgent
  2000-11-14  6:17 ` Berend de Boer
@ 2000-11-14 17:57   ` Hraban
  2000-11-15  0:27     ` Hans Hagen
  2000-11-14 21:58   ` lost part header et al (was: last questions) Hraban
  1 sibling, 1 reply; 7+ messages in thread
From: Hraban @ 2000-11-14 17:57 UTC (permalink / raw)


Berend de Boer wrote:
> > - I try to clean some widows and orphants, but my only working tool
> > is "\page" -- \blank has no effect, even \blank[force]. (I tried to
> > insert additional blank lines before subject titles.) Maybe a problem
> > of grid setting? What to do?
> 
> You can also use
> \adaptlayout
> or something like that to make certain pages a bit smaller or larger.

Oh God, no! This is a serious book, no kindergarden! ;-)

I really only want to push (or "pull") some paragraphs one line
forward or backward!
I thought, \blank or \blank[back] should work, but they don't. That's all.

I couldn't find the right tolerance settings to prevent widows and orphants
as far as possible -- perhaps I might redefine the space before "subject"
to be a bit flexible, but I don't know how. (This would make redundant my
manual trickery.)

> > - after redefining my complex part start pages, there's no part entry
> > in my headers any more. (The old version used standardmakeup. I changed
> > it to \page[right] etc.) Should I mail my whole definition?

see next mail
(I have to reboot for Linux first, my modem works only with MacOS...)

Grüßlis vom Hraban!
---
http://angerweit.tikon.ch/lieder/
http://www.planet-interkom.de/fiee.visuelle/formelsammlung.html


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

* Re: last questions, urgent
  2000-11-14  8:28 ` last questions, urgent Hans Hagen
@ 2000-11-14 18:11   ` Hraban
  0 siblings, 0 replies; 7+ messages in thread
From: Hraban @ 2000-11-14 18:11 UTC (permalink / raw)


Hans Hagen wrote:

[killing ellipses]
> \bgroup
> \let\unknown\relax
> \placelist...
> \egroup

> \setupheadertexts [{\let\unknown\relax\getmarking[chapter]}] []
> there by killing the dots. A good alternative is to set

Trying to understand...
\unknown is the command that produces the ellipse ("...")?
and this is set to the dummy command \relax instead of "..."?

Why should I use grouping, if I want the ellipses eliminated
for the whole book? Has \unknown more meanings?

>   maxwidth=.75\hsize
> to some dimension in lists and
>   leftwidth=.5\hsize
> in setupheader and alike commands, which limits the length. We mostly use
> that one.

That limits the width of the header text, right?
How "knows" TeX then, where to cut? -- Normally I have something like:
\subject{The ConTeXt project \nomarking{\nolist{and its heroes}} (1984--2001)}

Grüßlis vom Hraban!
---
http://angerweit.tikon.ch/lieder/
http://www.planet-interkom.de/fiee.visuelle/formelsammlung.html


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

* lost part header et al (was: last questions)
  2000-11-14  6:17 ` Berend de Boer
  2000-11-14 17:57   ` Hraban
@ 2000-11-14 21:58   ` Hraban
  1 sibling, 0 replies; 7+ messages in thread
From: Hraban @ 2000-11-14 21:58 UTC (permalink / raw)


> > - after redefining my complex part start pages, there's no part entry
> > in my headers any more. (The old version used standardmakeup. I changed
> > it to \page[right] etc.) Should I mail my whole definition?
> Yes please.

Thank you for your patience! If you find something other
that I could improve, please tell me! (I wrote some more 
questions between)

---
%interface=en response=de tex=pdfetex output=pdf language=de
%
\mainlanguage		[deo] % hyphenation patterns seem to be de-new! why?
\useencoding		[fde]
\definepapersize	[UBuch][width=14cm,height=21cm]
\setuppapersize	[UBuch][UBuch]

\setuplayout		[width=11cm,height=17cm,
				header=14pt,headerdistance=10pt,
				footer=14pt,footerdistance=10pt, backspace=10mm,
				grid=yes, marking=off, location=center]
\setuppagenumbering[alternative=doublesided,
				way=bytext, sectionnumber=no, partnumber=no]

\def\SeiteInhalt{
\setuppagenumbering	[location={footer,marginedge}]
%
% the chapter thing works, part is empty!
\setupheadertexts	[][{\let\unknown\relax\getmarking[chapter]}][part][]
\setupbackgrounds	[header][text][frame=off,bottomframe=on] 
\setupbackgrounds	[rightpage][background=]
}

\def\SeiteOhne{
\setupbackgrounds	[rightpage][background=]
\setupbackgrounds	[header][text][bottomframe=off]
\setuppagenumbering	[location={}]
}

% Hintergrundbild f"ur Part
\useexternalfigure[hintergrund][part][width=15cm]
\defineoverlay[titelbild][{\externalfigure[hintergrund]}]

\def\SeitePart{
\setuppagenumbering	[location={}]
\page			[right]
\setupbackgrounds	[rightpage][background=titelbild]
\setupbackgrounds	[header][text][bottomframe=off]
} % wird in kap0-0-titelei verwendet

\setupbodyfont	[ber,ppl,10pt]
\setupbodyfontenvironment[default][em=italic]	% slanted is ugly!

\setupindenting 	[12pt] % why not the same for itemize?
\setupnarrower	[left=12pt, right=0pt, before={\noindent}, after={}]

% conversion=set 3 causes strange errors!
\setupfootnotes	[way=bypage, rule=off]

% special part title

\def\UPart#1#2%
  {\tfd\it #1: #2}

\def\StartPart#1%
	{\bgroup
	\page[right]
	\setuppagenumbering[location={}]
	\setupbackgrounds[rightpage][background=titelbild]
	\setupbackgrounds	[header][text][bottomframe=off]
	\part{#1}
	\vfill
	\tfb\setupinterlinespace[big]}

\def\StopPart%
	{\par\vfill\vfill
	\page[right]
	\SeiteInhalt % see above
	\egroup
	\relax}

% HEADERS
\setupheads	[align=right,tolerance=verytolerant]
\setuphead	[part]
			[command=\UPart,
			style=\tfd\it,
			placehead=yes,
			number=yes, pagenumber=no]
\setuphead	[chapter]
			[style=\tfc\it, number=no, page=yes, align=right]
% page=yes doesn't work everywhere!!
\setuphead	[title]
			[style=\tfc\it, page=yes, placehead=yes, 
			align=right, after={\blank}]
\setuphead	[subject]
			[style=\tfb\it, align=right] 
\setuphead	[subsubject]
			[style=\tfa\it, align=right, before={\blank}, after={}]

% special headers for one chapter
\def\subtitel#1#2{\subject{\NurLang{\tfx\it#1\crlf}#2}}

% TABLE OF CONTENTS
\definelist	[part]
\setuplist	[part]
			[style={\bf\it}, partnumber=no, before={\blank}]
\definelist	[chapter]
\setuplist	[chapter]
			[alternative=b, partnumber=no, interaction=pagenumber]
\definecombinedlist[inhalt]
			[part,chapter]
			[level=chapter, placehead=yes, criterium=all,
			interaction=pagenumber,
			style=\tfc\it, alternative=b]

% for parts of titles that shouldn't appear in lists and page headers
\def\NurLang#1{\nomarking{\nolist{#1}}}
\def\NLLF{\NurLang{\crlf}}

% F"ur die einfachen F"alle: Wort gleichzeitig in Text und Index
\def\Tindex#1{\index{#1} #1}

\setupfloats	[width=11cm] % seems to have no effect?
\setupcaptions[number=no, align=right] % dito
\setuptables	[width=11cm, bodyfont=small, before=\nohyphen, after={}]
\setupregister[index]
			[partnumber=no,criterium=all,
			balance=yes, style=\tfa\cap] % style undocumented, but works

% ENVIRONMENTS
\definestartstop
	[anmerkung]
	[before={\startlinecorrection\vbox\bgroup
	\switchtobodyfont[small]\setupinterlinespace[small]\noindent},
	after={\egroup\stoplinecorrection\relax}]
\definestartstop
	[verse]
	[before={\blank\setuplines[indenting=always]
	\startalignment[right]\startlines\startnarrower},
	after={\stopnarrower\stoplines\stopalignment\blank}]
\definestartstop
	[autor]
	[before={\startalignment[left]\it\noindent},
	after={\stopalignment}]
\def\Autor#1#2{\page[no]\startautor \index{#2}#1\stopautor\relax}

\unprotect % richtige Anf"uhrungszeichen
\definesymbol
	[beginquotation]
	[\getvalue{\??la\currentlanguage\c!leftquotation}]
\definesymbol
	[endquotation]
	[\getvalue{\??la\currentlanguage\c!rightquotation}]	
\protect

\definestartstop % like start/stopquotation
	[zitat]	
	[before={\startnarrower\noindent\symbol[beginquotation]},
	after={\symbol[endquotation]\stopnarrower}]

\def\StartZitat{\par\startnarrower\noindent\symbol[beginquotation]}
\def\StopZitat#1{\symbol[endquotation]\footnote{#1}\stopnarrower\par}

% FIGURES
\def\ZweiSym#1#2#3#4% not enough space over figures!
  {\par\vfill\blank\placefigure[][sym:#1-#3]{none}
     {\setupcombinations[width=11cm]
      \startcombination[2]
          {\hbox to 4.75 cm{\hss\externalfigure[sym-#1]\hss}} {#2}
          {\hbox to 4.75 cm{\hss\externalfigure[sym-#3]\hss}} {#4}
      \stopcombination}
  }

%\clubpenalty=8500 % keine Schusterjungen
%\widowpenalty=9000 % keine Hurenkinder
%\appendtoks \widowpenalty=0 \clubpenalty=0 \to \everytabulate
%\tolerance=1800 % --> setuptolerance
%\emergencystretch=12 pt % --> setuptolerance
\setuptolerance[horizontal, verytolerant] %, stretch ?
\setuptolerance[vertical, verystrict]
% no ideal settings found yet...

%%%%%%%%%%%%%%%% 
\starttext
%%%%%%%%%%%%%%%%
\startbodymatter
\SeiteOhne    
\input kap0-1-titelei

\page[right]
\SeiteInhalt
\input kap0-2-vorwort

\StartPart{Warum glauben wir?}
Ein neuer Religionsbegriff
\StopPart
\input kap1-1-religionsbegriff
\relax

% some more parts with chapters

\def\UPart#1#2{\tfd\it #2}
\setuphead	[part]
		[command=\UPart, style=\tfd\it,
		placehead=yes,frame=off]%,
%		number=no]
\StartPart{Anhang} % appendix has no subtitle & mustn't be numbered!
\StopPart
\switchtobodyfont[8pt]
\input anh1-organisation
% etc.
\relax\page % is additionally needed at some places. why?
\input anh7-making
\relax
\chapter[register]{Personen- und Sachregister}
\placeindex

\stopbodymatter
\stoptext

---
Thank you very much!

Grüßlis vom Hraban!


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

* Re: last questions, urgent
  2000-11-14 17:57   ` Hraban
@ 2000-11-15  0:27     ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2000-11-15  0:27 UTC (permalink / raw)
  Cc: ntg-context

At 06:57 PM 11/14/00 +0100, you wrote:

>I really only want to push (or "pull") some paragraphs one line
>forward or backward!
>I thought, \blank or \blank[back] should work, but they don't. That's all.

they should, but two blanks is \blank[2*big] and not \blank \blank, since
blank cancels previous smaller/equal ones. 

 Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2000-11-15  0:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-13 20:56 last questions, urgent Hraban
2000-11-14  6:17 ` Berend de Boer
2000-11-14 17:57   ` Hraban
2000-11-15  0:27     ` Hans Hagen
2000-11-14 21:58   ` lost part header et al (was: last questions) Hraban
2000-11-14  8:28 ` last questions, urgent Hans Hagen
2000-11-14 18:11   ` Hraban

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).