Re: [NTG-context] xml and catcode switching

2010-03-24 Thread Philipp Gesang
Good morning!


On 2010-03-23 18:48:15, Hans Hagen wrote:
 On 22-3-2010 10:53, Philipp Gesang wrote:
 Hi,
 
 
 I'm formatting lots of urls and as some of them have ampersands in them
 I switch  to letter wherever they are placed.  This works fine unless
 combined with XML which seems to impose its own catcodes on things.  How
 could I fix things in the following example?
 
 \goto{\hyphenatedurl{...}}[url(...)]

facepalm I somehow entirely missed the trivial solution: not
specifying an alternate description. /facepalm  

Thanks for the hint with \goto, I didn't know that before.  As there was
no hit on the wiki search when asking it for “url” I created an article for
this lemma; please add the stuff I missed.


Philipp



 
 or something like that
 
 -
   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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


signature.asc
Description: Digital signature
___
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] incorrect size of the font bounding box with MkIV

2010-03-24 Thread Yanrui Li
Hi Hans,

I tried to get the boundry of Chinese punctuation in the scrp-cjk.lua file.
Such as the bounding box information of Chinese comma in the
AdobeSongStd-Light.otf font:

bbox[1] = 36,
bbox[2] = -78,
bbox[3] = 963,
bbox[4] = 833

However I got the following result with  luatex + plain

bbox[1] = 171,
bbox[2] = -58,
bbox[3] = 370,
bbox[4] = 240

The latter is right.

What's the reason for it?

-- 
Best regards,

Li Yanrui
___
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] letter module not working

2010-03-24 Thread Wolfgang Werners-Lucchini
Hallo,

I have problems compiling this with
ConTeXt  ver: 2010.03.20 22:59 MKIV
--
% coding: utf-8
\usemodule[letter][style=dina]
\mainlanguage[deo]
\enableregime[utf-8]

\setupletter
[fromname={\tfa Wolfgang Werners-Lucchini},
 subject={Blub}]

\starttext
\startletter
bla
\stopletter
\stoptext
-

error message:

system  : module letter loaded
systems : begin file brief2.tex at line 10
! Missing number, treated as zero.
to be read again 
   \relax 
l.6 }
 
\dovspacingyes ...ument #1\else \s!default \fi )}
  \fi 
