Re: [NTG-context] [Fwd: hyphen breaking (URGENT)]

2010-02-23 Thread Hans Hagen

On 23-2-2010 21:18, Steffen Wolfrum wrote:


The need is easily described:

\placelist[chapter, section,...][file=MyFile]


In old MkII times all information for a table of content was read from the 
.tuo file.
For making manual changes in needed a way to define from *which* tuo file the 
placelist command reads its information:
so I could copy the original tuo file, give it another name (MyFile) and define 
...

\def\FrozenTUO{MyFile}

 thus each \placelist run would read from that paticular MyFile.tuo

The quoted code above was written by Hans to provide a way to implement a kind 
of \placelist[chapter, section,...][file=MyFile] in MkII.


the file= option will not come back, at least not soon, as we now have a 
completely different way of dealing with tables of contents (and 
actually all multipass data)


(ok, you can adapt copy the tuc file and replace the list table but as 
much more goes into the list it's no fun; also way more information goes 
into the lists and there are references to shared data that basically 
makes a no-go)


what we have already is a way to add userdata (which works if you use 
the structured \startchapter ... commands) and when placing a list you 
can use user entries; if you only need to replace a specific list entry 
you can do


\startchapter[title=whatever,list=whocares,bookmark=...]

so you have a different title and listentry and marking and reference 
and bookmark and ..


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] [Fwd: hyphen breaking (URGENT)]

2010-02-23 Thread Steffen Wolfrum

Am 23.02.2010 um 23:27 schrieb Hans Hagen:

 On 23-2-2010 21:18, Steffen Wolfrum wrote:
 
 The need is easily described:
 
 \placelist[chapter, section,...][file=MyFile]
 
 
 In old MkII times all information for a table of content was read from the 
 .tuo file.
 For making manual changes in needed a way to define from *which* tuo file 
 the placelist command reads its information:
 so I could copy the original tuo file, give it another name (MyFile) and 
 define ...
 
 \def\FrozenTUO{MyFile}
 
  thus each \placelist run would read from that paticular MyFile.tuo
 
 The quoted code above was written by Hans to provide a way to implement a 
 kind of \placelist[chapter, section,...][file=MyFile] in MkII.
 
 the file= option will not come back, at least not soon, as we now have a 
 completely different way of dealing with tables of contents (and actually all 
 multipass data)
 
 (ok, you can adapt copy the tuc file and replace the list table but as much 
 more goes into the list it's no fun; also way more information goes into the 
 lists and there are references to shared data that basically makes a no-go)
 
 what we have already is a way to add userdata (which works if you use the 
 structured \startchapter ... commands) and when placing a list you can use 
 user entries; if you only need to replace a specific list entry you can do
 
 \startchapter[title=whatever,list=whocares,bookmark=...]
 
 so you have a different title and listentry and marking and reference and 
 bookmark and ..


There is an important side-effect in the way I use it in MkII:
The  idea is to run the table of contents independently from typesetting an 
entire book.

For example: 
- you have a big book, each typesetting run takes quite long
- as you also have many headings the table of contents is 17 pages
- now you see an ugly page-brake at bottom of page 10
- but if the entire vertical spacing of this page would be reduced a bit then 
this page-break would look better.

What I'd do now in MkII is such (trial-and-error loop):
0) the table of content is created by a \placelist command in a separate 
contents.tex component
1) for testing purposes I now copy the tuo file and point (via \def\FrozenTUO) 
the placelist run to this file
2) in this test-tuo file I hook in a command for reducing the vertical space 
(baseline/parskip) of my problematic contents page
3) I run the contents.tex file again to see if the result is as desired
4) if it is not, I do step 2) and 3) again
5) finally, if the result is as desired, I write the command (that gave me that 
desired vertical space) via \writebetweenlist directly to the original 
chapter's files.
6) now I point the \placelist run back again to the original tuo file: thus I 
can be save that whenever there will be additions/changes in the book, I can 
generate are table of contents with the updated pagenumbers (but also via 
writebetweenlist with my content's correction).


That's why in MkIV I look for a way to point placelist to a specified file.

Steffen
___
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] Footnote Failure

2010-02-22 Thread Hans Hagen

On 20-2-2010 17:35, John Haltiwanger wrote:

I'm having trouble understanding why the attached file fails with:

structure   : subject @ level 3 : 0.0.0 -  Information
! Undefined control sequence.
\dododescriptioncomponent ...entdescriptioncoding
   \s!tex \fi \ifx \currentde...
\@@notemakedescription ...list =,\c!bookmark =,][]
   \xdef \currentnotenumber {...
l.79 ...r in light of Pasquinelli's presentation.}

If I replace \footnote{} with parantheses, the included source compiles fine.

I've had a separate issue where a URL containing %'s seems to gum up
the system (that is, when I pared down the source to isolate the above
peculiarity I removed the URLs with %s and the other error, which
would stop compilation itself if the parantheses had solved the above
issue, disappeared.) Is pandoc producing the proper, or preferred,
\useURL syntax? I'm assuming pandoc aims for mkII over mkIV, but I
thought I read that the interface had not changed.


i'll fix it ... has to do with unwanted expansion in footnotes

btw, why not put the url defs somplace in your preamble, that way you 
have one spot to maintain them


\setupinteraction[state=start]

\starttext

\useURL[git:2][http://...][][Git Virtue]

\footnote{The views ... \from[git:2] }

\stoptext




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

2010-02-20 Thread John Haltiwanger
I'm having trouble understanding why the attached file fails with:

structure   : subject @ level 3 : 0.0.0 - Information
! Undefined control sequence.
\dododescriptioncomponent ...entdescriptioncoding
  \s!tex \fi \ifx \currentde...
\@@notemakedescription ...list =,\c!bookmark =,][]
  \xdef \currentnotenumber {...
l.79 ...r in light of Pasquinelli's presentation.}

If I replace \footnote{} with parantheses, the included source compiles fine.

I've had a separate issue where a URL containing %'s seems to gum up
the system (that is, when I pared down the source to isolate the above
peculiarity I removed the URLs with %s and the other error, which
would stop compilation itself if the parantheses had solved the above
issue, disappeared.) Is pandoc producing the proper, or preferred,
\useURL syntax? I'm assuming pandoc aims for mkII over mkIV, but I
thought I read that the interface had not changed.

Sincerely,
John Haltiwanger


fail.tex
Description: TeX document
___
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] Remove bold face

2009-11-18 Thread Bernhard Rosensteiner
Hello Anuar,

for me \nomarking never worked as expected (i´m relatively new to ConTeXt, so i 
don´t know if \nomarking worked in the past..., maybe i´m misunderstanding 
something...). In the mailing list i found:

 \startchapter{title=\bf Title, list=entry in lists like content, 
bookmark=bookmark in pdf, marking=marked Title}

this works

best regards
Bernhard



Am 18.11.2009 um 17:29 schrieb anuar lezama:

 Hello Taco,
 
 Thank you for answering. I can't make nomarking do this trick, I tried  
 something like this:
 \starttext
 The {\bf teacher-student} relationship \nomarking{\bf implies} the authority 
 of the person teaching over the person being taught.
 \stoptext
 
 and the word implies still have bold face on the PDF 
 output, do I need to do some kind of set up to marking 
 so it works?
 
 Thank you.
 
 Kind Regrads
 Anuar
 
 On Wed, Nov 18, 2009 at 1:21 AM, Taco Hoekwater t...@elvenkind.com wrote:
 
 
 anuar lezama wrote:
  Hello Everybody, My problem is the following: I'm creating chapter's
  titles with a mix of styles. For example. \chapter{ something
  {\bolditalic another thing}} This give me the result that I expect with
 
 \nomarking {\bolditalic } should do the trick.
 
 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
 ___
 
 
 
 
 ___
 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] Remove bold face

2009-11-18 Thread anuar lezama
Hollo Everyone, Thank you everyone for answering. I think I misinterpreted
your answer Taco I'm so sorry. I tried the solution gave by Alan and It
worked perfectly. This is what i did: \defineselector [title] [max=2,n=2]
\setupselector [title] [n=1] \section{\select{title}{Comunicación con el
{\bolditalic Datalogger}}{Comunicación con el {\it Datalogger}}}
\setupselector [title] [n=2] So when the table of content and the header are
created context uses the alternative 2 without bold face, but the section's
title appears with italicbold. I really appreciate all your help. Thank you
very much

On Wed, Nov 18, 2009 at 11:59 AM, Bernhard Rosensteiner 
brosenstei...@gmail.com wrote:

 Hello Anuar,

 for me \nomarking never worked as expected (i´m relatively new to ConTeXt,
 so i don´t know if \nomarking worked in the past..., maybe i´m
 misunderstanding something...). In the mailing list i found:

  \startchapter{title=\bf Title, list=entry in lists like content,
 bookmark=bookmark in pdf, marking=marked Title}

 this works

 best regards
 Bernhard



 Am 18.11.2009 um 17:29 schrieb anuar lezama:

 Hello Taco,

 Thank you for answering. I can't make nomarking do this trick, I tried
  something like this:
 \starttext
 The {\bf teacher-student} relationship \nomarking{\bf implies} the
 authority of the person teaching over the person being taught.
 \stoptext

 and the word implies still have bold face on the PDF output, do I need to
 do some kind of set up to marking so it works?

 Thank you.

 Kind Regrads
 Anuar

 On Wed, Nov 18, 2009 at 1:21 AM, Taco Hoekwater t...@elvenkind.comwrote:



 anuar lezama wrote:
  Hello Everybody, My problem is the following: I'm creating chapter's
  titles with a mix of styles. For example. \chapter{ something
  {\bolditalic another thing}} This give me the result that I expect with

 \nomarking {\bolditalic } should do the trick.

 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

 ___





 ___
 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

 ___




-- 
Saludos

Anuar
___
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] Remove bold face

2009-11-18 Thread Alan BRASLAU
I learned about selectors from this mailing list.
Before, I had used \nomarking{}, but I believe
that this has been eliminated in mkiv.
The selector mechanism is cleaner, and my use
is typically for figure and table captions.

I have no experience with \startchapter.

Alan

On Wednesday 18 November 2009 19:25:10 anuar lezama wrote:
 Hollo Everyone, Thank you everyone for answering. I think I misinterpreted
 your answer Taco I'm so sorry. I tried the solution gave by Alan and It
 worked perfectly. This is what i did: \defineselector [title] [max=2,n=2]
 \setupselector [title] [n=1] \section{\select{title}{Comunicación con el
 {\bolditalic Datalogger}}{Comunicación con el {\it Datalogger}}}
 \setupselector [title] [n=2] So when the table of content and the header
  are created context uses the alternative 2 without bold face, but the
  section's title appears with italicbold. I really appreciate all your
  help. Thank you very much
 
 On Wed, Nov 18, 2009 at 11:59 AM, Bernhard Rosensteiner 
 
 brosenstei...@gmail.com wrote:
  Hello Anuar,
 
  for me \nomarking never worked as expected (i´m relatively new to
  ConTeXt, so i don´t know if \nomarking worked in the past..., maybe i´m
  misunderstanding something...). In the mailing list i found:
 
   \startchapter{title=\bf Title, list=entry in lists like content,
  bookmark=bookmark in pdf, marking=marked Title}
 
  this works
 
  best regards
  Bernhard
 
 
 
  Am 18.11.2009 um 17:29 schrieb anuar lezama:
 
  Hello Taco,
 
  Thank you for answering. I can't make nomarking do this trick, I tried
   something like this:
  \starttext
  The {\bf teacher-student} relationship \nomarking{\bf implies} the
  authority of the person teaching over the person being taught.
  \stoptext
 
  and the word implies still have bold face on the PDF output, do I need
  to do some kind of set up to marking so it works?
 
  Thank you.
 
  Kind Regrads
  Anuar
 
  On Wed, Nov 18, 2009 at 1:21 AM, Taco Hoekwater t...@elvenkind.comwrote:
  anuar lezama wrote:
   Hello Everybody, My problem is the following: I'm creating chapter's
   titles with a mix of styles. For example. \chapter{ something
   {\bolditalic another thing}} This give me the result that I expect
   with
 
  \nomarking {\bolditalic } should do the trick.
 
  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
 
  
 ___
 
  _
 __ 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
 
  _
 __
 

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr

