ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* index (again)
       [not found]   ` <44C9C6C6.1020206@wxs.nl>
@ 2006-08-01 18:05     ` Steffen Wolfrum
  2006-08-02  8:01       ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2006-08-01 18:05 UTC (permalink / raw)


Hi,

I need to know if the following is possible in ConTeXt.

If it's not, please don't hesitate to tell me, so I can think of a  
work-around.
It it is possible, it would be great to tell me how!


For example a set index entry (an index paragraph in the set pdf)  
looks like this:

Ministererlaubnis 12, 15, 16, 17,
18, 29, 30, 31, 32, 33, 34, 35,
37, 38, 39, 75, 82, 83, 84, 85, 86,
87, 159, 222, 222, 222, 227, 228,
228, 228, 228, 229, 231, 232,
233, 234, 235, 236, 238, 239,
248, 260, 261, 265, 277, 278,
279, 280, 282, 283, 286, 289,
304, 311, 318, 323, 324, 328,
330, 333, 335, 339, 343

As I need an non-interactive pdf for printing only
could it also be made more readable like the following?

Ministererlaubnis 12, 15-18,
29-35, 37-39, 75, 82-87, 159,
222, 227-229, 231, 232-236,
238-239, 248, 260-261, 265,
277-280, 282-283, 286, 289,
304, 311, 318, 323-324, 328,
330, 333, 335, 339, 343


Steffen

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

* Re: index (again)
  2006-08-01 18:05     ` index (again) Steffen Wolfrum
@ 2006-08-02  8:01       ` Taco Hoekwater
  2006-08-02  8:14         ` Steffen Wolfrum
  0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2006-08-02  8:01 UTC (permalink / raw)




Steffen Wolfrum wrote:
> Hi,
> 
> I need to know if the following is possible in ConTeXt.
> 
> If it's not, please don't hesitate to tell me, so I can think of a  
> work-around.
> It it is possible, it would be great to tell me how!

Is this is inside a register or keyed directly into your document?

Taco

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

* Re: index (again)
  2006-08-02  8:01       ` Taco Hoekwater
@ 2006-08-02  8:14         ` Steffen Wolfrum
  2006-08-02  9:47           ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2006-08-02  8:14 UTC (permalink / raw)


Am 02.08.2006 um 10:01 schrieb Taco Hoekwater:
> Steffen Wolfrum wrote:
>> Hi,
>>
>> I need to know if the following is possible in ConTeXt.
>>
>> If it's not, please don't hesitate to tell me, so I can think of a
>> work-around.
>> It it is possible, it would be great to tell me how!
>
> Is this is inside a register or keyed directly into your document?
>
> Taco


It's like this:

\unprotect

\def\dosetpageregisterentrya#1#2%
   {\edef\currententrylevel{1}%
    \global\let\c!entryb\relax
    \global\let\c!entryc\relax
    \gdef\c!entrya
      {\iffirstregisterentry\else\endgraf\fi % new
       \global\firstregisterpagetrue
       \hangindent1em\noindent\c!entryreference
       \dohandleregisterentry{\executeifdefined
         {\??id#1\c!deeptextcommand}\firstofoneargument{#2}}%
       \global\firstregisterentryfalse
       \global\firstsubentrytrue
       \global\firstsubsubentrytrue}}

\def\HowUgly#1{\doHowUgly#1\relax}

\def\doHowUgly#1#2\relax{\iffirstregisterentry{\bf#1}\else#1\fi#2}

\setupregister[index][indicator=no,deeptextcommand=\HowUgly]

\starttext

\chapter{First Chapter}
Some text...\index{word}

\section {First Section}
Some text...\index{word}
Some text...\index{another entry}
Some text...\index{ansi}
Some text...\index{another entry}

\page[yes]

\completeindex

\stoptext


... but in my real document looking like this:

Ministererlaubnis 12, 15, 16, 17,
18, 29, 30, 31, 32, 33, 34, 35,
37, 38, 39, 75, 82, 83, 84, 85, 86,
87, 159, 222, 222, 222, 227, 228,
228, 228, 228, 229, 231, 232,
233, 234, 235, 236, 238, 239,
248, 260, 261, 265, 277, 278,
279, 280, 282, 283, 286, 289,
304, 311, 318, 323, 324, 328,
330, 333, 335, 339, 343


Steffen

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

* Re: index (again)
  2006-08-02  8:14         ` Steffen Wolfrum