\dosetcorrespondencesection ... {#2}{#3}\c!after }
   \endgraf \endgroup 

\@@su:letter:place:content ...ection [\v!content ]
  \executeifdefined 
{\v!lett...
\next1 #1,-\doflushlettersection {#1}
  \doprocesscommaitem 
...
l.13 \stopletter

? 

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] status of node.write

2010-03-24 Thread Michail Vidiassov

Dear All,

I notice that broken code for inserting movies uses
node.write in codeinjections.insertmovie (in back-pdf.lua),
while figures.checkers.mov (in grph-inc.lua) expects text return
from codeinjections.insertmovie to feed to texsprint(ctxcatcodes.

The 3D annotation code (it also seems not to work) has
node.write variant commented out and replaced with
texsprint(ctxcatcodes with b comment!

   local annot, preview, ref = backends.pdf.helpers.insert3d {
  ..
}
 -- node.write(pdfannotation(width,-height,0,annot()))
texsprint(ctxcatcodes,format(\\pdfannot width %ssp height %ssp 
{%s},width,height,annot())) -- b
--~ if ref then -- wrong ! a direct ref should work
--~ texsprint(ctxcatcodes,format(\\smash{\\pdfrefximage%s\\relax},ref)) -- 
b

--~ end
texsprint(ctxcatcodes,\\stopfoundexternalfigure)

And the question is: does it make sense to try to make the current 3D 
annotation handling code work by complaining to the maintainers and/or
fixing it myself or nothing is supposed to work till migration to 
from texsprint(ctxcatcodes API to node.write API is complete?


 Sincerely, Michail
___
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] status of node.write

2010-03-24 Thread luigi scarso
On Wed, Mar 24, 2010 at 10:23 AM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Dear All,

 I notice that broken code for inserting movies uses
 node.write in codeinjections.insertmovie (in back-pdf.lua),
 while figures.checkers.mov (in grph-inc.lua) expects text return
 from codeinjections.insertmovie to feed to texsprint(ctxcatcodes.

 The 3D annotation code (it also seems not to work) has
 node.write variant commented out and replaced with
 texsprint(ctxcatcodes with b comment!

   local annot, preview, ref = backends.pdf.helpers.insert3d {
      ..
    }
  -- node.write(pdfannotation(width,-height,0,annot()))
    texsprint(ctxcatcodes,format(\\pdfannot width %ssp height %ssp
 {%s},width,height,annot())) -- b
 --~     if ref then -- wrong ! a direct ref should work
 --~
 texsprint(ctxcatcodes,format(\\smash{\\pdfrefximage%s\\relax},ref)) --
 b
 --~     end
    texsprint(ctxcatcodes,\\stopfoundexternalfigure)

 And the question is: does it make sense to try to make the current 3D
 annotation handling code work by complaining to the maintainers and/or
 fixing it myself or nothing is supposed to work till migration to from
 texsprint(ctxcatcodes API to node.write API is complete?
I'm pretty sure that I still don't understand much , but
I have written an article for including swf in mkiv , cfr
http://wiki.pctex.com/index.php/PracTeXJournal

PracTeXJournal should be on-line next month,
and I have planned  2nd part x next issue.

I'm watching at your u3d files to maintains same style.
-- 
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] status of node.write

2010-03-24 Thread Hans Hagen

On 24-3-2010 10:23, Michail Vidiassov wrote:

Dear All,

I notice that broken code for inserting movies uses
node.write in codeinjections.insertmovie (in back-pdf.lua),
while figures.checkers.mov (in grph-inc.lua) expects text return
from codeinjections.insertmovie to feed to texsprint(ctxcatcodes.


i need a test


-
  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] Bibtex change short key

2010-03-24 Thread Hubertus
Dear Mailinglist,
I use the excellent BibTex module with this setup:
  \setupbibtex[database=biblio,sort=author]
  
\setuppublications[alternative=apa,refcommand=short,sorttype=bbl,criterium=cited]
So if I have something like this
  @ARTICLE{Akimoto2005,
author = {R. Akimoto and B. S. Li and K. Akita and T. Hasama},
...
  }
in my *.bib file, the \cite[Akimoto2005] results in [ALAH05]. Is there a way to
get only the first author with three letters and the year ([Aki05]) in the
citation?

Help would be much appreciated.

Thanks

Hubertus
___
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] Bibtex change short key

2010-03-24 Thread Taco Hoekwater

Hubertus wrote:

Dear Mailinglist,
I use the excellent BibTex module with this setup:
  \setupbibtex[database=biblio,sort=author]
  
\setuppublications[alternative=apa,refcommand=short,sorttype=bbl,criterium=cited]
So if I have something like this
  @ARTICLE{Akimoto2005,
author = {R. Akimoto and B. S. Li and K. Akita and T. Hasama},
...
  }
in my *.bib file, the \cite[Akimoto2005] results in [ALAH05]. Is there a way to
get only the first author with three letters and the year ([Aki05]) in the
citation?


Patch the generated .bbl file by hand. after its initial creation, it
will not be modified by context itself anymore.

Best wishes,
Taco
___
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] status of node.write

2010-03-24 Thread Michail Vidiassov

Dear Luigi and All,

On Wed, 24 Mar 2010, luigi scarso wrote:


I'm pretty sure that I still don't understand much , but
I have written an article for including swf in mkiv , cfr


am I correct to assume that swf inclusion works ok and is done in a 
current kosher way in latest minimals

and so can be used as a reference for inclusion of other types?

 Sincerely, Michail
___
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] status of node.write

2010-03-24 Thread luigi scarso
On Wed, Mar 24, 2010 at 11:53 AM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Dear Luigi and All,

 On Wed, 24 Mar 2010, luigi scarso wrote:

 I'm pretty sure that I still don't understand much , but
 I have written an article for including swf in mkiv , cfr

 am I correct to assume that swf inclusion works ok and is done in a current
 kosher way in latest minimals
 and so can be used as a reference for inclusion of other types?

         Sincerely, Michail
No no no, and I'm sorry for misunderstanding.
In practex I have written a really dirty way to include a swf in mkiv
based on flashmovie.sty .
Hans provided me the skeleton -- like yours u3d files --- and I must
rewrite a 2nd article to implement the mkiv way.
So in no way files in minimals are ready for swf embedding:
it's  still a test, because flash player embedded  AdobeRead is
absolutely  new for me .

Anyway it's my next project --- after I've finished some articles abut
FellType, ~next week.



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


Re: [NTG-context] Incorrect font size in captions

2010-03-24 Thread Tom
Sorry for being so thick. I misread your previous message.

Thank you for your kind assistance to a newbie.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Tuesday, March 23, 2010 11:43 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Incorrect font size in captions

Am 23.03.10 15:37, schrieb Tom:
 \setupcaptions[style={\switchtobodyfont[9pt]},
 location=bottom,number=no,align=raggedcenter]

'align' in \setupcaptions has nothing to do with the alignment
of the captiontext, as i wrote in my other mail you need

   style={\switchtobodyfont[9pt]\raggedcenter}

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
___


[NTG-context] Selectively dropping page numbers

2010-03-24 Thread Tom
The Chicago Manual of Style, 14th edition, states that page numbers are
normally omitted on pages containing only illustrations or tables, except in
long sequences of figures or tables. Is it practical within ConTeXt to omit
page numbers from a single page within a chapter?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
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] letter module not working

2010-03-24 Thread Wolfgang Schuster

Am 24.03.10 09:55, schrieb Wolfgang Werners-Lucchini:

Hallo,

I have problems compiling this with
ConTeXt  ver: 2010.03.20 22:59 MKIV
[...]
   
I can't reproduce this. Can you take a look at the end of the log for 
this information:


correspondence  : t-correspondence.tex: 2010.02.28
correspondence  : t-letter.tex: 2009.10.10
correspondence  : default.nli: 2010.02.28
correspondence  : dinb.nls: 2009.10.07
correspondence  : default.nls: 2010.02.28
correspondence  : label.nle: 2009.07.03
correspondence  : addrentry.nle: 2008.12.26
correspondence  : dina.nls: 2007.02.11

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] status of node.write