http://www-dna2009.cea.fr/

 .''`.
: :'  :
`. `'`
  `-
___
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] \startchapter

2009-09-14 Thread Bernd Militzer




Hallo Hans,

please have a look at my testfile:


% --- snip
\setupcolors[state=start]
\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section,subsection]
\setupinteractionscreen[option=bookmark]
%
\starttext
%
\placelist[chapter,section][criterium=all,interaction=text]
%
% this works !
%
\startchapter[title={Geburten 1606--1737},list={Geburten
1606--1737},bookmark={Geburten},reference={Geburten}]
%
% this does not work! no title in text, no title in list, no bookmark
text,  no reference!!!
%
 \startsection[title    ={Getafte A. dominj 1606},%
   list ={Geburten 1606},%
   bookmark ={Geb-1606},%
   reference={Geb:1606}]
%
\input tufte
\stopsection
%
\page
% this works!
ref Geburten: \about[Geburten]
\vspacing[12pt]
% this does not work!
ref 1606: \about[Geb:1606]
\stopchapter
%
\stoptext
% --- snip

This is LuaTeX, Version beta-0.43.0-2009081911
ConTeXt  ver: 2009.09.12 14:44 MKIV  fmt: 2009.9.13  int:
english/english



Thanks

Bernd



___
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] \startchapter

2009-09-14 Thread Wolfgang Schuster


Am 14.09.2009 um 12:27 schrieb Bernd Militzer:


 \startsection[title={Getaŭfte A. dominj 1606},%
   list ={Geburten 1606},%
   bookmark ={Geb-1606},%
   reference={Geb:1606}]


remove the space between the keys and the '='

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


Re: [NTG-context] \startchapter

2009-09-14 Thread Bernd Militzer

Wolfgang Schuster schrieb:


Am 14.09.2009 um 12:27 schrieb Bernd Militzer:


 \startsection[title={Getaŭfte A. dominj 1606},%
   list ={Geburten 1606},%
   bookmark ={Geb-1606},%
   reference={Geb:1606}]


remove the space between the keys and the '='


thanks, Wolfgang, it works now!

Bernd

___
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] Footnote and type

2009-08-22 Thread Aditya Mahajan

Hi,

Another footnote bug in MKIV:

\starttext
\footnote{\type{\test}}
\stoptext

gives

! Undefined control sequence.
\@@ddfootnotetitle -\type {\test
  }
\doif #1#2-\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa 
\!!str...

\dododescriptioncomponent ...er \c!title }\v!none
  {\global 
\nodescriptioncap...

\@@notemakedescription ... ={#3},\c!bookmark =,][]
  \xdef \currentnotenumber 
{...

l.3 \footnote{\type{\test}}

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] expansion in xml section heads

2009-07-12 Thread Hans Hagen

Thomas A. Schmitz wrote:

Hi all,

I'm not sure if this is a bug or a feature, but I'm still having trouble 
understanding the new structure code. Here is a small example:


i messed up the xml part when i added support for list/mark/bookmark 
specification ... i'll fix it (and also make expansion recognize xml 
mode automatically)


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
___


[NTG-context] Problems in latest beta

2009-06-02 Thread Kevin D. Robbins
In the latest beta, I nearly have everything working for a set of documents
that haven't built cleanly in MkIV since Hans started merging the new
structure code. Thanks, Hans and others, for the steady progress! I've
started reading the new structure code, and I have to say I find it much
easier to understand.

I have a few remaining problems, that I've discovered so far, that I'd
appreciate any help you can give me.

First, I still haven't been able to use \placelistofacronyms or
\completelistofacronyms to produce a list of acronyms used in my document.

Here is my test case:
=
\definesynonyms[acronym][acronyms][\infull]
\setupcapitals[sc=yes]
\setupsynonyms[acronym][textstyle=small,width=1.25in]

\acronym{ABC}{A Better Compiler}
\acronym{DEF}{Don't Ever Fail}

\starttext

\completelistofacronyms

% \title{Acronyms}\placelistofacronyms

\section{\ABC\ Section}
\infull{ABC} (\ABC)

\section{\DEF\ Section}
\infull{DEF} (\DEF)

\stoptext
=

Here is the error:
=
structure   : chapter @ level 2 : 0.1 - \headtext {acronyms}
! Undefined control sequence.
\dosetsynonymattributes ...def \fontattributehash
  {\synonymparameterhash
#1}...
\@@ddsyndeftitle ...tes \c!textstyle \c!textcolor
  ABC
\doif #1#2-\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa
\!!str...
\dododescriptioncomponent ...er \c!title }\v!none
  {\global
\nodescriptioncap...
\@@makedescription ...itle ={#2},\c!bookmark =,][]

\@@dostartdescriptionindeed
\dodowithpar ...tes \c!textstyle \c!textcolor ABC}
  #1\@@stopdescription
...
l.10 \completelistofacronyms
=

Second, I use the following float definitions for wide figures and tables.
The floats are placed as I expect, but neither the wide figures nor the wide
tables are given numbers in the caption...I just see Figure  Foo, bar, baz
instead of Figure 1  Foo, bar, baz. However, the other figures and tables
are numbered correctly, so it looks like the counters are incremented, just
not used in the captions for wide figures and tables.

\definefloat[widefigure][widefigures][figure]
\setupfloat[widefigure]
  [location=inner]

\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

Here is a test case:
=
\definefloat[widetable][widetables][table]
\setupfloat[widetable]
  [location=inner]

\starttext

\completelistoftables
\page[yes]

\placewidetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\placetable[here,force][tab:foo]{Bar}
{\starttable
   [s1
|lp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)
|rp(.25\textwidth)|]
  \HL[5]
  \NC Foo \NC \Use4[c]{Bar} \AR
  \NC
  \NC Baz
  \NC Boo
  \NC Blah
  \NC Flub \NC \AR
  \HL[5]
  \NC Bop \NC 3 \NC 1 \NC 0   \NC 2   \NC \AR
  \NC Bap \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Bip \NC 1 \NC 2 \NC 3   \NC 0   \NC \AR
  \NC Nip \NC 3 \NC 2 \NC 0.5 \NC 0.5 \NC \AR
  \NC Nup \NC 2 \NC 2 \NC 0   \NC 0   \NC \AR
  \HL[5]
 \stoptable}

\stoptext
=

Third, I can't get my appendices to count in letters A, B, C, etc. Following
Hans' suggestion, I read
strc-def.mkivhttp://source.contextgarden.net/tex/context/base/strc-def.mkiv?search=conversionsetre:
conversion sets. I tried adding these lines to my document:

\definestructureseparatorset  [appendix] [] [.]
\definestructureconversionset [appendix] [Romannumerals,Characters] [numbers]
\definestructureresetset  [appendix] [] [0]
\setupstructureblock[appendix][sectionconversionset=appendix]
\setupstructurehead[chapter][sectionconversionset=\structureblockparameter\c!sectionconversionset]

But, I still see the appendices counting 1, 2, 3, etc. Where am I going wrong?

I built all these examples using ConTeXt Minimals Versions:

MTXrun | main context file:
/opt/context/beta/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2009.06.02 09:30

This is LuaTeX, Version beta-0.40.1-2009050920 (Web2C 7.5.7) luatex.web =
v2376

Thanks,

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

Re: [NTG-context] beta

2009-05-11 Thread Wei-Wei Guo

Hans Hagen 写道:



i uploaded a beta with some fixes



The following bug is still there.


! Argument of \dotripletestemptyx has an extra }.
inserted text
\par
to be read again
   }
\doif #1#2-\edef \!!stringa {#1}
 \edef \!!stringb {#2}\ifx \!!stringa \!!str...
\dostructurecountercomponent ...\c!title }\v!none
  {\setfalse \hasstructureco...
\docompletefloat ...c!title ={#4},\c!bookmark =][]
  \globallet \currentfloatnu...
argument ...\footnote {Test footnote.}}\nextbox
  \else \docompletefloat {ta...
...
l.12 {\placelocalfootnotes}


Example:


\starttext

\startlocalfootnotes
\placetable{Test table\footnote{Test footnote.}}
\placelegend{
\starttable[|l|l|]
  \HL
  \NC East \NC North \NC \FR
  \NC West \NC South \NC  \LR
  \HL
\stoptable}
{\placelocalfootnotes}
\stoplocalfootnotes

\stoptext


Best wishes,
Wei-Wei
___
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] bugs in beta

2009-05-07 Thread Henning Hraban Ramm

Am 2009-05-07 um 13:38 schrieb Wolfgang Schuster:

My minimal example shows some more problems, but these are probably  
because \recurselevel isn't expanded at the right time...

\dorecurse{1000}{Use \type{\expanded{...}}\par}


Hä? Was soll das?
I don't want to \type some command, but just to expand \recurselevel  
before processing.

Of course I tried \expanded before, but I only get an error:

! Argument of \rawprocesscommalist has an extra }.
inserted text
\par
to be read again
   }
\@@ddfootnotetitle ...{\expanded {\recurselevel }}
  \par
\doif #1#2-\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa  
\!!str...

\dododescriptioncomponent ...er \c!title }\v!none
  {\global  
\nodescriptioncap...

\@@notemakedescription ... ={#3},\c!bookmark =,][]
  \edef  
\currentnotenumber {...

...
l.17 }




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] What happened with sectionworld?

2009-04-29 Thread Hans Hagen

Henning Hraban Ramm wrote:

Am 2009-04-28 um 20:53 schrieb Wolfgang Schuster:

\setupsectionworld is unknown in latest beta (at least since some 
betas before).


removed from mkiv a *long* time ago, there is now \startchapter etc.



Long time in ConTeXt means less than a year...
In 2008-08 Hans still wrote he wouldn't know if he would extend the 
sectionworld in MkIV.


The discussion about \startsection ... \stopsection was in 2007!

I don't understand how to use \startchapter[]{} ... \stopchapter for my 
needs.


\startchapter[title=,reference=,bookmark=,...][optional user data]

\stopchapter


-
  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] What happened with sectionworld?

2009-04-29 Thread Wolfgang Schuster


Am 29.04.2009 um 10:24 schrieb Hans Hagen:

I don't understand how to use \startchapter[]{} ... \stopchapter  
for my needs.


\startchapter[title=,reference=,bookmark=,...][optional user data]


is optional data in keyval form or normal text and who to use
own values for author, date etc. in titles (which was possible
in sectionworld)

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


Re: [NTG-context] What happened with sectionworld?

2009-04-29 Thread R. Bastian
On Wed, 29 Apr 2009 12:24:01 +0200
Wolfgang Schuster schuster.wolfg...@googlemail.com scribit:

 
 Am 29.04.2009 um 10:24 schrieb Hans Hagen:
 
  I don't understand how to use \startchapter[]{} ... \stopchapter  
  for my needs.
 
  \startchapter[title=,reference=,bookmark=,...][optional user data]
 
 is optional data in keyval form or normal text and who to use
 own values for author, date etc. in titles (which was possible
 in sectionworld)
 
 Wolfgang
 

The \startchapter does not exist in my MinimalContex installation, but
I hope one can include it.

Anyway: which is the best method to get the list of all params
one can give to \startSOMETHING  (in this case \startchapter and 
the meanings of this params (some are obvious : title= ..., but not all).


___
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] What happened with sectionworld?

2009-04-29 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 29.04.2009 um 10:24 schrieb Hans Hagen:

I don't understand how to use \startchapter[]{} ... \stopchapter for 
my needs.


\startchapter[title=,reference=,bookmark=,...][optional user data]


is optional data in keyval form or normal text and who to use
own values for author, date etc. in titles (which was possible
in sectionworld)


key = value

with \structureuservalue{key}, unless it's broken -)

the info travels with the list data as well so eventually it will be 
accessible everywhere



-
  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] What happened with sectionworld?

2009-04-29 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Wolfgang,

On Wed, 29 Apr 2009 06:54:50 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:



Anyway: which is the best method to get the list of all params
one can give to \startSOMETHING  (in this case \startchapter and
the meanings of this params (some are obvious : title= ..., but not  
all).


http://pragma-ade.nl/show-man-10.htm


I did not see the ne sectioning there... Anyway

\startchapter[title=,reference=,bookmark=,...][optional user data]

Could you [or someone] give a couple of example of how to use

[optional user data]

Also, where in the base files does this stuff get defined? I could not  
find it.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] What happened with sectionworld?

2009-04-29 Thread Henning Hraban Ramm

Am 2009-04-29 um 15:53 schrieb Mohamed Bana:


Would it be possible to go through a deprecation phase?  E.g., allow

 \section hello world

to compile, but prompt the user to acknowledge that it's going to be  
replaced with \section{hello world} in future versions.


Please don't mix your concern about structurals without braces into  
this thread, would you please? Or is it the same topic?

I agree that it would be nice to know if commands disappear.


I try to understand here, how to redo my chapter setup that once  
worked using sectionworld commands.

At the moment I get no output for the chapter title at all.

My input reads:

\Titel{Author}{Title}{Subtitle}

The output as chapter title should become like:

\vbox{
{\rm\tf Author\crlf}
{\ss\bfb Title\crlf}
{\ss\bf Subtitle}
}

In the table of contents I need:

Author: Title \hfill pagenumber


So, using \startchapter, I define \Titel like this:

  \def\Titel#1#2#3{\startchapter[title={#2},bookmark={#2}] 
[author={#1},subtitle={#3}]}


I guess, even \startchapter should obey to \setuphead[chapter]:

\setuphead[chapter][
   header=high,
   incrementnumber=no,
   command=\ChapterCommand,
   page=yes, number=no,
   align={flushleft,nothyphenated,verytolerant},
   style=,]

Therefore I define (i.e. Wolfgang defined) \ChapterCommand like:

  \def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle 
\ChapterSubTitle}}


While \ChapterAuthor cum suis is defined in a setup.
Now, what's the replacement for:

  \setupsectionworld[chapter][setups={chapter:list},author=]

I tried to adapt Wolfgang's code to Hans' sparse hints:

\unprotect
\resetvalue{\??sw\v!chapter}

\startsetups chapter:list

  \doiftextelse{\structureuservalue{author}}
{\expanded{\writetolist[\v!chapter]
  {\structureuservalue{author}:\space
   \structurevalue{title}}{}}}
{\expanded{\writetolist[\v!chapter]
  {\structurevalue{title}}{}}}

  \def\ChapterAuthor{%
\doiftextelse%
{\structureuservalue{author}}%
{\rm\tf\structureuservalue{author}\crlf\vskip0.25em}
{}%
  }
  \def\ChapterTitle{{\ss\bfb\structurevalue{title}}}
  \def\ChapterSubTitle{%
\doiftextelse%
{\structureuservalue{subtitle}}%
{\crlf\vskip0.2em\ss\bf\structureuservalue{subtitle}}%
{}%
  }

\stopsetups

\def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle 
\ChapterSubTitle}}


% why is/was this needed?
\let\ChapterAuthor\relax
\let\ChapterTitle\relax
\let\ChapterSubTitle\relax

\protect


(The original code is still in http://wiki.contextgarden.net/Proceedings_style)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] What happened with sectionworld?

2009-04-29 Thread R. Bastian
On Wed, 29 Apr 2009 09:07:53 -0600
Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu scribit:

 Hi Wolfgang,
 
 On Wed, 29 Apr 2009 06:54:50 -0600, Wolfgang Schuster  
 schuster.wolfg...@googlemail.com wrote:
 
  Anyway: which is the best method to get the list of all params
  one can give to \startSOMETHING  (in this case \startchapter and
  the meanings of this params (some are obvious : title= ..., but not  
  all).
 
  http://pragma-ade.nl/show-man-10.htm
 
 I did not see the ne sectioning there... Anyway
 
 \startchapter[title=,reference=,bookmark=,...][optional user data]
 
 Could you [or someone] give a couple of example of how to use
 
 [optional user data]
 
 Also, where in the base files does this stuff get defined? I could not  
 find it.
 
 Best wishes
 Idris
 
 -- 
 Professor Idris Samawi Hamid, Editor-in-Chief
 International Journal of Shi`i Studies
 Department of Philosophy
 Colorado State University
 Fort Collins, CO 80523

May be that ConTeXt is not a 'context free language'  ;-)
than it will be difficult to express something in a BNF grammar
http://en.wikipedia.org/wiki/Backus-Naur_form.

But if (ConTeXt == formal_language), it should be possible to
develop TEXT, NUMBER, DIMENSION, REFERENCE, etc
and also to add examples for [optional user data].

rb

 ___
 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] What happened with sectionworld?

2009-04-29 Thread Wolfgang Schuster


Am 29.04.2009 um 17:07 schrieb Idris Samawi Hamid ادريس سماوي  
حامد:



Hi Wolfgang,

On Wed, 29 Apr 2009 06:54:50 -0600, Wolfgang Schuster schuster.wolfg...@googlemail.com 
 wrote:



Anyway: which is the best method to get the list of all params
one can give to \startSOMETHING  (in this case \startchapter and
the meanings of this params (some are obvious : title= ..., but  
not all).


http://pragma-ade.nl/show-man-10.htm


I did not see the ne sectioning there... Anyway


You're welcome to add missing command to cont-en.xml


\startchapter[title=,reference=,bookmark=,...][optional user data]

Could you [or someone] give a couple of example of how to use

[optional user data]

Also, where in the base files does this stuff get defined? I could  
not find it.


strc-sec.tex

start/stop commands are created with \definehead automatically

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


Re: [NTG-context] What happened with sectionworld?

2009-04-29 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Wed, 29 Apr 2009 12:14:38 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:



\startchapter[title=,reference=,bookmark=,...][optional user data]

Could you [or someone] give a couple of example of how to use

[optional user data]

Also, where in the base files does this stuff get defined? I could not  
find it.


strc-sec.tex

start/stop commands are created with \definehead automatically


ok, thnx! OTOH, I did not see any illustrative examples of the use of
[optional user data]

:-)

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] What happened with sectionworld?

2009-04-29 Thread Hans Hagen

Idris Samawi Hamid ادريس سماوي حامد wrote:
On Wed, 29 Apr 2009 12:14:38 -0600, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



\startchapter[title=,reference=,bookmark=,...][optional user data]

Could you [or someone] give a couple of example of how to use

[optional user data]

Also, where in the base files does this stuff get defined? I could 
not find it.


strc-sec.tex

start/stop commands are created with \definehead automatically


ok, thnx! OTOH, I did not see any illustrative examples of the use of
[optional user data]

:-)


of course not .. its; new -)

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

2009-04-28 Thread Wei-Wei Guo

Hans Hagen 写道:


I uploaded a beta just before leaving for bachotek. Quite some structure 
(lua) code has been overhauled and i need to finish some bits.




Have fun!



As I'm redoing the backend as well as cross referencing some interaction 
features might be broken but normally they are easy to fix (once i know 
what fails). So, best collect all bugs while i'm away so that i can deal 
with then at once.




I got an error here.

! Argument of \dotripletestemptyx has an extra }.
inserted text
\par
to be read again
   }
