Hi Aditya,
Your solution works for normal text following the header.
But if I have a framed text with a background, which also
has a "before={\testpage[3]}" (\definetextbackground[FramedText][
...,before={\testpage[3]},...]) and the section starts with such a framed
text, it can still go wrong. And I guess it can also go wrong if a section
starts with a figure. Is there some way to specify that if less than a
certain number of items (lines of text, frames, figures etc.) fit on the
remainder of the current page, the next page should be taken?
Thanks in advance,
Jos
________________________________
From: "ntg-context-request@ntg.nl"
Hi,
I have defined my own header: \definehead[myhead][subsection] \setuphead[myhead][ page=no, number=no ] All works fine, except sometimes the head appears at page bottom and the text starts on the next page. How can I specify that if less than, say, 3 lines of text fit on the current page below the head, the head and text should start on the next page.
\testpage[3] checks that you have space for atleast 3 lines in the current
page. So you can use
\setuphead[myhead][before={\testpage[3]\blank}]
Aditya
------------------------------
Message: 2
Date: Thu, 14 May 2009 16:09:24 +0200
From: Hans Hagen
Hans Hagen schrieb:
Peter Rolf wrote:
Hi,
while comparing the PDF of mkii and mkiv I noticed a slight differ in the boundingboxes (bb) of MP figures. While all mkii bb have the form [0 0 w h], the mkiv counterparts use [-1 -1 w+1 h+1]. So the bb of mkiv is enlarged 1bp in all directions. Is this intended?
harmless ... it prevents clipping of lines mh, you mean if something is \framed (with default frame settings)?
if the bbox goes through the middle of a line in an xform then you get
(in acrobat) clipped lines so this avoids that problem
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
------------------------------
Message: 3
Date: Thu, 14 May 2009 16:08:13 +0200
From: Hans Hagen
Am 12.05.2009 um 19:07 schrieb Henning Hraban Ramm:
Only footnotes in section titles don't work - should they?
[...]
I couldn't construct a minimal failing example - any hints?
No solution but here is a test file:
\setupinteraction[state=start] \starttext \section{foo\footnote{bar}} \stoptext
repaired
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
------------------------------
Message: 4
Date: Thu, 14 May 2009 17:59:53 +0300
From: Mari Voipio
-. Is it necessary to know TeX ?
I assume it depends on what you are planning to do with ConTeXt. I've
been using ConTeXt for at least five years now, but I've never touched
TeX (nor LaTeX nor any others, just ConTeXt). I've got a vague idea what
it is about and that's it.
Some points though:
- background in something else than WYSIWYG editing (What You See Is
What You Get = Word, for example) helps a lot. Before I started with
ConTeXt I'd already done my share of html and I've learned to do
structured documents also in word processing (i.e. "mark it heading 1"
instead of "make that big and black).
- I do ConTeXt pretty much with the "learn-as-you-go" philosophy and
when I really have to learn something, I'm pretty determined; most of my
ConTeXt usage is at work and if something needs to be done, it has to
get done and I can't back off if it seems difficult first.
(It took me two days, lot of swearing and a few questions on this
mailing list to achieve my first ConTeXt doc in Cyrillic, but I did it
in the end. Now it is of course as easy as can be...)
- depends on the operationg system and user's backgrouns, too. Those
who've used linux/mainframe are probably less likely to be upset by
ConTeXt while your average Mac/Windows user may go crazy at the steep
start of the learning curve; I'd done some unix and that definitely
increased my tolerance.
There are days when I swear and yell and curse myself for going over
from Word to ConTeXt. But on 9 days out of 10 I pat myself on the back
for making the switch. Especially on those styles when MS Word defies
all of my attempts to keep a document structurally styled...
That's my five cents,
Mari
------------------------------
Message: 5
Date: Thu, 14 May 2009 17:00:31 +0200
From: bbvogel@home.nl
Subject: Re: [NTG-context] Updating bug: linux-64
To: mailing list for ConTeXt users
bbvogel@home.nl wrote:
Dear all,
Updating context (linux-64) gives:
texlua: /lib/libc.so.6: version `GLIBC_2.8' not found (required by texlua)
This means the 64bit binary is too new for your machine :(
Thanks. 3 months after release and Debian Lenny is already too old. Compiling luatex myself and updating minimals, does that work?
___________________________________________________________________________ ________ 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 ___________________________________________________________________________ ________
------------------------------
Message: 6
Date: Thu, 14 May 2009 17:10:29 +0200
From: Taco Hoekwater
This means the 64bit binary is too new for your machine :(
Thanks.
3 months after release and Debian Lenny is already too old.
If it was any other distro I would be surprised ;) Lenny is glibc 2.7, right?
Compiling luatex myself and updating minimals, does that work?
It should, yes. Even better would be if you then sent your binary
to Mojca, since yours will run on more platforms than the current
binary in minimals.
Best wishes,
Taco
------------------------------
Message: 7
Date: Thu, 14 May 2009 17:12:06 +0200
From: "R. Bastian"
On Thu, 14 May 2009, R. Bastian wrote:
[...]
I wish to alternate french & german texts (so they can be translated in other languages).
Also see http://wiki.contextgarden.net/ConTeXt_on_Excursion%2C_translations
The wiki page is old and the svn repo is not accessible right now, but someone started translating it into french.
Thanks, but I will write the source in the following manner: -------------------- \german Was meinst Du? \bavarian Woas moanst? \french Que veux-tu dire ? ------------------------ It is not necessaury to make texian acrobaties: the extraction can be done by a little Python-script
Aditya ___________________________________________________________________________________
------------------------------
Message: 8
Date: Thu, 14 May 2009 17:15:27 +0200
From: Hans Hagen
Hi,
just in case this slipped someone's mind :)
I still get an error about an undefined control sequence (\PDFobjectreferenceB) and the footnote marker (star) is not moved with the footnote (\moveright).
The attached example code (with overprinting) breaks with the mentioned error. The attached picture shows the problem with the separated footnote marker. It can be created with the other versions (without overprinting) of the \NoteNumber and \MyFootnote macros.
it's
\def\MyFootnote#1{\footnote
{\hskip3em \startproperty[overprint]#1\stopproperty}}
(i'll make \startoverprint which is actually kind of low level
unexpandable but not \dostartproperty which is not intended as user
command)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
------------------------------
Message: 9
Date: Thu, 14 May 2009 17:21:14 +0200
From: Arthur Reutenauer
It should, yes. Even better would be if you then sent your binary to Mojca, since yours will run on more platforms than the current binary in minimals.
Absolutely, and, even better, Bernard, if you're willing to use SVN, you can even submit the binaries to the repository yourself. Write to Mojca and me if you want an account on the server. Arthur ------------------------------ ___________________________________________________________________________________ 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 ___________________________________________________________________________________ End of ntg-context Digest, Vol 59, Issue 85 *******************************************