Hi everybody, currently I am doing the final layout of my thesis for which I used context. I am now struggeling with two thing, which I think might be minor issus for some of you, but not so for me ;) First, some of my URLs within footnotes are wider as the textwidth. Is there a way to force a line break other than defining break points for each of it? Maybe even with a nice symbol identicating the forced break? Second problem is the formatting of the in text references. it would be nice if there is a way they were not bold. I tried different things with \setupreferencing but the text stayed bold. I could not find something in regards to this topic in the manual or in the wiki. My thrid problem is, how can I force context not to continue footnotes on another page? And a similar thing ... how can I achieve that there are always at least two lines of a paragraph on each page if this paragraph is split between two pages. I tried \clubpenalty and \widowpenalty as well as \def\defaultwidowpenalty and \def\defaultclubpenalty. But I am not really sure what the numbers identicate. I guess not the lines ... Thanks in advance for all answers, once I am finished I am going to add this information to the wiki. Maybe it is already there but I could not find it ... Steffen
Hello Steffen, you should provide examples how you do things, otherwise we'd have to guess.
First, some of my URLs within footnotes are wider as the textwidth. Is there a way to force a line break other than defining break points for each of it? Maybe even with a nice symbol identicating the forced break?
Perhaps this thread helps? http://archive.contextgarden.net/thread/20041206.211906.9dc6aa4d.en.html#200...
Second problem is the formatting of the in text references. it would be nice if there is a way they were not bold. I tried different things with \setupreferencing but the text stayed bold. I could not find something in regards to this topic in the manual or in the wiki.
I don't know references (never used them), but could this be due to interaction? Put style=\tf in \setupinteraction. But this is just a wild guess.
My thrid problem is, how can I force context not to continue footnotes on another page?
Sorry, no idea. Somebody else?
And a similar thing ... how can I achieve that there are always at least two lines of a paragraph on each page if this paragraph is split between two pages. I tried \clubpenalty and \widowpenalty as well as \def\defaultwidowpenalty and \def\defaultclubpenalty. But I am not really sure what the numbers identicate. I guess not the lines ...
No, not the line numbers. It is a TeX concept called 'penalty' where high positive numbers represents 'very bad'. The default in ConTeXt is 2000, which is pretty high. Maximum is 10000 (= infinity). Perhaps you need to play with \brokenpenalty as well, which tells TeX how bad it is to break a page at a line with a hyphen. But perhaps you could provide an example. Patrick
Hi Patrick, thanks for the answers ...
First, some of my URLs within footnotes are wider as the textwidth. Is there a way to force a line break other than defining break points for each of it? Maybe even with a nice symbol identicating the forced break?
Perhaps this thread helps? http://archive.contextgarden.net/thread/20041206.211906.9dc6aa4d.en.html#200...
Yeah! \hyphenantedurl{...} ist working for my purpose. Because it is going to be a printed text anyways I do not need interaction.
Second problem is the formatting of the in text references. it would be nice if there is a way they were not bold. I tried different things with \setupreferencing but the text stayed bold. I could not find something in regards to this topic in the manual or in the wiki.
I don't know references (never used them), but could this be due to interaction? Put style=\tf in \setupinteraction. But this is just a wild guess.
Yeah! Your wild guess was right - setupinteraction I never looked at this, because references is not something which I put in for interaction. It is just a convienient way to keep all chapter references uptodate. Without all these bold spots the text looks much nicer ...
My thrid problem is, how can I force context not to continue footnotes on another page?
Sorry, no idea. Somebody else?
And a similar thing ... how can I achieve that there are always at least two lines of a paragraph on each page if this paragraph is split between two pages. I tried \clubpenalty and \widowpenalty as well as \def\defaultwidowpenalty and \def\defaultclubpenalty. But I am not really sure what the numbers identicate. I guess not the lines ...
No, not the line numbers. It is a TeX concept called 'penalty' where high positive numbers represents 'very bad'. The default in ConTeXt is 2000, which is pretty high. Maximum is 10000 (= infinity). Perhaps you need to play with \brokenpenalty as well, which tells TeX how bad it is to break a page at a line with a hyphen.
But perhaps you could provide an example.
I increased those values now \def\defaultwidowpenalty{9000} \def\defaultclubpenalty{9000} and it works for all cases except one. So maybe I just go down the manual path ... ... surprisingly it seemed to affect also the footnote problem. There is also only one case left. Are those two somehow related? Again, thanks for the help! Steffen
[...]
I increased those values now
\def\defaultwidowpenalty{9000} \def\defaultclubpenalty{9000}
and it works for all cases except one. So maybe I just go down the manual path ...
then try \clubpenalty=10000 \widowpenalty=10000 \brokenpenalty 0 Any change? TeX's paragraph/page breaking is a highly complex thing, there are lots of parameters to play with. For a complete refrerence you'll probably need Knuth's original TeX book. But with these three penalites above, you should be able to solve the problem.
... surprisingly it seemed to affect also the footnote problem. There is also only one case left. Are those two somehow related?
This is beyond my knowledge, but here is a guess: These are related, but only very deep down inside. So for most practical cases, these two are different things. Patrick
participants (2)
-
Patrick Gundlach
-
Steffen Fritzsche