\doif #1#2-\edef \!!stringa {#1}
 \edef \!!stringb {#2}\ifx \!!stringa 
\!!str...
\dostructurecountercomponent ...\c!title }\v!none
  {\setfalse 
\hasstructureco...
\docompletefloat ...c!title ={#4},\c!bookmark =][]
  \globallet 
\currentfloatnu...
argument ...\footnote {Test footnote.}}\nextbox
  \else \docompletefloat 
{ta...
...
l.13 {\placelocalfootnotes}

Minimal example:

\starttext

\startlocalfootnotes
\placetable{Test table\footnote{Test footnote.}}
\placelegend{
\starttable[|l|l|]
  \HL
  \NC East \NC North \NC \FR
  \NC West \NC South \NC  \LR
  \HL
\stoptable}
{\placelocalfootnotes}
\stoplocalfootnotes

\stoptext


2. And another thing I have mentioned before. I just want to arise your 
attention.

The underlines set by textbackground are not stable. Their vertical positions 
are
not predictable.

Minimal example:

\startuseMPgraphic{mpos:par:columnset:textuline}
  \iftracepositions show_multi_pars \else draw_multi_pars \fi ;
  path p ; p := boundingbox currentpicture ;
  currentpicture := currentpicture shifted (0,0.1*StrutDepth) ;
  setbounds currentpicture to p ;
\stopuseMPgraphic

\definetextbackground
  [underline]
  [location=text,
   alternative=1,
   mp=mpos:par:columnset:textuline,
   background=,
   frame=off]

\starttext

\underline{blurblur}

\underline{blurblur}

\underline{blurblur}

\underline{blurblur}

\stoptext


Best wishes,
Wei-Wei
___
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] new structure code

2009-04-24 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:


Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21 
16:11 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. 
I've been using \nolist with long table captions, so I don't get the 
whole caption in the list of tables. Is there a new way to accomplish 
this?



\defineselector[caption][max=2,n=2]

\starttext

\start
\setupselector[caption][n=1]
\completelistoftables
\stop

\placetable
  {\select{caption}{Foo.}{Foo. Bar, Baz}}
  {...}

\stoptext


ah .. you always surprise me .. i'd even forgot about that one

upcoming structure code will provide

\startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}] 





-
  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] new structure code

2009-04-24 Thread Kevin D. Robbins
On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen pra...@wxs.nl wrote:

 Wolfgang Schuster wrote:


 Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:

  Hi all,

 I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11
 and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been
 using \nolist with long table captions, so I don't get the whole caption in
 the list of tables. Is there a new way to accomplish this?



 \defineselector[caption][max=2,n=2]

 \starttext

 \start
 \setupselector[caption][n=1]
 \completelistoftables
 \stop

 \placetable
  {\select{caption}{Foo.}{Foo. Bar, Baz}}
  {...}

 \stoptext


 ah .. you always surprise me .. i'd even forgot about that one

 upcoming structure code will provide

 \startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}]



You anticipated my next question! This is great news...I've always wanted to
be able to specify the text that should go in the bookmark when the title
itself includes markup.

But, will there be similar support for specifying bookmark text for things
like \completelistoffigures? Right now, the bookmark says something like
'\headtext{figures}' in my PDF viewer.

Thanks again,

Kevin
___
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] new structure code

2009-04-24 Thread Hans Hagen

Kevin D. Robbins wrote:

On Fri, Apr 24, 2009 at 12:36 PM, Hans Hagen pra...@wxs.nl wrote:


Wolfgang Schuster wrote:


Am 24.04.2009 um 19:22 schrieb Kevin D. Robbins:

 Hi all,

I just wanted to add that with the latest ConTeXt beta 2009.04.21 16:11
and LuaTeX beta-0.40.0-200904, \nolist is no longer defined. I've been
using \nolist with long table captions, so I don't get the whole caption in
the list of tables. Is there a new way to accomplish this?



\defineselector[caption][max=2,n=2]

\starttext

\start
\setupselector[caption][n=1]
\completelistoftables
\stop

\placetable
 {\select{caption}{Foo.}{Foo. Bar, Baz}}
 {...}

\stoptext


ah .. you always surprise me .. i'd even forgot about that one

upcoming structure code will provide

\startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}]




You anticipated my next question! This is great news...I've always wanted to
be able to specify the text that should go in the bookmark when the title
itself includes markup.


that has always been possible ...

\chapter{Some Text}

\bookmark{Overloads the previous one}


But, will there be similar support for specifying bookmark text for things
like \completelistoffigures? Right now, the bookmark says something like
'\headtext{figures}' in my PDF viewer.


you can turn on expansion (\setuplist[figure][expansion=yes]) but indeed 
 this will be taken care of;



-
  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] \section and luatex

2009-04-19 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 19.04.2009 um 12:53 schrieb Alex Lubberts:


\section is like any other command. All commands take the first
character as parameter.


Not in MkII, it was also possible to use the end of the paragraph as 
delimiter.


indeed, and i dropped it in mkiv, where we have:

\chapter [ref] {title}
\chapter {title}

and, when ownnumbers are used:

\chapter [ref] {nr} {title}
\chapter   {nr} {title}

and, when structure is wanted (at least that is the idea):

\startchapter [settings] [userdata]

where the first argument sets the title, reference, bookmark, etc and 
the second is up to the user who then can request that info; userdata is 
carried around also in lists (an example of userdata can be an image 
name that is used in typesetting the title as well has to show up in the 
toc; examples of usage will show up in due time)


the mkiv mechanism is also more clever in the sense that it deals with 
roundtrip xml and such



-
  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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-13 Thread Nikolai Weibull
On Tue, Mar 10, 2009 at 13:44, Nikolai Weibull n...@bitwi.se wrote:

 In neither --lua nor --xtx do I get a list of
 abbreviations with \completelistofabbreviations.  The bookmark text is
 \headtext {abbreviations} for both.

Can I at least get an acknowledgement that this is a problem with
LuaTeX and that there's no simple fix at the moment so that I can
begin working around it?

Thanks.
___
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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-13 Thread luigi scarso
On Tue, Mar 10, 2009 at 1:44 PM, Nikolai Weibull n...@bitwi.se wrote:
 Hi!

 Long time no post.  Anyway, I’m writing a document where I’m using
 abbreviations.  In neither --lua nor --xtx do I get a list of
 abbreviations with \completelistofabbreviations.  The bookmark text is
 \headtext {abbreviations} for both.  With --pdf I get a list of
 abbreviations and the bookmark text is abbreviations.  Here's a
 minimal example:

 \setupheadtext[en][abbreviations={Abbreviations Used in This Document}]

 \abbreviation{CSS}{Cascading Style Sheets}

 \setupinteraction
  [state=start,
   menu=on]
 \placebookmarks[chapter]

 \starttext

 \startbodymatter
 \CSS\ stands for \infull{CSS}.
 \stopbodymatter

 \startbackmatter
 \completelistofabbreviations
 \stopbackmatter

 \stoptext

$ context test.tex
seems to work ok here with latest minimals,
or I don't understand the problem .


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


[NTG-context] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-10 Thread Nikolai Weibull
Hi!

Long time no post.  Anyway, I’m writing a document where I’m using
abbreviations.  In neither --lua nor --xtx do I get a list of
abbreviations with \completelistofabbreviations.  The bookmark text is
\headtext {abbreviations} for both.  With --pdf I get a list of
abbreviations and the bookmark text is abbreviations.  Here's a
minimal example:

\setupheadtext[en][abbreviations={Abbreviations Used in This Document}]

\abbreviation{CSS}{Cascading Style Sheets}

\setupinteraction
  [state=start,
   menu=on]
\placebookmarks[chapter]

\starttext

\startbodymatter
\CSS\ stands for \infull{CSS}.
\stopbodymatter

\startbackmatter
\completelistofabbreviations
\stopbackmatter

\stoptext
___
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] PDF bookmarks appear twice

2008-12-31 Thread Andrey Riabushenko
I have found similar issue was discussed in this list, but it doesn't contain 
a suitable solution for me


These command work just fine to add bookmark for every part, chapter and etc.
\setupinteraction [state=start]
\setupinteractionscreen [option=bookmark]
\placebookmarks [part,chapter,section,subsection] [chapter]


But I want to add three additional bookmarks (without adding them to the 
contents): title page, resume(second page), contents.

I have defined it the following way:


\definemakeup[Titlepage][pagestate=start, page=right]
\definemakeup[Resume][pagestate=start, page=right]

\definestartstop[Abstract][before={\page[blank,right] \midaligned{\bf 
Abstract}\startnarrower[2*middle]}, after={\stopnarrower\blank[big] }]


\starttext
\startTitlepagemakeup
\bookmark[chapter]{Title  page}
\tfd Title page \\
\stopTitlepagemakeup

\startResumemakeup
  \bookmark[chapter]{Resume}
  \startAbstract
Abstract paragraph full of text
  \stopAbstract
  Author name
\stopResumemakeup

\title{Contents}
\bookmark[chapter]{Contents}
\placecontent[interaction=all]
\stoptext

In this case bookmarks appear twice in the bookmark menu. If I use \bookmark{} 
without [chapter] the bookmarks do not appear at all. I have tried to put 
bookmarks out of start/stop environments but it didn't help.

How to work around this issue?
___
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] Interaction and accented letters

2008-09-22 Thread Mojca Miklavec
On Sat, Sep 20, 2008 at 11:19 AM, Flavien Lambert wrote:
 In fact, I have just checked that this options are not necessary. I forgot
 to say that I was using XeTeX. It seems that, even with these options,
 accented letters are not printed properly in the properties of the document.
 There is no problems with standard ConTeXt (MKII).

See the thread
  [Dev-luatex] Unicode in \pdfinfo

--
 I suspected that, since hyperrref with latex does this, but I found that
 xetex supports Unicode pdfinfo directly and thought luatex should do
 this too.

Yes, hyperref with LaTeX does this, but I recommend looking at _how_ it
does this.  It is another case of code nobody but Heiko would come up
with and very few people would be able to maintain.
--

I fear that not many people are able to help, but you can still try to
bribe Hans (who doesn't use XeTeX himself) or Taco.

Mojca (who cannot sleep)


 2008/9/19 Braslau  Rachline wrote:

 On Friday 19 September 2008 19:00:42 Flavien Lambert wrote:
  Dear all, is there a way to put accented letters in the interaction
  command
  ? I tried
  \setupinteraction[state=start,
author={Flavien Lambert},
title={Optique géométrique},
date={Septembre 2008}]
 
  and
 
  \setupinteraction[state=start,
author={Flavien Lambert},
title={Optique g\'eom\'etrique},
date={Septembre 2008}]
 
  but both trials led to strange things in Acrobat Reader and Evince.

 \enableregime[utf]
 \mainlanguage[fr]
 % before \placebookmarks :
 \input spec-tst % to prevent turning accented characters
% into their unaccented counterparts
 \placebookmarks[chapter,section,subsection][chapter,section]
 \setupinteraction[state=start, % make hyperlinks active, etc.
 option=bookmark,
 title={Titre accentué},
 subtitle={etc...},
 author={moi-même},
 keyword={français}]

 Works with acroread and okular...

 The \input spec-tst trick is somewhere in the documentation or wiki...




 --
 Flavien.
 
 Quantum objects are completely crazy but, at least, they are all crazy in
 the same way. R.P. Feynman.
___
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] Interaction and accented letters

2008-09-20 Thread Flavien Lambert
In fact, I have just checked that this options are not necessary. I forgot
to say that I was using XeTeX. It seems that, even with these options,
accented letters are not printed properly in the properties of the document.
There is no problems with standard ConTeXt (MKII).

2008/9/19 Braslau  Rachline [EMAIL PROTECTED]

 On Friday 19 September 2008 19:00:42 Flavien Lambert wrote:
  Dear all, is there a way to put accented letters in the interaction
 command
  ? I tried
  \setupinteraction[state=start,
author={Flavien Lambert},
title={Optique géométrique},
date={Septembre 2008}]
 
  and
 
  \setupinteraction[state=start,
author={Flavien Lambert},
title={Optique g\'eom\'etrique},
date={Septembre 2008}]
 
  but both trials led to strange things in Acrobat Reader and Evince.

 \enableregime[utf]
 \mainlanguage[fr]
 % before \placebookmarks :
 \input spec-tst % to prevent turning accented characters
% into their unaccented counterparts
 \placebookmarks[chapter,section,subsection][chapter,section]
 \setupinteraction[state=start, % make hyperlinks active, etc.
 option=bookmark,
 title={Titre accentué},
 subtitle={etc...},
 author={moi-même},
 keyword={français}]

 Works with acroread and okular...

 The \input spec-tst trick is somewhere in the documentation or wiki...




-- 
Flavien.

Quantum objects are completely crazy but, at least, they are all crazy in
the same way. R.P. Feynman.
___
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] Interaction and accented letters

2008-09-19 Thread Alan BRASLAU
On Friday 19 September 2008 19:00:42 Flavien Lambert wrote:
 Dear all, is there a way to put accented letters in the interaction command
 ? I tried
 \setupinteraction[state=start,
   author={Flavien Lambert},
   title={Optique géométrique},
   date={Septembre 2008}]

 and

 \setupinteraction[state=start,
   author={Flavien Lambert},
   title={Optique g\'eom\'etrique},
   date={Septembre 2008}]

 but both trials led to strange things in Acrobat Reader and Evince.

\enableregime[utf]
\mainlanguage[fr]
% before \placebookmarks :
\input spec-tst % to prevent turning accented characters
% into their unaccented counterparts
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteraction[state=start, % make hyperlinks active, etc.
option=bookmark,
title={Titre accentué},
subtitle={etc...},
author={moi-même},
keyword={français}]

Works with acroread and okular...

The \input spec-tst trick is somewhere in the documentation or wiki...


___
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] mkii colour problem

2008-09-15 Thread Mohamed Bana
Hi everbody,

1.  Blank links source; http://pastebin.com/m4dd31559, Doesn't work, but
strangely enough color=urlcolour (the one below) does.  Log;
http://pastebin.com/m1034c274
2.  Colour links source; http://pastebin.com/m70fa91b6.  Log;
http://pastebin.com/m16be2374

Just compile the and you'll see for yourself.

So if I do use ucolour, the links are shown in black.  I can't compile the
file with mkiv, see http://thread.gmane.org/gmane.comp.tex.context/44025.

pdf using urlcolour; 
pdf using ucolour; 
 
% This results in black hyperlinks.
\definecolor[ucolour]   [c=0,m=0.83,y=1,k=0.7]
\definecolor[urlcolour] [c=0,m=0.51,y=1,k=0]

\setupinteraction[
state=start,
color=ucolour,
option=bookmark]




Mohamed

___
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] Mkiv Colour issue and more

2008-09-12 Thread abbg770
Hans Hagen pragma at wxs.nl writes:

  
  \definecolor[ucolour]   [c=0,m=0.83,y=1,k=0.7]
  \definecolor[urlcolour] [c=0,m=0.51,y=1,k=0]
  ...
  ...
  \setupinteraction[
  state=start,
 color=ucolour,
 option=bookmark]
  
  4. Doesn't work, but strangely enough color=urlcolour does. If I do 
  use ucolour, the links are shown in black; 
  http://filebin.ca/dnoqva/test.pdf or http://filebin.ca/dnoqva
 
 hm, i dunno, both work ok here
 

Could someone please try this out.  My links are still in black.