@ 2006-08-02  9:47           ` Taco Hoekwater
       [not found]             ` <7803723D-2697-41C9-A50A-BF655D7333D0@st.estfiles.de>
  0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2006-08-02  9:47 UTC (permalink / raw)




Steffen Wolfrum wrote:
> 
> It's like this:
> 
> \unprotect
> 
> \def\dosetpageregisterentrya#1#2%

Unf., I do not know much about register prosessing, so
I cannot say whether it can do this. I hope someone else
knows.

Taco

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

* Re: index (again)
       [not found]               ` <44D12279.7090708@wxs.nl>
@ 2006-08-04 11:19                 ` Steffen Wolfrum
  2006-08-04 12:17                   ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2006-08-04 11:19 UTC (permalink / raw)
  Cc: mailing list for ConTeXt users

Hi,

today evening is the deadline and I need to know a solution to the  
following request.

If there is *NO* solution possible in ConTeXt please tell me today (!)
so I can think of a complete different workaround.

Thank you.

Steffen




When I set my document with the settings  (see deeptextcommand) below
then a entry looks like this:

Ministererlaubnis 12, 15, 16, 17,
18, 29, 30, 31, 32, 33, 34, 35,
37, 38, 39, 75, 82, 83, 84, 85, 86,
87, 159, 222, 222, 222, 227, 228,
228, 228, 228, 229, 231, 232,
233, 234, 235, 236, 238, 239,
248, 260, 261, 265, 277, 278,
279, 280, 282, 283, 286, 289,
304, 311, 318, 323, 324, 328,
330, 333, 335, 339, 343

That makes sense when using the resulting PDF as a interactive document.
But I need the resulting PDF for printing only - so now interactive  
"jump to page and index mark" is wanted.

What I want instead is a more readable version of my index entries  
like the following:

Ministererlaubnis 12, 15-18,
29-35, 37-39, 75, 82-87, 159,
222, 227-229, 231, 232-236,
238-239, 248, 260-261, 265,
277-280, 282-283, 286, 289,
304, 311, 318, 323-324, 328,
330, 333, 335, 339, 343

You see?

For example 222 doesn't show up 3 times but 1 time only.
And it's not 37, 38, 39 but 37-39, for example.

This is what I need, and what I need help for.

Steffen



Am 03.08.2006 um 00:08 schrieb Hans Hagen:

