Re: [NTG-context] \setupenumeration(s) was: defineenumeration does not work with MKIV

2010-01-05 Thread Wolfgang Schuster

Am 05.01.2010 um 05:08 schrieb Vladimir Lomov:

 2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Sorry to hijack your post and since we're already there, why are 
 \setupenumerations
 and \setupdescriptions written in the plural form.
 
 \setupenumerations[problem][stopper=)]
 
 When I would follow the system from other setup commands in context
 i expect as correct names \setupenumeration and \setupdescription.
 
 If I understand context manual correctly (I not checked this)
 (cont-enp.pdf, pp. 181,183) I could use more than one name in
 \setupenumerations (\setupdescriptions), e.g.
 \setupenumerations[problem,remark][stopper=)]
 so name of commands are correct (in some sense one is a limit of several :).

You could also use more names in \setuphead, \setupblock etc. but these
command names are singular. Changing \setupenumerations/descriptions is
no option but one can do this:

\let\setupdescription\setupdescriptions
\let\setupenumeration\setupenumerations

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] Natural Tables Cell Borders

2010-01-05 Thread Hans Hagen

On 5-1-2010 4:02, Curiouslearn wrote:

Thanks Wolfgang. I am not yet proficient enough in Metapost or Context
to understand your code. But will look at it more carefully later.

Meanwhile, is there any further work going on on Natural Tables? Are
there plans to introduce the ability to have borders of different
thickness for the same cell through simple options.


normally that is demand driven i.e. if i need it in a project or so

Hans
___
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] Thoughts on ConTeXt: ditched

2010-01-05 Thread Manuel P.

Il 03/01/2010 19.45, Piotr Kopszak ha scritto:


Well, well,

ConTeXt can help you if you give him a little love and don't try pull
all triggers at once. Having written my Ph.D. in LaTeX and published
couple of books in ConTeXT I can assure you, ConTeXt is surprisingly
better suited  for scientific texts (oops sorry, I  just mean text
with footnotes, bibliography,  a couple of indexes, list of
illustrations, definitions whatever) even if you disregard its
typographic quality. That's of course my entirely subjective opinion.

Piotr


   


I've several passions, and one of them is desktop publishing and design 
(although I'm still a newbie) so a more in-depth exploration of ConTeXt 
in some future is likely.


--
Manuel P.

___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Curiouslearn
Vladimir, I am not sure that the settings are incorrect. Why does it
work with MKII then? Also it worked with MKIV before. It broke only
recently.

Can someone please throw light on this? Is the disapperance of the
numbers, as Vladimir suggests, expected behavior of the minimal
example in MKIV.



On Mon, Jan 4, 2010 at 11:03 PM, Vladimir Lomov lomov...@gmail.com wrote:
 Hi.

 I'm newbie with ConTeXt but have experience with LaTeX.

 2010/1/5 Curiouslearn curiousle...@gmail.com:
 Minimal example

 \setuppapersize[letter][letter]

 \starttext
 \defineenumeration[problem][text= ,location=inleft]
 \setupenumerations[problem][stopper=)]

 \problem
 problem 1


 \problem
 problem 2

 \stoptext

 In MKIV there are numbers do not appear.

 Thanks.
 This is because of your settings. Try change location. In order to
 understand what's wrong with your settings see output for this example
 (I tried with context minimals):

 \setuppapersize[A5][A4]

 \setuplayout[location=middle]
 \starttext
 \defineenumeration[problem][text= ,location=inleft]
 \setupenumerations[problem][stopper=)]

 \problem
 problem 1


 \problem
 problem 2

 \stoptext

 In okular (or Adobe Reader) you see that enumeration numbers are out
 of page and you don't see them.
 ___
 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
 ___

___
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] Referencing...

2010-01-05 Thread Willi Egger

Hi,

I have small tabulations which contain references to footnotes in the  
header line. - The footnotes are placed correctly, how ever if I  
refer to the references I get in 2 out of the three cases ?? i.e.  
ConTeXt does not know the reference. I am puzzled because it works  
for the third reference... When extending the list of footnotes again  
the referencing works only for the last reference.

Is there something changed in the approach in MKIV?

\starttext
\starttabulate[|l|c|r|r|r|]
\NC Issue \NC Time \NC Avg.\footnote[av]{Average log\low{10} values}  
\NC s\footnote[stdv]{Standard deviation} \NC se\footnote[se]{Standard  
error of the mean} \NC\NR

\NC A \EQ 1   \NC 3.85 \NC 1.06 \NC 0.31 \NC\NR
\stoptabulate

\starttabulate[|l|c|r|r|r|]
\NC Issue \NC Time \NC Avg.\note[av] \NC s\note[stdv] \NC se\note[se] 
\NC\NR