Output 
jpg (beware it's quiet big); http://imagebin.ca/view/VHwQ0w.html
pdf; http://filebin.ca/hbmgzk/test.pdf or http://filebin.ca/hbmgzk
Source; http://pastebin.com/f15e49b5e

  5. 
  \useURL[key][http://wiki.contextgarden.net/][][http://wiki.contextgarden.net/]
   
  fails, but \useURL[key][http://httpd.apache.org/download.cgi] works. 
  The former fails with; http://pastebin.com/f3cc75b10.
  
  I'm actually quiet baffled by this.  Also now the dots are green; 
  http://filebin.ca/cezdzr/test.pdf, http://filebin.ca/cezdzr or 
  http://www.4shared.com/file/62409267/2d29710c/test.html.
 
 how does that code look? (not in the sample file)

If I understood correctly; http://pastebin.com/f52799045 and the log;
http://pastebin.com/f3948a3ac

  7. Why aren't the the urls broken across lines, page2-3. I'm pretty 
  sure the hyperref package in latex supported this.
 
 no example; breaking urls is supported

Hans, look at http://imagebin.ca/view/VHwQ0w.html.  The code used is;

\dorecurse{6}{Download Apache at \from[apache]}

It's from the end of http://pastebin.com/f15e49b5e.  Am I missing an option
somewhere?

  8. What must I do to the 3rd paragraph on the first page to get it to 
  space properly? It's far too close to the previous one.
 
 ?

1st page, 3rd paragraph; http://filebin.ca/dnoqva/test.pdf or 
http://filebin.ca/dnoqva. Here's a screenshot; 
http://imagebin.ca/view/5Es-dHG.html

  9. the d in praised protrudes to the margin, how do I stop this. I 
  should point out that this happens often.
 
 depends ... || should handle it
 

I was thinking more on the lines of letting ConTeXt ensure that I never 
have a character protude into the margin, is this possible?

___
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] Mkiv Colour issue and more

2008-09-10 Thread Hans Hagen
Mohamed Bana wrote:
 luatex --version
 This is LuaTeX, Version snapshot-0.29.0-2008072009
 
 texexec --version
 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
 
 The file source; http://pastebin.com/f4923f52c.
 
 \placecontent[criterium=chapter,
  level=section,
  color=headingcolour,
interaction=all,
alternative=c,
  aligntitle=yes,
  before={\startnarrower[0*left,8*right]},
  after={\stopnarrower},
  margin=2em]
 \blank[2*big]
 
 1.  The first line 1.1 section1 . . . . . . . . . . . . . . . . . . . . . . 
 . 
 .. . . . 1  is red!  This is only the case with mkiv.  
  
 mkii;  http://filebin.ca/vfqedy/test.pdf or http://filebin.ca/vfqedy
 mkiv;  http://filebin.ca/xmupe/test.pdf or http://filebin.ca/xmupe

i'll have a look at it ... there is some leader bug in luatex itself 
that might to be solved first

 2.  Is it possible to have the \blank[2*big] generated by the placecontent 
 command?  The default space generated after chapter seems fine, but I'd 
 really 
 like to have a listing of the sections after the chapter.


\startsetups chapter:after
 \blank[2*big]
 \placecontent % or \placelist[section][]
[criterium=chapter,
 level=section,
 color=headingcolour,
 interaction=all,
 alternative=c,
 aligntitle=yes,
 before={\startnarrower[0*left,8*right]},
 after={\stopnarrower},
 margin=2em]
 \blank[2*big]
\stopsetups

\setuphead[chapter][after=\setups{chapter:after}]

 3.  Am I missing something?  I'd like the same effect or better without the 
 explicit call to \startnarrower or \stopnarrower

no problem with startnarrower but you might want to use the nicer looking

\startsetups chapter:after
 \blank[2*big]
 \startnarrower[0*left,8*right]
 \placecontent
[criterium=chapter,
 level=section,
 color=headingcolour,
 interaction=all,
 alternative=c,
 aligntitle=yes,
 before=,
 after=,
 margin=2em]
 \stopnarrower
 \blank[2*big]
\stopsetups


 \definecolor[ucolour]   [c=0,m=0.83,y=1,k=0.7]
 \definecolor[urlcolour] [c=0,m=0.51,y=1,k=0]
 ...
 ...
 \setupinteraction[
   state=start,
color=ucolour,
option=bookmark]
 
 4.  Doesn't work, but strangely enough color=urlcolour does.  If I do use 
 ucolour, the links are shown in black;  http://filebin.ca/dnoqva/test.pdf 
 or 
 http://filebin.ca/dnoqva

hm, i dunno, both work ok here

 5.  
 \useURL[key][http://wiki.contextgarden.net/][][http://wiki.contextgarden.net/]
  
 fails, but \useURL[key][http://httpd.apache.org/download.cgi] works.  The 
 former fails with; http://pastebin.com/f3cc75b10.  
 
 I'm actually quiet baffled by this.  Also now the dots are green; 
 http://filebin.ca/cezdzr/test.pdf, http://filebin.ca/cezdzr or 
 http://www.4shared.com/file/62409267/2d29710c/test.html.

how does that code look? (not in the sample file)

 6.  Why aren't the paragraphs that have a picture to the right or left 
 indented 
 on the first line?  Compare the paragraphs on page1-section1 with those on 
 page2-section3.

feature -)

 7.  Why aren't the the urls broken across lines, page2-3.  I'm pretty sure 
 the 
 hyperref package in latex supported this.

no example; breaking urls is supported

 8.  What must I do to the 3rd paragraph on the first page to get it to space 
 properly?  It's far too close to the previous one.

?

 9.  the d in praised protrudes to the margin, how do I stop this.  I should 
 point out that this happens often.

depends ... || should handle it

 10.  And the last question :).  Is it possible to get a table of contents 
 similar to that on page 36 of 'the elements of typographic style'?  I.e.,  
 
 chapter-namex - page x
 chapter-namey - page y
 chapter-namez - page z
 
 and it's centered aligned according to the -. 

hook in a command that does it

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
___


[NTG-context] Mkiv Colour issue and more

2008-09-09 Thread Mohamed Bana
 luatex --version
This is LuaTeX, Version snapshot-0.29.0-2008072009

 texexec --version
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

The file source; http://pastebin.com/f4923f52c.

 \placecontent[criterium=chapter,
   level=section,
   color=headingcolour,
interaction=all,
alternative=c,
   aligntitle=yes,
   before={\startnarrower[0*left,8*right]},
   after={\stopnarrower},
   margin=2em]
\blank[2*big]

1.  The first line 1.1 section1 . . . . . . . . . . . . . . . . . . . . . . . 
. . . . 1  is red!  This is only the case with mkiv.  
 
mkii;  http://filebin.ca/vfqedy/test.pdf or http://filebin.ca/vfqedy
mkiv;  http://filebin.ca/xmupe/test.pdf or http://filebin.ca/xmupe

2.  Is it possible to have the \blank[2*big] generated by the placecontent 
command?  The default space generated after chapter seems fine, but I'd really 
like to have a listing of the sections after the chapter.
3.  Am I missing something?  I'd like the same effect or better without the 
explicit call to \startnarrower or \stopnarrower

\definecolor[ucolour]   [c=0,m=0.83,y=1,k=0.7]
\definecolor[urlcolour] [c=0,m=0.51,y=1,k=0]
 ...
 ...
 \setupinteraction[
state=start,
color=ucolour,
option=bookmark]

4.  Doesn't work, but strangely enough color=urlcolour does.  If I do use 
ucolour, the links are shown in black;  http://filebin.ca/dnoqva/test.pdf or 
http://filebin.ca/dnoqva

5.  
\useURL[key][http://wiki.contextgarden.net/][][http://wiki.contextgarden.net/] 
fails, but \useURL[key][http://httpd.apache.org/download.cgi] works.  The 
former fails with; http://pastebin.com/f3cc75b10.  

I'm actually quiet baffled by this.  Also now the dots are green; 
http://filebin.ca/cezdzr/test.pdf, http://filebin.ca/cezdzr or 
http://www.4shared.com/file/62409267/2d29710c/test.html.

6.  Why aren't the paragraphs that have a picture to the right or left indented 
on the first line?  Compare the paragraphs on page1-section1 with those on 
page2-section3.

7.  Why aren't the the urls broken across lines, page2-3.  I'm pretty sure the 
hyperref package in latex supported this.

8.  What must I do to the 3rd paragraph on the first page to get it to space 
properly?  It's far too close to the previous one.

9.  the d in praised protrudes to the margin, how do I stop this.  I should 
point out that this happens often.

10.  And the last question :).  Is it possible to get a table of contents 
similar to that on page 36 of 'the elements of typographic style'?  I.e.,  

chapter-namex - page x
chapter-namey - page y
chapter-namez - page z

and it's centered aligned according to the -. 




% engine=luatex
\showframe
\mainlanguage[uk]
\language[uk]
\enableregime[utf]

\setuppapersize[A4]
\setuppagenumbering[alternative=doublesided]

% PARAGRAPH
\setupindenting[big,yes]

% COLOURS
\setupcolor[hex]
\setupcolors[state=start]
\definecolor[urlcolour][c=0,m=0.83,y=1,k=0.70]
\definecolor[headingcolour][c=1,m=0.56,y=0,k=0]

\setuphead[section,chapter,subject][color=headingcolour]
\setuphead [chapter]  [style=\ss\bfd,color=headingcolour]
\setuphead [section]  [style=\ss\bfc,color=headingcolour]
\setuphead [subsection]   [style=\ss\bfb,color=headingcolour]
\setuphead [subsubsection][style=\ss\bfa,color=headingcolour]

\setupinteraction[
state=start,
color=urlcolour,
option=bookmark]

\useURL[authoremail][mailto:[EMAIL PROTECTED]@longemail.com]


\starttext

\chapter{flower Flower}
\placecontent[criterium=chapter,
level=section,
color=headingcolour,
interaction=all,
alternative=c,
aligntitle=yes,
before={\startnarrower[0*left,8*right]},
after={\stopnarrower},
margin=2em]
\blank[2*big]

\dorecurse{1}{
\section{section1}
\input zapf

\placefigure
   [left]
   [fig:project2]
   {Project2 - With Ali's cam}
   {\externalfigure[images/Project.jpg]}

\input zapf

\placefigure
   [right]
   [fig:project2]
   {Project2 - With Ali's cam}
   {\externalfigure[images/Project.jpg]}

\input zapf
}

\section{section2}
\dorecurse{2}{\input zapf

}
\section{section3}
\dorecurse{2}{\input zapf

}

\stoptext

___
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] Reorganization of the main page

2008-08-28 Thread Marcin Borkowski
Dnia Thu, Aug 28, 2008 at 04:35:18PM -0400, Aditya Mahajan napisa#322;(a):
 On Tue, 26 Aug 2008, Aditya Mahajan wrote:
  http://wiki.contextgarden.net/Main_Page_New
 
  If everyone agrees with the new design, I will replace the current main
  page.
 
 Since almost everyone liked the new design better, I have changed the main 
 page.

That's great - now I don't have to bookmark the Main_Page_New!
Thanks!

 
 Aditya

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

888
___
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] Numbered bookmarks in PDF

2008-08-27 Thread B. Tommy Jensen
I am struggling a bit with numbered bookmarks in PDF files.

In LaTex, the HyperRef package supports the option bookmarksnumbered =  
true which
adds the chapter numbers to the bookmark list.

Does anybody know of a similar option in ConText? I have searched the  
\setupinteraction
documentation, but haven't been able to locate anything useful.

All hints are welcome!

Best regards,
Tommy Jensen
___
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] Numbered bookmarks in PDF

2008-08-27 Thread B. Tommy Jensen
I am struggling a bit with numbered bookmarks in generated PDF files.

In LaTex, the HyperRef package supports the option bookmarksnumbered =  
true which
adds the chapter numbers to the bookmark list.

Does anybody know of a similar option in ConText? I have searched the
\setupinteraction documentation, but haven't been able to locate anything  
useful.

I have also tried the \bookmark command with reference to \headnumber, but  
macro
expansion does not take place.

All hints are welcome!

Best regards,
Tommy Jensen
___
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] Numbered bookmarks in PDF

2008-08-27 Thread Taco Hoekwater
B. Tommy Jensen wrote:
 I am struggling a bit with numbered bookmarks in generated PDF files.
 
 In LaTex, the HyperRef package supports the option bookmarksnumbered =  
 true which
 adds the chapter numbers to the bookmark list.
 
 Does anybody know of a similar option in ConText? I have searched the
 \setupinteraction documentation, but haven't been able to locate anything  
 useful.

There is no core support for this (yet?)

 I have also tried the \bookmark command with reference to \headnumber, but  
 macro
 expansion does not take place.
 
 All hints are welcome!

(guessing)

   \expanded{\bookmark{\headnumber\space text}

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


Re: [NTG-context] Numbered bookmarks in PDF

2008-08-27 Thread Hans Hagen
Taco Hoekwater wrote:
 B. Tommy Jensen wrote:
 I am struggling a bit with numbered bookmarks in generated PDF files.

 In LaTex, the HyperRef package supports the option bookmarksnumbered =  
 true which
 adds the chapter numbers to the bookmark list.

 Does anybody know of a similar option in ConText? I have searched the
 \setupinteraction documentation, but haven't been able to locate anything  
 useful.
 
 There is no core support for this (yet?)
 
 I have also tried the \bookmark command with reference to \headnumber, but  
 macro
 expansion does not take place.

 All hints are welcome!
 
 (guessing)
 
\expanded{\bookmark{\headnumber\space text}

since bookmarks do use lists the info is there but mkii bookmarks are 
not going to be extended; you have to wait for the mkiv overhaul

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

2008-08-08 Thread Khaled Hosny
Sorry, here is the file.

On Thu, Aug 07, 2008 at 03:55:33PM +0300, Khaled Hosny wrote:
 On Wed, Aug 06, 2008 at 09:51:13PM +0200, Hans Hagen wrote:
  Hi,
  
  We have a new release (unless severe problems show up, this release will 
  stay for a while). 
 
 I think there are some regression in Arabic support, the attached
 example gives intermingled Arabic in several places. I'm not sure when
 this exactly happened, but a PDF that was generated with ConTeXt -
 2008.06.28 and luaTeX-0.27.0 is fine.
 
 Regards,
  Khaled
 
 -- 
  Khaled Hosny
  Arabic localizer and member of Arabeyes.org team

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
% engine=luatex
\mainlanguage[ar]

% Font
\definefontfeature
   [arabic]
   [mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]

\starttypescript [serif] [arabic]
 \definefontsynonym [Arabic-Light]   [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold][name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Italic]  [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold-Italic] [name:arabtype] [features=arabic]
 \stoptypescript

\starttypescript [serif] [arabic] [name]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif]   [Arabic-Light]   [features=arabic]
 \definefontsynonym [SerifItalic] [Arabic-Italic]  [features=arabic]
 \definefontsynonym [SerifBold]   [Arabic-Bold][features=arabic]
 \definefontsynonym [SerifBoldItalic] [Arabic-Bold-Italic] [features=arabic]
\stoptypescript

\starttypescript [Arabic]
  \definetypeface [Arabic] [rm] [serif] [arabic] [default] 
\stoptypescript 

\def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT}
\def\ArabicParDir{\textdir TRT\pardir TRT}
\def\ArabicTextDir   {\textdir TRT}
\def\LatinParDir {\textdir TLT\pardir TLT}
\def\LatinTextDir{\textdir TLT}
\def\LatinGlobalDir  {\pagedir TLT\bodydir TLT\pardir TLT\textdir TLT}

\definestartstop
  [arabicpar]
  [commands=\Arabic\ArabicParDir]

\define[1]\AR
  {{\Arabic\ArabicTextDir#1}}

\define\setArabic
  {\ArabicGlobalDir%
   \usetypescript[Arabic]%
   \setupbodyfont[Arabic,20pt]}

\definestartstop
  [latinpar]
  [commands=\Arabic\LatinParDir]

\define[1]\LT
  {{\LatinTextDir#1}}

\define\setLatin
  {\LatinGlobalDir%
   \usetypescript[lm]%
   \setupbodyfont[lm,20pt]}

\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteractionscreen[option=bookmark]

\setupinteraction
   [state=start,
title={كيف تكتب عربي مع كُنْتِكِسْت},
author={خالد حسني},
subtitle={صف الحروف حاسوبيا مع تخ وكنتكست},
keyword={عربي تخ كنتكست صف محارف طباعة}]

\starttext

\setArabic

\startstandardmakeup
  \midaligned{كيف تكتب عربي في كُنْتِكِسْت}
  \midaligned{كتبه}
  \midaligned{خالد حسني}
\stopstandardmakeup

\completecontent

\chapter{مقدمة}
كُنْتِكِسْت \LT{(\CONTEXT)} هو حزمة ماكرو لنظام تخ \LT{(\TeX)} لصف المحارف.
\chapter{أول فصل}
\section[firstsection]{أول باب}
... كلام ...
\section{ثاني باب}
... كلام\index{فهرس آخر} ...
\subsection{ثاني مسألة}
... كلام ...
\section{ثالث باب}
... كلام ...
\chapter{فصل آخر}
... كلام ...
\chapter[lastchapter]{آخر فصل}
... كلام ...
\completeindex
\stoptext


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


Re: [NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Wolfgang Schuster
On Wed, Jul 9, 2008 at 11:06 PM, Sanjoy Mahajan [EMAIL PROTECTED] wrote:
 From this minimal example, the resulting PDF file opens with chapter and
 section bookmarks.  But it should open with just chapter bookmarks due
 to the second argument in this line:

 \placebookmarks
   [chapter,section]
   [chapter]

\placebookmarks
  [chapter,section]

 The problem is mentioned on the wiki
 http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers and I wasn't
 able to solve it by looking over the bookmark code in core-int.tex.

 I tried the example, with the same results, using Mk II 2008.05.21 (on
 my Debian i386 laptop), Mk II 2008.07.07 (live.contextgarden.net), and
 live Luatex.

 Any ideas?  Should I post an issue on the tracker, just for reference?

 \setupinteraction[state=start]
 \setupinteractionscreen[option=bookmark]
 \placebookmarks
   [chapter,section]
   [chapter]

 \starttext

 \chapter{One}

 \section{One A}
 \input tufte

 \section{One B}
 \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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Sanjoy Mahajan
Wolfgang Schuster [EMAIL PROTECTED] wrote:

  \placebookmarks
[chapter,section]
[chapter]
 
 \placebookmarks
   [chapter,section]

That's true meaning that my minimal example was too minimal!  
Giving no argument works here is that the default, i.e. with no second
argument to \placebookmarks, is to show the topmost level.

But if you have chapters, sections, and subsections but want to show
only chapter and section bookmarks, then

  \placebookmarks[chapter,section,subsection][chapter,section]

should work but it shows all three levels.

Here is a new minimal example showing the problem.  With the
[chapter,section] second argument, all three levels of bookmarks are
shown; without the second argument, only the first level is shown.  How
do you show two levels?

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks
   [chapter,section,subsection]
   [chapter,section]

\starttext

\chapter{One}

\section{One A}
\input tufte

\subsection{One A A}
\input knuth

\stoptext
___
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] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Wolfgang Schuster
On Thu, Jul 10, 2008 at 2:44 PM, Sanjoy Mahajan [EMAIL PROTECTED] wrote:
 Wolfgang Schuster [EMAIL PROTECTED] wrote:

  \placebookmarks
[chapter,section]
[chapter]

 \placebookmarks
   [chapter,section]

 That's true meaning that my minimal example was too minimal!
 Giving no argument works here is that the default, i.e. with no second
 argument to \placebookmarks, is to show the topmost level.

 But if you have chapters, sections, and subsections but want to show
 only chapter and section bookmarks, then

  \placebookmarks[chapter,section,subsection][chapter,section]

\placebookmarks
  [chapter,section,subsection]
  [chapter,section]

 should work but it shows all three levels.

What do you expect, you open the chater *and* the section branches.

 Here is a new minimal example showing the problem.  With the
 [chapter,section] second argument, all three levels of bookmarks are
 shown; without the second argument, only the first level is shown.  How
 do you show two levels?

 \setupinteraction[state=start]
 \setupinteractionscreen[option=bookmark]
 \placebookmarks
   [chapter,section,subsection]
   [chapter,section]

 \starttext

 \chapter{One}

 \section{One A}
 \input tufte

 \subsection{One A A}
 \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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Sanjoy Mahajan
Wolfgang Schuster [EMAIL PROTECTED] wrote:

 \placebookmarks
   [chapter,section,subsection]
   [chapter,section]
 
  should work but it shows all three levels.
 
 What do you expect, you open the chater *and* the section branches.

Thanks, now I understand what the second argument means: It's not what
levels are displayed but is rather what levels are opened (thereby
showing the level below).  

So, in order to show two levels (chapter and section):

  \placebookmarks
[chapter,section,subsection]
[chapter]

I'll fix the wiki page.  Too late: I just logged in to edit the page and
saw that the new page has the clarificiation.  Thanks, Taco!  I edited
the texshow-web entry for \placebookmarks.

For the record, here's a complete example for showing chapter and
section bookmarks:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks
   [chapter,section,subsection]
   [chapter]

\starttext

\chapter{I}

\section{I.A}
\input tufte

\subsection{I.A.1}
\input knuth

\subsubsection{I.A.1.a}

Too deep for easy understanding!

\section{I.B}
\input tufte

\stoptext
___
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] \placebookmarks: opening with only topmost levels visible

2008-07-09 Thread Sanjoy Mahajan
From this minimal example, the resulting PDF file opens with chapter and
section bookmarks.  But it should open with just chapter bookmarks due
to the second argument in this line:

\placebookmarks
   [chapter,section]
   [chapter]

The problem is mentioned on the wiki
http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers and I wasn't
able to solve it by looking over the bookmark code in core-int.tex.

I tried the example, with the same results, using Mk II 2008.05.21 (on
my Debian i386 laptop), Mk II 2008.07.07 (live.contextgarden.net), and
live Luatex.

Any ideas?  Should I post an issue on the tracker, just for reference?

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks
   [chapter,section]
   [chapter]

\starttext

\chapter{One}

\section{One A}
\input tufte

\section{One B}
\input knuth

\stoptext
___
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] table of contents and bookmarks issue

2008-07-07 Thread Alan Stone
Got fed up with context/xetex... Compiled with
texmfstart texexec --lua instead and as expected
(from a previous thread) bookmarks are scrambled
when using accented (french) characters.

Hope this (luatex) issue will be resolved very soon.

Thanks for the backward compatibility though. Didn't
have to change a single line of code.

Hyperlink/bookmark jumps are a better, however...

Can they be made so that they go to and include
the corresponding chapter/section title, instead of
jumping underneath them when in single page
continuous + page width mode ? It works that
way with word/openoffice generated pdfs.

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


Re: [NTG-context] startregister - stopregister

2008-07-03 Thread Wolfgang Schuster
On Wed, Jul 2, 2008 at 1:46 PM, Steffen Wolfrum [EMAIL PROTECTED] wrote:
 Hi,

 converting a MSWord Doc file to TEI-XML gives me this kind of index
 range:

 anchor type=bookmark-start xml:id=Index216/

 anchor type=bookmark-end corresp=#Index216/
  indextermVerfassungsvertrag/term/index



 Unfortunately in ConTeXt the register entry is required the other way
 round:

 \startregister[index][knuthrange1]{Knuth}

 \stopregister[index][knuthrange1]



 Could it be possible also to provide something like ...

 \startregister[index][Index216]

 \stopregister[index][Index216]{Verfassungsvertrag}


 ... in mkii, please?

You could use twopassdata to save then index entry in the first run
and pass it to \startregister in the second run.

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


[NTG-context] startregister - stopregister

2008-07-02 Thread Steffen Wolfrum
Hi,

converting a MSWord Doc file to TEI-XML gives me this kind of index  
range:

anchor type=bookmark-start xml:id=Index216/

anchor type=bookmark-end corresp=#Index216/ 
 indextermVerfassungsvertrag/term/index



Unfortunately in ConTeXt the register entry is required the other way  
round:

\startregister[index][knuthrange1]{Knuth}

\stopregister[index][knuthrange1]



Could it be possible also to provide something like ...

\startregister[index][Index216]

\stopregister[index][Index216]{Verfassungsvertrag}


... in mkii, please?


Steffen
___
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] [Dev-luatex] Unicode in \pdfinfo

2008-06-29 Thread Khaled Hosny
On Sat, Jun 28, 2008 at 11:39:07PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:
 On Sat, Jun 28, 2008 at 02:15:38PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:

 Thanks for the clarification, I'm trying to understand how stuff works
 and this helps definitely.
 So, could we've this support at context level, and every one will be
 happy :)
 you can try the beta ... (best move the discussion to the context 
 list  since it's not related that much to luatex)

 Now I can get pdfinfo correctly, but bookmarks are now just long strings
 starting with feff0, see the attached example.

 ah, due to loading order something gets overloaded

 i'll upload a new beta (a bit hackery)

 i wonder what bidi does in bookmarks and so ... maybe more is needed

 I don't think it'll need any special treatment since it'll rendered by
 the viewer UI widget, may be we need to strip formating commands if not
 done already.

 btw, for the moment do ...

 \startbackmatter
 \chapter{Index}
 \bookmark{Index}
 \placeindex
 \stopbackmatter

 headtexts are not expanded (but in mkiv this is no problem so i'll  
 change it there

Cool, it does work now :)

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


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


Re: [NTG-context] pdf bizareness...

2008-06-28 Thread Hans Hagen
Alan Stone wrote:
 Yep Hans, that one. Ok I won't bother about it any longer.
 
 Any clues regarding the other issues, i.e.
 
 (1) the scrambled PDF headers ?
 
 (2) the inability to lower the \pdfminorversion setting ?
 
 using
 
 - ConTeXt  ver: 2008.06.22 17:38 MKII  fmt: 2008.6.23 ( ctx minimal)
 - XeTeX, Version 3.1415926-2.2-0.999.1 (Web2C 7.5.6)

in pdf traditionally there was only pdf doc encoding; this is supported 
by default

when unicode encoding was added to the spec, i started supporting it too 
  and given that one enables it, traditional tex should work out ok (for 
instance chinese bookmark were possible)

i've now enabled it for luatex (context mkiv) and when that works ou ok 
i'll see if i can support it for xet ex too (the problem is that i need 
to rework some code in the spec drivers and that was not on my current 
agenda)

(it means that i need to replace defaults for pdftex/xetex/luatex and 
since luatex is experimental anyway, let's start there)

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] pdf bizareness...

2008-06-28 Thread Alan Stone
Ok Hans. Thanks for taking it into consideration. Take your time do to
whatever you intended to do first. It'll be worthwhile waiting for
sure.

The more I dig into ConTeXt the more I like it ( compared to LaTeX ) -
although the font handling is quite a tough nut to crack. XeTeX makes
it a bit more comprehensible, though I don't have a clue what I'm
doing. I just try different things and keep what works.

Thanks for all that you do.

Have a great weekend,
Alan


On Sat, Jun 28, 2008 at 1:29 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Alan Stone wrote:
 Yep Hans, that one. Ok I won't bother about it any longer.

 Any clues regarding the other issues, i.e.

 (1) the scrambled PDF headers ?

 (2) the inability to lower the \pdfminorversion setting ?

 using

 - ConTeXt  ver: 2008.06.22 17:38 MKII  fmt: 2008.6.23 ( ctx minimal)
 - XeTeX, Version 3.1415926-2.2-0.999.1 (Web2C 7.5.6)

 in pdf traditionally there was only pdf doc encoding; this is supported
 by default

 when unicode encoding was added to the spec, i started supporting it too
  and given that one enables it, traditional tex should work out ok (for
 instance chinese bookmark were possible)

 i've now enabled it for luatex (context mkiv) and when that works ou ok
 i'll see if i can support it for xet ex too (the problem is that i need
 to rework some code in the spec drivers and that was not on my current
 agenda)

 (it means that i need to replace defaults for pdftex/xetex/luatex and
 since luatex is experimental anyway, let's start there)

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


Re: [NTG-context] [Dev-luatex] Unicode in \pdfinfo

2008-06-28 Thread Khaled Hosny
On Sat, Jun 28, 2008 at 02:15:38PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:

 Thanks for the clarification, I'm trying to understand how stuff works
 and this helps definitely.
 So, could we've this support at context level, and every one will be
 happy :)

 you can try the beta ... (best move the discussion to the context list  
 since it's not related that much to luatex)

Now I can get pdfinfo correctly, but bookmarks are now just long strings
starting with feff0, see the attached example.

 i wonder what bidi does in bookmarks and so ... maybe more is needed

I don't think it'll need any special treatment since it'll rendered by
the viewer UI widget, may be we need to strip formating commands if not
done already.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
% engine=luatex
\mainlanguage[ar]

% Font
\definefontfeature
   [arabic]
   [mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]

\starttypescript [serif] [arabic]
 \definefontsynonym [Arabic-Light]   [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold][name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Italic]  [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold-Italic] [name:arabtype] [features=arabic]
 \stoptypescript

\starttypescript [serif] [arabic] [name]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif]   [Arabic-Light]   [features=arabic]
 \definefontsynonym [SerifItalic] [Arabic-Italic]  [features=arabic]
 \definefontsynonym [SerifBold]   [Arabic-Bold][features=arabic]
 \definefontsynonym [SerifBoldItalic] [Arabic-Bold-Italic] [features=arabic]
