Re: [NTG-context] \writetolist command...

2016-03-04 Thread Willi Egger
Hans, thank you for your tip! Willi > On 4 mrt. 2016, at 12:08, Hans Hagen <pra...@wxs.nl> wrote: > > On 3/4/2016 5:37 AM, Willi Egger wrote: >> Hi all, >> >> I need to write to a list, however it appears that the second argument from >> \writeto

Re: [NTG-context] \writetolist command...

2016-03-04 Thread Hans Hagen
On 3/4/2016 5:37 AM, Willi Egger wrote: Hi all, I need to write to a list, however it appears that the second argument from \writetolist[name]{number}{ext} does not end up in the list. — What do I miss? \starttext \startsubject[title=Contents] \placelist[section

[NTG-context] \writetolist command...

2016-03-03 Thread Willi Egger
Hi all, I need to write to a list, however it appears that the second argument from \writetolist[name]{number}{ext} does not end up in the list. — What do I miss? \starttext \startsubject[title=Contents] \placelist[section][criterium=all] \stopsubject

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Hans Hagen
{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Wolfgang Schuster
String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OListe

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Rik
On 2015-10-11 12:56, Wolfgang Schuster wrote: Is \limitatetext a option for you because unlike \doboundtext the command is unexpandable? \starttext \doboundtext {Thus, I came to the conclusion that the designer of a new system ...}{.5\textwidth}{...} \limitatetext{Thus, I came to the

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Rik Kabel
{99}\to\IDWidth\relax \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Wolfgang Schuster
Rik 11. Oktober 2015 um 21:20 On 2015-10-11 12:56, Wolfgang Schuster wrote: Is it an option of which I am aware, yes. Do I desire to use it, no. Will I use it? Perhaps, if \doboundtext cannot be repaired. The resulting page with \limitatetext has large rivers of white on

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Rik Kabel
On 2015-10-11 15:41, Wolfgang Schuster wrote: Rik 11. Oktober 2015 um 21:20 On 2015-10-11 12:56, Wolfgang Schuster wrote: Is it an option of which I am aware, yes. Do I desire to use it, no. Will I use it? Perhaps, if \doboundtext cannot be repaired. The resulting page

[NTG-context] Regression with \doboundtext in \writetolist

2015-10-10 Thread Rik Kabel
} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext

Re: [NTG-context] \writetolist in mkiv

2014-10-13 Thread Jano Kula
Thank you, Wolfgang, here is the working example for the structure manual ;) % \writetolist local table of contents example \def\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3

[NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula
Hello to everybody! Minimal story - How to insert local TOC of manually created subsections after the section starts? % start minimal example \def\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Wolfgang Schuster
% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3}{% \startchapter[title=Chapter] \placecontent[chapter,criterium=local] % local TOC OK You can’t put a keyword (chapter) and a assignment (criterium=local) in the same argument of a setup

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula
\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3}{% \startchapter[title=Chapter] \placecontent[chapter,criterium=local] % local TOC OK You can’t put a keyword (chapter) and a assignment

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Wolfgang Schuster
subsections after the section starts? % start minimal example \def\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3}{% \startchapter[title=Chapter] \placecontent[chapter

[NTG-context] writetolist doesn't include sectionnumber in mkiv?

2014-02-15 Thread Sanjoy Mahajan
With MkIV, I'm having trouble getting \writetolist to include sectionnumbers. Or at least, I cannot get the typeset list to include the sectionnumbers (but maybe writetolist sent in the information). Here's a minimal example, which is almost exactly the example from the wiki at http

[NTG-context] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto
Hello! I can't understand what I'm doing wrong here: % \setuplist[mylist] [alternative=c, width=0mm, style=\tfx, criterium=all] \starttext \placelist[mylist] \page[yes] \input knuth \writetolist[mylist]{}{Item} \stoptext

Re: [NTG-context] \placelist and \writetolist

2011-12-13 Thread Wolfgang Schuster
knuth \writetolist[mylist]{}{Item} \stoptext % The document compiles fine with version 2011.05.18 22:2, but it fails miserably with the latest (2011.11.29 23:11) Replace \setuplist with \definelist, before you use a list you should create it. Wolfgang

Re: [NTG-context] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes: Replace \setuplist with \definelist, before you use a list you should create it. I knew I was missing something obvious... Thanks a lot, it works. Best wishes -- Marco

[NTG-context] \writetolist spurious space in the first line hereafter

2011-03-17 Thread Willi Egger
Hi all, I detected that after issuing \writetolist, that there is a unwanted space in the first line after this command. This occurs when indenting is on and off. Please refer to the attached minimal example. I am using ConTeXt 2011.02.25 22:03, LuaTEX beta-0.65.0-2010121316 Kind regards

Re: [NTG-context] \writetolist spurious space in the first line hereafter

2011-03-17 Thread Wolfgang Schuster
Am 17.03.2011 um 11:32 schrieb Willi Egger: Hi all, I detected that after issuing \writetolist, that there is a unwanted space in the first line after this command. This occurs when indenting is on and off. Add a comment after the last brace, i.e. \writetolist[…]{}{…}% and write

Re: [NTG-context] \writetolist spurious space in the first line hereafter

2011-03-17 Thread Willi Egger
Hello Wolfgang! thank you so much for this answer. Thanks to regular expressions it is now solved throughout the whole book. Willi On 17 Mar 2011, at 11:47, Wolfgang Schuster wrote: Am 17.03.2011 um 11:32 schrieb Willi Egger: Hi all, I detected that after issuing \writetolist

Re: [NTG-context] How to avoid that \writetolist becomes a page-breaker

2010-12-15 Thread Hans Hagen
On 14-12-2010 10:32, Marco Pessotto wrote: \subject{\bf My title!} \dontleavehmode \writetolist[myrandompart]{}{It's a test} works. The question if is this the right thing to do, still remains, though it's quite ok as long as you realize that it introduces 'something' in the text stream, so

Re: [NTG-context] How to avoid that \writetolist becomes a page-breaker

2010-12-15 Thread Hans Hagen
On 14-12-2010 9:00, Marco Pessotto wrote: \doneleavehmode \writetolist[myrandompart]{It's a test} \input knuth i.e. just bind the write to some text - Hans Hagen | PRAGMA ADE

Re: [NTG-context] How to avoid that \writetolist becomes a page-breaker

2010-12-15 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes: On 14-12-2010 9:00, Marco Pessotto wrote: \doneleavehmode \writetolist[myrandompart]{It's a test} \input knuth i.e. just bind the write to some text Thanks for your answer. I'm on my way to the wiki :-) -- Marco

[NTG-context] How to avoid that \writetolist becomes a page-breaker

2010-12-14 Thread Marco Pessotto
Probably due to my abuse of \writetolist, I noticed that inserting \writetolist right after \subject makes TeX to think that it can break the page there without problems. See the following minimal example: %===cut here= \definelist[myrandompart] \starttext \dorecurse

Re: [NTG-context] How to avoid that \writetolist becomes a page-breaker

2010-12-14 Thread Marco Pessotto
Marco Pessotto melmo...@gmail.com writes: Probably due to my abuse of \writetolist, I noticed that inserting \writetolist right after \subject makes TeX to think that it can break the page there without problems. See the following minimal example: %===cut here

[NTG-context] writetolist causes mystery blank

2010-07-08 Thread Michael Murphy
Hi all, I'm having a but of a problem using writetolist. In principle, I want to insert something into the table of contents, but I don't want to disturb the flow of the text. Unfortunately, the following code seems to generate a blank at the top of the page: \showframe \showmakeup

Re: [NTG-context] writetolist causes mystery blank

2010-07-08 Thread Hans Hagen
On 8-7-2010 7:33, Michael Murphy wrote: Hi all, I'm having a but of a problem using writetolist. In principle, I want to insert something into the table of contents, but I don't want to disturb the flow of the text. Unfortunately, the following code seems to generate a blank at the top

Re: [NTG-context] writetolist causes mystery blank

2010-07-08 Thread Michael Murphy
I'm having a but of a problem using writetolist. In principle, I want to insert something into the table of contents, but I don't want to disturb the flow of the text. Unfortunately, the following code seems to generate a blank at the top of the page: mkii or mkiv or both? It looks like

Re: [NTG-context] \writetolist fails in footnotes when interaction is on

2010-06-22 Thread Hans Hagen
On 21-6-2010 7:11, Michael Saunders wrote: \setupinteraction[state=start,color=,contrastcolor=,option=fit] \definelabel[demonum][text=,before=,after=,way=bytext] \definelist[demos] \setuplist[demos][interaction=all,alternative=b,after=] \starttext \footnote{\writetolist[demos]{\nextdemonum

[NTG-context] \writetolist fails in footnotes when interaction is on

2010-06-20 Thread Michael Saunders
\setupinteraction[state=start,color=,contrastcolor=,option=fit] \definelabel[demonum][text=,before=,after=,way=bytext] \definelist[demos] \setuplist[demos][interaction=all,alternative=b,after=] \starttext \footnote{\writetolist[demos]{\nextdemonum}{demo title}} \stoptext Is there a way

[NTG-context] Inserting apropriate blank - indenting by \writetolist

2010-05-18 Thread Jaroslav Hajtmar
Hello all, When I do: \writetolist[chapter]{}{Appendicess} then content is 1. Section one 2. Section two . Appendices stopper is visible - unacceptable for me when I do: \writebetweenlist[chapter]{Appendicess} then content is 1. Section one 2. Section two Appendices without

Re: [NTG-context] Inserting apropriate blank - indenting by \writetolist

2010-05-18 Thread Hans Hagen
On 18-5-2010 8:02, Jaroslav Hajtmar wrote: Hello all, When I do: \writetolist[chapter]{}{Appendicess} then content is 1. Section one 2. Section two . Appendices stopper is visible - unacceptable for me when I do: \writebetweenlist[chapter]{Appendicess} then content is 1. Section one 2

Re: [NTG-context] Inserting apropriate blank - indenting by \writetolist

2010-05-18 Thread Jaroslav Hajtmar
: \writetolist[chapter]{}{Appendicess} then content is 1. Section one 2. Section two . Appendices stopper is visible - unacceptable for me when I do: \writebetweenlist[chapter]{Appendicess} then content is 1. Section one 2. Section two Appendices without indentation - - unacceptable for me

[NTG-context] \writetolist vs \writebetweenlist

2007-02-14 Thread JOHN CULLETON
I can use \writebetweenlist to add a line to my TOC. I have to put the page number in manually. Here is the statement: \writebetweenlist[part]{\nimbus\zy{Part 1 Prerequisite for Success}\hfil 22\rm } It would seem more sensible to use \writetolist and let Context determine the page number

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-06 Thread Martin Kolařík
list for ConTeXt users Subject: Re: [NTG-context] Problem with encoding, XML and writetolist... Vit Zyka wrote: Martin Kolařík wrote: Hi Hans, I've analyzed the situation using different combinations of regimes and encodings, including switching off handling (\donothandleactivecharacter

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Martin Kolařík
for help, have a nice day, Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hans Hagen Sent: Monday, April 03, 2006 11:57 AM To: [EMAIL PROTECTED]; mailing list for ConTeXt users Subject: Re: [NTG-context] Problem with encoding, XML and writetolist

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Martin Kolařík
for help, have a nice day, Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hans Hagen Sent: Monday, April 03, 2006 11:57 AM To: [EMAIL PROTECTED]; mailing list for ConTeXt users Subject: Re: [NTG-context] Problem with encoding, XML and writetolist

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Hans Hagen
Martin Kolařík wrote: Hi Hans, I've analyzed the situation using different combinations of regimes and encodings, including switching off handling (\donothandleactivecharacter) and it seems to me, that every text with chars 127, which is fully expanded (as in 8bit.tex), must cause

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Vit Zyka
] \starttext \writetolist[chapter]{1}{Dobré ráno} \expanded{\writetolist[chapter]{2}{Dobré odpoledne}} \placecontent \stoptext --- Now I have solved it using not-stable solution -- I am using triple sequence of \expandafter to expand \XMLflush

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Hans Hagen
\numcharacter \reuseencoding[ec] \enableregime[latin2] \starttext \writetolist[chapter]{1}{Dobré ráno} \expanded{\writetolist[chapter]{2}{Dobré odpoledne}} \placecontent \stoptext the {} may break liguature building (and maybe kerning) ... taco knows ... I got a brainwave ... \enableregime

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Vit Zyka
\reuseencoding[ec] \enableregime[latin2] \starttext \writetolist[chapter]{1}{Dobré ráno} \expanded{\writetolist[chapter]{2}{Dobré odpoledne}} \placecontent \stoptext the {} may break liguature building (and maybe kerning) ... taco knows ... Hmmm, that's right. I got a brainwave

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Hans Hagen
Vit Zyka wrote: So there is no need to have only 7-bit chars in tui/tuo etc.? All right, I think this will be better also for sorting. Sounds promissing. if the regime is the same for a whole document ... indeed Hans -

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Martin Kolařík
, XML and writetolist... Martin Kolařík wrote: Hi Hans, isn't there some news with the stuff? small test file needed to refresh my memory Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Hans Hagen
Martin Kolařík wrote: Hi Hans, the test file is attached, what input encoding is used here? i get the same chapter title as toc entry is your tex configured for 8 bit (natural.ctx) Hans -

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Martin Kolařík
and writetolist... Martin Kolařík wrote: Hi Hans, the test file is attached, what input encoding is used here? i get the same chapter title as toc entry is your tex configured for 8 bit (natural.ctx) Hans

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Hans Hagen
Martin Kolařík wrote: Aha, here maybe will be the solution :-) I'am using standalone Win32 distribution from Pragma and I'm running texexec with --translate=cp1252cs. Typescripts use il2, which corresponds to fonts, of course. If I run the code without XML (if I transcribe XML to \chapter

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Martin Kolařík
- From: Hans Hagen [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 11:57 AM To: [EMAIL PROTECTED]; mailing list for ConTeXt users Subject: Re: [NTG-context] Problem with encoding, XML and writetolist... Martin Kolařík wrote: Aha, here maybe will be the solution :-) I'am using standalone

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Vit Zyka
Hans Hagen wrote: Martin Kolařík wrote: Aha, here maybe will be the solution :-) I'am using standalone Win32 distribution from Pragma and I'm running texexec with --translate=cp1252cs. Typescripts use il2, which corresponds to fonts, of course. If I run the code without XML (if I transcribe

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Martin Kolařík
users Subject: Re: [NTG-context] Problem with encoding, XML and writetolist... Hans Hagen wrote: Martin Kolařík wrote: Aha, here maybe will be the solution :-) I'am using standalone Win32 distribution from Pragma and I'm running texexec with --translate=cp1252cs. Typescripts use il2, which

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Mojca Miklavec
On 4/3/06, Martin Kolařík wrote: which is not good. And I am not able, when not using cp1250.tcx, recode win1250 (default for win) to latin2. There I am able to write regime for myself (cp1250), but I suppose, that whenever characters will not expand to \char XXX form, cp1250.tcx still

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Martin Kolařík
Subject: Re: [NTG-context] Problem with encoding, XML and writetolist... On 4/3/06, Martin Kolařík wrote: which is not good. And I am not able, when not using cp1250.tcx, recode win1250 (default for win) to latin2. There I am able to write regime for myself (cp1250), but I suppose

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Mojca Miklavec
On 2/28/06, Martin Kolařík wrote: Hi all, I have problem with chars encoding now; I have updated ConTeXt sometimes in January; before the time I was using old (year) version. In this prehistorical version the problem was not present. What is the stuff? The following code generates content

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Martin Kolařík
OK, expansion is not encoding, but expansion in this place here is not a problem (I suppose). The section head is good, but the TOC entry not. So the inner expansion (or conversion or detokenization or so) around writetolist is probably affected by something, what now I cannot handle. And what

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-03-31 Thread Martin Kolařík
] Problem with encoding, XML and writetolist... Here the file with 8bit chars is, Martin -Original Message- From: Hans Hagen [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 10:16 AM To: [EMAIL PROTECTED]; mailing list for ConTeXt users Subject: Re: [NTG-context] Problem

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-03-31 Thread Hans Hagen
Martin Kolařík wrote: Hi Hans, isn't there some news with the stuff? small test file needed to refresh my memory Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061

Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-02-28 Thread Hans Hagen
� wrote: Hi all, I have problem with chars encoding now; I have updated ConTeXt sometimes in January; before the time I was using old (year) version. In this prehistorical version the problem was not present. What is the stuff? The following code generates content with titles without

[NTG-context] Problem with encoding, XML and writetolist...

2006-02-27 Thread Martin Kolařík
Hi all, I have problem with chars encoding now; I have updated ConTeXt sometimes in January; before the time I was using old (year) version. In this prehistorical version the problem was not present. What is the stuff? The following code generates content with titles without spaces -- accented

[NTG-context] Problem with encoding, XML and writetolist...

2006-02-27 Thread Martin Kolařík
Hi Hans, I have problem with chars encoding now; I have updated ConTeXt sometimes in January; before the time I was using old (year) version. In this prehistorical version the problem was not present. What is the stuff? The following code generates content with titles without spaces -- accented