2010-03-24 Thread Michail Vidiassov

Dear Luigi and All,

On Wed, 24 Mar 2010, luigi scarso wrote:


Hans provided me the skeleton -- like yours u3d files --- and I must
rewrite a 2nd article to implement the mkiv way.


And where the mkiv way is to be studued?
What kinds of inclusion not only work, but are implemented
in the modern way and so are fit to be emulated?
Is node.write mkiv way or not yet?

  Sincerely, Michail
___
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] MAPS - free PDF version

2010-03-24 Thread Michail Vidiassov

Dear All,

what is the current policy of NTG regarding Subj.?
The links to 2008 issues of MAPS (36 and 37) result in
The PDF version of this document will be
available one year after the paper version.
In 2010 that message is somewhat confusing.

   Sincerely, Michail
___
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] status of node.write

2010-03-24 Thread Hans Hagen

On 24-3-2010 10:52, luigi scarso wrote:


I'm watching at your u3d files to maintains same style.


there is u3d support presen tbut nobody tested it

also, we can only improve it if we have a proper test set (also true for 
swf) that we can add to the samples section, simple public tests


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
___


Re: [NTG-context] MAPS - free PDF version

2010-03-24 Thread Taco Hoekwater

Michail Vidiassov wrote:

Dear All,

what is the current policy of NTG regarding Subj.?
The links to 2008 issues of MAPS (36 and 37) result in
The PDF version of this document will be
available one year after the paper version.
In 2010 that message is somewhat confusing.


Our website is not up to date yet.

Best wishes,
Taco


___
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] status of node.write

2010-03-24 Thread luigi scarso
On Wed, Mar 24, 2010 at 2:02 PM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Dear Luigi and All,

 On Wed, 24 Mar 2010, luigi scarso wrote:

 Hans provided me the skeleton -- like yours u3d files --- and I must
 rewrite a 2nd article to implement the mkiv way.

 And where the mkiv way is to be studued?
 What kinds of inclusion not only work, but are implemented
 in the modern way and so are fit to be emulated?
 Is node.write mkiv way or not yet?

                      Sincerely, Michail
As I wrote, I quite don't understand well this area.
For now I can say that the mkiv way is a mix of lua and tex, while
the latex/mkii/pdftex tex way is described in flashmovie.sty
Also Adobe Supplement to the ISO 32000 base version 1.7 extensione
level 3 is the guideline.

I much prefear to code by myself without ask for Hans now,
it's a way to understand this aspect that I don't manage well.


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


Re: [NTG-context] setupinmargin failing?

2010-03-24 Thread Wolfgang Schuster