\stoptypescript

\starttypescript [Arabic]
  \definetypeface [Arabic] [rm] [serif] [arabic] [default] 
\stoptypescript 

\def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT}
\def\ArabicParDir{\textdir TRT\pardir TRT}
\def\ArabicTextDir   {\textdir TRT}
\def\LatinParDir {\textdir TLT\pardir TLT}
\def\LatinTextDir{\textdir TLT}
\def\LatinGlobalDir  {\pagedir TLT\bodydir TLT\pardir TLT\textdir TLT}

\definestartstop
  [arabicpar]
  [commands=\Arabic\ArabicParDir]

\define[1]\AR
  {{\Arabic\ArabicTextDir#1}}

\define\setArabic
  {\ArabicGlobalDir%
   \usetypescript[Arabic]%
   \setupbodyfont[Arabic,20pt]}

\definestartstop
  [latinpar]
  [commands=\Arabic\LatinParDir]

\define[1]\LT
  {{\LatinTextDir#1}}

\define\setLatin
  {\LatinGlobalDir%
   \usetypescript[lm]%
   \setupbodyfont[lm,20pt]}

\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteractionscreen[option=bookmark]

\setupinteraction
   [state=start,
title={كيف تكتب عربي مع كُنْتِكِسْت},
author={خالد حسني},
subtitle={صف الحروف حاسوبيا مع تخ وكنتكست},
keyword={عربي تخ كنتكست صف محارف طباعة}]

%there is a bug
%\setcharactermirroring[1]

\starttext

\setArabic

\startstandardmakeup
  \midaligned{كيف تكتب عربي في كُنْتِكِسْت}
  \midaligned{كتبه}
  \midaligned{خالد حسني}
\stopstandardmakeup

\completecontent

\chapter{مقدمة}
كُنْتِكِسْت \LT{(\CONTEXT)} هو حزمة ماكرو لنظام تخ \LT{(\TeX)} لصف المحارف.
\chapter{أول فصل}
\section[firstsection]{أول باب}
... كلام ...
\section{ثاني باب}
... كلام\index{فهرس آخر} ...
\subsection{ثاني مسألة}
... كلام ...
\section{ثالث باب}
... كلام ...
\chapter{فصل آخر}
... كلام ...
\chapter[lastchapter]{آخر فصل}
... كلام ...
\completeindex
\stoptext


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


Re: [NTG-context] [Dev-luatex] Unicode in \pdfinfo

2008-06-28 Thread Hans Hagen
Khaled Hosny wrote:
 On Sat, Jun 28, 2008 at 02:15:38PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:

 Thanks for the clarification, I'm trying to understand how stuff works
 and this helps definitely.
 So, could we've this support at context level, and every one will be
 happy :)
 you can try the beta ... (best move the discussion to the context list  
 since it's not related that much to luatex)

 Now I can get pdfinfo correctly, but bookmarks are now just long strings
 starting with feff0, see the attached example.

ah, due to loading order something gets overloaded

i'll upload a new beta (a bit hackery)

 i wonder what bidi does in bookmarks and so ... maybe more is needed

 I don't think it'll need any special treatment since it'll rendered by
 the viewer UI widget, may be we need to strip formating commands if not
 done already.

btw, for the moment do ...

\startbackmatter
 \chapter{Index}
 \bookmark{Index}
 \placeindex
\stopbackmatter

headtexts are not expanded (but in mkiv this is no problem so i'll 
change it there


-
   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] Unicode PDF bookmarks and headers

2008-06-22 Thread Khaled Hosny
I can't get Unicode (Arabic) PDF bookmarks or headers (see the attached
file), even after including \input spec-tst after the wiki page
http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers
But I get miss-encoded text instead, am I missing some thing?

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
% engine=luatex
\mainlanguage[ar]

% Font
\definefontfeature
   [arabic]
   [mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]

\starttypescript [serif] [arabic]
 \definefontsynonym [Arabic-Light]   [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold][name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Italic]  [name:arabtype] [features=arabic]
 \definefontsynonym [Arabic-Bold-Italic] [name:arabtype] [features=arabic]
 \stoptypescript

\starttypescript [serif] [arabic] [name]
 \usetypescript[serif][fallback]
 \definefontsynonym [Serif]   [Arabic-Light]   [features=arabic]
 \definefontsynonym [SerifItalic] [Arabic-Italic]  [features=arabic]
 \definefontsynonym [SerifBold]   [Arabic-Bold][features=arabic]
 \definefontsynonym [SerifBoldItalic] [Arabic-Bold-Italic] [features=arabic]
\stoptypescript

\starttypescript [Arabic]
  \definetypeface [Arabic] [rm] [serif] [arabic] [default] 
\stoptypescript 

\def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT}
\def\ArabicParDir{\textdir TRT\pardir TRT}
\def\ArabicTextDir   {\textdir TRT}
\def\LatinParDir {\textdir TLT\pardir TLT}
\def\LatinTextDir{\textdir TLT}
\def\LatinGlobalDir  {\pagedir TLT\bodydir TLT\pardir TLT\textdir TLT}

\definestartstop
  [arabicpar]
  [commands=\Arabic\ArabicParDir]

\define[1]\AR
  {\Arabic\ArabicTextDir#1}

\define\setArabic
  {\ArabicGlobalDir%
   \usetypescript[Arabic]%
   \setupbodyfont[Arabic,20pt]}

\definestartstop
  [latinpar]
  [commands=\Arabic\LatinParDir]

\define[1]\LT
  {\LatinTextDir#1}

\define\setLatin
  {\LatinGlobalDir%
   \usetypescript[lm]%
   \setupbodyfont[lm,20pt]}

\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteractionscreen[option=bookmark]

\input spec-tst.tex

\setupinteraction
   [state=start,
title={كيف تكتب عربي مع كُنْتِكِسْت},
author={خالد حسني},
subtitle={صف الحروف حاسوبيا مع تخ وكنتكست},
keyword={عربي تخ كنتكست صف محارف طباعة}]

%there is a bug
%\setcharactermirroring[1]

\starttext

\setArabic

\startstandardmakeup
  \midaligned{كيف تكتب عربي في كُنْتِكِسْت}
  \midaligned{كتبه}
  \midaligned{خالد حسني}
\stopstandardmakeup

\completecontent

\chapter{مقدمة}
كُنْتِكِسْت (\CONTEXT) هو حزمة ماكرو لنظام تخ (\TeX) لصف المحارف.
\chapter{أول فصل}
\section[firstsection]{أول باب}
... كلام ...
\section{ثاني باب}
... كلام\index{فهرس آخر} ...
\subsection{ثاني مسألة}
... كلام ...
\section{ثالث باب}
... كلام ...
\chapter{فصل آخر}
... كلام ...
\chapter[lastchapter]{آخر فصل}
... كلام ...
\completeindex
\stoptext
___
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] Unicode PDF bookmarks and headers

2008-06-22 Thread Idris Samawi Hamid
On Sun, 22 Jun 2008 01:12:38 -0600, Khaled Hosny [EMAIL PROTECTED]  
wrote:

 I can't get Unicode (Arabic) PDF bookmarks or headers (see the attached
 file), even after including \input spec-tst after the wiki page
 http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers
 But I get miss-encoded text instead, am I missing some thing?

You are right, the bookmark text is misencoded, even though I am only  
getting ASCII representation here (Acrobat 8)

Does Acrobat fully support unicode Arabic -- do you have the ME version?

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Unicode PDF bookmarks and headers

2008-06-22 Thread Khaled Hosny
On Sun, Jun 22, 2008 at 07:41:33AM -0600, Idris Samawi Hamid wrote:
 On Sun, 22 Jun 2008 01:12:38 -0600, Khaled Hosny [EMAIL PROTECTED]  
 wrote:
 
  I can't get Unicode (Arabic) PDF bookmarks or headers (see the attached
  file), even after including \input spec-tst after the wiki page
  http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers
  But I get miss-encoded text instead, am I missing some thing?
 
 You are right, the bookmark text is misencoded, even though I am only  
 getting ASCII representation here (Acrobat 8)
 
 Does Acrobat fully support unicode Arabic -- do you have the ME version?
I wasn't testing it with Acrobat but with Evince, I've other PDF files
with Arabic bookmarks and is displayed correctly. I can even make PDFs
with correct Arabic bookmarks using LaTeX and hyperref package.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


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


[NTG-context] last bookmark is wrong

2008-06-07 Thread Peter Münster
Hello,

The last bookmark is s3 instead of b3 (MKII and MKIV):

\setupinteraction[state=start]
\placebookmarks[section]
\starttext
\section{s1}\bookmark{b1}
\section{s2}\bookmark{b2}
\section{s3}\bookmark{b3}
\stoptext

Cheers, Peter

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


Re: [NTG-context] last bookmark is wrong

2008-06-07 Thread Taco Hoekwater
Peter Münster wrote:
 Hello,
 
 The last bookmark is s3 instead of b3 (MKII and MKIV):
 
 \setupinteraction[state=start]
 \placebookmarks[section]
 \starttext
 \section{s1}\bookmark{b1}
 \section{s2}\bookmark{b2}
 \section{s3}\bookmark{b3}
 \stoptext

That is because there is no text at all following the last bookmark,
so hopefully this buglet will not affect any finished documents.

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


Re: [NTG-context] last bookmark is wrong

2008-06-07 Thread Taco Hoekwater
Peter Münster wrote:
 That is because there is no text at all following the last bookmark,
 so hopefully this buglet will not affect any finished documents.
 
 Ok, here comes a better example:

I did not say there was no bug, just that it is unlikely to be hit ;-)
The \bookmark command works out fine in context enters horizontal
(paragraph) mode before the \stoptext, and it is wrong otherwise.

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


