[NTG-context] heading and a few lines at the end of a page

2012-06-07 Thread Jan Pohanka
Hello, sometimes I get a heading and a single line (or two lines) at the end of the page and it does not look good? Is there any way (TeX or ConTeXt) to force pagebreak before heading in this case? Ideally I'd like to be able to specify the count of lines when this should occur. best

[NTG-context] Error with EBGaramond-Regular

2012-06-07 Thread luigi scarso
Hi, from fontforge users list On Thu, Jun 7, 2012 at 12:57 AM, Georg Duffner g.duff...@gmail.com wrote: Dear fellow fontforgers, in the last few days I’ve been experimenting with decomposition via Opentype. I’ve come to some results, but I’m not sure if I’ve done everything right because no

Re: [NTG-context] heading and a few lines at the end of a page

2012-06-07 Thread luigi scarso
On Thu, Jun 7, 2012 at 10:02 AM, Jan Pohanka xhpoha...@gmail.com wrote: Hello, sometimes I get a heading and a single line (or two lines) at the end of the page and it does not look good? Is there any way (TeX or ConTeXt) to force pagebreak before heading in this case? Ideally I'd like to be

[NTG-context] expansion and \processaction

2012-06-07 Thread Philipp Gesang
Hi all, my goal is a macro \definestates[foo][...,...] which takes a comma list and creates a monadic macro \foo[n]. \foo[n] should return either the nth item or, if (n list length), a default. I thought the right tools were \processcommalist to generate the mapping n-list item, as well as

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Wolfgang Schuster
Am 07.06.2012 um 14:05 schrieb Philipp Gesang: Hi all, my goal is a macro \definestates[foo][...,...] which takes a comma list and creates a monadic macro \foo[n]. \foo[n] should return either the nth item or, if (n list length), a default. I thought the right tools were

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-07 Thread Henning Hraban Ramm
Am 2012-06-07 um 00:00 schrieb Andy Thomas: Hello all, I do not know, how many people are using the epub export, but here are two more changes in order to achieve a valid epub file with information from the context source: Since I need ePub for my current project (even if th eprint

Re: [NTG-context] multi-page floats

2012-06-07 Thread Henning Hraban Ramm
Am 2012-06-06 um 11:52 schrieb luigi scarso: And maybe this is what you want errata/corrige Thank you for your effort, I’ll test it this weekend, but I resolved to Wolfgang’s solution using \offset instead of backgrounds, since that’s much easier and enough for my needs. Greetlings,

[NTG-context] new layer for letter

2012-06-07 Thread Peter Münster
Hello, How can I create a new layer with the letter module? I've tried this, but it does not work: --8---cut here---start-8--- \usemodule[letter] \defineletterlayer[test] \defineletterelement[layer][test][default]{NEW LAYER}

Re: [NTG-context] new layer for letter

2012-06-07 Thread Wolfgang Schuster
Am 07.06.2012 um 14:58 schrieb Peter Münster: Hello, How can I create a new layer with the letter module? I've tried this, but it does not work: --8---cut here---start-8--- \usemodule[letter] \defineletterlayer[test]

[NTG-context] letter: errors with foot=gbrief

2012-06-07 Thread Peter Münster
Hello, This file generates some errors: --8---cut here---start-8--- \usemodule[letter] \setupletterlayer[foot][alternative=gbrief] \startletter[phone=123] test \stopletter --8---cut here---end---8--- Workaround:

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-07 Thread Hans Hagen
On 7-6-2012 14:48, Henning Hraban Ramm wrote: Am 2012-06-07 um 00:00 schrieb Andy Thomas: Hello all, I do not know, how many people are using the epub export, but here are two more changes in order to achieve a valid epub file with information from the context source: Since I need ePub for

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-07 Thread luigi scarso
On Thu, Jun 7, 2012 at 3:53 PM, Hans Hagen pra...@wxs.nl wrote: On 7-6-2012 14:48, Henning Hraban Ramm wrote: Am 2012-06-07 um 00:00 schrieb Andy Thomas: Hello all, I do not know, how many people are using the epub export, but here are two more changes in order to achieve a valid epub file

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Philipp Gesang
Hi Wolfgang! ···date: 2012-06-07, Thursday···from: Wolfgang Schuster··· Am 07.06.2012 um 14:05 schrieb Philipp Gesang: Hi all, my goal is a macro \definestates[foo][...,...] which takes a comma list and creates a monadic macro \foo[n]. \foo[n] should return either the nth item

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Wolfgang Schuster
Am 07.06.2012 um 17:34 schrieb Philipp Gesang: Hi Wolfgang! ···date: 2012-06-07, Thursday···from: Wolfgang Schuster··· Am 07.06.2012 um 14:05 schrieb Philipp Gesang: Hi all, my goal is a macro \definestates[foo][...,...] which takes a comma list and creates a monadic macro

Re: [NTG-context] Error with EBGaramond-Regular

2012-06-07 Thread Hans Hagen
On 7-6-2012 10:03, luigi scarso wrote: Hi, from fontforge users list On Thu, Jun 7, 2012 at 12:57 AM, Georg Duffnerg.duff...@gmail.com wrote: Dear fellow fontforgers, in the last few days I’ve been experimenting with decomposition via Opentype. I’ve come to some results, but I’m not sure if

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Hans Hagen
On 7-6-2012 18:02, Wolfgang Schuster wrote: You can also try to use a Lua variant. \def\states_entry_indeed[#1][#2]% {\startlua local entries = utilities.parsers.settings_to_array(#1) local entry = entries[#2] if entry then context(entry) else context(\\tttf NO

[NTG-context] Tabulate and \EQ

2012-06-07 Thread Wolfgang Schuster
Hi, in MkIV there is no space in front of the \EQ symbol in the second row while in MkII there is a space. \starttext \starttabulate \NC A\EQ B \NC\NR \NC Left \EQ Right \NC\NR \stoptabulate \stoptext Wolfgang

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-07 Thread Hans Hagen
On 7-6-2012 00:00, Andy Thomas wrote: Hello all, I do not know, how many people are using the epub export, but here are two more changes in order to achieve a valid epub file with information from the context source: On Jun 5, 2012, at 9:09 PM, Andy Thomas wrote: Hi all, in my attempts to

Re: [NTG-context] expansion and \processaction

2012-06-07 Thread Wolfgang Schuster
Am 07.06.2012 um 18:16 schrieb Hans Hagen: On 7-6-2012 18:02, Wolfgang Schuster wrote: You can also try to use a Lua variant. \def\states_entry_indeed[#1][#2]% {\startlua local entries = utilities.parsers.settings_to_array(#1) local entry = entries[#2] if entry then

Re: [NTG-context] \externalfigure and factor=max

2012-06-07 Thread Rogers, Michael K
On Jun 6, 2012, at 2:45 PM, Marco wrote: Hi, according to the wiki the \externalfigure key “factor” has the options: max: aspect ratio is kept, the image is scaled to the bigger (oversized) variant fit: aspect ratio is kept, the image is scaled to the smaller (fitted) variant

Re: [NTG-context] Error with EBGaramond-Regular

2012-06-07 Thread luigi scarso
On Thu, Jun 7, 2012 at 6:14 PM, Hans Hagen pra...@wxs.nl wrote: can you test with local function s_uncover(splitter,cache,cover)    if cover == then        return nil    else        local uncovered = cache[cover]        if not uncovered then            uncovered =

[NTG-context] Confused again :-)

2012-06-07 Thread Bill Meahan
I'm getting a handle on page layout and headings but there are some things I haven't figured out. 1) How does one specify they want the outer margin to be a different size than the inner margin? Outer, of course, is the right margin on a right-hand (odd) page and the left margin on a

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Wolfgang Schuster
Am 07.06.2012 um 21:15 schrieb Bill Meahan: I'm getting a handle on page layout and headings but there are some things I haven't figured out. 1) How does one specify they want the outer margin to be a different size than the inner margin? Outer, of course, is the right margin on a

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Rogers, Michael K
On Jun 7, 2012, at 3:15 PM, Bill Meahan wrote: I'm getting a handle on page layout and headings but there are some things I haven't figured out. 1) How does one specify they want the outer margin to be a different size than the inner margin? Outer, of course, is the right margin on a

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Bill Meahan
On 06/07/2012 15:29, Wolfgang Schuster wrote: Can you be more concrete. First page of a chapter should have the chapter name in a fancy font at the top of the main text area. Perhaps with rules above and/or below. In the framed margin would be the word Chapter (in smallcaps at a _slightly_

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Bill Meahan
On 06/07/2012 15:34, Rogers, Michael K wrote: 1) You might want to look through Ch. 3 in the manual. The dimension called backspace is sometimes described as the space between the spine and the text, and sometimes as the space to the left. But the manual shows various ways to set up

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Wolfgang Schuster
Am 07.06.2012 um 21:55 schrieb Bill Meahan: On 06/07/2012 15:29, Wolfgang Schuster wrote: Can you be more concrete. First page of a chapter should have the chapter name in a fancy font at the top of the main text area. Perhaps with rules above and/or below. In the framed margin would be

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Bill Meahan
On 06/07/2012 16:32, Wolfgang Schuster wrote: snip The width of the text area will be typefitted to the body font size using the table in Bringhurst's The Elements of Typographic Style. Indeed, this page

