Re: [NTG-context] bibmod: forcing a key for alphabetical sorting

2009-09-15 Thread luigi scarso
On Tue, Sep 15, 2009 at 2:24 AM, Sanjoy Mahajan san...@mit.edu wrote:
 Aditya Mahajan adit...@umich.edu wrote:

 Try author={{US Bureau of the Census}}

 Sly.  It worked perfectly.  Thanks!

 I guess it's a generic method, not just for ConTeXt, but if someone
 thinks of a good spot on the wiki for it, let me know and I'll wikify.

+1

-- 
luigi
___
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] about \sym{} and n*broad

2009-09-15 Thread Jan-Erik Hägglöf

dalyoung skrev:

Dear all,

I try next code to get the following form of text.

\startitemize[4*broad]
\sym{Type 1} This is a test. bla bla ...bla bla bla ...bla bla bla
\sym{Type 2} This is the second item. bla bla bla ... bla bla bla
\stopitemize


Type 1   This is a test.
bla bla bla ...
bla bla bla

Type 2   This is the second item
bla bla bla ...
bla bla bla

however, I got the overlapped output such as This is a test started 
from the position of p in Type. Chaing number 4 in 4*broad to another 
number doesn't work.


Is there a good way to do that?

Thank you.

Best regards,

Dalyoung
___ 

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
___ 




\startitemize[4,broad]
\sym{Type 1}
\item This is a test. bla bla ...bla bla bla ...bla bla bla
\sym{Type 2}
\item This is the second item. bla bla bla ... bla bla bla
\stopitemize

I've never seen using * in itemizing just comma separation between 
parameters.


/Janneman
___
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] overprinting

2009-09-15 Thread Hans Hagen

Peter Rolf wrote:

overprinting is broken here. I used \dostartoverprint in the 
past, but this no longer works. What is the recommended way for 
overprinted text nowadays?


(in mkiv) i redid overprints

- it's now no longer a property but just a color feature

- the name chanegd to 'intent'

- we now have \setupcolors[intent=none|overprint|knockout]; once set to
!= none it stays that way (global)

- \startcolorintent[overprint|knockout] .. \stopcolorintent

- the \startoverprint command is still there for backward compatibility

in mkii i didn't change the mechanism, just the 'intent' key

as this is s specialized feature i don't care too much about compatibility

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


[NTG-context] subformulas end theorems in Mark IV

2009-09-15 Thread Yury G. Kudryashov
Hello!

I've tried the following example (from wiki):
\starttext
\startsubformulas[eq:1]
\placeformula[eq:first]
\startformula
  c^2 = a^2 + b^2
  \stopformula

  \placeformula[eq:second]
  \startformula
  c^2 = a^2 + b^2
  \stopformula
  \stopsubformulas
  Formula (\in[eq:1]) states
  the Pythagora's Theorem twice,
  once in (\in[eq:first]) and
  again in (\in[eq:second]).
\stoptext

I get Formula (??) states the Pythagora's Theorem twice, once in (1) and 
again in (2). In log I see 'unknown reference [][eq:1]'.

I also have label/ref problem with theorems. I define
\defineenumeration[theorem][text=Theorem,location=serried,right=.]
Later I use \starttheorem[thm:bony:random:open] ... \stoptheorem, \in{theorem}
[thm:bony:random:open], and get just 'theorem' instead of 'theorem 1'.
-- 
Yury G. Kudryashov,
mailto: urkud.ur...@gmail.com
___
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] about \sym{} and n*broad

2009-09-15 Thread Dalyoung

Dear Jan-Erik,

I tested your suggestion.
Your method produce new line after Type 1, but I want to write Type  
1 and This is a test. in the same line.

And I have seen 4*broad in an example in the manual.
In the example, it is used to set the distance, I think.

Thank you.

Best regards,

Dalyoung
___
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] overprinting

2009-09-15 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

overprinting is broken here. I used \dostartoverprint in the 
past, but this no longer works. What is the recommended way 
for overprinted text nowadays?


(in mkiv) i redid overprints


many thanks!


- it's now no longer a property but just a color feature


makes sense


- the name chanegd to 'intent'

- we now have \setupcolors[intent=none|overprint|knockout]; once set to
!= none it stays that way (global)

- \startcolorintent[overprint|knockout] .. \stopcolorintent

- the \startoverprint command is still there for backward compatibility

in mkii i didn't change the mechanism, just the 'intent' key

as this is s specialized feature i don't care too much about 
compatibility


first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...



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






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

2009-09-15 Thread Hans Hagen

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then


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
-
___
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] about \sym{} and n*broad

2009-09-15 Thread Hans Hagen

Dalyoung wrote:

Dear Jan-Erik,

