Re: [NTG-context] Handling index entries with many references

2013-11-15 Thread honyk
On 2013-06-09 honyk wrote:
 
 in my book I want to place the index (aka register) of places. 
 Some of them are mentioned very often (10).
 
 In one old book I've found the following solution for this: 
 in the index there are first three page references listed for 
 that index entry followed by 'and many' phrase.
 
 Can something like this be done in the ConTeXt (MkIV)?

I found an elegant way for this:
\defineprocessor[many][right= and many]

This processor is then applied just for the last index entry page reference:
\index[many-]{primary}

This can be automated in my system. Wow, great!

Jan


___
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
___


Re: [NTG-context] stoppers in section heading without having stoppers in references?

2013-04-18 Thread Wolfgang Schuster

Am 19.04.2013 um 05:16 schrieb Sanjoy Mahajan san...@olin.edu:

 In MkIV, is there a way to get a stopper (e.g. .) in the section
 heading, along the lines of 1. First heading but without a reference
 to it having the stopper?  Thus, the reference should be just In
 Chapter 1 we learn, not In Chapter 1. we learn?
 
 I have tried many variants of the following minimal example:
 
 \setuphead[chapter][sectionstopper=.]
 \definereferenceformat [inchapter] [text={Chapter~}]
 
 \starttext
 \chapter[one]{First heading}
 
 \input knuth
 
 \inchapter[one] we learn.
 
 \stoptext


\defineprocessor[dostopper][right=.]
\defineprocessor[nostopper][right=]

\defineconversionset[stopperconversionyes][][dostopper-n]
\defineconversionset[stopperconversionnop][][nostopper-n]

\setuphead[chapter][sectionconversionset=stopperconversionyes]

%\setupreferencestructureprefix[chapter][default][prefixconversionset=stopperconversionnop]
\setupreferencestructureprefix[default][prefixconversionset=stopperconversionnop]

\starttext

\chapter[one]{First heading}

\input knuth

In \in{Chapter}[one] we learn.

\stoptext

Wolfgang
___
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
___


Re: [NTG-context] endnotemarkers

2013-04-17 Thread Wolfgang Schuster

Am 17.04.2013 um 21:35 schrieb Meer, H. van der h.vanderm...@uva.nl:

 A minor point perhaps on this textcommand= \groupedcommand for the marking of 
 the notes in the text. I tried this but now the marking is not typeset as a 
 superscript.

\defineprocessor[footnote][left={[},right={]}]
\defineconversionset[footnote][][footnote-n]

\setupnotation[footnote][numberconversionset=footnote]

\starttext
Text\footnote{Footnote}
\stoptext

Wolfgang
___
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
___


Re: [NTG-context] Some odd behaviour I noticed in MkIV with respect to enumerations

2012-10-23 Thread Wolfgang Schuster

Am 23.10.2012 um 19:36 schrieb Shane Peelar lookatyouhac...@gmail.com:

 Hi Wolfgang,
 
 Thanks for the quick and helpful reply.  Is there also a way to change just 
 the number colour and style in the example you provided?

\defineseparatorset [testseparator] [][–]

\defineprocessor[teststyle][style=bolditalic]
\defineconversionset[testconversion][][teststyle-number]

%\defineprocessor[one][style=italic,color=red]
%\defineprocessor[two][style=normal,color=blue]
%\defineconversionset[testconversion][one-number,two-number][teststyle-number]

\defineenumeration
  [test]
  [text=Test,
   headstyle=bold,
   numberconversionset=testconversion,
   numberseparatorset=testseparator]

\starttext

\placelist[test]

\starttest[title={Knuth}]
\input knuth
\stoptest

\startsubtest[title={Zapf}]
\input zapf
\stopsubtest

\stoptext

Wolfgang
___
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
___


Re: [NTG-context] ntg-context Digest, Vol 100, Issue 65