Re: [NTG-context] Confused again :-)

2012-06-07 Thread Pontus Lurcock
On Thu 07 Jun 2012, Bill Meahan wrote: Gosh this list is nice! Reminds me of the good old days when we used UUCP, bang-paths and C-News to communicate (or the early ARPANET days): polite, expert, very willing to share knowledge c. Wolfgang is ConTeXt's natural language interface. In fact,

Re: [NTG-context] frame and numbering of code snippets using vim-module

2012-06-07 Thread Aditya Mahajan
On Wed, 6 Jun 2012, Aditya Mahajan wrote: On Thu, 7 Jun 2012, Xenia wrote: Hi context folks, using the vim module for including MATLAB-code, I noticed some annoying behavior: The frame, that I produced with your help using `\definetextbackground`, is not wide enough for the text inside, or

Re: [NTG-context] frame and numbering of code snippets using vim-module

2012-06-07 Thread Aditya Mahajan
On Thu, 7 Jun 2012, Aditya Mahajan wrote: Besides there should not be a new line number after a line break. This is still unresolved. The github branch should fix this. (See tests/vim/19-linenumber-break.tex). Can you test it with your document? To test the latest version, save

Re: [NTG-context] Error with EBGaramond-Regular

2012-06-07 Thread Khaled Hosny
On Thu, Jun 07, 2012 at 06:14:10PM +0200, Hans Hagen wrote: btw, what are features like cv80 and cv81 supposed to represent? A relatively new OpenType addition. http://www.microsoft.com/typography/otspec/features_ae.htm#cv01-cv99 Regards, Khaled

Re: [NTG-context] epub

2012-06-07 Thread Khaled Hosny
On Thu, Jun 07, 2012 at 06:04:39PM +0200, Hans Hagen wrote: Hi, I couldn't resist ... firefox has a nice 3d view of a page and this is how the context garden looks like. A nice tests for epubs. Now, we want that in ConTeXt ;) Regards, Khaled

[NTG-context] problem with \characteralignmentmode=2

2012-06-07 Thread Peter Münster
Hi, How can I get rid of the space on the right side of the numbers please? --8---cut here---start-8--- \starttext \bTABLE \chardef\characteralignmentmode=2 \setupTABLE[c][1][align=flushright, offset=0em, alignmentcharacter=., aligncharacter=yes]