[NTG-context] bug in latest beta?

2016-09-04 Thread Pablo Rodriguez
Hans, the following sample gives a Lua error with latest beta (2016.09.04 13:46): \setupinteraction[state=start] \define[1]\myurl{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}} \starttext \input knuth \myurl{http://wiki.contextgarden.net}. \stoptext Compilation is fine with beta

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Wolfgang Schuster
Florian Leupold 4. September 2016 um 19:37 Issues with the documentation: - In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits from \setupcounter; but in “ConTEXt reference manual", it says on page 246 that \setupenumerations inherits from

Re: [NTG-context] Wrong bookmark for TOC

2016-09-04 Thread Henri Menke
On 09/04/2016 07:28 PM, Wolfgang Schuster wrote: >> Henri Menke >> 4. September 2016 um 13:28 >> Dear list, >> >> when I specify that titles should be added to the bookmarks, the text of the >> bookmark is somewhat wrong. The heading of the table of contents is >>

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Otared Kavian
Hi Florian, The following setup works fine here, I wonder whether this is what you want: \defineenumeration[theorem] [text={Theorem}, style=slanted, title=yes, alternative=hanging, % hang=2, width=fit, right={~}, way=bychapter, %

[NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Florian Leupold
Dear list, I am trying to use enumerations with MKIV I am a bit at a loss when it comes to the documentation (see below for a few issues). Working on a concrete example, I have come pretty close to what I want for my enumeration ‘theorem’: \setupexternalfigures[location=default]

Re: [NTG-context] Opentype feature and "aligncharacter=yes"

2016-09-04 Thread Hans Hagen
On 9/4/2016 5:33 PM, Jose Luis Arellano wrote: Hello Hans. I have no clue what you expect .. Use old style numbers as default feature in text and tabular-lining numbers for tables. and how about oldstyle tabular lining numbers ... if we would disable oldstyle then someone would complain

Re: [NTG-context] Captions numbering

2016-09-04 Thread Jose Luis Arellano
2016-09-04 6:42 GMT-03:00 Wolfgang Schuster : > Use "incrementnumber=list" to get TOC entries for your unnumbered sections. > > Wolfgang Hello Wolfgang. In fact, with the option "incrementnumber=list" you can to show unnumbered section in TOC but unfortunately this

Re: [NTG-context] Opentype feature and "aligncharacter=yes"

2016-09-04 Thread Jose Luis Arellano
Hello Hans. > I have no clue what you expect .. Use old style numbers as default feature in text and tabular-lining numbers for tables. >what font is used? Not all fonts have those num features. This issue is not related to font. You can reproduce it with default font (Latin Modern) just use the

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Florian Leupold
> On 04.09.16, at 16:28, Florian Leupold wrote: > > >> On 04.09.16, at 14:14, Hans Hagen wrote: >> >> On 9/4/2016 12:03 PM, Hans Hagen wrote: >> >>> \definebar[ClozedBar][underbar][continue=yes] >>> >>> \unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}}

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Florian Leupold
> On 04.09.16, at 14:14, Hans Hagen wrote: > > On 9/4/2016 12:03 PM, Hans Hagen wrote: > >> \definebar[ClozedBar][underbar][continue=yes] >> >> \unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}} >> >> \starttext >> >> \input ward >> \Clozed{\color[red]{CLOZE 1}} >> \input ward

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Hans Hagen
On 9/4/2016 12:03 PM, Hans Hagen wrote: \definebar[ClozedBar][underbar][continue=yes] \unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}} \starttext \input ward \Clozed{\color[red]{CLOZE 1}} \input ward \Clozed{\quad\color[red]{CLOZE 2}\quad} \input ward

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Hans Hagen
On 9/2/2016 3:27 PM, Florian Leupold wrote: Dear list, I would like to create cloze texts for my students with ConTeXt. Ideally, I would have a command \cloze[]{} with the following functionality: 1) \cloze{} would insert an underlined gap in the text with a width of (say) 1.3 times the

Re: [NTG-context] Captions numbering

2016-09-04 Thread Wolfgang Schuster
Jose Luis Arellano 3. September 2016 um 04:35 Thanks for the answer Jan, but unfortunately this doesn't solve my problem because the option "incrementnumber=no" causes that the unnumbered section are not show in TOC. Use "incrementnumber=list" to get TOC entries

Re: [NTG-context] Opentype feature and "aligncharacter=yes"

2016-09-04 Thread Hans Hagen
On 9/4/2016 6:38 AM, Jose Luis Arellano wrote: Hello list. I want to report a very annoying issue when one use oldstyle numbers by default. You can check the result in the following MWE: %\definefontfeature[default][default][onum=yes] \definefontfeature[lnum][tnum=yes,lnum=yes] \starttext

Re: [NTG-context] \vfill shifts content off grid

2016-09-04 Thread Wolfgang Schuster
Henri Menke 31. August 2016 um 19:45 Dear list, when I use a body font size other than the standard, issuing \vfill will move the content off the grid. MWE is below. How do I fix this? Cheers, Henri --- \setupbodyfont[9pt] \setuplayout[grid=yes] \showgrid