Re: [NTG-context] last bookmark is wrong

2008-06-07 Thread Hans Hagen
Peter Münster wrote:
 On Sat, Jun 07 2008, Taco Hoekwater wrote:
 
 The last bookmark is s3 instead of b3 (MKII and MKIV):

 \setupinteraction[state=start]
 \placebookmarks[section]
 \starttext
 \section{s1}\bookmark{b1}
 \section{s2}\bookmark{b2}
 \section{s3}\bookmark{b3}
 \stoptext
 That is because there is no text at all following the last bookmark,
 so hopefully this buglet will not affect any finished documents.
 
 Ok, here comes a better example:
 
 \setupinteraction[state=start]
 \placebookmarks[section]
 \starttext
 \section{s1}\bookmark{b1}
 bla
 \section{s2}\bookmark{b2}
 bla
 \section{s3}\bookmark{b3}
 \bTABLE\bTR\bTD bla\eTD\eTR\eTABLE

this is because there is no everypar applied


-
   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] last bookmark is wrong

2008-06-07 Thread Hans Hagen
Peter Münster wrote:
 Hello,
 
 The last bookmark is s3 instead of b3 (MKII and MKIV):
 
 \setupinteraction[state=start]
 \placebookmarks[section]
 \starttext
 \section{s1}\bookmark{b1}
 \section{s2}\bookmark{b2}
 \section{s3}\bookmark{b3}

\the\everpar

 \stoptext

indeed, this is because bookmarks are handled at the next paragraph 
(which makes overloading easier)

the future alternative is start/stopsection

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] How to define my own list entry?

2008-05-07 Thread Wolfgang Schuster
On Wed, May 7, 2008 at 4:55 AM, Zhichu Chen [EMAIL PROTECTED] wrote:
 Hi everybody,

 I'm just writing a module to typeset the traditional Chinese books.
 Here is the thing: I use page-arrangement to put like 15 pages on
 one page or actually 30 pages on one page in a double-sided mode
 (I mean page 1 and page 2---which contain 15 mini-pages each---are
 on the same page), and yes I want to make a table of contents and
 some PDF bookmarks. But having searched the list, I find that I
 should use
 texexec --arrange file.tex
 to compile the file and get the real page number. That's not what I
 want. Because if I get one chapter on the second page, the page
 number is 31 rather than 2 which I really want it to be. And so do
 the bookmarks behave. If I click the bookmark of the first chapter,
 it will go to the 31st page of the PDF file if it has page 31. I don't
 really like the mess.

 I know it's normal, but I would like to know if there's any way to
 write the page counters I defined to the .tui or .tuo file so that I can
 totally handle them and display them on the contents and make
 the bookmarks not crazy any more.

core-lst:

- \definelist
- \writetolist
- \writebetweenlist
- \placelist

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


Re: [NTG-context] How to define my own list entry?

2008-05-07 Thread Zhichu Chen
Thanks Wolfgang,

After looking through the file you mentioned above, I finally find that
\writeutilitycommand
and \doutilities  are what I want now. Maybe I should look into core-uti.tex
to get more.

On Wed, May 7, 2008 at 2:15 PM, Wolfgang Schuster 
[EMAIL PROTECTED] wrote:

 On Wed, May 7, 2008 at 4:55 AM, Zhichu Chen [EMAIL PROTECTED] wrote:
  Hi everybody,
 
  I'm just writing a module to typeset the traditional Chinese books.
  Here is the thing: I use page-arrangement to put like 15 pages on
  one page or actually 30 pages on one page in a double-sided mode
  (I mean page 1 and page 2---which contain 15 mini-pages each---are
  on the same page), and yes I want to make a table of contents and
  some PDF bookmarks. But having searched the list, I find that I
  should use
  texexec --arrange file.tex
  to compile the file and get the real page number. That's not what I
  want. Because if I get one chapter on the second page, the page
  number is 31 rather than 2 which I really want it to be. And so do
  the bookmarks behave. If I click the bookmark of the first chapter,
  it will go to the 31st page of the PDF file if it has page 31. I don't
  really like the mess.
 
  I know it's normal, but I would like to know if there's any way to
  write the page counters I defined to the .tui or .tuo file so that I can
  totally handle them and display them on the contents and make
  the bookmarks not crazy any more.

 core-lst:

 - \definelist
 - \writetolist
 - \writebetweenlist
 - \placelist

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

 ___




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


[NTG-context] How to define my own list entry?

2008-05-06 Thread Zhichu Chen
Hi everybody,

I'm just writing a module to typeset the traditional Chinese books.
Here is the thing: I use page-arrangement to put like 15 pages on
one page or actually 30 pages on one page in a double-sided mode
(I mean page 1 and page 2---which contain 15 mini-pages each---are
on the same page), and yes I want to make a table of contents and
some PDF bookmarks. But having searched the list, I find that I
should use
texexec --arrange file.tex
to compile the file and get the real page number. That's not what I
want. Because if I get one chapter on the second page, the page
number is 31 rather than 2 which I really want it to be. And so do
the bookmarks behave. If I click the bookmark of the first chapter,
it will go to the 31st page of the PDF file if it has page 31. I don't
really like the mess.

I know it's normal, but I would like to know if there's any way to
write the page counters I defined to the .tui or .tuo file so that I can
totally handle them and display them on the contents and make
the bookmarks not crazy any more.


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


[NTG-context] Line break and \in{....}[] command; bookmarks

2008-05-01 Thread Tobias Burnus
Hi all,

I use
   \definereferenceformat[insection][text=Section]
however, sometimes the item is that long that
   Section
  5.5 ..
looks much nicer than a 5.5 sticking out of the margin. Is there a 
possibility to allow a line break between the text and the number?

Secondly, I want to use acroread's bookmarks. But I have two problems:

a) I failed to create a bookmark for the title page. What is the best 
way to do so? Currently, I use:
\startmakeup[standard][doublesided=no,page=right]
...
\stopmakeup


b) Somehow the bookmark list goes wrong. I have:
\placebookmarks[chapterEP,chapter,section,subsection]
where chapterEP is a specially designed version of \chapter but should 
be on the same level. First, everything goes nice, but then a chapterEP 
becomes a descendant of another chapterEP. I have no idea how I can 
reduce the problem to a small example or how to fix it. Any idea?

...
chapterEP
  section
 subsection
 subsection
  section
 subsection
 subsection
chapterEP
  section
  section
chapterEP
  section
  chapterEP --- Wrong!
 section
 section
  chapterEP (still wrong level)
 section
 section
 chapterEP -- Another wrong level)
 chapterEP (still wrong level)
  chapterEP (still wrong level, but one less)
  chapterEP (still wrong level)
chapterEP -- OK again
chapterEP

Tobias
___
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] Short question regarding PDF bookmarks

2008-04-09 Thread Dietrich Rordorf / MDPI
Hi everybody,

Default setting when creating pdf bookmarks (e.g. for \section, 
\subsection, etc.) seems that the bookmark points to the page (it zooms 
out to fit the whole page), rather than only going to the referenced 
object:

E.g. try to click on a bookmark on this pdf (365 KB):
http://www.mdpi.org/marinedrugs/papers/md6010001.pdf

An example where the bookmark points to the object, and will not affect 
the current magnification/zoom:

http://www.biomedcentral.com/content/pdf/1741-7015-4-14.pdf

Can this be realized in ConTeX?

Looking forward to hearing from you.

Kind regards,
Dietrich

___
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] Any other STM Publishers using ConTeX? (was: Short question regarding PDF bookmarks)

2008-04-09 Thread Dietrich Rordorf / MDPI
Dear Aditya,

Thank you so much! We will try this. ConTeX is r-e-a-l-l-y great, and we 
have been using it in a (experimental) production workflow for our 
scientific journal Marine Drugs. Hopefully, we will implement it for all 
of our journals soon (publishing about 100 articles a month).

Are there any other science, technical, medical publishers out there 
using ConTeX? Would be nice to exchange some thoughts!

My details are:

Dietrich Rordorf
MDPI Center
Matthaeusstrasse 11
CH-4057 Basel
Switzerland

E-mail: [EMAIL PROTECTED]
Skype:  d.rordorf

Tel. +41 61 683 77 34 (office)
Tel. +41 76 561 41 83 (mobile)
Fax  +41 61 302 89 18 




Aditya Mahajan wrote:
 On Wed, 9 Apr 2008, Dietrich Rordorf / MDPI wrote:

 Hi everybody,

 Default setting when creating pdf bookmarks (e.g. for \section,
 \subsection, etc.) seems that the bookmark points to the page (it zooms
 out to fit the whole page), rather than only going to the referenced
 object:

 E.g. try to click on a bookmark on this pdf (365 KB):
 http://www.mdpi.org/marinedrugs/papers/md6010001.pdf

 An example where the bookmark points to the object, and will not affect
 the current magnification/zoom:

 http://www.biomedcentral.com/content/pdf/1741-7015-4-14.pdf

 Can this be realized in ConTeX?

 This is what I have in my setup

 \setupinteraction[state=start]
 \setupinteraction[focus=standard]
 \placebookmarks  [section,subsection]

 It is not perfect (sometimes jumps slightly higher or lower), but I 
 find it much better than the default behaviour.

 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] Short question regarding PDF bookmarks

2008-04-09 Thread Taco Hoekwater
Dietrich Rordorf / MDPI wrote:
 Hi everybody,
 
 Default setting when creating pdf bookmarks (e.g. for \section, 
 \subsection, etc.) seems that the bookmark points to the page (it zooms 
 out to fit the whole page), rather than only going to the referenced 
 object:
 
 E.g. try to click on a bookmark on this pdf (365 KB):
 http://www.mdpi.org/marinedrugs/papers/md6010001.pdf
 
 An example where the bookmark points to the object, and will not affect 
 the current magnification/zoom:
 
 http://www.biomedcentral.com/content/pdf/1741-7015-4-14.pdf
 
 Can this be realized in ConTeX?