I tested your suggestion.
Your method produce new line after Type 1, but I want to write Type 1 
and This is a test. in the same line.

And I have seen 4*broad in an example in the manual.
In the example, it is used to set the distance, I think.


broad seems to be broken in mkiv

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
-
___
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] about \sym{} and n*broad

2009-09-15 Thread Hans Hagen

Dalyoung wrote:


I tested your suggestion.
Your method produce new line after Type 1, but I want to write Type 1 
and This is a test. in the same line.

And I have seen 4*broad in an example in the manual.
In the example, it is used to set the distance, I think.


in strc-itm fix: (swap first and second split results)

\def\dodosetupitemgroupconstant#1%
  {\edef\itemgroupconstantvalue{#1}%
   \ifx\itemgroupconstantvalue\empty\else
  \splitstring\itemgroupconstantvalue\at*\to
 \itemgroupfirst\and\itemgroupsecond
  \ifcsname\??op:::\itemgroupsecond\endcsname\csname
 \??op:::\itemgroupsecond\endcsname\fi
   \fi}

\setvalue{\??op:::\v!broad}%
  {\ifx\itemgroupfirst\empty\def\itemgroupfirst{1}\fi
   \letitemparameter\currentitemlevel\c!factor\itemgroupfirst}

\setvalue{\??op:::\v!serried}%
  {\edef\itemgroupfirst
 {-\ifx\itemgroupfirst\empty1\else\itemgroupfirst\fi}%
   \letitemparameter\currentitemlevel\c!factor\itemgroupfirst}


-
  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] overprinting

2009-09-15 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then



mh, isn't \stopoverprint enabling knockout automatically?
or do i need a \ExtGState entry with knockout at the document level?
just started reading in the pdf reference manual...


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

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
___ 





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


[NTG-context] font path question

2009-09-15 Thread luigi scarso
I would like to use a set of of fonts in a per-job-base folder, ie

job_folder_0001
  |___myfonts
  some job files here...

job_folder_0002
  |___myfonts
  some job files here...

job_folder_0003
  |___myfonts
  some job files here...

and so on,
where
myfonts
 |_font1.otf

-- 
luigi
___
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] font path question

2009-09-15 Thread luigi scarso
On Tue, Sep 15, 2009 at 6:37 PM, luigi scarso luigi.sca...@gmail.com wrote:
 I would like to use a set of of fonts in a per-job-base folder, ie

 job_folder_0001
  |___myfonts
  some job files here...

 job_folder_0002
  |___myfonts
  some job files here...

 job_folder_0003
  |___myfonts
  some job files here...

 and so on,
 where
 myfonts
  |_font1.otf

(sorry an error)
myfonts
  |_font1.otf
  |_font2.otf
  |_font3.otf

Is there any env. variable to set ?
Can I do it with some kind of macro ? (better)

--
luigi
___
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] bibmod: forcing a key for alphabetical sorting

2009-09-15 Thread Aditya Mahajan

On Mon, 14 Sep 2009, Sanjoy Mahajan wrote:


Aditya Mahajan adit...@umich.edu wrote:


Try author={{US Bureau of the Census}}


Sly.  It worked perfectly.  Thanks!

I guess it's a generic method, not just for ConTeXt, but if someone
thinks of a good spot on the wiki for it, let me know and I'll wikify.


Yes, this is a generic method. Perhaps a better way would be to use the 
suggestion in 
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=bibprefixsort


In any case, I think that it is a good idea to add such things to the 
wiki.


Aditya

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

2009-09-15 Thread Hans Hagen

Peter Rolf wrote:

Hans Hagen schrieb:

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. a 
complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then



mh, isn't \stopoverprint enabling knockout automatically?
or do i need a \ExtGState entry with knockout at the document level?
just started reading in the pdf reference manual...


it depends ... we have none: no entry at all, knockout: some nil entry, 
overprint: special entry


the thing is that when we have globally overprint on, we need s local 
knockout :


\startoverprint
  ... \bgroup ...
  \startknockout
...
  \stopknockout
  ... \egroup ...
\stopoverprint

is nicer than

\startoverprint
  ... \bgroup ...
  \stopoverprint
...
  \startoverprint
  ... \egroup ...
\stopoverprint

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
-
___
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] about \sym{} and n*broad

2009-09-15 Thread Dalyoung

Dear Hans,

Thank you for the correction.
After swapping first and second as you told, I got the good result.

I have another question.

If I use 4*broad in the first level itemization, it seems to me that  
it inherently applied to the second and third level too.
Even though I set just serried or broad instead of 4*broad in the  
second or the third level, it seems to be ignored.


Is it normal?

Thank you again.

Best regards,

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