Am 23.03.10 22:36, schrieb Hans van der Meer:

I tried this code with both
\setupinmargin[left][...] and \setupinmargin[][...].
The first one worked, the second obviously not. I take it therefore 
that the [left]-argument is mandatory.

When the first argument is optional you can write

  \setupinmargin[style=xxx,color=yy]

where the values are applied to all margin commands if not specified 
otherwise

for a certain (e.g. \inleft) comand.

With the two argument version

  \setupinmargin[left][style=xx,color=yy]

you can set special settings for the leftmargin texts, the global settings
are now replaced.

The manual mentions you can use all commands from \framed but this is only
true when you use the two argument version of the \setupinmargin command.

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] status of node.write

2010-03-24 Thread Hans Hagen

On 24-3-2010 15:20, luigi scarso wrote:

On Wed, Mar 24, 2010 at 2:02 PM, Michail Vidiassovmas...@iaas.msu.ru  wrote:

Dear Luigi and All,

On Wed, 24 Mar 2010, luigi scarso wrote:


Hans provided me the skeleton -- like yours u3d files --- and I must
rewrite a 2nd article to implement the mkiv way.


And where the mkiv way is to be studued?
What kinds of inclusion not only work, but are implemented
in the modern way and so are fit to be emulated?
Is node.write mkiv way or not yet?

  Sincerely, Michail

As I wrote, I quite don't understand well this area.
For now I can say that the mkiv way is a mix of lua and tex, while
the latex/mkii/pdftex tex way is described in flashmovie.sty
Also Adobe Supplement to the ISO 32000 base version 1.7 extensione
level 3 is the guideline.

I much prefear to code by myself without ask for Hans now,
it's a way to understand this aspect that I don't manage well.


it is already coded .. see back-u3d.mkiv for the interface

when given examples of something that does not work i can repair it

mkii/sty files are of no use here as things need to fit into the context 
user interface


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
___


Re: [NTG-context] setupinmargin failing?

2010-03-24 Thread Hans van der Meer
Must I really understand from your reply that \setupinmargin[x=y] is  
not equivalent to \setupinmargin[][x=y]? That is: an absent optional  
argument is not really optionally absent?


I checked by running the thing, of course, and the answer I found is  
yes. The empty [] does not honor what leaving [] out does. To me -- 
but that is of course a personal opinion-- this is a little bit  
shocking. The fact that empty optional (supposed to leave the defaults  
as is) has another meaning than leaving out completely (which I also  
tend to interprete as leaving defaults untouched).


May I ask for some thought about this behaviour? If it confuses me, I  
am vain enough to suppose others could be confused too.


But thanks anyway for your elucidation.

Hans van der Meer

On 24 mrt 2010, at 15:21, Wolfgang Schuster wrote:


Am 23.03.10 22:36, schrieb Hans van der Meer:

I tried this code with both
   \setupinmargin[left][...] and \setupinmargin[][...].
The first one worked, the second obviously not. I take it therefore  
that the [left]-argument is mandatory.

When the first argument is optional you can write

 \setupinmargin[style=xxx,color=yy]

where the values are applied to all margin commands if not specified  
otherwise

for a certain (e.g. \inleft) comand.

With the two argument version

 \setupinmargin[left][style=xx,color=yy]

you can set special settings for the leftmargin texts, the global  
settings

are now replaced.

The manual mentions you can use all commands from \framed but this  
is only
true when you use the two argument version of the \setupinmargin  
command.


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] Selectively dropping page numbers

2010-03-24 Thread Wolfgang Schuster

Am 24.03.10 13:37, schrieb Tom:

The Chicago Manual of Style, 14th edition, states that page numbers are
normally omitted on pages containing only illustrations or tables, except in
long sequences of figures or tables. Is it practical within ConTeXt to omit
page numbers from a single page within a chapter?
   

Can you add a entry to the bug/feature tracker (http://tracker.luatex.org/).

I agree to have a option to disable headers/footers on float pages.

\starttext

\dorecurse{10}{\input knuth\par}

\placefigure[page,none]{}{\externalfigure[dummy][factor=max]}

\dorecurse{10}{\input knuth\par}

\placefigure[page,none,header]{}{\externalfigure[dummy][factor=max]} % 
no header on float page


\dorecurse{10}{\input knuth\par}

\placefigure[page,none,footer]{}{\externalfigure[dummy][factor=max]} % 
no footer on float page


\dorecurse{10}{\input knuth\par}

\placefigure[page,none,empty]{}{\externalfigure[dummy][factor=max]} % no 
header and footer on float page


\dorecurse{10}{\input knuth\par}

\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] setupinmargin failing?

