From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73462 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Pablo_Rodr=EDguez?= Newsgroups: gmane.comp.tex.context Subject: orphans and widow control not working Date: Thu, 29 Dec 2011 20:16:42 +0100 Message-ID: <4EFCBC9A.8050004@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325186225 2600 80.91.229.12 (29 Dec 2011 19:17:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2011 19:17:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 29 20:16:59 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RgLTH-0004m3-PZ for gctc-ntg-context-518@m.gmane.org; Thu, 29 Dec 2011 20:16:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A7F8CCB1B8; Thu, 29 Dec 2011 20:16:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y0EyD1FV-bAm; Thu, 29 Dec 2011 20:16:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE7D8CB1B0; Thu, 29 Dec 2011 20:16:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96496CB1B0 for ; Thu, 29 Dec 2011 20:16:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UpIiRJlPsskH for ; Thu, 29 Dec 2011 20:16:51 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 33F5ECB1A2 for ; Thu, 29 Dec 2011 20:16:51 +0100 (CET) Original-Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBTJGo5s013039 for ; Thu, 29 Dec 2011 20:16:50 +0100 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate01.web.de (Postfix) with ESMTP id E3CA11A7B35AE for ; Thu, 29 Dec 2011 20:16:49 +0100 (CET) Original-Received: from [192.168.1.33] ([88.5.204.232]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0MXHt7-1RAjiu2GY9-00Vzhp; Thu, 29 Dec 2011 20:16:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0 X-Provags-ID: V02:K0:25TrMJSHx0NpVkpX83297bHTO/ix2+V8T1RSMA4O2MU FVG6+3eX/6MjD5Pi9RVCkiFp4HUdopRg9Q3KUemZTh3+epcLEU 4a7FKOxOJ1Y9ZNAWnN+VpeGVoOyxIUlQE+VMHmm9xnFk4BhnFn KWM5V1D42t0gsyp53hZBLD1hqutEI3IbQ46Q9dpHnWxfyaJXKB bPNaNKRakJ4qf7FiPoDSw== X-Bayes-Prob: 0.1174 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.72.192.221; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cGf7gOiS - 75a293d7136c - 20111229 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73462 Archived-At: Hi there, trying to avoid widow and orphan lines in my texts, Hans suggested about three weeks ago the following settings (http://www.ntg.nl/pipermail/ntg-context/2011/063746.html). But the following sample doesn't compile: \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[*\s!reset] \widowpenalty=1000 \clubpenalty=1000 \brokenpenalty=1000 \stopsetups \starttext Hello. \stoptext The error I get is the following (it's Greek to me): context --purgeall "a.tex" && exit (in directory: /home/ousia) mtx-context | run 1: luatex --fmt="/home/ousia/.texlive2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en" --lua="/home/ousia/.texlive2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en.lui" --backend="pdf" "./a.tex" This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277) \write18 enabled. (a.tex ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.1 int: english/english system > cont-new.mkiv loaded (/usr/local/texlive/2011/texmf-dist/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > a.top loaded (a.top) fonts > latin modern fonts are not preloaded languages > language en is active {/usr/local/texlive/2011/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} ! Undefined control sequence. system > tex > error on line 4 in file a.tex: Undefined control sequence ... 1 \setuplayout[setups=*lessstrict] 2 \startsetups[*lessstrict] 3 \setup[*\s!reset] 4 >> \widowpenalty=1000 5 \clubpenalty=1000 6 \brokenpenalty=1000 7 \stopsetups 8 \starttext 9 Hello, \TeX ies. 10 \stoptext 11 12 \mainlanguage[es] 13 \usemodule[simplefonts][size=12pt] 14 \setmainfontfallback[Palatino Linotype][range={greekandcoptic,greekextended},force=yes] *\s !reset \dosetups ...ent \fi \fi \else \ifcsname \??su :#1 \endcsname :#1\else :\lett... \@@su:*lessstrict #1->\setup [*\s !reset] \widowpenalty =1000\clubpenalty =10... l.4 } \ctxcommand ...\directlua \zerocount {commands.#1} \doprocesslocalsetups ... \dodoprocesslocalsetups \fi ... l.8 \starttext ? ! Emergency stop. system > tex > error on line 4 in file a.tex: Emergency stop ... 1 \setuplayout[setups=*lessstrict] 2 \startsetups[*lessstrict] 3 \setup[*\s!reset] 4 >> \widowpenalty=1000 5 \clubpenalty=1000 6 \brokenpenalty=1000 7 \stopsetups 8 \starttext 9 Hello, \TeX ies. 10 \stoptext 11 12 \mainlanguage[es] 13 \usemodule[simplefonts][size=12pt] 14 \setmainfontfallback[Palatino Linotype][range={greekandcoptic,greekextended},force=yes] *\s !reset \dosetups ...ent \fi \fi \else \ifcsname \??su :#1 \endcsname :#1\else :\lett... \@@su:*lessstrict #1->\setup [*\s !reset] \widowpenalty =1000\clubpenalty =10... l.4 } \ctxcommand ...\directlua \zerocount {commands.#1} \doprocesslocalsetups ... \dodoprocesslocalsetups \fi ... l.8 \starttext ! ==> Fatal error occurred, no output PDF file produced! Compilation failed. mtx-context | fatal error: return code: 1 What am I doing wrong or missing here? I'm using the ConTeXt stable provided with TL2011. Thanks for your help, Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________