Not totally sure, but isn't

   \setupinteraction[focus=standard]

supposed to do that?

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


Re: [NTG-context] Short question regarding PDF bookmarks

2008-04-09 Thread Aditya Mahajan
On Wed, 9 Apr 2008, Dietrich Rordorf / MDPI wrote:

 Hi everybody,

 Default setting when creating pdf bookmarks (e.g. for \section,
 \subsection, etc.) seems that the bookmark points to the page (it zooms
 out to fit the whole page), rather than only going to the referenced
 object:

 E.g. try to click on a bookmark on this pdf (365 KB):
 http://www.mdpi.org/marinedrugs/papers/md6010001.pdf

 An example where the bookmark points to the object, and will not affect
 the current magnification/zoom:

 http://www.biomedcentral.com/content/pdf/1741-7015-4-14.pdf

 Can this be realized in ConTeX?

This is what I have in my setup

\setupinteraction[state=start]
\setupinteraction[focus=standard]
\placebookmarks  [section,subsection]

It is not perfect (sometimes jumps slightly higher or lower), but I find 
it much better than the default behaviour.

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] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread Andrea Valle

You mean this, I guess:
http://bloggingbits.com/54-typography-resources-every-designer-should- 
bookmark/


Thanks!

-a-


On 21 Feb 2008, at 17:22, Jeff Smith wrote:


Great links and tips there, but last week I also found this. It's
called 54 Typography Resources Every Designer Should Bookmark.

http://www.digipills.com/tinylink/ajout.php

A couple of links there too, and articles.

Jeff Smith

On Thu, Feb 21, 2008 at 8:45 AM, Andrea Valle [EMAIL PROTECTED]  
wrote:

 Thanks, I'll check the site

Best

-a-


On 21 Feb 2008, at 14:31, John Luciani wrote:


tufte.com


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)






_ 
__
 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
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





___
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] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread Jeff Smith
On Thu, Feb 21, 2008 at 11:47 AM, Andrea Valle [EMAIL PROTECTED] wrote:
  You mean this, I guess:
 http://bloggingbits.com/54-typography-resources-every-designer-should-bookmark/

Oh, yes, I wanted to use TinyLink so the mail wouldn't wrap that link
on two lines, but I copy-pasted TinyLink's homepage instead! Oops!
Thanks for noticing quickly. :-)

Jeff
___
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] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread Jeff Smith
Great links and tips there, but last week I also found this. It's
called 54 Typography Resources Every Designer Should Bookmark.

http://www.digipills.com/tinylink/ajout.php

A couple of links there too, and articles.

Jeff Smith

On Thu, Feb 21, 2008 at 8:45 AM, Andrea Valle [EMAIL PROTECTED] wrote:
  Thanks, I'll check the site

 Best

 -a-


 On 21 Feb 2008, at 14:31, John Luciani wrote:


 tufte.com


 --
 Andrea Valle
 --
 CIRMA - DAMS
 Università degli Studi di Torino
 -- http://www.cirma.unito.it/andrea/
 -- http://www.myspace.com/andreavalle
 -- [EMAIL PROTECTED]
 --


 
 Think of it as seasoning
 . noise [salt] is boring
 . F(blah) [food without salt] can be boring
 . F(noise, blah) can be really tasty
 
 (Ken Perlin on noise)






 ___
  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] Bookmark question

2008-02-11 Thread WN
Your solution works, but now I have to rewrite my carefully crafted 
environment
and setups. I rather wish your solution works within the start/stop 
frontmatter

construct.

Is this possible ?

Kind regards
Wim


WN wrote:
  

This is what I would like to do

\startfrontmatter
\bookmark[chapter]{Inhoudsopgave}
\completecontent[partnumber=no]
\page
\bookmark[chapter]{Lijst van figuren}
\completelistoffigures[partnumber=no]
\stopfrontmatter
\startbodymatter
\component chapter01
\component chapter02

\stopbodymatter

the bookmarks only appears with the [chapter] included, but twice.
Also they appear twice in the table of contents (which is consistent).




\setupinteraction[state=start]

\placebookmarks

\starttext

\completecontent[partnumber=no]

\bookmark[chapter]{Inhoudsopgave}

\page

\completelistoffigures[partnumber=no]
\bookmark[chapter]{Lijst van figuren}

\chapter{first}
\chapter{second}

\stoptext


  

I would like the bookmarks to appear once and not in the TOC.
Perhaps Hans can take the above code, as indeed your code works but
not in the above code.

Best wishes
Wim


Taco Hoekwater wrote:


WN wrote:
  

I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.
  
  

True enough. But should they appear twice ?
I want a custom bookmark for the table of contents and list of figures,
so I used \bookmark[chapter] to include these (once not twice).


Ah, I see now. Looks like a bug to me. I do not understand the code
well enough to fix it, however. I am attaching a minimal example for
Hans.

(meanwhile, you could use \bookmark without 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  : 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
___




  


___
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] Bookmark question

2008-02-06 Thread Taco Hoekwater
WN wrote:
 Hi,
 
 When I use \bookmark[chapter]{Some bookmark} the bookmark appears twice 
 in the list of bookmarks
 but the bookmark also appears twice in the Table of Contents.

I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.

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


Re: [NTG-context] Bookmark question

2008-02-06 Thread WN

Taco Hoekwater wrote:

WN wrote:
  

Hi,

When I use \bookmark[chapter]{Some bookmark} the bookmark appears twice 
in the list of bookmarks

but the bookmark also appears twice in the Table of Contents.



I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.
  

True enough. But should they appear twice ?
I want a custom bookmark for the table of contents and list of figures,
so I used \bookmark[chapter] to include these (once not twice).

Best wishes
Wim

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  : 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] Bookmark question

2008-02-06 Thread Taco Hoekwater

WN wrote:


I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.
  

True enough. But should they appear twice ?
I want a custom bookmark for the table of contents and list of figures,
so I used \bookmark[chapter] to include these (once not twice).


Ah, I see now. Looks like a bug to me. I do not understand the code
well enough to fix it, however. I am attaching a minimal example for
Hans.

(meanwhile, you could use \bookmark without the optional argument).

Best wishes,
Taco


\setupinteraction[state=start] 
\placebookmarks[chapter][chapter]
\setupinteractionscreen[option=bookmark]

\starttext
\chapter{In the beginning}
\bookmark[chapter]{In initio} % Without [chapter], this is fine!

Oh no.
\stoptext
___
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] Bookmark question

2008-02-06 Thread Hans Hagen
WN wrote:
 
 This is what I would like to do
 
 \startfrontmatter
 \bookmark[chapter]{Inhoudsopgave}
 \completecontent[partnumber=no]
 \page
 \bookmark[chapter]{Lijst van figuren}
 \completelistoffigures[partnumber=no]
 \stopfrontmatter
 \startbodymatter
 \component chapter01
 \component chapter02
 
 \stopbodymatter
 
 the bookmarks only appears with the [chapter] included, but twice.
 Also they appear twice in the table of contents (which is consistent).


\setupinteraction[state=start]

\placebookmarks

\starttext

\completecontent[partnumber=no]

\bookmark[chapter]{Inhoudsopgave}

\page

\completelistoffigures[partnumber=no]
\bookmark[chapter]{Lijst van figuren}

\chapter{first}
\chapter{second}

\stoptext


 I would like the bookmarks to appear once and not in the TOC.
 Perhaps Hans can take the above code, as indeed your code works but
 not in the above code.
 
 Best wishes
 Wim
 
 
 Taco Hoekwater wrote:
 WN wrote:

 I think chapter titles are supposed appear automatically in the
 bookmarks, no need for an explicit \bookmark.
   
 True enough. But should they appear twice ?
 I want a custom bookmark for the table of contents and list of figures,
 so I used \bookmark[chapter] to include these (once not twice).

 Ah, I see now. Looks like a bug to me. I do not understand the code
 well enough to fix it, however. I am attaching a minimal example for
 Hans.

 (meanwhile, you could use \bookmark without 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  : 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
 ___


-- 

-
   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] Bookmark question

2008-02-06 Thread Taco Hoekwater
Hans Hagen wrote:
 WN wrote:
 This is what I would like to do

 \startfrontmatter
 \bookmark[chapter]{Inhoudsopgave}
 \completecontent[partnumber=no]
 \page
 \bookmark[chapter]{Lijst van figuren}
 \completelistoffigures[partnumber=no]
 \stopfrontmatter
 \startbodymatter
 \component chapter01
 \component chapter02
 
 \stopbodymatter

 the bookmarks only appears with the [chapter] included, but twice.
 Also they appear twice in the table of contents (which is consistent).
 
 
 \setupinteraction[state=start]
 
 \placebookmarks
 
 \starttext
 
 \completecontent[partnumber=no]
 
 \bookmark[chapter]{Inhoudsopgave}
 
 \page
 
 \completelistoffigures[partnumber=no]
 \bookmark[chapter]{Lijst van figuren}
 
 \chapter{first}
 \chapter{second}
 
 \stoptext

That looks good, but why? Does \complexbookmark only work to
overrule a yet-to-come sectioning command?

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


Re: [NTG-context] Bookmark question

2008-02-06 Thread Taco Hoekwater
Hans Hagen wrote:
 That looks good, but why? Does \complexbookmark only work to
 overrule a yet-to-come sectioning command?
 
 no, the previous one (bookmarks are flushed in everypar)
 
 in this case the \complete... has a \chapter so the bookmark influences 
 that one

So what is wrong with this input then?

% engine=pdftex
\setupinteraction[state=start]
\placebookmarks

\starttext
\chapter{In the beginning}

\bookmark[chapter]{In initio} % Without [chapter], this is fine!

Oh no.
\stoptext

This creates three (3!) chapter bookmark entries:

   In the beginning
   In initio
   In initio


instead of the expected 1:

   In initio


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


[NTG-context] Pdf bookmark

2008-02-04 Thread WN
Hi,

When I use \bookmark[chapter]{Some bookmark} the bookmark appears twice 
in the list of bookmarks
but the bookmark also appears twice in the Table of Contents.

Is this a known problem/bug or is there something I should do ?

I am using ConTeXt  ver: 2008.02.01 17:25 MKII  fmt: 2008.2.4  int: 
english/english

Kind regards
Wim
___
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] Footnotes in PDF bookmarks

2008-01-09 Thread Hans Hagen
Marco Costa wrote:
 Hello
 
 I'm having a problem: footnotes that I've placed in chapter titles
 are appearing in PDF bookmarks (after the title text).
 
 The Table of Contents is OK, the footnotes are ignored there.
 
 Is there some way of making the footnotes not appear in PDF bookmarks?
 (I'm using XeTeX).

\setupinteraction[state=start]

\placelist[chapter]

\placebookmarks

\starttext

\chapter{oeps\footnote{x}}

\bookmark{whatever}

oeps

\stoptext



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
OK, it's been a fun day's work, but here's the current working version of 
the context.cwl file.

What it does include:
* all the commands with all the fields mentioned on texshow.contextgarden.net
* the rest of the commands that I used from the list Idris sent me are 
currently commented out, until I find out they're valid (although not on 
texshow)
* all the fields have short descriptions
* all the \start* commands end with appropriate \stop* commands
* some of the fields (where it was simple to do it) use a '|' character as a 
separator inside fields

What it does not include:
* a syntax completely as Kile's README.cwl would want to have (especially 
because of my misuse of \start* \stop* in the same command and Mojca's 
separator suggestion)
* a completely coherent and Kile-valid syntax is still missing, although as 
it is, the file is usable
* some commands are commented out, as mentioned above

Installation:
copy or link the file to /usr/share/apps/kile/complete/tex/ (or the 
appropriate kile/complete/tex/ directory) and add context.cwl in Kile's 
settings under Kile-Complete-TeX/LaTeX

I hope anyone finds it useful and that I manage to get it working 
perfectly/validly soon.


Cheers,
Matija

-- 
gsm: +386 41 849 552
e-mail: [EMAIL PROTECTED]
www: http://matija.suklje.name

aim: hookofsilver
icq: 110183360
jabber/g-talk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: matija_suklje
# ConTeXt commands
# Matija silverhook Šuklje, 02. Jan. 2008 — [EMAIL PROTECTED]
# URL: todo

