ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* orphans and widow control not working
@ 2011-12-29 19:16 Pablo Rodríguez
  2011-12-29 19:21 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodríguez @ 2011-12-29 19:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: orphans and widow control not working
  2011-12-29 19:16 orphans and widow control not working Pablo Rodríguez
@ 2011-12-29 19:21 ` Wolfgang Schuster
  2011-12-29 20:36   ` Pablo Rodríguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-12-29 19:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodríguez


Am 29.12.2011 um 20:16 schrieb Pablo Rodríguez:

> 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]

Write “\setup[reset]” without the “\s!” prefix.

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: orphans and widow control not working
  2011-12-29 19:21 ` Wolfgang Schuster
@ 2011-12-29 20:36   ` Pablo Rodríguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodríguez @ 2011-12-29 20:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12/29/2011 08:21 PM, Wolfgang Schuster wrote:
> Am 29.12.2011 um 20:16 schrieb Pablo Rodríguez:
>> 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]
> 
> Write “\setup[reset]” without the “\s!” prefix.

Thanks, Wolfgang, it worked perfectly.


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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-12-29 20:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-29 19:16 orphans and widow control not working Pablo Rodríguez
2011-12-29 19:21 ` Wolfgang Schuster
2011-12-29 20:36   ` Pablo Rodríguez

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