From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [Fwd: hyphen breaking (URGENT)]
Date: Tue, 23 Feb 2010 21:18:49 +0100 [thread overview]
Message-ID: <BC8F55A0-EA27-4D15-9CA0-C7D7B3995AF0@st.estfiles.de> (raw)
In-Reply-To: <4B83F2D4.8090906@wxs.nl>
Am 23.02.2010 um 16:23 schrieb Hans Hagen:
> On 23-2-2010 12:22, Steffen Wolfrum wrote:
>>
>> Am 25.10.2009 um 21:33 schrieb Hans Hagen:
>>
>>> Steffen Wolfrum wrote:
>>>
>>>>> \unprotect
>>>>> \def\FrozenTUO{MyFile}
>>>>> \def\doplacerawlist[#1][#2]%
>>>>> {\begingroup
>>>>> \dogetcommalistelement1\from#1\to\firstlistelement
>>>>> \dosetuplist[#1][#2]%
>>>>> \doifvalue{\??li\firstlistelement\c!coupling}\v!on
>>>>> {\startlistreferences{#1}}%
>>>>> \dosettoclevel\??li\firstlistelement
>>>>> \honorlocalfilterlevel
>>>>> \doutilities{listentries,#1}\FrozenTUO{#1}\relax\par
>>>>> \stoplistreferences{#1}%
>>>
>>> ^^^^
>>>
>>> remove {#1} here
>>>
>>>>> \dosetlistmode
>>>>> \endgroup}
>>>>> \protect
>>>
>>> i probably added some proper push/pop here
>>
>>
>>
>> Today the code above gives an error:
>>
>> ! Undefined control sequence.
>> \doplacerawlist ...references {#1}}\dosettoclevel
>> \??li \firstlistelement \h...
>> \doplacelist ...ginoflist \doplacerawlist [#1][#2]
>> \doendoflist
>> <to be read again>
>>
>>
>>
>> Can you see what needs to be changed?
>
> sure, as the whole underlying mechanism of lists has changed (and now mostly happens in lua) that code makes no sense and iven if i made a (fake) \dosettoclevel it would not kick in
>
> so, you need to identify your need and then implement a mkiv solution
The need is easily described:
\placelist[chapter, section,...][file=MyFile]
In old MkII times all information for a table of content was read from the ".tuo" file.
For making manual changes in needed a way to define from *which* tuo file the placelist command reads its information:
so I could copy the original tuo file, give it another name (MyFile) and define ...
\def\FrozenTUO{MyFile}
... thus each \placelist run would read from that paticular MyFile.tuo
The quoted code above was written by Hans to provide a way to implement a kind of \placelist[chapter, section,...][file=MyFile] in MkII.
As all list reading stuff was re-written from scratch in MkIV, this can be hopefully done directly now?
It looks like already prepared:
\placelist[chapter, section,...][file=MyFile]
doesn't give an error ... but doesn't work either.
Steffen
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-02-23 20:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4AE30A6B.4090505@wxs.nl>
[not found] ` <4AE310D6.6080907@elvenkind.com>
[not found] ` <ACE81C10-B0B9-4933-BE83-713367A631F6@st.estfiles.de>
[not found] ` <4AE33550.2060900@elvenkind.com>
[not found] ` <245A7276-8D47-4AAF-AE06-2F8F1732BB56@st.estfiles.de>
[not found] ` <4AE3EC92.3090303@elvenkind.com>
[not found] ` <2097E39C-F4AB-4781-9DA2-7AF6295B4521@st.estfiles.de>
[not found] ` <4AE424CE.60806@elvenkind.com>
[not found] ` <4AE45078.1040506@wxs.nl>
[not found] ` <A2DCCEB9-2524-402A-A7AE-64B02AF52FA6@st.estfiles.de>
[not found] ` <4AE465FD.3040409@wxs.nl>
[not found] ` <18A1C982-94C8-4E6F-9C56-4067A147A85D@st.estfiles.de>
[not found] ` <4AE4B631.7040206@wxs.nl>
[not found] ` <D2E56CCB-B29B-45B5-AEFC-059D77049AD2@st.estfiles.de>
2010-02-23 15:23 ` Hans Hagen
2010-02-23 20:18 ` Steffen Wolfrum [this message]
2010-02-23 22:27 ` Hans Hagen
2010-02-24 7:50 ` Steffen Wolfrum
2010-02-24 10:31 ` Hans Hagen
2010-02-24 21:01 ` Steffen Wolfrum
2010-02-24 21:26 ` Steffen Wolfrum
2010-02-24 21:38 ` Wolfgang Schuster
2010-02-24 21:54 ` Bernhard Rosensteiner
2010-02-24 22:11 ` Wolfgang Schuster
2010-02-24 22:22 ` Bernhard Rosensteiner
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=BC8F55A0-EA27-4D15-9CA0-C7D7B3995AF0@st.estfiles.de \
--to=context@st.estfiles.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).