2012-10-23 Thread Shane Peelar
 Date: Tue, 23 Oct 2012 20:31:01 +0200
 From: Wolfgang Schuster wolfgang.schus...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Some odd behaviour I noticed in MkIV with
 respect to enumerations
 Message-ID: 8f139542-5a13-4fdd-b916-c4ed1065b...@gmail.com
 Content-Type: text/plain; charset=windows-1252


 Am 23.10.2012 um 19:36 schrieb Shane Peelar lookatyouhac...@gmail.com:

  Hi Wolfgang,
 
  Thanks for the quick and helpful reply.  Is there also a way to change
 just the number colour and style in the example you provided?

 \defineseparatorset [testseparator] [][?]

 \defineprocessor[teststyle][style=bolditalic]
 \defineconversionset[testconversion][][teststyle-number]

 %\defineprocessor[one][style=italic,color=red]
 %\defineprocessor[two][style=normal,color=blue]

 %\defineconversionset[testconversion][one-number,two-number][teststyle-number]

 \defineenumeration
   [test]
   [text=Test,
headstyle=bold,
numberconversionset=testconversion,
numberseparatorset=testseparator]

 \starttext

 \placelist[test]

 \starttest[title={Knuth}]
 \input knuth
 \stoptest

 \startsubtest[title={Zapf}]
 \input zapf
 \stopsubtest

 \stoptext

 Wolfgang


Thanks!  This worked out perfectly.
___
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
___

Re: [NTG-context] \seeindex and processors

2012-07-14 Thread Wolfgang Schuster

Am 13.07.2012 um 19:56 schrieb Andreas Mang:

 Dear Hans  Wolfgang,
 
 Thanks for looking into this. I know that this has quite low priority. As it 
 seems to me processors do not really seem to provide the behaviour I had in 
 mind. Clearly, I should have thought of a better example in the first place:
 
 %
 \defineprocessor[smallcaps][style=\sc]
 
 \starttext
 
 % this works nicely
 {\sc Test}\index{smallcaps-Test}
 
 % this is what I want it to look like
 % (which does not work for \seeindex[.])
 \index{{\sc Cauchy}||Problem}
 
 % this is what I tried after you have suggested
 % to use processors, but it does not work (*) 
 {\sc Cauchy}||Problem\index{{smallcaps-Cauchy}||Problem}
 
 \placeindex[n=1]
 
 \stoptext
 %
 
 (*) As you can see I am using smallcaps as an indicator for a personal 
 name. From looking at the code (I have to admit that I do not know anything 
 about what's beyond the context front end) I think there's no quick solution 
 to get this to work with preprocessors. Am I doing something wrong?


With a simple change of the string type in strc-reg.mkiv you can also use 
commands/style switches in \seeindex:

\def\strc_registers_insert_see_indeed#1#2#3#4% register key entry seeword
  {\begingroup
   ...
entries = {
% we need a special one for xml, this is just a single one
-   \currentregisterentries, #2
+   \!!bs\currentregisterentries\!!es, #2
},
seeword = {
-   text = \currentregisterseeword
+   text = \!!bs\currentregisterseeword\!!es
},
 }
   }}%
   \endgroup}

Wolfgang

___
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
___


[NTG-context] \seeindex and processors

2012-07-13 Thread Wolfgang Schuster
Hi Hans,

processors aren’t applied to the second argument of \seeindex, only the first 
is formatted.

\defineprocessor[smallcaps][style=\sc]

\starttext

Apples\index{smallcaps-Apple}

Malus domestica\seeindex{smallcaps-Malus domestica}{smallcaps-Apple}

\placeindex[n=1]
 
\stoptext

Wolfgang
___
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
___


Re: [NTG-context] seeindex: accents and such

2012-07-13 Thread Wolfgang Schuster

Am 11.07.2012 um 22:37 schrieb Andreas Mang:

 Hi Wolfgang,
 
 Thanks. That's truly an option. I have already looked into this and it works. 
 As a matter of fact, this is what I decided to do if there is no quick fix. 
 However, I thought I'd point it out, since it works for \index and just not 
 for \seeindex. Secondly, the \sc (command) issue persists. 

