ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Pablo Rodríguez" <oinos@web.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: orphans and widow control not working
Date: Thu, 29 Dec 2011 20:16:42 +0100	[thread overview]
Message-ID: <4EFCBC9A.8050004@web.de> (raw)

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]
<argument> *\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]
<argument> *\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
___________________________________________________________________________________


             reply	other threads:[~2011-12-29 19:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-29 19:16 Pablo Rodríguez [this message]
2011-12-29 19:21 ` Wolfgang Schuster
2011-12-29 20:36   ` Pablo Rodríguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EFCBC9A.8050004@web.de \
    --to=oinos@web.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).