\NC B \EQ 1   \NC 1.18 \NC 0.8  \NC  0.23 \NC\NR
\stoptabulate

Look at s\note[av]
\stoptext

I am using:
This is LuaTeX, Version beta-0.50.0-2009122422
ConTeXt  ver: 2010.01.03 12:54 MKIV  fmt: 2010.1.4  int: english/english

Kind regards

Willi
___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Wolfgang Schuster

Am 05.01.2010 um 14:22 schrieb Curiouslearn:

 Vladimir, I am not sure that the settings are incorrect. Why does it
 work with MKII then? Also it worked with MKIV before. It broke only
 recently.

Add 'headalign=flushright'.

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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Curiouslearn
Thanks! That worked great.

On Tue, Jan 5, 2010 at 8:52 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 05.01.2010 um 14:22 schrieb Curiouslearn:

 Vladimir, I am not sure that the settings are incorrect. Why does it
 work with MKII then? Also it worked with MKIV before. It broke only
 recently.

 Add 'headalign=flushright'.

 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
 ___

___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Vladimir Lomov
Hello.
2010/1/5 Curiouslearn curiousle...@gmail.com:
 Vladimir, I am not sure that the settings are incorrect. Why does it
 work with MKII then? Also it worked with MKIV before. It broke only
 recently.
Sorry, I didn't try to check texexec (MKII) also I just checked context (MKIV).

 Can someone please throw light on this? Is the disapperance of the
 numbers, as Vladimir suggests, expected behavior of the minimal
 example in MKIV.
I also notice the difference between resulted pdf files produced by
MKII and MKIV: MKIV gives labels _below_ line respect to item entry
but MKII gives labels on the same line as item entry (also MKIV moves
labels much more to left edge).
This is what I figured out, sorry I too novice with ConTeXt and can't
give more information on topic.


2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 05.01.2010 um 14:22 schrieb Curiouslearn:

 Vladimir, I am not sure that the settings are incorrect. Why does it
 work with MKII then? Also it worked with MKIV before. It broke only
 recently.

 Add 'headalign=flushright'.

Hm, this gives more unpleasant result for MKIV format but reveals the
problem of disappearing :)

---
WBR, Vladimir Lomov
___
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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Wolfgang Schuster

Am 05.01.2010 um 14:56 schrieb Vladimir Lomov:

 Vladimir, I am not sure that the settings are incorrect. Why does it
 work with MKII then? Also it worked with MKIV before. It broke only
 recently.
 
 Add 'headalign=flushright'.
 
 Hm, this gives more unpleasant result for MKIV format but reveals the
 problem of disappearing :)


It's side effect of the new 'headalign' key, you can correct by setting
the correct width for the number box.

\defineenumeration
  [problem]
  [text=,
   location=inleft,
   headalign=flushright,
   stopper=),
   width=\leftmarginwidth]

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] defineenumeration does not work with MKIV. Works with MKII

2010-01-05 Thread Vladimir Lomov
Hi.
2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 05.01.2010 um 14:56 schrieb Vladimir Lomov:

 Vladimir, I am not sure that the settings are incorrect. Why does it
 work with MKII then? Also it worked with MKIV before. It broke only
 recently.

 Add 'headalign=flushright'.

 Hm, this gives more unpleasant result for MKIV format but reveals the
 problem of disappearing :)


 It's side effect of the new 'headalign' key, you can correct by setting
 the correct width for the number box.

 \defineenumeration
  [problem]
  [text=,
   location=inleft,
   headalign=flushright,
   stopper=),
   width=\leftmarginwidth]

Yes, this works like a charm (checked in both TL2009 and
context-minimals for MKII and MKIV formats).

---
WBR, Vladimir Lomov
___
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] Referencing...

2010-01-05 Thread Hans Hagen

On 5-1-2010 14:46, Willi Egger wrote:


Is there something changed in the approach in MKIV?


sure, no common note code in mkii and mkiv

fixed,

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


[NTG-context] What is the luatex version of \pdfescapehex

2010-01-05 Thread Zhichu Chen
Hi,

I've written a very old module which used a lot of pdf primitives like
\pdfescapehex
and \pdfescapename etc. and it turns out not they don't work in mkiv.
So I just want
to know are there any alternatives?

TIA

-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
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] startbuffer fails with %

2010-01-05 Thread H. van der Meer

\startbuffer[ABC]%
{} Braces at beginning fails with buffer
\stopbuffer
\starttext
\getbuffer[ABC]
\stoptext

Error message:
! File ended while scanning use of \dododowithbuffer.
inserted text
\par

Remove the {}'s at the beginning and all is well.
The culprit however is the % in the first line; remove and the braces  
do no harm.
I suspect that a missed newline is the cause. If that cannot be  
remedied, I advise adding a warning in the manual.


Hans van der Meer






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