MkIV provides a new mechanism to format index entries called processors, it 
doesn't work yet with \seeindex (see my other mail on the list) but I guess 
Hans will fix this in one of the next betas.

\defineprocessor[sc][style=\sc]

\starttext

Test\index{Test}\index{sc-Testing}

\completeindex

\stoptext

Wolfgang
___
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
___


Re: [NTG-context] \seeindex and processors

2012-07-13 Thread Hans Hagen

On 13-7-2012 09:57, Wolfgang Schuster wrote:

Hi Hans,

processors aren’t applied to the second argument of \seeindex, only the first 
is formatted.

\defineprocessor[smallcaps][style=\sc]

\starttext

Apples\index{smallcaps-Apple}

Malus domestica\seeindex{smallcaps-Malus domestica}{smallcaps-Apple}

\placeindex[n=1]

\stoptext


ok, so the next beta will have

\setupinteraction[state=start]

\defineprocessor[smallcaps][style=\sc]
\defineprocessor[bold] [style=\bf]

\starttext

Apples\index{smallcaps-Apple}
Pears\index{Pears}

Malus domestica\seeindex{smallcaps-Malus domestica}{bold-Apple}

Bonus domestica\seeindex{Bonus domestica}{Pears}

\placeindex[n=1]

\stoptext

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


___
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
___


Re: [NTG-context] \seeindex and processors

2012-07-13 Thread Andreas Mang
Dear Hans  Wolfgang,

Thanks for looking into this. I know that this has quite low priority. As it 
seems to me processors do not really seem to provide the behaviour I had in 
mind. Clearly, I should have thought of a better example in the first place:

%
\defineprocessor[smallcaps][style=\sc]

\starttext

% this works nicely
{\sc Test}\index{smallcaps-Test}

% this is what I want it to look like
% (which does not work for \seeindex[.])
\index{{\sc Cauchy}||Problem}

% this is what I tried after you have suggested
% to use processors, but it does not work (*) 
{\sc Cauchy}||Problem\index{{smallcaps-Cauchy}||Problem}

\placeindex[n=1]

\stoptext
%