2010-03-24 Thread Taco Hoekwater

Hans van der Meer wrote:
Must I really understand from your reply that \setupinmargin[x=y] is not 
equivalent to \setupinmargin[][x=y]? That is: an absent optional 
argument is not really optionally absent?


Your [] is not an absent optional argument at all, it is a given
optional argument (that is empty).

Best wishes,
Taco
___
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] setupinmargin failing?

2010-03-24 Thread Hans van der Meer


On 24 mrt 2010, at 16:10, Taco Hoekwater wrote:


Hans van der Meer wrote:
Must I really understand from your reply that \setupinmargin[x=y]  
is not equivalent to \setupinmargin[][x=y]? That is: an absent  
optional argument is not really optionally absent?


Your [] is not an absent optional argument at all, it is a given
optional argument (that is empty).


Point taken. But should that has the effect: ignore what follows in  
the second argument?

Because that is what I observe.

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
___


Re: [NTG-context] setupinmargin failing?

2010-03-24 Thread Wolfgang Schuster

Am 24.03.10 16:57, schrieb Hans van der Meer:
Must I really understand from your reply that \setupinmargin[x=y] is 
not equivalent to \setupinmargin[][x=y]? That is: an absent optional 
argument is not really optionally absent?

Your [] is not an absent optional argument at all, it is a given
optional argument (that is empty).
Point taken. But should that has the effect: ignore what follows in 
the second argument?

It’s a effect how the \setupinmargin command is implemented.

What you tried to do is similar to the effect of the second 
\processcommalist command.


\starttext

\processcommalist[foo,bar]\quotation

\processcommalist[]\quotation

\processcommalist[abc,xyz]\quotation

\stoptext

You expect to get

“foo”“bar”
“”
“abc”“xyz”

as output but what you really get is

“foo”“bar”
“abc”“xyz”

The empty argument is ignored and nothing happens.

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] header in the middle on doublesided layout

2010-03-24 Thread Willi Egger

Hi,

her yet my two cents,

May be it is worthwhile to consider a set of setups and using  
layerframed. This gives to my knowledge the most of flexibility.


Willi
On 22 Mar 2010, at 12:29, Mojca Miklavec wrote:


Hello,

I would like to set a different header on left and right page, but I
would like it to be centered on page. How do I do that?

The command
\setupheadertexts[a][b]
puts a b on one page and b a on the other while
\setupheadertexts[a][b][c][d]
puts a b on one page and c d on the other. On single-sided
layouts I could use
\setupheadertexts[a]
or
\setupheadertexts[][a][]
but using 6 parameters on double-sided doesn't work.

I am now hacking with
\setupheadertexts[\hbox{\kern-5mm\myheaderright}][][][\hbox 
{\myheaderleft\kern-5mm}]

\def\myheaderright{\hbox to textwidth+10mm{...}}
but that's a bit ugly.

Mojca
__ 
_
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] setupinmargin failing?

2010-03-24 Thread Taco Hoekwater

Wolfgang Schuster wrote:

Am 24.03.10 16:57, schrieb Hans van der Meer:
Must I really understand from your reply that \setupinmargin[x=y] is 
not equivalent to \setupinmargin[][x=y]? That is: an absent optional 
argument is not really optionally absent?

Your [] is not an absent optional argument at all, it is a given
optional argument (that is empty).
Point taken. But should that has the effect: ignore what follows in 
the second argument?

It’s a effect how the \setupinmargin command is implemented.

What you tried to do is similar to the effect of the second 


In other words: you have explicitly disabled the built-in default
for the optional argument.

Best wishes,
Taco
___
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] status of node.write

2010-03-24 Thread Michail Vidiassov
Dear Hans,

 when given examples of something that does not work i can repair it

take a look at http://www.ntg.nl/pipermail/ntg-context/2010/047898.html
- it is about problem with movies, but movies and u3d are both done via
annotations, thus there are similarities.

 it is already coded .. see back-u3d.mkiv for the interface