> Steffen Wolfrum wrote:
>> Hans,
>>
>> what about you?
> i'm not sure what you want, what is "real document"
>
> Hans
>>
>> Steffen
>>
>>
>>
>> Anfang der weitergeleiteten E-Mail:
>>
>>> Von: Taco Hoekwater <taco@elvenkind.com>
>>> Datum: 2. August 2006 11:47:27 MESZ
>>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>>> Betreff: Re: [NTG-context] index (again)
>>> Antwort an: mailing list for ConTeXt users <ntg-context@ntg.nl>
>>>
>>>
>>>
>>> Steffen Wolfrum wrote:
>>>>
>>>> It's like this:
>>>>
>>>> \unprotect
>>>>
>>>> \def\dosetpageregisterentrya#1#2%
>>>
>>> Unf., I do not know much about register prosessing, so
>>> I cannot say whether it can do this. I hope someone else
>>> knows.
>>>
>>> Taco
>>
>>
>>
>>
>> Am 02.08.2006 um 10:14 schrieb Steffen Wolfrum:
>>> Am 02.08.2006 um 10:01 schrieb Taco Hoekwater:
>>>> Steffen Wolfrum wrote:
>>>>> Hi,
>>>>>
>>>>> I need to know if the following is possible in ConTeXt.
>>>>>
>>>>> If it's not, please don't hesitate to tell me, so I can think of a
>>>>> work-around.
>>>>> It it is possible, it would be great to tell me how!
>>>>
>>>> Is this is inside a register or keyed directly into your document?
>>>>
>>>> Taco
>>>
>>>
>>> It's like this:
>>>
>>> \unprotect
>>>
>>> \def\dosetpageregisterentrya#1#2%
>>>    {\edef\currententrylevel{1}%
>>>     \global\let\c!entryb\relax
>>>     \global\let\c!entryc\relax
>>>     \gdef\c!entrya
>>>       {\iffirstregisterentry\else\endgraf\fi % new
>>>        \global\firstregisterpagetrue
>>>        \hangindent1em\noindent\c!entryreference
>>>        \dohandleregisterentry{\executeifdefined
>>>          {\??id#1\c!deeptextcommand}\firstofoneargument{#2}}%
>>>        \global\firstregisterentryfalse
>>>        \global\firstsubentrytrue
>>>        \global\firstsubsubentrytrue}}
>>>
>>> \def\HowUgly#1{\doHowUgly#1\relax}
>>>
>>> \def\doHowUgly#1#2\relax{\iffirstregisterentry{\bf#1}\else#1\fi#2}
>>>
>>> \setupregister[index][indicator=no,deeptextcommand=\HowUgly]
>>>
>>> \starttext
>>>
>>> \chapter{First Chapter}
>>> Some text...\index{word}
>>>
>>> \section {First Section}
>>> Some text...\index{word}
>>> Some text...\index{another entry}
>>> Some text...\index{ansi}
>>> Some text...\index{another entry}
>>>
>>> \page[yes]
>>>
>>> \completeindex
>>>
>>> \stoptext
>>>
>>>
>>> ... but in my real document looking like this:
>>>
>>> Ministererlaubnis 12, 15, 16, 17,
>>> 18, 29, 30, 31, 32, 33, 34, 35,
>>> 37, 38, 39, 75, 82, 83, 84, 85, 86,
>>> 87, 159, 222, 222, 222, 227, 228,
>>> 228, 228, 228, 229, 231, 232,
>>> 233, 234, 235, 236, 238, 239,
>>> 248, 260, 261, 265, 277, 278,
>>> 279, 280, 282, 283, 286, 289,
>>> 304, 311, 318, 323, 324, 328,
>>> 330, 333, 335, 339, 343
>>>
>>>
>>> Steffen
>>> _______________________________________________
>>> ntg-context mailing list
>>> ntg-context@ntg.nl
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>>
>>
>>
>
>
> -- 
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>

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

* Re: index (again)
  2006-08-04 11:19                 ` Steffen Wolfrum
@ 2006-08-04 12:17                   ` Hans Hagen
  2006-08-04 15:25                     ` Steffen Wolfrum
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2006-08-04 12:17 UTC (permalink / raw)


Steffen Wolfrum wrote:
> Hi,
>
> today evening is the deadline and I need to know a solution to the  
> following request.
>
> If there is *NO* solution possible in ConTeXt please tell me today (!)
> so I can think of a complete different workaround.
>   
there is always a solution possible but writing one takes time -)

(i remember that there was something taing car of this)

is the deadline "telling that it can be done" or "has to be finished"

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: index (again)
  2006-08-04 12:17                   ` Hans Hagen
@ 2006-08-04 15:25                     ` Steffen Wolfrum
  2006-08-04 19:54                       ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2006-08-04 15:25 UTC (permalink / raw)
  Cc: Hans Hagen


Am 04.08.2006 um 14:17 schrieb Hans Hagen:

> Steffen Wolfrum wrote:
>> Hi,
>>
>> today evening is the deadline and I need to know a solution to the
>> following request.
>>
>> If there is *NO* solution possible in ConTeXt please tell me today  
>> (!)
>> so I can think of a complete different workaround.
>>
> there is always a solution possible but writing one takes time -)
>
> (i remember that there was something taing car of this)
>
> is the deadline "telling that it can be done" or "has to be finished"
>
> Hans

Unfortunately "has to be finished".
But if it is to much work just tell me: then I skip the whole index  
and type the entire register by hand.
I just need to know whether to start (would be quite some pages)...

Steffen

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

* Re: index (again)
  2006-08-04 15:25                     ` Steffen Wolfrum
@ 2006-08-04 19:54                       ` Hans Hagen
       [not found]                         ` <6CAFC6BC-1D19-439D-8CDC-FEAB1A588C5F@st.estfiles.de>
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2006-08-04 19:54 UTC (permalink / raw)


Steffen Wolfrum wrote:
> Unfortunately "has to be finished".
> But if it is to much work just tell me: then I skip the whole index  
> and type the entire register by hand.
> I just need to know whether to start (would be quite some pages)...
>   
ok, i sent you a test core-reg.tex file (remake the format); no key/val control yet   

\starttext

\chardef\collapseregisterpages\zerocount \placeregister[index]
\blank[2*big]
\chardef\collapseregisterpages\plusone   \placeregister[index]

\page

\dorecurse{10}{test 1:!\index{test} test \page}
\dorecurse{5} {test 2:\recurselevel      \page}
\dorecurse{10}{test 3:!\index{test} test \page}
\dorecurse{5} {test 4:\recurselevel      \page}
\dorecurse{1} {test 5:!\index{test} test \page}
\dorecurse{5} {test 6:\recurselevel      \page}
\dorecurse{10}{test 7:!\index{test} test \page}
\dorecurse{5} {test 8:\recurselevel      \page}

oeps \index{oeps}
xxxx \index{xxxx}
todo \index{todo}

\stoptext


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: index (again)
       [not found]                         ` <6CAFC6BC-1D19-439D-8CDC-FEAB1A588C5F@st.estfiles.de>
@ 2006-08-06 14:43                           ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2006-08-06 14:43 UTC (permalink / raw)
  Cc: mailing list for ConTeXt users, Taco Hoekwater

Steffen Wolfrum wrote:
> It's not waterproof.
>
> See the result in the attached PDF:
>
> For example GOBReg
> ... 230, 230, 230�233 ...
> ... 273�277, 277� 279 ...
>
> And something else needs to be improved (that's why I send the PDF):
> See the register is not typeset in columns properly?!
i cannot reproduce that, so what exactly is the index definitions then? 

(can you make a test file ?)

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: index (again)
       [not found] <6C1EABCC-98B2-4158-A671-19C384FA050A@st.estfiles.de>
@ 2006-08-31  7:47 ` Steffen Wolfrum
  0 siblings, 0 replies; 10+ messages in thread
From: Steffen Wolfrum @ 2006-08-31  7:47 UTC (permalink / raw)


Does the current beta also provide a fix for the index bug (see below)?

Steffen




Anfang der weitergeleiteten E-Mail:
>
> If I change your testfile by one line \page test text
>
> the output becomes really strange:
>
> test index 2, 2, 2
>
>
> Is this a sign that I don't have the latest beta with the fixes you  
> mention?
>
> Steffen
>
>
>
> Test file:
>
> \starttext
>
> \placelist[section][criterium=all]  \blank[5*big]
> \placeregister[index][compress=no]  \blank[5*big]
> \placeregister[index][compress=no,sectionnumber=yes]  \blank[5*big]
> \placeregister[index][compress=yes] \blank[5*big]
>
> \page
> test text \index{test index}
> \section{heading}
> more test text \index{test index}
> \section{heading}
> more test text \index{test index}
> \page test text
> \page
> \section{heading text \index{test index}}
> more test text \index{test index}
> \page
> test text \index{test index}
> \section{heading text \index{test index}}
> more test text \index{test index}
>
> \stoptext
>
>
>
>

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

end of thread, other threads:[~2006-08-31  7:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <44C7D5DB.8040208@wxs.nl>
     [not found] ` <82C5BFF6-5E29-461C-91CC-BB31FD070E94@st.estfiles.de>
     [not found]   ` <44C9C6C6.1020206@wxs.nl>
2006-08-01 18:05     ` index (again) Steffen Wolfrum
2006-08-02  8:01       ` Taco Hoekwater
2006-08-02  8:14         ` Steffen Wolfrum
2006-08-02  9:47           ` Taco Hoekwater
     [not found]             ` <7803723D-2697-41C9-A50A-BF655D7333D0@st.estfiles.de>
     [not found]               ` <44D12279.7090708@wxs.nl>
2006-08-04 11:19                 ` Steffen Wolfrum
2006-08-04 12:17                   ` Hans Hagen
2006-08-04 15:25                     ` Steffen Wolfrum
2006-08-04 19:54                       ` Hans Hagen
     [not found]                         ` <6CAFC6BC-1D19-439D-8CDC-FEAB1A588C5F@st.estfiles.de>
2006-08-06 14:43                           ` Hans Hagen
     [not found] <6C1EABCC-98B2-4158-A671-19C384FA050A@st.estfiles.de>
2006-08-31  7:47 ` Steffen Wolfrum

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