(*) As you can see I am using smallcaps as an indicator for a personal name. 
From looking at the code (I have to admit that I do not know anything about 
what's beyond the context front end) I think there's no quick solution to get 
this to work with preprocessors. Am I doing something wrong?

If you do not have the time to look into this right now never mind.

Sorry for the hassle.

Cheers,
Andreas

Am Jul 13, 2012 um 7:23 PM schrieb Hans Hagen:

 On 13-7-2012 09:57, Wolfgang Schuster wrote:
 Hi Hans,
 
 processors aren’t applied to the second argument of \seeindex, only the 
 first is formatted.
 
 \defineprocessor[smallcaps][style=\sc]
 
 \starttext
 
 Apples\index{smallcaps-Apple}
 
 Malus domestica\seeindex{smallcaps-Malus domestica}{smallcaps-Apple}
 
 \placeindex[n=1]
  
 \stoptext
 
 ok, so the next beta will have
 
 \setupinteraction[state=start]
 
 \defineprocessor[smallcaps][style=\sc]
 \defineprocessor[bold] [style=\bf]
 
 \starttext
 
 Apples\index{smallcaps-Apple}
 Pears\index{Pears}
 
 Malus domestica\seeindex{smallcaps-Malus domestica}{bold-Apple}
 
 Bonus domestica\seeindex{Bonus domestica}{Pears}
 
 \placeindex[n=1]
 
 \stoptext
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 
 ___
 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
 ___

--
Andreas Mang, MSc
  Research Associate

UNIVERSITY OF LUEBECK
  INSTITUTE OF MEDICAL ENGINEERING

  Division of Computer Science, 
  Engineering and Natural Sciences

  Ratzeburger Allee 160, Building 64
  23562 Luebeck, Germany

  Phone: +49 (0) 451 500 5416
  Fax:   +49 (0) 451 500 5403
  m...@imt.uni-luebeck.de
  http://www.imt.uni-luebeck.de

___
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
___


Re: [NTG-context] Formatting Indexed Words Within the Text

2012-03-24 Thread Alan Braslau
On Fri, 23 Mar 2012 19:42:38 +0100
Hans Hagen pra...@wxs.nl wrote:

 in the test suite: registers/processors-001.tex
 
 \defineprocessor[bf][style=bold]
 \defineprocessor[it][style=italic]
 
 \starttext
 
  \index{it-italic}\index{normal}
  This is a \index[bf-bold]{test with bold number}test.
  This is a less important \index{test}test.
 
  \placeindex
 
 \stoptext
 
 so the magic word is 'processors'

Magic indeed!

So processors can be used *wherever* text is to be typeset,
as a prefix: name-text

\defineprocessor[name][...,...=...,...]
with keys: style=, color=, left=, right=, command=

I'm not sure that I understand, but once I do,
I'll have to add a wiki page...

Alan



___
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
___


Re: [NTG-context] Formatting Indexed Words Within the Text

2012-03-24 Thread Hans Hagen

On 24-3-2012 11:20, Alan Braslau wrote:

On Fri, 23 Mar 2012 19:42:38 +0100
Hans Hagenpra...@wxs.nl  wrote:


in the test suite: registers/processors-001.tex

\defineprocessor[bf][style=bold]
\defineprocessor[it][style=italic]

\starttext

  \index{it-italic}\index{normal}
  This is a \index[bf-bold]{test with bold number}test.
  This is a less important \index{test}test.

  \placeindex

\stoptext

so the magic word is 'processors'


Magic indeed!

So processors can be used *wherever* text is to be typeset,
as a prefix: name-text

\defineprocessor[name][...,...=...,...]
with keys: style=, color=, left=, right=, command=

I'm not sure that I understand, but once I do,
I'll have to add a wiki page...


not yet but they will be used for cases like this

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Formatting Indexed Words Within the Text

2012-03-23 Thread Hans Hagen

On 23-3-2012 11:57, Malte Stien wrote:

s it possible to format indexed words in a particular style within the text 
more or less automatically. For example, if I write

   There are some \index[ducks] in the zoo.

I would like the term ducks to appear in small-capitals to indicate the 
that term can be found in the index. Ideally, I'd like to do that without explicit manual 
formatting. Is that possible?


in the test suite: registers/processors-001.tex

\defineprocessor[bf][style=bold]
\defineprocessor[it][style=italic]

\starttext

\index{it-italic}\index{normal}
This is a \index[bf-bold]{test with bold number}test.
This is a less important \index{test}test.

\placeindex

\stoptext

so the magic word is 'processors'

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Jörg Hagmann
From a thread on this list (May 2009: 
http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html) 
I gather that whereas colouring a whole molecule works fine, colouring 
groups within a chemical structure is not yet fully implemented in mkiv. 
 Is that still correct?


Putting colour on atoms works with {\blue C} etc. or \defineprocessor 
... etc. chemred-C etc.. However, I couldn't find a way to colour the 
bonds belonging to the group. Is there one?


ppchTEX does a superb job and I hope that the most useful features will 
be implemented in the near future in mkiv!


Jörg
___
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
___


Re: [NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Alan BRASLAU
On Friday 19 November 2010 09:52:47 Jörg Hagmann wrote:
  From a thread on this list (May 2009:
 http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html)
 I gather that whereas colouring a whole molecule works fine, colouring
 groups within a chemical structure is not yet fully implemented in mkiv.
   Is that still correct?
 
 Putting colour on atoms works with {\blue C} etc. or \defineprocessor
 ... etc. chemred-C etc.. However, I couldn't find a way to colour the
 bonds belonging to the group. Is there one?

The only way that I managed to do this is to draw the chemical twice and to 
use overlays (or to trick the bounding box using left=,right=,top=,bottom=). 
It would be nice to be able to draw colored bonds, perhaps with the syntax:
\chemical[SIX,rulecolor=blue,SB1,rulecolor=black,SB2..6][]

The problem is that we usually don't mix single tokens with token=val.
(but Hans has broken this rule with an experimental feature: Z1=C, currently 
broken as it converts C to lowercase...)

For now, rulecolor= can only be specified in \startchemical or \setupchemical.

Maybe we can discuss this with Hans off-list?

Alan
___
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
___


Re: [NTG-context] index sorting and formatting mixed up

2010-05-14 Thread Hans Hagen

On 14-5-2010 2:50, luigi scarso wrote:

On Fri, May 14, 2010 at 1:46 AM, Michael Saundersodrad...@gmail.com  wrote:

\setupregister[index][bd][pagestyle=bold]
\starttext
\index{bc}\index{be}
This is a \index[bd::]{test}test.
\page
This is a less important \index{test}test.
\page
\placeindex
\stoptext

Confirmed: mkiv is different from mkii.


This is becuase that feature is not implemented in mkiv. There we will 
use a different method: processors, which will be available for 
finetuning rendering.


\defineprocessor[bf][style=bold]
\defineprocessor[it][style=italic]

\starttext

\index{it-bc}\index{be}
This is a \index[bf-x]{test}test.
This is a less important \index{test}test.

\placeindex

\stoptext

I'll add that for registers to the next beta.


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] \setupcaption stopper does not work in mkiv

2009-06-14 Thread Hans Hagen

jm wrote:

hi, all!

i have been trying to produce Figure 1. in the figure caption of my 
document using mkiv and i just couldn't.  i've searched through the 
ntg-context archives and the net for solutions but none seems to work.  
however, when i try the solutions posted (e.g. 
\setupcaption[figure][stopper={.}]) using XeConTeXt or MKII, i get the 
result i need.  can anybody tell me how to go about this in mkiv?


also, how do you go about producing a Table 1.1 or a Table 1-1 in 
the captions?  couldn't find the answer in the manuals or in the web.  
any help would be greatly appreciated.



in mkiv it's \setupcaption[figure][numberstopper=.])

(we have numbers, prefixes and more and all have gotten similar keys)

it's good to know that all control over such numbers has changes a bit 
but is more flexible now (conversion, prefixing, separators, etc)


you can control such thingies with processors

\defineprocessor[demo][color=red,style=\bfd]

\setupcaption[figure][numberstopper=demo-.,numberconversion=Characters]

\starttext

\chapter{first}
\section{first}
\placefigure{}{}
\placefigure{}{}

\stoptext

(but somehow there is a bleed to the page number rendering that i need 
to resolve)


-
  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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ppchtex color

2009-05-13 Thread Hans Hagen

Alan BRASLAU wrote:

On Wednesday 13 May 2009 10:33:18 Hans Hagen wrote:

Alan BRASLAU wrote:

Works correctly (bonds in red, atoms in black):

\usemodule[chemic]
\setupchemical[rulecolor=red]
\starttext
\startchemical
\chemical[ONE,SB,Z0][C]
\stopchemical
\stoptext


However, the following variant does not work.

\usemodule[chemic]
\starttext
\startchemical[rulecolor=red]
\chemical[ONE,SB,Z0][C]
\stopchemical
\stoptext

I don't understand, as my (quick) look at the source code
indicates that the parameters should be handled identically.

no, that was actually the problem ... local vs global ... for the moment
set it up local (per formula) as i need to make an inheritance chain

now that i've split in mkii/mkiv that's easier since we no longer have
to keep things working in latex (which means that we can use more core
helper code)

just remind me occasionally


OK. The following extension would also be useful:

\usemodule[chemic]
\starttext
\startchemical
\chemical[SIX,B,rulecolor=red,AU][]
\stopchemical
\stoptext


in mkiv syntax that is:

\defineprocessor[chemred][color=red]

\startchemical
\chemical[SIX,SB,C135,R,Z][chemred-A,chemred-C,chemred-C]
\stopchemical

we can rewrite ppchtex a bit but it depends on how much time you want to 
spend on filling in the holes that i will create (i can make the framework)



-
  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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


<    1   2