the interface seems to be disfunctional now, I'll supply examples
once I get to a computer with working luatex
(my personal one is still disfunctional since the fix for luatex problem
I reported at http://www.ntg.nl/pipermail/ntg-context/2010/048022.html did
not find its way to precompiled binaries yet).

   Sincerely, Michail

___
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] setupinmargin failing?

2010-03-24 Thread Peter Münster
On Wed, Mar 24 2010, Hans van der Meer wrote:

 Must I really understand from your reply that \setupinmargin[x=y] is not 
 equivalent to \setupinmargin[][x=y]? That is: an absent optional argument 
 is not really optionally absent?

 Your [] is not an absent optional argument at all, it is a given
 optional argument (that is empty).

 Point taken. But should that has the effect: ignore what follows in the 
 second argument?

You can consider this logic:

\setupinmargin[left][...]   % apply ... to left
\setupinmargin[right][...]  % apply ... to right
\setupinmargin[][...]   % apply ... to nothing

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] three problems

2010-03-24 Thread Michael Saunders
1.  central headers with margin overhanging:

I find that the following line:

\setupheadertexts[margin][\rlap{\getmarking[section]}\hfill][\hfill\llap{\getmarking[subsection]}]

will set up a header nicely, overhanging the margins.  To be clear, I
meant that:
the left header text begins at the leftmost extreme of the left margin
and goes as far right as it needs to, even above the text area, and
the right header text begins whereever it has to, even above the text,
to end at the rightmost extreme of the right margin.

On the other hand, this code:

\setupheadertexts[\setups{text a}]
\startsetups[text a]
  \rlap{\getmarking[section]}\hfill
  \hfill
  --center text here--
  \hfill
  \hfill\llap{\getmarking[subsection]}
\stopsetups

can place a center header text.

Is there a way to do both?

2.  marginal notes with columns:

If I have a two-column text with margins on either side, is there a
way for \inmargin{} or something like it to place text in the margin
next to the column where it occurs?
I haven't been able to avoid it overprinting the text in the opposite column.


3.  leftward protrusion:

When I look at my output with \showgrid, it's clear that there is no
leftward protrusion at all.  Everything is flush with the margin, even
'T' and 'J'.

I'm using:

\definefontfeature[...][default][...,protrusion=quality,expansion=quality]
\setupalign[hanging,hz]
___
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] simple document layout setup

2010-03-24 Thread Vyatcheslav Yatskovsky

Hello,

Is there a simple command to setup narrower document margins, without 
resorting to \setuplayout with numerical values? I think of MS Word 2007 
settings.


B.R.
Vyatcheslav

___
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] simple document layout setup

2010-03-24 Thread Aditya Mahajan

On Thu, 25 Mar 2010, Vyatcheslav Yatskovsky wrote:


Hello,

Is there a simple command to setup narrower document margins, without 
resorting to \setuplayout with numerical values? I think of MS Word 2007 
settings.


Can you explain what MS Word does?

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


Re: [NTG-context] three problems

2010-03-24 Thread Wolfgang Schuster

Am 25.03.10 00:37, schrieb Michael Saunders:

1.  central headers with margin overhanging:

I find that the following line:

\setupheadertexts[margin][\rlap{\getmarking[section]}\hfill][\hfill\llap{\getmarking[subsection]}]

will set up a header nicely, overhanging the margins.  To be clear, I
meant that:
the left header text begins at the leftmost extreme of the left margin
and goes as far right as it needs to, even above the text area, and
the right header text begins whereever it has to, even above the text,
to end at the rightmost extreme of the right margin.

On the other hand, this code:

\setupheadertexts[\setups{text a}]
\startsetups[text a]
   \rlap{\getmarking[section]}\hfill
   \hfill
   --center text here--
   \hfill
   \hfill\llap{\getmarking[subsection]}
\stopsetups

can place a center header text.

Is there a way to do both?
   

\setuplayout
  [backspace=6cm,
   width=middle]

\setupheadertexts
  [margin]
  [\leftaligned{very long leftmargin text}]
  [\rightaligned{very long rightmargin text}]

\setupheadertexts[text in the middle]

\showframe

\starttext
\input knuth
\stoptext

or

\setuplayout
  [backspace=6cm,
   width=middle]

\setupheader
  [margin]
  [lefttext=\leftaligned{very long leftmargin text},
   righttext=\rightaligned{very long rightmargin text}]

\setupheader
  [text]
  [middletext={text in the middle}]

\showframe

\starttext
\input knuth
\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
___