\about{text}[reference]
\adaptlayout[number][dimensions]
\adding[size]
# \aftersplitstring
# \and
\appendix[references]{text}
# \appendtoks
# \AR
\arg{text}
\at{text}{text}[reference]
\atpage[reference]
\background
# \bbox
# \beforesplitstring
# \begstrut
\blackrule[settings]
\blackrules[settings]
\blank[size]
# \blockquote
\bookmark[name]{text}
# \bTABLE
# \bTABLEbody
# \bTABLEfoot
# \bTABLEhead
# \bTABLEnext
# \bTD
# \bTH
# \bTR
\but[reference]
\button[settings]{text}[references]
\bypassblocks[names][names]
\CAP{text}
\Cap{text}
\cap{text}
\Caps{text}
\chapter[references]{text}
\Character{text}
\character{text}
\Characters{text}
\characters{text}
\chem{text}{text}{text}
\clip[settings]{text}
\clonefield[name][names][name][names]
\color[text{text}
\column
# \commalistelement
\comment[name][settings]{text}
\comparecolorgroup[name]
\comparepalet[name]
\completecombinedlist[name][settings]
\completelistoffloats
\completelistofsorts
\completelistofsynonyms
\completeregister[settings]
# \component
# \ConTeXt
# \Context
# \convertargument
# \convertcommand
\convertnumber{text}{text}
\copyfield[name][names]
\correctwhitespace{text}
# \countXMLchildren
\coupledocument[name][file][name]
\coupledregister[text]{text}
\couplemarking[name][name]
\couplepage[names][options]
\couplepaper[name]
\coupleregister[name]
\crlf
\currentdate[syntax]
\currentheadnumber
\date[date][syntax]
\decouplemarking[name]
# \decrement
\define[number]\command{text}
\defineblank[name][settings]
\defineblock[name]
\definebodyfont[font size][type][files]
\definebodyfontenvironment[font size][dimensions]
\definebuffer[name]
# \definecollector
\definecolor[name]{colour values}
\definecolorgroup[name][colour model][colour values]
\definecombinedlist[name][list][settings]
\defineconversion[name][command]
\definedescription[name][settings]
# \definedfont
\defineenumeration[names][name][settings]
# \defineexternalfigure
\definefield[reference][widget type][setup name][names][initial content]
\definefieldstack[name][names][settings]
\definefiguresymbol[name][text][settings]
\definefloat[singular][plural]
\definefont[name][file]
# \definefontsynonym
\defineframed[name][settings]
# \defineframedcontent
\defineframedtext[name][settings]
\definehead[name][section]
# \definehspace
\defineindenting[name][settings]
\defineinteractionmenu[position|names][options and settings]
\defineinteractionmenu[position|name][position|name][settings]
\definelabel[name][text and options]
# \definelayer
# \definelayerpreset
# \definelayout
\definelist[name][name][settings]
\definelogo[name][position][position][command][state]
# \definemainfield
\definemakeup[name][settings]
\definemarking[name][name]
# \definemeasure
# \defineoutput[name][specials]
\defineoverlay[names][command]
# \definepagebreak
\definepalet[name][name]
\definepapersize[name][dimenstions]
\defineparagraphs[name][options and settings]
\defineprofile[names][names]
\defineprogram[name][text][text]
# \definepushbutton
# \definepushsymbol
\definerawfont[name][file][settings]
\definereference[name][references]
\definereferenceformat[name][options]
\definereferencelist[name][settings]
\defineregister[singular][plural]
\definerule[name][settings]
\definesection[name]
\definesectionblock[name][settings]
\definesorting[singular][plural][command]
\definestartstop[name][commands]
\definesubfield[name][name][names]
\definesymbol[name][text]
\definesynonyms[singular][plural][command][command]
\definetabletemplate[name][text][text][text

Re: [NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2007-12-12 Thread Wolfgang Schuster
2007/12/11, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 Has anyone managed to get ConTeXt to generate PDF bookmarks for
 the unnumbered headings such as \title, \subject, etc?

 I saw the examples on the wiki page but unfortunately they
 did nothing.

 http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers

 \setupinteraction[state=start]
 \placebookmarks[chapter]
 \setupinteractionscreen[option=bookmark]
 \starttext
 \chapter{some chapter}
 \bookmark{a title}
 some text
 \stoptext

 The above example correctly generates bookmarks in the PDF.

 I can't, however, get the same thing to work when using
 \subject. Even explicitly placing bookmarks with \bookmark
 doesn't work:

 \setupinteraction[state=start]
 \placebookmarks[chapter] % didn't add subject here as the wiki
  % says it doesn't work, and it's correct
 \setupinteractionscreen[option=bookmark]
 \starttext
 \subject{some chapter}
 \bookmark{a title}
 some text
 \stoptext

You can to play with the following code, I don't know why it produce multiple
bookmark entries and even more with text between the headers but it's funny.

\setupinteraction[state=start]
\def\sectionbookmark#1{\bookmark[section]{#1}#1}
\def\subjectbookmark#1{\bookmark[subject]{#1}#1}
\setuphead[section][deeptextcommand=\sectionbookmark]
\setuphead[subject][deeptextcommand=\subjectbookmark]
\placebookmarks[chapter,section,subject]
\setupinteractionscreen[option=bookmark]
\starttext
\chapter{Chapter}
\section{Section}
\subject{Subject}
\section{Another section}
\chapter{Second Chapter}
text
\section{First section in second chapter}
text
\subject{Another Subject}
text
\section{Last section}
text
\stoptext

 The wiki page also has this:

 \definehead[Title][Chapter]
 \setuphead[Title][number=no]

 But that doesn't make the slightest difference.

 Anybody got any ideas how to get this to work? I'm using:

 pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
 context : ver: 2005.01.31
 cont-en : ver: 2005.01.31 fmt: 2007.5.21 mes: english

You ConTeXt is ancient and you should update to the current version.

 Apologies if my replies to this list are apparently nonexistent.
 So far it seems as if most of them have bounced with a strange
 unrouteable address error.

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


[NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2007-12-11 Thread mir_ctx
Has anyone managed to get ConTeXt to generate PDF bookmarks for
the unnumbered headings such as \title, \subject, etc?

I saw the examples on the wiki page but unfortunately they
did nothing.

http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers

\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]
\starttext
\chapter{some chapter}
\bookmark{a title}
some text
\stoptext

The above example correctly generates bookmarks in the PDF.

I can't, however, get the same thing to work when using
\subject. Even explicitly placing bookmarks with \bookmark
doesn't work:

\setupinteraction[state=start]
\placebookmarks[chapter] % didn't add subject here as the wiki
 % says it doesn't work, and it's correct
\setupinteractionscreen[option=bookmark]
\starttext
\subject{some chapter}
\bookmark{a title}
some text
\stoptext

The wiki page also has this:

\definehead[Title][Chapter]
\setuphead[Title][number=no]

But that doesn't make the slightest difference.

Anybody got any ideas how to get this to work? I'm using:

pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
context : ver: 2005.01.31
cont-en : ver: 2005.01.31 fmt: 2007.5.21 mes: english

Apologies if my replies to this list are apparently nonexistent.
So far it seems as if most of them have bounced with a strange
unrouteable address error.
-- 
  
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html

___
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] Turn off interaction in some TOC levels?

2007-10-23 Thread Wolfgang Schuster
2007/10/22, Wolfgang Schuster [EMAIL PROTECTED]:



 2007/10/20, John Culleton [EMAIL PROTECTED]:
 
  I want interaction at the subsubsection level but not higher. I have
  turned
  off line numbers for section and subsection.   However both these levels
  remain interactive. The whole line is blue.  I
  tried  interaction=pagenumber,
  interaction=sectionnumber, interaction=no, interaction=none,  and no
  interaction parameter at all at these levels.   Nevertheless the whole
  entry
  remains interactive.
 
  some code:
  \setupcolors[state=start]
  \setuphead[chapter][head=nomarking,number=no]
  \setuphead[section][number=no,textcommand=\bf]
  \setuphead[subsection][number=no]
  \setuphead[subsubsection][number=no]
  \setupinteraction[state=start,color=blue]
  \setuplist[section][alternative=f,style=bold,interaction=sectionnumber]
  \setuplist[subsection][alternative=f,interaction=no]
  \setuplist[subsubsection][alternative=a,interaction=all]
 
  The good news is that I found a handy way to bookmark just the index in
  Acrobat Reader. I filched some code from an old Han The Thanh file:
 
  \pdfcatalog{/PageMode /UseOutlines} % bookmark window open
  \newcount\marknumber\marknumber=1
  \def\bookmark#1#2{%
  \pdfdest num \marknumber xyz
  \pdfoutline goto num \marknumber count #1 {#2}
  \advance\marknumber by 1}
  .
  \bookmark{0}{Index}
  \placecontent
  ...
 
  The explanation of the format of the \pdfoutline command in the manual
  wasn't
  clear to me but the above macro clears it up.
  --
  John Culleton
 
  http://wexfordpress.com/tex/shortlist.pdf


You use the following code to disable the hyperlinks in your list format,
the options for interactive are now all or no.

\unprotect

\def\dodofixdlistelementEFG#1#2#3#4#5#6#7#8%
  {\noindent
   \bgroup
   \def\makelistelement##1##2%
 {\doifelse{\listparameter\c!interaction}{##1} % better \doifinsetelse
{\setbox0\hbox{#2{\showcontrastlocation\??ia{#8}{##2}}}%
 \linklisttoelement{#4}{#7}{#8}{\box0}}
{#2{##2}}}%
   \makelistelement\v!all % why not text
 {\dostartlistattributes\c!style\c!color\empty
  \ignorespaces\dontconvertfont\setstrut
  \begstrut
  \limitatedlistentry{#6}%
  \endstrut
  \dostoplistattributes}%
   \egroup
   \par
   \listparameter\c!inbetween}

\protect

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


Re: [NTG-context] Turn off interaction in some TOC levels?

2007-10-22 Thread Wolfgang Schuster
2007/10/20, John Culleton [EMAIL PROTECTED]:

 I want interaction at the subsubsection level but not higher. I have
 turned
 off line numbers for section and subsection.   However both these levels
 remain interactive. The whole line is blue.  I
 tried  interaction=pagenumber,
 interaction=sectionnumber, interaction=no, interaction=none,  and no
 interaction parameter at all at these levels.   Nevertheless the whole
 entry
 remains interactive.

 some code:
 \setupcolors[state=start]
 \setuphead[chapter][head=nomarking,number=no]
 \setuphead[section][number=no,textcommand=\bf]
 \setuphead[subsection][number=no]
 \setuphead[subsubsection][number=no]
 \setupinteraction[state=start,color=blue]
 \setuplist[section][alternative=f,style=bold,interaction=sectionnumber]
 \setuplist[subsection][alternative=f,interaction=no]
 \setuplist[subsubsection][alternative=a,interaction=all]

 The good news is that I found a handy way to bookmark just the index in
 Acrobat Reader. I filched some code from an old Han The Thanh file:

 \pdfcatalog{/PageMode /UseOutlines} % bookmark window open
 \newcount\marknumber\marknumber=1
 \def\bookmark#1#2{%
 \pdfdest num \marknumber xyz
 \pdfoutline goto num \marknumber count #1 {#2}
 \advance\marknumber by 1}
 .
 \bookmark{0}{Index}
 \placecontent
 ...

 The explanation of the format of the \pdfoutline command in the manual
 wasn't
 clear to me but the above macro clears it up.
 --
 John Culleton

 http://wexfordpress.com/tex/shortlist.pdf


Hi John,

the hyperlinks are hardcoded in the list alternatives  e, f and g.
The only to get your desired solution is to write your own list
alternatives.

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


Re: [NTG-context] Compatiblity option in pdf

2007-10-22 Thread Peter Rolf
Hi John,

John Culleton schrieb:
 I created a short document 
 http://wexfordpress.com/tex/shortlist.pdf
 using Context and with a clickable TOC and one thumbnail. The thumbnail was 
 created with the Han The Thanh pdftex macro code I mentioned recently. Some

thumbnail or bookmark ?

 users view it fine, others with earlier versions of  Acrobat Reader have 
 problems. A friend ftom the InDesign/Distiller world suggests that I recreate 
 the pdf with the compatibility option turned on.  Does this suggestion have 
 any meaning in the Context/pdftex world? 

just guessing...

\pdfminorversion 3

or

\pdfobjcompresslevel=0  % 0-3 (default 3); 0= don't compress object streams

If I remember it right Acrobat versions 6 can't read pdf with obj
stream compression. See pdftex manual for details.

 
 Can interested readers read the above url OK?

Yep!


Greetings, Peter
___
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] Compatiblity option in pdf

2007-10-22 Thread John Culleton
On Monday 22 October 2007 12:53:21 pm Peter Rolf wrote:
 Hi John,

 John Culleton schrieb:
  I created a short document
  http://wexfordpress.com/tex/shortlist.pdf
  using Context and with a clickable TOC and one thumbnail. The thumbnail
  was created with the Han The Thanh pdftex macro code I mentioned
  recently. Some

 thumbnail or bookmark ?

Bookmark. I was writing one and thinking the other. 
-- 
John Culleton
Want to know what I really think?
http://apps.wexfordpress.net/blog/
And my must-read (free) short list:
http://wexfordpress.com/tex/shortlist.pdf
___
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] Turn off interaction in some TOC levels?

2007-10-20 Thread John Culleton
I want interaction at the subsubsection level but not higher. I have turned 
off line numbers for section and subsection.   However both these levels 
remain interactive. The whole line is blue.  I tried  interaction=pagenumber, 
interaction=sectionnumber, interaction=no, interaction=none,  and no 
interaction parameter at all at these levels.   Nevertheless the whole entry 
remains interactive. 

some code:
\setupcolors[state=start]
\setuphead[chapter][head=nomarking,number=no]
\setuphead[section][number=no,textcommand=\bf]
\setuphead[subsection][number=no]
\setuphead[subsubsection][number=no]
\setupinteraction[state=start,color=blue]
\setuplist[section][alternative=f,style=bold,interaction=sectionnumber]
\setuplist[subsection][alternative=f,interaction=no]
\setuplist[subsubsection][alternative=a,interaction=all]

The good news is that I found a handy way to bookmark just the index in 
Acrobat Reader. I filched some code from an old Han The Thanh file:

\pdfcatalog{/PageMode /UseOutlines} % bookmark window open
\newcount\marknumber\marknumber=1
\def\bookmark#1#2{%
\pdfdest num \marknumber xyz
\pdfoutline goto num \marknumber count #1 {#2}
\advance\marknumber by 1}
.
\bookmark{0}{Index}
\placecontent
...

The explanation of the format of the \pdfoutline command in the manual wasn't 
clear to me but the above macro clears it up.  
-- 
John Culleton

http://wexfordpress.com/tex/shortlist.pdf
___
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] start/stop and sections

2007-08-23 Thread Hans Hagen
Aditya Mahajan wrote:

 Interesting. How do you come up with code like this :)
 
 \def\csnameexpanded#1#2%
 [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
 PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
 PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]

well, i need to make sure that the original title ends up as is

 
 Bookmark does not seem to work correctly. Also can the extra 
 grouping (using begingroup) in \startsectionworld be avoided?

hm, can you figure out why? anyhow, that will change because the call 
will move elsewhere (key is more there as a reminder)

grouping ... will be optional, but for now i need it; first i need to 
rewrite the core sectioning commands (make them complete var driven)

 \setupinteraction[state=start]
 \placebookmarks[chapter,section,subsection][chapter,section]
 
 \def\test{Outside value}
 \starttext
 
 \startsectionworld[section][text={Test},bookmark={changed}]
 
 \def\test{Inside value}
 This is the first chapter
 
 \stopsectionworld
 
 The value of test is \test.
 \stoptext

this is just an exploration -)

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] start/stop and sections

2007-08-22 Thread Aditya Mahajan
On Mon, 20 Aug 2007, Hans Hagen wrote:

 Hi,

 There is now an experimental:

 % options :
 % dodo: listtext

 \setupsectionworld
   [chapter]
   [before after setups page text number label bookmark]

 \startsectionworld[chapter][text={Test}]

 \stopsectionworld

 Later I will adapt sectioning to working with variables (low level
 issue) but this is what I needed now -)

Interesting. How do you come up with code like this :)

\def\csnameexpanded#1#2%
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]


Bookmark does not seem to work correctly. Also can the extra 
grouping (using begingroup) in \startsectionworld be avoided?


\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section]

\def\test{Outside value}
\starttext

\startsectionworld[section][text={Test},bookmark={changed}]

\def\test{Inside value}
This is the first chapter

\stopsectionworld

The value of test is \test.
\stoptext


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
___


[NTG-context] start/stop and sections

2007-08-20 Thread Hans Hagen
Hi,

There is now an experimental:

% options :
% dodo: listtext

\setupsectionworld
   [chapter]
   [before after setups page text number label bookmark]

\startsectionworld[chapter][text={Test}]

\stopsectionworld

Later I will adapt sectioning to working with variables (low level 
issue) but this is what I needed now -)


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] Background image

2007-08-06 Thread Peter Rolf
Pascal de Bruijn schrieb:
 Hi,
 
 On Mon, 2007-08-06 at 13:02 +0200, Peter Rolf wrote:
 Hi Pascal,

 I spend more than one hour on this, to find a clean solution. So please
 add this to the wiki.
 
 I will when I'm more comfortable with ConTeXt.
 
ok. any help is welcome.

 And if you can, send my a copy of the nice background image (never mind
 if not). I felt in love with this, while testing your example.
 
 I'm sorry, it's a commercial image. I don't own the copyright. However
 it can be purchased at high resolution (color) for an affordable price:
 
 http://www.istockphoto.com/file_closeup/people_specific_attributes/race/mixed_background/3259587_old_paper_xxl.php?id=3259587
 
 I hope the link doesn't break, if it does search for Old Paper XXL.
 iStockPhoto has lots of really good artwork available at reasonable
 prices.

I see ('ll store the bookmark); I have similar (free) pictures, but not
in this quality.

 Anyhow, the cut markings are still lying under the picture (Hans?),
 the rest should work. The automatical scaling of the image uses a tricky
 method from this mailing list

 http://archive.contextgarden.net/message/20070719.232314.12cb4f5f.en.html

 
 Indeed, it would be nicer to have the cropmarks on top. Though this is
 not essential to me. Lulu.com actually doesn't want crop marks.

 Best wishes, Peter

 BTW: do you set a bleed|crop-box?
 
 No clue? How do I do that? What does it do? 

It simply defines the size and position of these boxes (which then
become part of the document). In your case any(?) print shop then knows
where to crop, even without any crop marks.
See also

http://www.pragma-ade.com/general/technotes/pdfboxes.pdf

and (only german; sorry, couldn't find it on the english wiki)

http://de.wikipedia.org/wiki/Portable_Document_Format#Angaben_der_Seitengeometrie

 Basically Lulu will print a 9.25x6.25 image onto their paper. Then a
 centered 9x6 page will be cut from that. This way full bleed print is
 achieved.

if they don't use them, you don't need them :)

 Though I'm still wondering about one thing: What's better in my case
 \printpapersize or \overlaysize?

I would prefer the printpaper sizes, as this is exactly what you want
(sizes are fixed). The power of the overlay sizes is, that they
automaticaly change with the environment. But this is not needed here.

 
 Thanks for your excellent help,
 Pascal de Bruijn
 
My pleasure!

Best, Peter
___
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   3   4   5   >