[NTG-context] In need of more detailed widget descriptions!

2011-06-07 Thread Verhaag, G.C.H.M.

Hi,

I'm struggling with widgets and went already through the Widget 
Uncovered manual, but experience problems running various examples under 
MkIV!


MAIN QUESTION:

Is the manual still valid for MkIV?

When I use for example the command \tracefieldstrue an Undefined control 
sequence error is triggered!


ADDITIONAL QUESTION:

Is it possible to give a simple example on how to write a validation 
function using JavaScrip or Lua?


I already looked at the module m-fields.mkiv but I still do need some 
additional explanation on that, sorry!


Regards,
Gerard Verhaag

P.S. Use ConTeXt  ver: 2011.05.16 11:00 MKIV
___
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] How to typeset current year using \date command?

2011-06-13 Thread Verhaag, G.C.H.M.

Hi,

I was wondering whether it is possible to automatically typeset ONLY the 
current year using the \date command?


From the reference manual I don't think it is possible! Maybe another 
trick is available!


Thanks!

Regards,
Gerard Verhaag
___
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] How to typeset current year using \date command?

2011-06-13 Thread Verhaag, G.C.H.M.

On 06/13/2011 11:04 AM, Wolfgang Schuster wrote:

Am 13.06.2011 um 10:59 schrieb Verhaag, G.C.H.M.:

   

Hi,

I was wondering whether it is possible to automatically typeset ONLY the 
current year using the \date command?

 From the reference manual I don't think it is possible! Maybe another trick is 
available!
 

\starttext
\currentdate[year]
\stoptext

Wolfgang

...


   

Hi,

Thank you very much!

Regards,
Gerard
___
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] Keep struggling with old style numerals!

2011-12-08 Thread Verhaag, G.C.H.M.

Hi ConTeXt user's,

A few days ago I installed the latest ConTeXt version but now my 
oldstyle settings don't seem to work any more!


I use the following settings in my preamble:

\usetypescript[schola]
\setupbodyfont[schola,10pt]

\definefontfeature [oldstyle] [default] [onum=yes]
\addff{oldstyle}

Perhaps something changed that I missed! Thanks in advance!

Regards
Gerard Verhaag

P.S. I use ConTeXt  ver: 2011.11.29 23:11 MKIV  fmt: 2011.12.5  int: 
english/english!

___
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] Keep struggling with old style numerals! SOLVED!

2011-12-08 Thread Verhaag, G.C.H.M.

On 12/08/2011 11:27 AM, Andreas Harder wrote:

On 08.12.2011, at 10:56, Verhaag, G.C.H.M. wrote:

   

Hi ConTeXt user's,

A few days ago I installed the latest ConTeXt version but now my oldstyle 
settings don't seem to work any more!

I use the following settings in my preamble:

\usetypescript[schola]
\setupbodyfont[schola,10pt]

\definefontfeature [oldstyle] [default] [onum=yes]
\addff{oldstyle}
 

Hi,

you can play with my example. It seems script=auto (default) is not that robust. Setting it to 
latn or dflt should help.

\definefontfeature [default] [default] [script=latin]
\definefontfeature [osf]   [onum=yes]
\definefontfeature [oldstyle][default] [onum=yes]

\definealternativestyle [osf] [\addff{osf}] [\addff{osf}]

\setuphead[section][style=osf]

\setupbodyfont[schola]


   


Hi,

Thanks for the tips! I changed [default] into [latn], which brought back 
the oldstyle numerals!


By the way, I think I used a version from last August before upgrading.

Regards,
Gerard Verhaag
___
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] pdfselect and context command?

2011-12-12 Thread Verhaag, G.C.H.M.

Hi ConTeXTt User's,

I was looking for the --pdfselect option in the context-command, but it 
doesn't seem to be available.


This option is available in texexec to select certain pages from a pdf file.

Can it also be done in some way using the context-command?

Regards,
Gerard Verhaag
___
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] pdfselect and context command?

2011-12-13 Thread Verhaag, G.C.H.M.

On 12/12/2011 11:57 AM, Hans Hagen wrote:

On 12-12-2011 11:10, Verhaag, G.C.H.M. wrote:

Hi ConTeXTt User's,

I was looking for the --pdfselect option in the context-command, but it
doesn't seem to be available.

This option is available in texexec to select certain pages from a pdf
file.

Can it also be done in some way using the context-command?


context --extra=select --help





Hi,

I tried to extract the first page of a recently (using ConTeXt ver: 
2011.11.29 23:11 MKIV fmt: 2011.12.5 int: english/english) generated pdf 
file with the following command:


context --select=extras --selection=1:1 myfile.pdf

which gave the following result/error:

! String contains an invalid utf-8 sequence.

system  tex  error on line 9 in file website.pdf: String contains an 
invalid utf-8 sequence ...


1 %PDF-1.6
2 %���
3 19 0 obj
4 
5 /Length 4260
6 /Filter /FlateDecode
7 
8 stream
9  x^�[Ɏ%I^^Q��W�#^^\*;#W 
�D�L!0'^^P\h!N�n�KD���f�U�z���ዹӧ�~'�4�c���/�cM�0N�?�C�}��^^_���4
10 ��㥒 
g�|�_|��v�/�}~��GZ���)=��S^^V�KI�2��,kZ˰���^^_�qM�%1�q\��$?�n׾���e�'p5��U�I��=��wq�~�(�^^O��^^W��g^^[^^U��i|.��/�~���7^^H�W��a���X�,˒!��^^Y^^_��^^G~���m~��yا1���~�U$�2X�}^^]S�}62�ddٱ��^^N۾l.�%�c�*^^[�r�^^Q^^Q̨� 
^^H�`ٸ^���,�d`��M�b�A�k^^^_�kΛ,u�^^^K���6��'Y3^^EOr8~0��^^]�U��^^^��,Ǐߋ��Ǩ��,�E^^L�^^_��Ju05�l)��^^C�ˮ�*�3rg��0�i��d�'v�J�.��Z]���\�?��1�]�{c^^_�fި%��e^^Q�^^T�H�0�b�f}��^^]���}^^S^^_:^^X^^\^^W���c[PPY4�^^[���ERA�^^A9��é�l�(��`^^KX��Y7|�C�ia%X��w��z=
11 
yOU��%��a4�?u^^Y!�̻QC3dϭ~cG�#�^^^�7���o'y��R^^YJY�z�2�!%y���R^^Z�yNE�P�Q�8l���^^WyiNUQ���Z�N�8ựI��V�N��^^X7^^T��[z�þ�E^^\�y��P4��?��v*W}��:^^U^^D�h�$^^TT

12
13 
ri��Y�xQ{#��u�/ڣ��^^R�^^S���^^X^^[�^^[7��-���U^^T/^^Yъ/.���^^V��^^Q�3L^^Ww��2�k8WS^^U�\�M�T���r�2t��r

14 9�X^^QD�N��h�^^V6��0^^G6
15 �a^^^9?�UO�?�#�c6���m�W^^G��2^^O^^[�0^^V�50KqI��^^Y
16 \��ll�=�^^^�� �3\^^V�z�^^[�L��[Y^^^�[ݴb�/rj8a 
^^W��K^^F^^Y^^D�F��y,R﫤]�^^T^^AŻ^^V��ӣf\
17 g�^^D\�m 
�1$�f�g���B���4�^^K}^^Rc�7^^Vх�,�^^WP�#*1^^G^^]U��y�qeq�~r�^^Rc

18 �ƪ!^^Q^^[^^_�
19 
7�^^\2��SO$x^^U[�*}�`^^Y�(���^^O{D5Ý�2��:���^^W]�^^_.F��,8B��^^P�^^^���W�K?�F�^^^M�i^^G^^Lo�o���ᇺݺ^^R(,��'^^Q%^^V�Z=L^^A 
\��8�aٚ���ۘ^^^ +�-�1^^Rt^^Fb��6


l.9 x^
�[Ɏ%I^^Q��W�#^^\*;#W �D�L!0'^^P\h!N�n�KD���f�U�z���ዹӧ�~'�4...

But the file myfile.pdf displays correctly in Acrobat Reader! Any idea 
what I did wrong?


Regards,
Gerard Verhaag
___
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] MetaFUN's \setupMPpage broken? [SOLVED]

2011-12-27 Thread Verhaag, G.C.H.M.

On 12/27/2011 12:24 PM, Wolfgang Schuster wrote:

Am 27.12.2011 um 11:35 schrieb Verhaag, G.C.H.M.:

   

Hi ConTeXt user's,

A few weeks ago I upgraded to the 11-11-29 version (MkIV) and today installed 
the 11-12-23 version (MkIV). The \setupMPpage command in the basic example 
below:

 \setupMPpage[offset=1pt]

  \startuseMPgraphic{test}
   fill fullsquare rotated 45 ;
  \stopuseMPgraphic

  \starttext
   \startMPpage
\includeMPgraphic{test}
   \stopMPpage
  \stoptext

yields the following error in both versions mentioned above:

 ! Undefined control sequence.
 system  tex  error on line 1 in file test.tex: Undefined control 
sequence ...

All this worked just fine in the version of last August!
 

Use \setupfittingpage[MPpage][…=…].

Wolfgang

..
   

Hi Wolfgang and John,

Both ways work well, thanks a lot! Does this mean that the setupMPpage 
command will become obsolete in near future?


Are both suggestions documented somewhere or is this mailing list the 
only way to find out?


Regards,
Gerard Verhaag
___
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] MetaFUN's \setupMPpage broken?

2011-12-27 Thread Verhaag, G.C.H.M.

Hi ConTeXt user's,

A few weeks ago I upgraded to the 11-11-29 version (MkIV) and today 
installed the 11-12-23 version (MkIV). The \setupMPpage command in the 
basic example below:


\setupMPpage[offset=1pt]

 \startuseMPgraphic{test}
  fill fullsquare rotated 45 ;
 \stopuseMPgraphic

 \starttext
  \startMPpage
   \includeMPgraphic{test}
  \stopMPpage
 \stoptext

yields the following error in both versions mentioned above:

! Undefined control sequence.
system  tex  error on line 1 in file test.tex: Undefined control 
sequence ...


All this worked just fine in the version of last August!

Regards,
Gerard Verhaag

___
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] MetaFUN's \setupMPpage broken? [SOLVED]

2011-12-28 Thread Verhaag, G.C.H.M.

On 12/27/2011 04:07 PM, Wolfgang Schuster wrote:

Am 27.12.2011 um 14:26 schrieb Verhaag, G.C.H.M.:

   

Hi Wolfgang and John,

Both ways work well, thanks a lot! Does this mean that the setupMPpage command 
will become obsolete in near future?

Are both suggestions documented somewhere or is this mailing list the only way 
to find out?
 

It’s already obsolete as you noticed by the “undefined control sequence” 
warning.

The reason for this is that \startMPpage and \startTEXpage are now defined in a 
different
way than they had been in MkII. In MkII both commands are defined with 
\def\startMPpage{…}
and \def\startTEXpage{…} but in MkIV both are a instance of fittingpage and the 
definition
for them is \definefittingpage[MPpage] and \definefittingpage[TEXpage]. As a 
consequence
the old \setupMPpage command is also gone and you have to set global settings 
with
\setupfittingpage[environment][settings].

Such a changes do happen with many commands in MkIV and the setup-commands
for them are moved to the underlying mechanism (e.g. fittingpage).

Wolfgang
...
   


Hi Wolfgang,

Thank you very much for your prompt explanation!

Regards,
Gerard Verhaag
___
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] Indentation the other way?

2012-01-10 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

I'm wondering whether it is possible to indent ALL lines in a paragraph 
EXCEPT the very FIRST one, using the current indentation features of 
ConTeXt?


Regards,
Gerard Verhaag

P.S. Currently using: ConTeXt  ver: 2011.12.23 09:52 MKIV  fmt: 
2011.12.27  int: english/english

___
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] Refering to point inside external pdf file?

2012-01-10 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

I'm struggling with references to external PDF files using the 
\useexternaldocument command.


Refering to the document works fine, but pointing at a specific location 
inside the file using for example 
\in{chapter}[logicalfilename::theverylocation] doesn't seem to work!


Feature is described in ConTeXt an excursion, page 64 (paper version)!

Regards,
Gerard Verhaag

P.S. Currently I use ConTeXt ver: 2011.12.23 09:52 MKIV fmt: 2011.12.27
___
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] Indentation the other way? SOLVED

2012-01-10 Thread Verhaag, G.C.H.M.

On 01/10/2012 12:14 PM, Aditya Mahajan wrote:

On Jan 10, 2012, at 4:48 AM, Verhaag, G.C.H.M.verhaagg...@ziggo.nl  wrote:

   

Hi ConTeXt User's,

I'm wondering whether it is possible to indent ALL lines in a paragraph EXCEPT 
the very FIRST one, using the current indentation features of ConTeXt?
 

Choose a negative value for indentation.

Aditya

   


Hi,

Thanks for the tip, very simple indeed!

Regards,
Gerard Verhaag
___
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] How to force indentation of the first paragraph?

2012-01-10 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

How can I force indentation of the very first paragraph of a 
chapter\section? Using the option first in the \setupindenting command 
doesn't seem to work? Neither does \indenting[always]!


Regards,
Gerard Verhaag

P.S. Currently I use ConTeXt ver: 2011.12.23 09:52 MKIV fmt: 2011.12.27
___
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] How to force indentation of the first paragraph?

2012-01-11 Thread Verhaag, G.C.H.M.

On 01/10/2012 03:14 PM, Wolfgang Schuster wrote:

Am 10.01.2012 um 14:56 schrieb Verhaag, G.C.H.M.:

   

Hi ConTeXt User's,

How can I force indentation of the very first paragraph of a chapter\section? 
Using the option first in the \setupindenting command doesn't seem to work? 
Neither does \indenting[always]!
 

\setuphead[section][indentnext=yes]

Wolfgang
...

   

Hi Wolfgang,

Thank you very much for your help!

Regards,
Gerard Verhaag
___
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] Refering to point inside external pdf file?

2012-01-11 Thread Verhaag, G.C.H.M.

On 01/10/2012 03:16 PM, Wolfgang Schuster wrote:

Am 10.01.2012 um 11:05 schrieb Verhaag, G.C.H.M.:

   

Hi ConTeXt User's,

I'm struggling with references to external PDF files using the 
\useexternaldocument command.

Refering to the document works fine, but pointing at a specific location inside 
the file using for example \in{chapter}[logicalfilename::theverylocation] 
doesn't seem to work!

Feature is described in ConTeXt an excursion, page 64 (paper version)!
 

Read this article from Hans: http://pragma-ade.com/show-mag-15.htm

Wolfgang


   

Hi Wolfgang,

Your suggested reading is very nice indeed! Thanks!

Regards,
Gerard Verhaag
___
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] Links in TOC not working properly?!

2012-01-30 Thread Verhaag, G.C.H.M.

Hi,

I installed the newest upgrade of ConTeXt, but processing my files 
yields strange results!


In an interactive document the links to the different sections are not 
working any more. Selecting the different sections from the 
table-of-contents (with \placelist command!) all yield a jump to the 
very first section!!!


Regards,
Gerard Verhaag

P.S. Currently using ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.1.30
___
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] Links in TOC not working properly?!

2012-01-31 Thread Verhaag, G.C.H.M.

On 01/30/2012 06:35 PM, Wolfgang Schuster wrote:

Am 30.01.2012 um 16:23 schrieb Verhaag, G.C.H.M.:

   

Hi,

I installed the newest upgrade of ConTeXt, but processing my files yields 
strange results!

In an interactive document the links to the different sections are not working 
any more. Selecting the different sections from the table-of-contents (with 
\placelist command!) all yield a jump to the very first section!!!
 

Your chances to get a answer will increase with a minimal example.

Wolfgang

   


Hi,

Okay, you'll find a basic example (test.tex) and it's resulting pdf file 
(test.pdf) included!


In this example the jump to the second section from the table of 
contents on the top of the chapter doesn't seem to work anymore, after I 
upgraded to the version of the 25th of January!


Example compiled with: ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 
2012.1.30  int: english/english.


Thanks for paying attention to this problem!

Regards,
Gerard Verhaag


% Test file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Test File,
   author=Gerard Verhaag]

\starttext

\chapter[test]{Test}

\startcolumns[n=2]
\placelist[section][pagenumber=no,interaction=text]
\stopcolumns

\section[abc]{Abc}

\dorecurse{70}
  {A test of placelist-command and interaction! }

\section[def]{Def}

\stoptext


test.pdf
Description: Adobe PDF 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] Links in TOC not working properly?!

2012-02-01 Thread Verhaag, G.C.H.M.

On 01/31/2012 10:55 AM, Verhaag, G.C.H.M. wrote:

On 01/30/2012 06:35 PM, Wolfgang Schuster wrote:

Am 30.01.2012 um 16:23 schrieb Verhaag, G.C.H.M.:


Hi,

I installed the newest upgrade of ConTeXt, but processing my files 
yields strange results!


In an interactive document the links to the different sections are 
not working any more. Selecting the different sections from the 
table-of-contents (with \placelist command!) all yield a jump to the 
very first section!!!

Your chances to get a answer will increase with a minimal example.

Wolfgang



Hi,

Okay, you'll find a basic example (test.tex) and it's resulting pdf 
file (test.pdf) included!


In this example the jump to the second section from the table of 
contents on the top of the chapter doesn't seem to work anymore, after 
I upgraded to the version of the 25th of January!


Example compiled with: ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 
2012.1.30  int: english/english.


Thanks for paying attention to this problem!

Regards,
Gerard Verhaag



Hi,

No tips or answers yet, sorry, but I'm very much in need for help, 
because I don't know what's wrong with the example!


The included test file (test.tex) doesn't give the expected result when 
it comes to interaction!


Jumping to the selected section from the table-of-contents doesn't seem 
to work anymore using the latest update! The jump to the first section 
seems to work fine, but selecting any other section from the 
table-of-contents just brings me at the very first section?!


Thanks!

Regards,
Gerard Verhaag

P.S. Using ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.1.30  int: 
english/english.



% Test file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Test File,
   author=Gerard Verhaag]

\starttext

\chapter[test]{Test}

\startcolumns[n=2]
\placelist[section][pagenumber=no,interaction=all]
%\placecontent[section][pagenumber=no,interaction=text]
\stopcolumns

\section[abc]{Abc}

\dorecurse{70}
  {A test of placelist-command and interaction! }

\section[def]{Def}

Another section starts right here!

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

Re: [NTG-context] Links in TOC not working properly?! SOLVED

2012-02-01 Thread Verhaag, G.C.H.M.

On 02/01/2012 11:16 AM, Hans Hagen wrote:

you can put this in cont-new.mkiv (after \unprotect)

\unexpanded\def\strc_lists_apply_renderingsetup
  {\the\t_lists_every_renderingsetup
   \edef\currentlistalternative{\listparameter\c!alternative}%
   \directsetup{\listalternativeparameter\c!renderingsetup}\relax
   \the\t_lists_every_renderingcleanup}




Hi Hans,

Thanks for paying attention to this problem!

Added the code as you suggested and now it works again.

A minor bug that will be corrected in the next release I suppose!

Regards,
Gerard Verhaag
___
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] Cross-document referencing; How to?!

2012-02-01 Thread Verhaag, G.C.H.M.

Hi,

After going through the suggested reading This Way, sep 2011 
(http://pragma-ade.com/show-mag-15.htm) in relation to this topic it was 
time to do some tests!


Well, I stumbled on the very first basic problem! Using the 
\useexternalfile[logical_name][filename] resulted in an Undefined 
control sequence ... error message!?


Anybody any suggestions about the syntax of this command?! The 
description in the reference part of the ConTeXt Garden wiki site is not 
of much help to me either, sorry!


Regards,
Gerard Verhaag

P.S. Currently using ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 
2012.1.30  int: english/english

___
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] Cross-document referencing; How to?!

2012-02-02 Thread Verhaag, G.C.H.M.

On 02/01/2012 04:23 PM, Wolfgang Schuster wrote:

Am 01.02.2012 um 15:44 schrieb Verhaag, G.C.H.M.:

   

Hi,

After going through the suggested reading This Way, sep 2011 
(http://pragma-ade.com/show-mag-15.htm) in relation to this topic it was time to do some 
tests!

Well, I stumbled on the very first basic problem! Using the 
\useexternalfile[logical_name][filename] resulted in an Undefined control 
sequence ... error message!?

Anybody any suggestions about the syntax of this command?! The description in 
the reference part of the ConTeXt Garden wiki site is not of much help to me 
either, sorry!
 

I think this is a typo in the manual and Hans meant the \useexternaldocument 
command because \useexternalfile was removed from MkIV and had a different 
purpose.

Wolfgang
...
   


Hi,

Well yes, the \useexternaldocument works, but not for example the 
\in-command!


When I for example use \useexternaldocument[tst][test][A test external] 
together with \from[tst] the test.pdf file is correctly opened in 
Acrobat Reader.


But the \in{section}[tst::def] doesn't open the test.pdf file at all?! 
The jump to the 'def' section doesn't seem to work! Please take a look 
at the two included test files.


Regards,
Gerard Verhaag
% Test file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test File,
   author=Gerard Verhaag]

\starttext

\useexternaldocument[tst][test][Een test external] % External file called: test.tex

Most \from[tst] from \in{section}[tst::def].

\stoptext

% Test file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test External File,
   author=Gerard Verhaag]

\starttext

\chapter[cross]{Cross referencing}

\section[abc]{Abc}

\dorecurse{70}
  {A test of cross referencing to exernal document!}

\section[def]{Def}

Another section starts right here!

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

Re: [NTG-context] Cross-document referencing; How to?!

2012-02-04 Thread Verhaag, G.C.H.M.

On 02/02/2012 11:43 AM, Verhaag, G.C.H.M. wrote:

On 02/01/2012 04:23 PM, Wolfgang Schuster wrote:

Am 01.02.2012 um 15:44 schrieb Verhaag, G.C.H.M.:


Hi,

After going through the suggested reading This Way, sep 2011 
(http://pragma-ade.com/show-mag-15.htm) in relation to this topic it 
was time to do some tests!


Well, I stumbled on the very first basic problem! Using the 
\useexternalfile[logical_name][filename] resulted in an Undefined 
control sequence ... error message!?


Anybody any suggestions about the syntax of this command?! The 
description in the reference part of the ConTeXt Garden wiki site is 
not of much help to me either, sorry!
I think this is a typo in the manual and Hans meant the 
\useexternaldocument command because \useexternalfile was removed 
from MkIV and had a different purpose.


Wolfgang
...


Hi,

Well yes, the \useexternaldocument works, but not for example the 
\in-command!


When I for example use \useexternaldocument[tst][test][A test 
external] together with \from[tst] the test.pdf file is correctly 
opened in Acrobat Reader.


But the \in{section}[tst::def] doesn't open the test.pdf file at all?! 
The jump to the 'def' section doesn't seem to work! Please take a look 
at the two included test files.


Regards,
Gerard Verhaag


Hi,

Again I want to focus on the cross-document referencing issue that is 
not working as expected (see example files on first mail in this thread)!


I don't know whether this feature is still available in MkIV, because up 
till now no reactions have been given regarding this problem!


Currently I'm planning a project and want to make use of this 
cross-document referencing feature.


Regards,
Gerard Verhaag
___
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] Cross-document referencing; How to?!

2012-02-07 Thread Verhaag, G.C.H.M.

On 02/04/2012 11:08 AM, Verhaag, G.C.H.M. wrote:

On 02/02/2012 11:43 AM, Verhaag, G.C.H.M. wrote:

On 02/01/2012 04:23 PM, Wolfgang Schuster wrote:

Am 01.02.2012 um 15:44 schrieb Verhaag, G.C.H.M.:


Hi,

After going through the suggested reading This Way, sep 2011 
(http://pragma-ade.com/show-mag-15.htm) in relation to this topic 
it was time to do some tests!


Well, I stumbled on the very first basic problem! Using the 
\useexternalfile[logical_name][filename] resulted in an Undefined 
control sequence ... error message!?


Anybody any suggestions about the syntax of this command?! The 
description in the reference part of the ConTeXt Garden wiki site 
is not of much help to me either, sorry!
I think this is a typo in the manual and Hans meant the 
\useexternaldocument command because \useexternalfile was removed 
from MkIV and had a different purpose.


Wolfgang
...


Hi,

Well yes, the \useexternaldocument works, but not for example the 
\in-command!


When I for example use \useexternaldocument[tst][test][A test 
external] together with \from[tst] the test.pdf file is correctly 
opened in Acrobat Reader.


But the \in{section}[tst::def] doesn't open the test.pdf file at 
all?! The jump to the 'def' section doesn't seem to work! Please take 
a look at the two included test files.


Regards,
Gerard Verhaag


Hi,

Again I want to focus on the cross-document referencing issue that is 
not working as expected (see example files on first mail in this thread)!


I don't know whether this feature is still available in MkIV, because 
up till now no reactions have been given regarding this problem!


Currently I'm planning a project and want to make use of this 
cross-document referencing feature.


Regards,
Gerard Verhaag



Hi,

The cross-document referencing feature that I want to apply in a new 
project is not working with the current MkIV release, as I've tried to 
explain in this thread!


I'm wondering why this thread, no responses up till now, doesn't seem to 
trigger any attention! Is this referencing issue perhaps trivial or...?!


Regards,
Gerard Verhaag
___
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] Cross-document referencing not working!

2012-02-08 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

I'm struggling with cross-document referencing, but can't get it working!

When I for example use \useexternaldocument[tst][test][A test external] 
together with \from[tst] the test.pdf file is correctly opened in 
Acrobat Reader.


But the \in{section}[tst::crossref] doesn't open the test.pdf file at 
all?! The jump to the 'crossref' section doesn't seem to work! Please 
take a look at the two included test files.


I first compile test.tex followed by the compilation of crossref.tex. 
Currently I use: ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.2.7  
int: english/english.


Regards,
Gerard Verhaag


% Test file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test External File,
   author=Gerard Verhaag]

\starttext

\chapter[cross]{Cross referencing}

\section[abc]{Abc}

\dorecurse{70}
  {A test of cross referencing to exernal document!}

\section[crossref]{Def}

Another section starts right here!

\stoptext
% Crossref file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test File,
   author=Gerard Verhaag]

\starttext

\useexternaldocument[tst][test][Een test external] % External file called: test.tex

Most \from[tst] from \in{chapter}[tst::crossref].

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

Re: [NTG-context] Cross-document referencing not working!

2012-02-09 Thread Verhaag, G.C.H.M.

On 02/09/2012 12:30 AM, Pontus Lurcock wrote:

On Wed 08 Feb 2012, Verhaag, G.C.H.M. wrote:

   

When I for example use \useexternaldocument[tst][test][A test
external] together with \from[tst] the test.pdf file is correctly
opened in Acrobat Reader.

But the \in{section}[tst::crossref] doesn't open the test.pdf file
at all?! The jump to the 'crossref' section doesn't seem to work!
Please take a look at the two included test files.

I first compile test.tex followed by the compilation of
crossref.tex. Currently I use: ConTeXt  ver: 2012.01.25 14:16 MKIV
fmt: 2012.2.7  int: english/english.
 

I get the same behaviour as you (context MkIV 2011.10.01, Adobe Reader
9.4, Linux) -- reference to file works, reference to section doesn't.
But I don't know how to fix it.

Pont

   

Hi,

Thanks for confirming the problem, so it looks like a bug?!

Nobody else has reported this problem, does that mean that this feature 
is not being used, or has it been working in the past?


Hopefully Hans reads this mail, and can fix the problem. I want to use 
the feature in a new project, and noticed it while doing some tests!


Regards,
Gerard Verhaag
___
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] Where to go????

2012-02-10 Thread Verhaag, G.C.H.M.

Hi ConTeXt user's,

Sorry about this question, but I want to find out to whom I should turn 
with the ConTeXt problem I have?


I've started two threads ('Cross-document referencing not working!' and 
'Cross-document referencing: How to?!') recently dealing with a 
cross-document referencing problem, but didn't get suggestions on how to 
get it solved. Perhaps it's just a minor issue!? I got one confirmation 
of the problem running a simple test file.


This feature (described in detail in This Way, sep 2011 
(http://pragma-ade.com/show-mag-15.htm)) is critical for a project I'd 
like to start!


But maybe this is not the right place to ask questions like these, but 
where should I go, if that's indeed the case? Maybe I'm not patient enough!


Regards,
Gerard Verhaag
___
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] Cross-document referencing not working!

2012-02-11 Thread Verhaag, G.C.H.M.

On 02/10/2012 11:59 AM, Otared Kavian wrote:

Hi Verhaag,

I just tested your example files: both with mkiv and mkii, ConTeXt version 
2011.11.29, the cross-referencing does work as expected in Adobe Reader. 
However when clicking to the link « Een test external », Adobe opens the 
external file and closes the original file (maybe this is the wanted behavior…).

With newer versions of ConTeXt I have are some other problems and I did not 
test your example. So if you are in a hurry, you may use ConTeXt version 
2011.11.29.

Best regards: OK

On 8 févr. 2012, at 16:31, Verhaag, G.C.H.M. wrote:

   

Hi ConTeXt User's,

I'm struggling with cross-document referencing, but can't get it working!

When I for example use \useexternaldocument[tst][test][A test external] 
together with \from[tst] the test.pdf file is correctly opened in Acrobat 
Reader.

But the \in{section}[tst::crossref] doesn't open the test.pdf file at all?! The 
jump to the 'crossref' section doesn't seem to work! Please take a look at the 
two included test files.

I first compile test.tex followed by the compilation of crossref.tex. Currently 
I use: ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.2.7  int: english/english.

Regards,
Gerard Verhaag

test.texcrossref.tex___
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
___
 

...
   


Hi,

Returning to an older version is not really an option because of other 
features not working!


But maybe it's not a ConTeXt problem but an Acrobat Reader problem.

Regards,
Gerard Verhaag
___
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] How to start every new chapter on page 1!?

2012-02-21 Thread Verhaag, G.C.H.M.

Hi ConTeXt Users,

I'd like to start every chapter on page one. The footer should contain 
the chapter number followed by the page number. So page three of chapter 
10, should read something like 10-3.


I was thinking way=bychapter in the \setuppagenumbering command would do 
the trick. However I see no change at all when changing the way 
parameter from the default mypart to mychapter!


Anybody any hint on this issue? Thanks in advance!

Currently I use ConTeXt  ver: 2012.02.18 10:50 MKIV  fmt: 2012.2.18  
int: english/english.


Regards,
Gerard Verhaag
___
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] How to start every new chapter on page 1!?

2012-02-21 Thread Verhaag, G.C.H.M.

On 02/21/2012 06:34 PM, Wolfgang Schuster wrote:

Am 21.02.2012 um 17:04 schrieb Verhaag, G.C.H.M.:

   

Hi ConTeXt Users,

I'd like to start every chapter on page one. The footer should contain the 
chapter number followed by the page number. So page three of chapter 10, should 
read something like 10-3.

I was thinking way=bychapter in the \setuppagenumbering command would do the 
trick. However I see no change at all when changing the way parameter from the 
default mypart to mychapter!

Anybody any hint on this issue? Thanks in advance!
 

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

Wolfgang


   

Hi,

Well, here is a minimal example which doesn't yield the expected result:

\setuppagenumbering[way=bychapter,chapternumber=yes]

\starttext
\chapter{One}
\chapter{Two}
\chapter{Three}
\stoptext

The pages are just numbered 1,2 and 3 respectively, and not 1-1, 2-1 and 
3-1 as expected!


Regards,
Gerard Verhaag
___
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] How to start every new chapter on page 1!?

2012-02-21 Thread Verhaag, G.C.H.M.

On 02/21/2012 07:41 PM, Wolfgang Schuster wrote:

Am 21.02.2012 um 19:34 schrieb Verhaag, G.C.H.M.:

   

On 02/21/2012 06:34 PM, Wolfgang Schuster wrote:
 

Am 21.02.2012 um 17:04 schrieb Verhaag, G.C.H.M.:


   

Hi ConTeXt Users,

I'd like to start every chapter on page one. The footer should contain the 
chapter number followed by the page number. So page three of chapter 10, should 
read something like 10-3.

I was thinking way=bychapter in the \setuppagenumbering command would do the 
trick. However I see no change at all when changing the way parameter from the 
default mypart to mychapter!

Anybody any hint on this issue? Thanks in advance!

 

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

Wolfgang



   

Hi,

Well, here is a minimal example which doesn't yield the expected result:

\setuppagenumbering[way=bychapter,chapternumber=yes]
 

\setuppagenumber[way=bychapter,prefix=yes,prefixset=chapter]

Wolfgang

   


Hi Wolfgang,

Thanks for your prompt answer and solution to the problem. But something 
keeps still bothering me!


According to the command reference description of the \setuppagenumber 
the way, prefix and  prefixset options are not mentioned at all! The 
\setuppagenumbering command description contains the way option, but NOT 
the prefix and prefixset option.


Is the command reference (wiki and pdf ) not up-to-date when it comes to 
MkIV applications, or do I miss a very important point here?


By the way, what is the actual difference between the setuppagenumber- 
and setuppagenumbering command anyway?


Regards,
Gerard Verhaag
___
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] Problem with math!

2012-02-25 Thread Verhaag, G.C.H.M.

Hi ConTeXt users,

Currently I'm experiencing problems with inline math mode in combination 
with the addff{oldstyle} command!


The attached test file doens't compile with the latest version 2012.2.18 
(MkIV), which seems to be caused by the introduction of the $\bullet$!


With older versions this worked okay!

Regards,
Gerard Verhaag
\language[nl]

\usetypescript[schola]
\setupbodyfont[schola,10pt]

\definefontfeature [oldstyle] [latn] [onum=yes]

% adding this feature set
\addff{oldstyle}

\starttext
 Math symbols like $\bullet$ NOT working any more from version 2012.2.18!
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Is the \definecolumnsetspan still supported!?

2012-02-29 Thread Verhaag, G.C.H.M.

Hi all,

I want to use the \definecolumnsetspan for typesetting text in columns 
as described in the Columns manual (2003) by Hans, but get an Undefined 
control sequence ... error when using it!


Maybe all this is not supported anymore but I don't know for sure. 
Anybody any idea on how to proceed?!


Regards,
Gerard Verhaag
___
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] Is the \definecolumnsetspan still supported!?

2012-03-01 Thread Verhaag, G.C.H.M.

On 03/01/2012 09:55 AM, Hans Hagen wrote:

On 29-2-2012 16:22, Verhaag, G.C.H.M. wrote:

Hi all,

I want to use the \definecolumnsetspan for typesetting text in columns
as described in the Columns manual (2003) by Hans, but get an Undefined
control sequence ... error when using it!


no example, no answer

Hans





Hi,

Sorry, but here is the example file (testcol.tex) which doesn't compile 
using ConTeXt  ver: 2012.02.18 10:50 MKIV  fmt: 2012.2.18  int: 
english/english.


Thanks!

Regards,
Gerard Verhaag
\definecolumnset[example][n=3]
\definecolumnsetspan[wide][n=2,background=contrast]
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
\dorecurse{40}{Zomaar een column tekst!}
\stopcolumnsetspan
\dorecurse{40}{Zomaar een column tekst!}
\stopcolumnset
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Cross-document referencing problem!

2012-04-05 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

Again I'm struggling with cross-document referencing! The page of the 
\pagereference[def] command is shown correctly in the pdf result of the 
attached test.tex file using \at{page}[def]!


However when I refer to this reference using \at{page}[tst::def] from 
the external document crossref.pdf only the 'page' string is displayed 
in it, but no sign of the page number. Clicking the page string brings 
me to the correct location, but I'm missing the pagenumber itself?


Both tex-files (minimal example!) files are attached!

Regards,
Gerard Verhaag

P.S. Currently I use ConTeXt  ver: 2012.02.18 10:50 MKIV  fmt: 
2012.2.18  int: english/english together with Acrobat Reader 9.4.2 on 
Linux box.
% Crossref file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test File,
   author=Gerard Verhaag]

\starttext

\useexternaldocument[tst][test][Een test external] % External file called: test.tex

Most \from[tst] from \in{section}[tst::crosssection].

At \at{\it p. }[tst::crosssection]

At \at{page}[tst::def]

\stoptext

% Test file

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test External File,
   author=Gerard Verhaag]

\starttext

\chapter[cross]{Cross referencing}

\section[abc]{Abc}

\dorecurse{170}
  {A test of cross referencing to exernal document!}

\section[crosssection]{Def}

Another section starts right here!

\page[yes]

\pagereference[def]

At \at{page}[def]!

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

[NTG-context] Pagereference not working!?

2012-04-07 Thread Verhaag, G.C.H.M.

Dear ConTeXt user's,

Today I upgraded to the latest MkIV release 2012.04.06!

I noticed that the \pagereference command is not working any more. Page 
referencing between external documents isn't working either!


Please run the included example file!

Regards,
Gerard Verhaag
% Pagereference test!

\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Page Referencing Test File,
   author=Gerard Verhaag]

\starttext

\blank[big]
Here is the \type{\pagereference}. \pagereference[abc]
\blank[big]
\dorecurse{170}
  {A test of a page reference within a document!}
\blank[big]
From here I should jump to \at{page}[abc] page one, but\ldots not working!

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

Re: [NTG-context] Pagereference not working!?

2012-04-07 Thread Verhaag, G.C.H.M.

On 04/07/2012 03:16 PM, Hans Hagen wrote:

On 7-4-2012 12:42, Wolfgang Schuster wrote:


Am 07.04.2012 um 12:17 schrieb Verhaag, G.C.H.M.:


Dear ConTeXt user's,

Today I upgraded to the latest MkIV release 2012.04.06!

I noticed that the \pagereference command is not working any more. 
Page referencing between external documents isn't working either!


There are indeed problems with the \reference, \textreference and 
\pagereference commands and \in and \at to show the values.


some grouping issue ... new beta

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

Hans, thanks for the quick repair! Wolfgang, thanks for the nice 
reference examples!


Regards,
Gerard Verhaag
___
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] Basic \def error?

2013-04-23 Thread Verhaag, G.C.H.M.

Hi Luigi,

Thanks for your very quick response, just great! Your suggestion works!

By the way, what does this expanded mean, is it documented somewhere? Is 
it a typical MKIV thing related to Lua?


Regards,
Verhaag, G.C.H.M.

On 04/23/2013 07:08 PM, luigi scarso wrote:

On Tue, Apr 23, 2013 at 7:04 PM, Verhaag, G.C.H.M.verhaagg...@ziggo.nl  wrote:
   

Hi ConTeXt User's,

Again I'm struggling with MKIV!

I get the following error message:

! Argument of \HeadTitle has an extra }

My environment file contains the following definition:

\def\HeadTitle#1#2%
   {\hbox to \hsize \bgroup
\hfill
\lbox to 2cm{\hsize 7cm #2}%
\egroup}
 

\unexpanded\def\HeadTitle#1#2%
   {\hbox to \hsize \bgroup
 \hfill
 \lbox to 2cm{\hsize 7cm #2}%
 \egroup}



--
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

   



--
Afz.: Geert C.H.M. Verhaag
  St. Jorisstraat 29
  5954 AN Beesel
  NETHERLANDS

  Tel.: +31-(0)774742493, E-mail: verhaagg...@ziggo.nl

Ik vertrouw erop dat de persoonlijke gegevens, te vinden in deze mail,
uitsluitend voor correspondentie met ondergetekende worden gebruikt en
beslist niet voor reclamedoeleinden of welke andere wijze dan ook. Het
opnemen van deze gegevens, in welk soort van opslagsysteem dan ook,
evenals het doorgeven ervan aan derden, zie ik als een schending van
mijn privacy.

___
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] Basic \def error?

2013-04-25 Thread Verhaag, G.C.H.M.

Hi,

Thank you very much for the explanation, now it's clear to me!

Regards,
Verhaag, G.C.H.M.

On 04/24/2013 12:20 AM, Wolfgang Schuster wrote:

Am 23.04.2013 um 20:11 schrieb Verhaag, G.C.H.M.verhaagg...@ziggo.nl:

   

Hi Luigi,

Thanks for your very quick response, just great! Your suggestion works!

By the way, what does this expanded mean, is it documented somewhere? Is it a 
typical MKIV thing related to Lua?
 

It’s a typical way in MkIV to check for the existing of values in “command” 
keys but it has nothing to do with Lua.


I can demonstrate the purpose of \unexpanded with the following example. First 
I create the two
command \one and \two, afterwards I add \expandedone and \expandedtwo which 
hold the
expanded values of \one and \two.

As you can see I get the same text with \one and \expandedone. In the next step 
I redefine \one
and \two to hold a new value and compare again the content of all four macros. 
Unlike in the
previous output \one and \expandedone are different while \two and \expandedtwo 
show
the same result. The reason why \expandedtwo show “Second” is that 
\unexpanded\def
prevented the expansion of \two in \edef\expandedtwo{…}.

\starttext

\def\one{One}
\unexpanded\def\two{Two}

\edef\expandedone{\one}
\edef\expandedtwo{\two}

\startlines
\one:\expandedone
\two:\expandedtwo
\stoplines

\def\one{First}
\def\two{Second}

\startlines
\one:\expandedone
\two:\expandedtwo
\stoplines

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

   

___
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] Lettrine module not working?!

2013-04-25 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

I'm currently experiencing problems using the lettrine module! I know 
from fairly recent (mail-archive!) issues related to this module but 
can't figure out why my setup isn't working anymore.


I use the following:

\lettrine[Image=no,Slope=-0.5em,Hang=0.2,Findent=0.7em]
{H}{et is ca. half tien} in de...

This yields the following error message:

to be read again
\def
\doifnextoptionalelse #1#2 -\def
\m_syst_action_yes {#1}\def \m_syst_action_...
\doLettrineFont ...a \LettrineHeight \definedfont
[LettrineFont at \the \!!d...
\dolettrine ...trineEPS {#2}\else \doLettrineFont
#2\fi \fi }}\setbox \Lettr...
l.27 {H}{et is ca. half tien}

Maybe something has changed in the arguments of which I'm unaware!

Regards,
Verhaag, G.C.H.M.

P.S.Currently using ConTeXt  ver: 2013.04.20 01:15 MKIV current  fmt: 2013.4.22 
 int: english/english





___
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] Best Practise!?

2013-05-04 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

I'm currently considering a new project, but wondering whether I'd 
choose for a MkII or MkIV basis?


I've been using MkIV for some time now, but have the impression that it 
is less well documented than the MkII setup. Please correct me when I'm 
wrong here! Okay, the help of this mailing list and of course 
http://wiki.contextgarden.net solved most of the problems I encountered. 
However the mailing list dependency makes me feel a bit uncomfortable. 
Maybe that's the way it works, because the development is very dynamic!


Any suggestions are very much appreciated. Thanks in advance!

Regards,
Verhaag, G.C.H.M.
___
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] Chart comment not rendering!

2010-12-04 Thread Verhaag, G.C.H.M.

Hi,

I wanted to try the chart module to build some flow diagrams, and tried 
the example (digital signal processing!) at contextgarden. 
Unfortunately, the text inside the rectangular shapes shows up properly, 
but no sign of any comments visible in the generated pdf-file!


I use ConTeXt  ver: 2008.05.21 15:21 MKII together with pdfTeXk, Version 
3.1415926-1.40.9 (Web2C 7.5.7).


Any help will be very much appreciated. Thanks in advance!

Regards,
Gerard Verhaag
___
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] Chart module: comment not visible!?

2010-12-06 Thread Verhaag, G.C.H.M.

Hi,

I wanted to try the chart module to build some flow diagrams, and tried
the example (digital signal processing!) at contextgarden.
Unfortunately, the text inside the rectangular shapes shows up properly,
but no sign of any comments visible in the generated pdf-file!

I use ConTeXt  ver: 2008.05.21 15:21 MKII together with pdfTeXk, Version
3.1415926-1.40.9 (Web2C 7.5.7).

Any help will be very much appreciated. Thanks in advance!

Regards,
Gerard Verhaag

___
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] Chart module: comment not visible!?

2010-12-06 Thread Verhaag, G.C.H.M.

Alan BRASLAU wrote:


On Monday 06 December 2010 11:09:42 Verhaag, G.C.H.M. wrote:
 


Hi,

I wanted to try the chart module to build some flow diagrams, and tried
the example (digital signal processing!) at contextgarden.
Unfortunately, the text inside the rectangular shapes shows up properly,
but no sign of any comments visible in the generated pdf-file!

I use ConTeXt  ver: 2008.05.21 15:21 MKII together with pdfTeXk, Version
3.1415926-1.40.9 (Web2C 7.5.7).

Any help will be very much appreciated. Thanks in advance!

Regards,
Gerard Verhaag

   



Processes fine here using mkiv and the latest minimals.
I do not know about mkii...

Alan
 



Hi,

So it is best to upgrade!

Regards,
Gerard Verhaag
___
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] Minimal ConTeXt and texfont!

2010-12-13 Thread Verhaag, G.C.H.M.

Hi,

I've removed my old TeXLive installation from my Linux box, an decided 
to start using ConTeXt only!


So, I installed the ConTeXt minimals (from contextgarden) and everything 
seems to work just fine, but..


I want to try to install some new fonts and it is common practice to use 
texfont for that. ConTeXt comes with its own texfont, but when I type 
texfont at my linux-prompt, no texfont can be found? Do I need to 
install additional tools to be able to build new fonts?


Any suggestions? Thanks in advance!

Regards,
Gerard Verhaag
___
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] Minimal ConTeXt and texfont!

2010-12-13 Thread Verhaag, G.C.H.M.

Mojca Miklavec wrote:


On Mon, Dec 13, 2010 at 10:27, Verhaag, G.C.H.M. wrote:
 


I want to try to install some new fonts and it is common practice to use
texfont for that. ConTeXt comes with its own texfont, but when I type
texfont at my linux-prompt, no texfont can be found? Do I need to install
additional tools to be able to build new fonts?
   



TeXfont used to be a common practice until the arrival of MKIV. It's
not maintained, it is somewhat buggy, it has been removed from
standard tools (though you can still make it work easily), but I would
strongly recommend you to use ConTeXt MKIV (LuaTeX instead of pdfTeX)
if you need non-texie fonts. In that case all you need to do is to put
your fonts into texmf-fonts or texmf-local under
tex/opentype/company/fontname (the part tex/opentype is the most
important part - assuming that you are indeed dealing with OpenType
fonts).

Alternatively you may configure OSFONTDIR to point to the folders
where you have your system fonts and they will be picked up
automatically. If you use XeTeX your system font should be found by
default.

You only need the right typescripts, but no font conversion at all.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

 


Hi,

I use the latest ConTeXt MkIV version on a Linux (kernel 2.4) based PC; 
so I use LuaTeX!


I understand that I don't need to use texfont when using ttf-fonts, with 
this version of ConTeXt.


But still need to write the proper typescripts, right?
Does the same apply to opentype fonts?

Regards,
Gerard Verhaag
___
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] Minimal ConTeXt and texfont!

2010-12-14 Thread Verhaag, G.C.H.M.

Henning Hraban Ramm wrote:


Am 2010-12-13 um 15:21 schrieb Verhaag, G.C.H.M.:

I use the latest ConTeXt MkIV version on a Linux (kernel 2.4) based  
PC; so I use LuaTeX!



Good, that's most easy for fonts.

I understand that I don't need to use texfont when using ttf-fonts,  
with this version of ConTeXt.



Right.


But still need to write the proper typescripts, right?



Not if you use the simplefonts module (except you have a unregular  
font family) or someone else already wrote them ;-)



Does the same apply to opentype fonts?




Yes.


Greetlings from Lake Constance!
Hraban



Hi,

Thanks for the tips! But now a real example. I've downloaded a font file 
called:


PlymouthRock 'SnowDusted'.ttf,

(Just a nice font to write Christmas cards; view it with Konqueror!)

and put it into texmf-fonts/tex/truetype/plymouthrock/snowdusted directory.

But what to do next is unclear to me!

Frankly speaking, fonts are a very delicate and tricky aspect of TeX, 
which I've never understood, despite all the available documentation, sorry!


Regards,
Gerard Verhaag
___
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] Minimal ConTeXt and texfont!

2010-12-14 Thread Verhaag, G.C.H.M.

Wolfgang Schuster wrote:


Am 14.12.2010 um 11:15 schrieb Verhaag, G.C.H.M.:

 


Thanks for the tips! But now a real example. I've downloaded a font file called:

PlymouthRock 'SnowDusted'.ttf,

(Just a nice font to write Christmas cards; view it with Konqueror!)

and put it into texmf-fonts/tex/truetype/plymouthrock/snowdusted directory.
   



Wrong directory, you need

  texmf-fonts/fonts/data

subdirectories below data are optional.

After that run „context --generate“ to inform context about the new file,
after that you can use it in your document with

\definefont[snowdust][file:snowdusted*default]
\starttext
\snowdust SnowDusted
\stoptext

To use the font for the whole document you can try:

\usemodule[simplefonts]
\setmainfont[SnowDusted]
\starttext
SnowDusted
\stoptext

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

 


Hi,

I've put the ttf-file into the texmf-fonts/fonts/data directory, without 
the subdirectories, right?


After that I ran: context --generate.

Wolfgang, the file parameter of the definefont command is unclear to me, 
can you explain that to me?


Can I check for the new font with for example the mtxrun command?

Example is not yet working with the new font, sorry!

Regards,
Gerard
___
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] Minimal ConTeXt and texfont!

2010-12-14 Thread Verhaag, G.C.H.M.

Marco Pessotto wrote:


Mojca Miklavec mojca.miklavec.li...@gmail.com writes:

 


On Tue, Dec 14, 2010 at 11:53, Verhaag, G.C.H.M. wrote:
   


Hi,

I've put the ttf-file into the texmf-fonts/fonts/data directory, without the
subdirectories, right?
 


You either have to put the font into
   texmf-fonts/fonts/truetype/anywhere
or
   texmf-fonts/fonts/data/anywhere

(You can use texmf-fonts, texmf-local, I think that also ~/texmf would work.)

The first folder fonts/truetype is appropriate for TrueType fonts only
and is a more general location inside TDS (valid for other
distributions as well). Any font-related file may go to fonts/data.

You forgot the fonts subfolder in your earlier message.

Mojca

   



Try this sequece:

copy the .ttf in contextroot/tex/texmf-fonts/fonts/truetype/anywhere

mktexlsr

mtxrun --script fonts --reload

context --generate

and finally check with

mtxrun --script font --list if it appears in the list

In my experience (i.e., if i recall correctly) mktexlsr is needed even
if you use only mkiv.

Bests

 


Hi,

Well I've put my ttf into:  texmf-fonts/fonts/data, and entered the 
following sequence of commands:


mktexlsr

mtxrun --scripts fonts --reload

context --generate

Then I checked using the following command:

mtxrun --script fonts --list --all --pattern=*snow*

which yielded the following output:

plymouthrocksnowdusted plymouthrocksnowdusted   
PlymouthSnowDusted.ttf
plymouthrocksnowdustednormal   plymouthrocksnowdusted   
PlymouthSnowDusted.ttf


So this seams to be okay!

Next I used the proposed context file:

\definefont[snowdust][file:snowdusted*default]
\starttext
\snowdust SnowDusted
\stoptext

This however gives the following output (only part of it!):
...
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file test at line 2
define fonts font with name snowdusted is not found
define fonts unknown font snowdusted, loading aborted
define fonts unable to define snowdusted as \**snowdust**
pagesflushing realpage 1, userpage 1, subpage 1
systems : end file test at line 4
system  : cont-err loaded
...

What does the file-parameter do? I'm somehow lost now, sorry!

Regards,
Gerard

--
Afz.: Geert C.H.M. Verhaag
 St. Jorisstraat 29
 5954 AN Beesel
 NETHERLANDS

 Tel.: +31-(0)774742493, E-mail: verhaagg...@ziggo.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] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-30 Thread Verhaag, G.C.H.M.

Hi,

This might not be the right place to ask this question, but want to give 
it a try anyway!


I've installed the ConTeXt minimals (Mark IV!) recently, and running the 
command:


 context --version

yields the following output:

 ...
 MTXrun | current version: 2010.07.30 11:35

Now I want to generate a few plots using the graph-module (by John D. 
Hobby) of MetaPost, which I used in the past to make high-quality plots. 
But when I add the following statement:


 input graph ;

to the preamble of my MetaPost file and run the command:

 mpost plot.mp

The run aborts with the following messages:

 texnum.mp
 texnum.mpx
! Unable to make mpx file.
l.17 init_numbers(btex
 $-$etex, btex$1$etex, btex${\times}10$etex,
Transcript written on texnum.log.
TeXExec | processing graphic 'texnum.mpx'
TeXExec | runtime: 1.547143


 texnum.mp
 texnum.mpx
! Unable to make mpx file.
l.17 init_numbers(btex
 $-$etex, btex$1$etex, btex${\times}10$etex,
Transcript written on plot.log.

So where to go from here? Do I need to install additional TeX related 
stuff to get it working? Anybody any suggestions, please? Thanks in advance!


Regards,
Gerard Verhaag

P.S.

By the way, if I use MetaPost within ConTeXt using:

\loadmarkfile{m-graph}

\starttext
\startMPcode
   .
   /[MetaPost code]
  .
/ \stopMPcode
\stoptext

than everything works just fine!

___
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] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-30 Thread Verhaag, G.C.H.M.

Martin 'golodhrim' Scholz wrote:


In article 4d1c59ef.3080...@ziggo.nl, Verhaag, G.C.H.M. wrote:
 


Hi,

This might not be the right place to ask this question, but want to give 
it a try anyway!


I've installed the ConTeXt minimals (Mark IV!) recently, and running the 
command:


 context --version

yields the following output:

 ...
 MTXrun | current version: 2010.07.30 11:35

Now I want to generate a few plots using the graph-module (by John D. 
Hobby) of MetaPost, which I used in the past to make high-quality plots. 
But when I add the following statement:


 input graph ;

to the preamble of my MetaPost file and run the command:

 mpost plot.mp

The run aborts with the following messages:

   


texnum.mp
texnum.mpx
   


! Unable to make mpx file.
l.17 init_numbers(btex
 $-$etex, btex$1$etex, btex${\times}10$etex,
Transcript written on texnum.log.
TeXExec | processing graphic 'texnum.mpx'
TeXExec | runtime: 1.547143


   


texnum.mp
texnum.mpx
   


! Unable to make mpx file.
l.17 init_numbers(btex
 $-$etex, btex$1$etex, btex${\times}10$etex,
Transcript written on plot.log.

So where to go from here? Do I need to install additional TeX related 
stuff to get it working? Anybody any suggestions, please? Thanks in advance!


Regards,
Gerard Verhaag

P.S.

By the way, if I use MetaPost within ConTeXt using:

\loadmarkfile{m-graph}

\starttext
\startMPcode
   .
   /[MetaPost code]
  .
/ \stopMPcode
\stoptext

than everything works just fine!

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

   


Hi Gerard,

that's because of a change in ConTeXts metapost, you can use

\startMPpage
Your MP Code here
\stopMPpage

MetaPost from ConTeXt is not able without big changes to run standalone,
so you might need to load the MetaPost version from TeXlive, the way how
to do so depends on your OS...

Greetings
 


Hi Martin,

Okay, thanks for your answer!

Embedding the code in my ConTeXt file works well, but I was used to 
obtain my MetaPost figures seperately using the mpost-command!


Regards,
Gerard Verhaag
___
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] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-31 Thread Verhaag, G.C.H.M.

Wolfgang Schuster wrote:


Am 30.12.2010 um 11:07 schrieb Verhaag, G.C.H.M.:

 


By the way, if I use MetaPost within ConTeXt using:

\loadmarkfile{m-graph}
   



The module is loaded with \usemodule[graph].

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

 


Hi,

So I understand that both statements:

\loadmarkfile{m-graph}

\usemodule[graph]

are actually the same thing!

Regards,
Gerard
___
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] How to get graph module (metapost) to work with ConTeXt minimals?

2011-01-03 Thread Verhaag, G.C.H.M.

Wolfgang Schuster wrote:


Am 31.12.2010 um 10:36 schrieb Verhaag, G.C.H.M.:

 


So I understand that both statements:

\loadmarkfile{m-graph}

\usemodule[graph]

are actually the same thing!
   



Both work but they are not the same thing.

\loadmarkfile loads only the given file with the extension “mkii” MkII and 
“mkiv” for MkIV and only used in modules.

\usemodule does a lot more than this, the first is that it checks for the given 
module with different prefixes (the graph module has a “m-” prefix which means 
it’s a core module) and it also looks for file with different extension, this 
means it doesn’t matter if the module is called m-graph.tex, m-graph.mkiv or 
even t-graph.mkiv, \usemodule will always load the module while \loadmarkfile 
will only load m-graph.mkiv

When you load a file with \loadmarkfile and the file is not present you will 
get a message on the terminal to give a different file name which aborts the 
tex run while \usemodule will only give a message on the terminal but the 
processing isn’t stopped, as a last thing \usemodule loads a module only once 
while \loadmarkfile will always read the file.

Wolfgang


 


Thanks for explaining the differences of the two statements!

Regards,
Gerard
___
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] How to use boxit MetaPost macros with ConTeXt minimals?

2011-01-03 Thread Verhaag, G.C.H.M.

Hi,

I'd like to use the boxit MetaPost macros with ConTeXt minimals. Is 
there a way to tackle this or do I need the chart module for that.


Am I right in saying that the boxit macros give more flexibility 
compared to the chart module? Or is it just a matter of taste?


Regards,
Gerard Verhaag
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] What has happened to externalfigure command?

2011-01-06 Thread Verhaag, G.C.H.M.

Hi,

I'm struggling to get an older ConTeXt file that worked well under 
TeXLive 2008, but not any more with ConTeXt minimals!


I've installed the ConTeXt minimals (Mark IV!) (MTXrun | current 
version: 2010.07.30 11:35) recently.


I've a file someplot.1 in a directory called /home/somewhere. The 
ConTeXt source file contains the command:


\setupexternalfigures
 [directory={/home/somewhere}]

in the preamble.

The image file is called using:

\leftaligned{\externalfigure[someplot.1][scale=100]}

But no image is presented in the generated pdf-file! However, all 
jpg-type of images that I use in the document - using similar commands - 
are all rendered correctly!


What's wrong? Anybody any idea?

Regards,
Gerard Verhaag
___
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] What has happened to externalfigure command?

2011-01-08 Thread Verhaag, G.C.H.M.

Henning Hraban Ramm wrote:


Am 2011-01-06 um 14:40 schrieb Verhaag, G.C.H.M.:

I've a file someplot.1 in a directory called /home/somewhere. The  
ConTeXt source file contains the command:
However, all jpg-type of images that I use in the document - using  
similar commands - are all rendered correctly!



What's the file format of someplot.1? MetaPost, EPS?


It was generated with MetaPost about 2 years ago!

Maybe some automatic preprocessing fails. (see also 
http://wiki.contextgarden.net/File_Formats)


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




Regards,
Gerard
___
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] Trying MPtoPDF!

2011-01-08 Thread Verhaag, G.C.H.M.

Hi,

While trying to get some MetaPost plots converted to PDF, with the 
latest ConTeXt minimals installation (MkIV) on my Linux box, things 
happen which I don't understand, sorry!


First I run the command:

mtxrun --script

which yields:

MTXrun | TDS Runner Tool 1.26
MTXrun |
MTXrun | no script name given, known scripts:
MTXrun |
MTXrun | babel 1.20  Babel Input To UTF Conversion
MTXrun | base  1.35  ConTeXt TDS Management Tool
MTXrun | cache 0.10  ConTeXt  MetaTeX Cache Management
MTXrun | chars 0.10  MkII Character Table Generators
MTXrun | check 0.10  Basic ConTeXt Syntax Checking
MTXrun | context   0.51  ConTeXt Process Management
MTXrun | convert   0.10  ConTeXT Graphic Conversion Helpers
MTXrun | fonts 0.21  ConTeXt Font Database Management
MTXrun | grep  0.10  Simple Grepper
MTXrun | interface 0.11  ConTeXt Interface Related Goodies
MTXrun | metatex   0.10  MetaTeX Process Management
MTXrun | modules   1.00  ConTeXt Module Documentation Generators
MTXrun | mptopdf   0.51  MetaPost to PDF Converter
[more is output but NOT listed here!]

When I run

mtxrun --script mptopdf tobeconvertedplot.1

I get the following output:


This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.

kpathsea: Running mktexfmt mptopdf.fmt
mktexfmt: No such file or directory
I can't find the format file `mptopdf.fmt'!

MPtoPDF 1.4.0 : error while processing tex file

By the way I've NO TeXLive installed!
Why do the MTtoPDF versions (1.4 or 0.5!) not agree, and why does it not 
work?


Do I need to install other tools to get it working?

Regards,
Gerard Verhaag
___
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] Trying MPtoPDF!

2011-01-10 Thread Verhaag, G.C.H.M.

Vladimir Lomov wrote:


** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]:

 


Hi,
   


[...]

 


This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.
   


This: (TeX Live 2010) contradicts with that:
 


While trying to get some MetaPost plots converted to PDF, with the
latest ConTeXt minimals installation (MkIV) on my Linux box, things
happen which I don't understand, sorry!
   



[...]
 


Do I need to install other tools to get it working?
   


I'm not sure. But before you have to be sure that you actually use
context minimals.

Suppose, that you have TeX Live 2010 installed here:
/usr/local/texlive/2010
and context minimals installed here:
/usr/local/opt/context

Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and
do
$ . /usr/local/opt/context/tex/setuptex
and _after_ that run
$ mtxrun ...

If you still get an error something is really broken.

---
WBR, Vladimir Lomov

 


Hi,

No I haven't installed TeXLive2010, only ConTeXt minimals!

Regards,
Gerard Verhaag
___
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] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-18 Thread Verhaag, G.C.H.M.

Hi,

I wanted to try (using ConTeXt minimals MkIV) the example on page 228 of 
the MetaFun manual, dealing with typesetting in MetaPost.


The code is given as:

\resetMPdrawing
\startMPdrawing
picture pic[] ;
numeric wid[], len[], pos[], n ;
wid[0] := len[0] := pos[0] := n := 0 ;
\stopMPdrawing

\def\whatever#1%
{\appendtoks#1\to\MPtoks
 \setbox\MPbox=\hbox{\bfd\the\MPtoks}%
 \startMPdrawing
  n := n + 1 ; len[n] := \the\wd\MPbox ;
 \stopMPdrawing
 \startMPdrawing[-]
  pic[n] := textext(\bfd\setstrut\strut#1) ;
  pic[n] := pic[n] shifted - llcorner pic[n] ;
 \stopMPdrawing}

\handletokens MetaPost is Fun!\with\whatever

But is won't run. The following message is generated:

\@@toks -\MPtoks

\dodoappendtoks -\dodoglobal \@@toks
 \@EAEAEA {\@EA \the \@EA \@@toks 
\the ...

\whatever #1-\appendtoks #1\to \MPtoks
   \setbox \MPbox =\hbox {\bfd \the 
\MP...

\dodohandletokenstwo *#1-\dododohandletokens {#1}
 \dohandletokens
argument M
   etaPost is Fun!
\handletokens ...ndletokens {#2}\dohandletokens #1
 \end
l.96 \handletokens MetaPost is Fun!\with\whatever

Anybody any idea?

Regards,
Gerard Verhaag
___
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] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-19 Thread Verhaag, G.C.H.M.

Verhaag, G.C.H.M. wrote:


Hi,

I wanted to try (using ConTeXt minimals MkIV) the example on page 228 
of the MetaFun manual, dealing with typesetting in MetaPost.


The code is given as:

\resetMPdrawing
\startMPdrawing
picture pic[] ;
numeric wid[], len[], pos[], n ;
wid[0] := len[0] := pos[0] := n := 0 ;
\stopMPdrawing

\def\whatever#1%
{\appendtoks#1\to\MPtoks
 \setbox\MPbox=\hbox{\bfd\the\MPtoks}%
 \startMPdrawing
  n := n + 1 ; len[n] := \the\wd\MPbox ;
 \stopMPdrawing
 \startMPdrawing[-]
  pic[n] := textext(\bfd\setstrut\strut#1) ;
  pic[n] := pic[n] shifted - llcorner pic[n] ;
 \stopMPdrawing}

\handletokens MetaPost is Fun!\with\whatever

But is won't run. The following message is generated:

\@@toks -\MPtoks

\dodoappendtoks -\dodoglobal \@@toks
 \@EAEAEA {\@EA \the \@EA \@@toks 
\the ...

\whatever #1-\appendtoks #1\to \MPtoks
   \setbox \MPbox =\hbox {\bfd 
\the \MP...

\dodohandletokenstwo *#1-\dododohandletokens {#1}
 \dohandletokens
argument M
   etaPost is Fun!
\handletokens ...ndletokens {#2}\dohandletokens #1
 \end
l.96 \handletokens MetaPost is Fun!\with\whatever

Anybody any idea?

Regards,
Gerard Verhaag
___ 

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
___ 




Hi,

I'm in need of help to get the example as described in the MetaFun 
manual running, because I want to use text around a path!


So, I started reading the chapter about 'Typesetting in METAPOST' and 
wanted to try the examples as given in that chapter, but without succes!


The problem seem to be the MPtoks macro. According to the text in this 
chapter this low level macro (and MPbox and appendtoks) are already 
defined, but are they really?


The version of context minimals I use at the moment is:

MTXrun | current version: 2011.01.18 19:34

Any suggestions are very much welcomed! Thanks in advance!

Regards,
Gerard
___
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] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-20 Thread Verhaag, G.C.H.M.

Aditya Mahajan wrote:


On Tue, 18 Jan 2011, Verhaag, G.C.H.M. wrote:


Hi,

I wanted to try (using ConTeXt minimals MkIV) the example on page 228 
of the MetaFun manual, dealing with typesetting in MetaPost.



I haven't look at the metapost manual ... but


The code is given as:

\resetMPdrawing
\startMPdrawing
picture pic[] ;
numeric wid[], len[], pos[], n ;
wid[0] := len[0] := pos[0] := n := 0 ;
\stopMPdrawing

\def\whatever#1%
{\appendtoks#1\to\MPtoks
\setbox\MPbox=\hbox{\bfd\the\MPtoks}%
\startMPdrawing
 n := n + 1 ; len[n] := \the\wd\MPbox ;
\stopMPdrawing
\startMPdrawing[-]
 pic[n] := textext(\bfd\setstrut\strut#1) ;
 pic[n] := pic[n] shifted - llcorner pic[n] ;
\stopMPdrawing}

\handletokens MetaPost is Fun!\with\whatever

But is won't run. The following message is generated:



The actual error message said

! Undefined control sequence.
\@@toks -\MPtoks

So add

\newtoks\MPtoks

After which you get

! Undefined control sequence.
\whatever ...endtoks #1\to \MPtoks \setbox \MPbox

so add

\newbox\MPbox

After that the file compiles but you get an empty image. There are two 
things missing in the code. First you don't tell actually draw the 
metapost drawing. for that, add


\MPdrawingdonetrue \getMPdrawing \resetMPdrawing


Still an empty page. Again the pic[n] is calculated but never drawn. 
So add


  draw p[n] shifted (n*1cm,0) ;

(or perhaps along a more sophisticated path),

and now you have a working example:

\newtoks\MPtoks
\newbox\MPbox

\resetMPdrawing
\startMPdrawing
  picture p[] ;
  numeric wid[], len[], pos[], n ;
  wid[0] := len[0] := pos[0] := n := 0 ;
\stopMPdrawing

\def\whatever#1%
{\appendtoks#1\to\MPtoks
 \setbox\MPbox=\hbox{\bfd\the\MPtoks}%
 \startMPdrawing
  n := n + 1 ; len[n] := \the\wd\MPbox ;
  p[n] := textext(\bfd\setstrut\strut#1) ;
  p[n] := p[n] shifted - llcorner p[n] ;
  draw p[n] shifted (n*1cm,0) ;
 \stopMPdrawing}

\starttext
\handletokens MetaPost is Fun!\with\whatever

\MPdrawingdonetrue \getMPdrawing \resetMPdrawing

\stoptext

You could also have just used the macros from meta-txt:

\useMPlibrary[txt]

\startMPdefinitions
  newpath RotPath ;
  RotPath = fullcircle scaled 3cm ;
\stopMPdefinitions

\starttext
\followtokens{Metapost is fun \quad}
\stoptext

@Hans: Perhaps we can have a more ConTeXtist interface to this macro:

\definetextonepath
   [whatever]
   [color=...,
style=...,
mp=..., % path specification
   ]

\whatever{Metapost is fun}

Aditya


Hi,

Okay, that makes things more clear, but couldn't find this in the 
manual! Maybe it is very obvious to someone more familiar with METAPOST.


Well, I also tried the nice macro example on page 232 of the MetaFun 
manual by Hans, and got of course the same problems. But after I added the


\newtoks\MPtoks
\newbox\MPbox

definitions to the file, it worked!

Also the Inkscape alternative is very useful, thanks for helping me out!

Regards,
Gerard
___
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] Pdfselect in texexec not working!?

2011-01-26 Thread Verhaag, G.C.H.M.

Hi,

I use ConTeXt minimals (MkIV, MTXrun | current version: 2011.01.18 
19:34) and want to select a few pages from a larger pdf-file using the 
familiar --pdfselect switch from texexec.


However this option is not working any more; the run ends with the 
following error message:


.
(\end occurred inside a group at level 1)

### simple group (level 1) entered at line 17 ({)
### bottom level
No pages of output.
Transcript written on texexec.log.
TeXExec | runtime: 1.237985

Perhaps something has changed of which I am unaware?

Regards,
Gerard Verhaag
___
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] \definesynonyms broken?

2011-01-26 Thread Verhaag, G.C.H.M.

Hi,

I use \definesynonyms in several documents but it seems to be broken! 
For testing purposes I use the folowing command:


\definesynonyms[kind][kinds][\infull]

\kind{to}{test one!}
\kind{t}{sonething else}

\definesynonyms[state][states][\infull]

\state{a}{anything}
\state{ab}{anything b}

\starttext

My test \infull{to}!

\stoptext

The \infull{to} in the My test.. line is empty, but if I remove the 
\definesynonyms[state]... and \state commands the line says: My test 
test one!! Isn't this very weird?


What has happened?

Regards,
Gerard Verhaag

P.S. I use ConTeXt  ver: 2011.01.18 19:34 MKIV  fmt: 2011.1.19  int: 
english/english!


___
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] Pdfselect in texexec not working!?

2011-01-26 Thread Verhaag, G.C.H.M.

Hans Hagen wrote:


On 26-1-2011 10:40, Thomas Schmitz wrote:


You have to update. This has been fixed (and discussed here).



also, there is now a mkiv variant:

context --extra=select --help

(in due time all those texexec extras will become mkiv ones i.e. no 
longer hard coded in the script but a special sort of style)


Hans

 


Hi,

Thanks a lot, and sorry for the noise!

Regards,
Gerard Verhaag
___
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] \definesynonyms broken?

2011-01-26 Thread Verhaag, G.C.H.M.

Peter Münster wrote:


Verhaag, G.C.H.M. verhaagg...@ziggo.nl writes:

 


\definesynonyms[kind][kinds][\infull]
\definesynonyms[state][states][\infull]
   



Don't use the same command. Better:

\definesynonyms[kind][kinds][\KindFull]
\definesynonyms[state][states][\StateFull]

 


Hi,

Thanks for the tip!

I didn't know that I was free to choose the command representing the 
last parameter of the \definesynonyms command! So that's why I used 
\infull in both definitions, but your suggestion is of course THE solution.


Regards,
Gerard Verhaag
___
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] Pdfselect in texexec not working!?

2011-01-27 Thread Verhaag, G.C.H.M.

Hans Hagen wrote:


On 26-1-2011 10:40, Thomas Schmitz wrote:


You have to update. This has been fixed (and discussed here).



also, there is now a mkiv variant:

context --extra=select --help

(in due time all those texexec extras will become mkiv ones i.e. no 
longer hard coded in the script but a special sort of style)


Hans

...


Hi,

Sorry for bothering you all again about selecting pages to print!

Yesterday I updated and now use ConTeXt  ver: 2011.01.26 11:02 MKIV  
fmt: 2011.1.26!


When I enter the command:

context --extra=select --help

no output is generated!

When I enter for example the command

context --extra=combine --help

a set of options is described as aspected!

The subject was discussed in this forum according to Hans, but I can't 
find it, sorry!


Regards
Gerard Verhaag

___
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] How to set oldstyle numbering globally?

2011-04-11 Thread Verhaag, G.C.H.M.

Hi,

In my earlier MkIV minimal ConTeXt installation (dec.2010) I used the 
following in my preamble to activate oldstyle numbering:


\usetypescript[schola]
\setupbodyfont[schola,8pt]

\definefontfeature [oldstyle] [default] [onum=yes]
\addff{oldstyle}

but this doesn't seem to work anymore in my recently installed minimal 
ConTeXt installation (ConTeXt  ver: 2011.03.30 11:21 MkIV  fmt: 
2011.3.30  int: english/english).


I use this installation with Debian 6.0 (Squeeze).

Any idea what's wrong?

Regards,
Gerard Verhaag

___
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] How to set oldstyle numbering globally?

2011-04-12 Thread Verhaag, G.C.H.M.

On 04/11/2011 11:09 AM, Wolfgang Schuster wrote:

Am 11.04.2011 um 11:00 schrieb Verhaag, G.C.H.M.:

   

Hi,

In my earlier MkIV minimal ConTeXt installation (dec.2010) I used the following 
in my preamble to activate oldstyle numbering:

\usetypescript[schola]
\setupbodyfont[schola,8pt]

\definefontfeature [oldstyle] [default] [onum=yes]
\addff{oldstyle}

but this doesn't seem to work anymore in my recently installed minimal ConTeXt 
installation (ConTeXt  ver: 2011.03.30 11:21 MkIV  fmt: 2011.3.30  int: 
english/english).

I use this installation with Debian 6.0 (Squeeze).

Any idea what's wrong?
 

The following two methods do work for me.


1. Global change

\definefontfeature[default][default][onum=yes]

\setupbodyfont[schola,8pt]

\starttext
1234567890
\stoptext


2. Local change

\setupbodyfont[schola,8pt]

\definefontfeature[oldstyle][onum=yes]

\starttext
1234567890 {\addff{oldstyle}1234567890}
\stoptext


Wolfgang

___
.
   

Hi,

The suggested ways both work for me as well! So, I'm afraid that I don't 
understand the definefontfeature command very well.


Perhaps I should read the chapter on fonts more thorougly! Thanks to all 
contributers to this thread.


Regards,
Gerard Verhaag
___
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] How to set oldstyle numbering globally?

2011-04-13 Thread Verhaag, G.C.H.M.

On 04/13/2011 08:27 AM, Taco Hoekwater wrote:



On 13 apr. 2011, at 00:07, Pontus Lurcock p...@talvi.net 
mailto:p...@talvi.net wrote:



On Mon 11 Apr 2011, Khaled Hosny wrote:

...

(\addff is meant for temporally applying font features not the other way
around, but I think it should work this way too, so may be something
is broken)


\addff{oldstyle} works with my 2011.02.25 ConTeXt, so evidently it's
quite a recent change.

\addff is for adding some feature to an already selected font. It 
fails in the latest beta's because fonts are no longer preloaded 
immediately, but only after \starttext (which is a good thing)


Best wishes,
Taco

   

Hi,

Taco, thanks for the explanation!

So, this makes the item called: How can I get the “oldstyle numbers” 
(text figures) in a document? on wiki.contextgarden.net no longer 
valid, right!


Changes are difficult to figure out, when you're not very good at the 
details. Keeping the wiki up-to-date is a huge task and certainly not a 
trivial thing!


Please don't misunderstand me. I don't want to criticise the way the 
wiki is maintained. On the contrary, it's a great tool, and we users 
very much depend on it.


However for getting the oldstyle numerals working again, I needed this 
mailing list!


If I'm wrong please feel free to comment on all this. Thanks again!

Regards,
Gerard Verhaag


___
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] How to set oldstyle numbering globally?

2011-04-13 Thread Verhaag, G.C.H.M.

On 04/13/2011 10:14 AM, Pontus Lurcock wrote:

On Wed 13 Apr 2011, Verhaag, G.C.H.M. wrote:

   

So, this makes the item called: How can I get the “oldstyle numbers”
(text figures) in a document? on wiki.contextgarden.net no longer
valid, right!
 

As of now, valid again. (I was going to add something to the ‘Fonts in
LuaTeX’ page as well, but that page needs tidying up that I don't have
time to do at the moment.)

   

Changes are difficult to figure out, when you're not very good at the
details. Keeping the wiki up-to-date is a huge task and certainly not a
trivial thing!

Please don't misunderstand me. I don't want to criticise the way the
wiki is maintained. On the contrary, it's a great tool, and we users
very much depend on it.
 

I think the general principle is that if you get a useful answer to
your question, you should make sure that it is added (or linked) in
the wiki in the place you looked for it before asking the question. It
*is* a huge task (since ConTeXt is under continuous development),
which is why we all need to help.

Pont
   

Hi,

Okay, thanks again for the tip!

Regards,
Gerard Verhaag
___
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] How to produce a dotless i with ConTeXt?

2011-04-16 Thread Verhaag, G.C.H.M.

Hi,

I need to use some Turkish in language support training and want to 
typeset everything using ConTeXt (MkIV). Anybody any idea how to apply 
the Turkish alphabet (e.g. the dotless i), while the main language of 
the document is English or Dutch?


I for example tried to generate the soft g, the g with the caron 
(inverted circumflex!) above it, using \gcaron, which just works fine. 
But I'm unable to generate a dotless i!


Thanks!

Regards,
Gerard Verhaag
___
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] How to produce a dotless i with ConTeXt?

2011-04-18 Thread Verhaag, G.C.H.M.

On 04/16/2011 11:42 AM, Thomas Schmitz wrote:

On Sat, 16 Apr 2011 11:24:00 +0200
 Verhaag, G.C.H.M. verhaagg...@ziggo.nl wrote:



I for example tried to generate the soft g, the g with the caron 
(inverted circumflex!) above it, using \gcaron, which just works 
fine. But I'm unable to generate a dotless i!


So what did you try? Here's 3 methods that work for me:

1. (best): write the character directly into your source file: #305;

2. \dotlessi (see the list of characters in char-def.lua)

3. \i (compatibility, defined in enco-ini.mkiv)

HTH

Thomas


Hi,

Thanks for the answers!

Only one suggestion doesn't work for me; inserting the #305; (it looks 
like an HTML code not ConTeXt code!?) in my source file.


Well, I prefer to use \dotlessi and \i, and don't like #305 or 
\char0131, because I'm not very good at remembering number codes!


Regards,
Gerard Verhaag
___
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] Macro argument handling problem!

2011-04-21 Thread Verhaag, G.C.H.M.

Hi,

I try this example from the wiki page System Macros/Argument handling:

\def\dodefinesomething[#1][#2]%
  {\getparameters[\??xx#1][#2]}

\def\definesomething%
  {\dodoubleargumentwithset\dodefinesomething}

\starttext
 \definesomething[alfa][variable=test]
\stoptext


Running this yields

! Undefined control sequence

I'm trying to write a few macros with optional delimited arguments with 
key-value sets and started reading the appropriate pages, but can't 
figure out why this example fails to run.


Anybody any idea?

Regards,
Gerard Verhaag
___
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] Macro argument handling problem!

2011-04-23 Thread Verhaag, G.C.H.M.

On 04/21/2011 01:32 PM, Wolfgang Schuster wrote:


Am 21.04.2011 um 12:28 schrieb Verhaag, G.C.H.M.:


Hi,

I try this example from the wiki page System Macros/Argument handling:

\def\dodefinesomething[#1][#2]%
 {\getparameters[\??xx#1][#2]}

\def\definesomething%
 {\dodoubleargumentwithset\dodefinesomething}

\starttext
\definesomething[alfa][variable=test]
\stoptext


Running this yields

! Undefined control sequence

I'm trying to write a few macros with optional delimited arguments 
with key-value sets and started reading the appropriate pages, but 
can't figure out why this example fails to run.


Anybody any idea?


I guess the message comes from your namespace which is in this form
only allowed in unprotected mode, to enter you need \unprotect before
and \protect after your command declarations. Another problem is that
you use a system namespace (two “?” and two letters) but for modules
we use now four “?” and also more than two letter, e.g.

\def\something{something}

\def\definesomething
  {\dodoubleargumentwithset\dodefinesomething}

\def\dodefinesomething[#1][#2]%
  {\getparameters[\something#1][#2]}

You should also take a look at the \definenamespace command which
creates the \define… and \setup… commands for you:

- http://wiki.contextgarden.net/Module_Namespaces
- 
http://tex.stackexchange.com/questions/15157/how-to-make-a-ruler/15185#15185


Wolfgang



Hi,

Thanks for the tips and the references to the appropriate wiki pages!

Regards,
Gerard Verhaag
___
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] Positional graphics (MetaFun)!

2011-05-03 Thread Verhaag, G.C.H.M.

Hi,

Inspired by the examples given in the MetaFun manual (Oct. 2010) I tried 
a few, but I can't get them working!


I'm specially interested in the 'Anchors and layers' (p.257, screen 
version!) feature. I typed in the MetaPost code as given on page 260, 
defined the anchors, but no circles and lines appear in the resulting 
pdf-file.


Well I assume it must be something trivial. Anybody any idea?

P.S. I use ConTeXt  ver: 2011.03.30 11:21 MKIV  fmt: 2011.3.30  int: 
english/english


Regards,
Gerard Verhaag
___
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] Coupled register errors!

2011-05-11 Thread Verhaag, G.C.H.M.

Hi,

A few years ago I created a screen document met menus and coupled 
registers, and it just worked fine.


A fresh compilation of this document throws several 'undefined control 
sequence' errors; so I wonder what has happened to this feature? Are 
commands like \defineregister, \setupregister and \couple(d)register 
still valid ConTeXt commands?


Currently I use ConTeXt  ver: 2011.03.30 11:21 MKIV  fmt: 2011.3.30  
int: english/english.


Regards,
Gerard Verhaag
___
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] Coupled register errors!

2011-05-12 Thread Verhaag, G.C.H.M.

On 05/11/2011 12:32 PM, Hans Hagen wrote:

On 11-5-2011 12:20, Verhaag, G.C.H.M. wrote:

Hi,

A few years ago I created a screen document met menus and coupled
registers, and it just worked fine.

A fresh compilation of this document throws several 'undefined control
sequence' errors; so I wonder what has happened to this feature? Are
commands like \defineregister, \setupregister and \couple(d)register
still valid ConTeXt commands?

Currently I use ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.3.30 int:
english/english.


coupled registers are not (yet) implemented in mkiv (delayed till I 
need it in some project)


Hans

...


Hi,

Hans, thanks for your answer! Hopefully, you find time some day to 
implement it in MkIV!


Regards,
Gerard Verhaag
___
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] Setuplayout bug?

2011-05-13 Thread Verhaag, G.C.H.M.

Hi,

The \setuplayout command causes problems I don't understand, sorry! I 
use the following setup in a screen (\setuppapersize[S6][S6]) document:


\setuplayout
  [header=0cm,
   topspace=.2cm,
   backspace=.2cm,
   margin=0cm,
   width=fit,
   footer=1cm,
   bottomdistance=5pt,
   bottom=20pt,
   height=fit]

This gives a result as aspected! However adding the setting

  rightedge=3cm

to the layout command, for a menu, yields an unexpected result. Okay, an 
area on the right of the screen is indeed blank as aspected! But the 
text of a full page is also shifted downward, and overlaps the text 
within the footer area, which is quite weird isn't it?


I don't grasp this footer problem as indicated above Any idea what's 
wrong?


Regards,
Gerard Verhaag

P.S.
I use ConTeXt  ver: 2011.03.30 11:21 MKIV  fmt: 2011.3.30  int: 
english/english


___
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] Setuplayout bug?

2011-05-14 Thread Verhaag, G.C.H.M.

On 05/13/2011 10:25 AM, Verhaag, G.C.H.M. wrote:

Hi,

The \setuplayout command causes problems I don't understand, sorry! I 
use the following setup in a screen (\setuppapersize[S6][S6]) document:


\setuplayout
  [header=0cm,
   topspace=.2cm,
   backspace=.2cm,
   margin=0cm,
   width=fit,
   footer=1cm,
   bottomdistance=5pt,
   bottom=20pt,
   height=fit]

This gives a result as aspected! However adding the setting

  rightedge=3cm

to the layout command, for a menu, yields an unexpected result. Okay, 
an area on the right of the screen is indeed blank as aspected! But 
the text of a full page is also shifted downward, and overlaps the 
text within the footer area, which is quite weird isn't it?


I don't grasp this footer problem as indicated above Any idea 
what's wrong?


Regards,
Gerard Verhaag

P.S.
I use ConTeXt  ver: 2011.03.30 11:21 MKIV  fmt: 2011.3.30  int: 
english/english


...


Hi,

I figured out that the problem is caused by the \setupinteraction 
command. When switching the menu off by setting menu=off, the layout of 
the text is okay, without the shift! However, when I use


  \setupinteraction
  [state=start,
   style=small,
   page=yes,
   menu=on]

the annoying interference of the text with the footer is introduced. Any 
ideas how to correct the problem?


Regards,
Gerard Verhaag
___
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] Setuplayout bug?

2011-05-14 Thread Verhaag, G.C.H.M.

On 05/14/2011 01:21 PM, Hans Hagen wrote:

On 14-5-2011 11:15, Verhaag, G.C.H.M. wrote:

On 05/13/2011 10:25 AM, Verhaag, G.C.H.M. wrote:

Hi,

The \setuplayout command causes problems I don't understand, sorry! I
use the following setup in a screen (\setuppapersize[S6][S6]) document:

\setuplayout
[header=0cm,
topspace=.2cm,
backspace=.2cm,
margin=0cm,
width=fit,
footer=1cm,
bottomdistance=5pt,
bottom=20pt,
height=fit]

This gives a result as aspected! However adding the setting

rightedge=3cm

to the layout command, for a menu, yields an unexpected result. Okay,
an area on the right of the screen is indeed blank as aspected! But
the text of a full page is also shifted downward, and overlaps the
text within the footer area, which is quite weird isn't it?

I don't grasp this footer problem as indicated above Any idea
what's wrong?

Regards,
Gerard Verhaag

P.S.
I use ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.3.30 int:
english/english

...


Hi,

I figured out that the problem is caused by the \setupinteraction
command. When switching the menu off by setting menu=off, the layout of
the text is okay, without the shift! However, when I use

\setupinteraction
[state=start,
style=small,
page=yes,
menu=on]

the annoying interference of the text with the footer is introduced. Any
ideas how to correct the problem?


We need a one page self contained example for this.

Hans



Hi,

You'll find the self contained example (rightedge.tex) attached!

I compile it using:

  context --pdf rightedge

and view the result with Acrobat Reader 9.

I upgraded to the latest version and now use:

  ConTeXt  ver: 2011.05.13 12:01 MKIV  fmt: 2011.5.14  int: english/english

Thanks for paying attention to this problem!

Regards,
Gerard Verhaag
\setuppapersize
  [S6][S6]

\language[nl]

\setuplayout
  [header=0cm,
   topspace=.2cm,
   backspace=.2cm,
   margin=0cm,
   width=fit,
   footer=1cm,
   rightedge=3cm,
   bottomdistance=5pt,
   bottom=20pt,
   height=fit]

\showframe

\definecolor [MyColor] [darkgreen]

\setupfootertexts
  [chapter][{\currentdate[month,year]}]

\setupinteraction
  [state=start,
   style=small,
   menu=on, % switching between on and off will show my problem (the vertical shift of the entire text!)!
   title=ABL File,
   author=Geert Verhaag]

\setupbackgrounds
  [page]
  [background=color,
   backgroundcolor=darkgreen]

\setupbackgrounds
  [text,header,footer][leftmargin,text,rightmargin]
  [background=color,
   backgroundcolor=white,
   backgroundoffset=.5mm]

\setupinteractionmenu
 [right]
 [background=color,
  backgroundcolor=MyColor,
  color=blue,
  frame=off,
  distance=overlay,
  unknownreference=no,
  samepage=yes]

\defineinteractionmenu
 [main][right]
 [state=start,
  width=\rightedgewidth,
  align=middle]

\startinteractionmenu[main]
  \but [inleiding]  Inleiding \\
  \vfill
  \but [CloseDocument]  sluit \\
\stopinteractionmenu

 \starttext
   \chapter[inleiding]{Inleiding}
   \dorecurse{3}{\input tufte \par \input knuth \par}
 \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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Setuplayout bug?

2011-05-16 Thread Verhaag, G.C.H.M.

On 05/16/2011 11:12 AM, Hans Hagen wrote:

On 14-5-2011 7:44, Verhaag, G.C.H.M. wrote:


I figured out that the problem is caused by the \setupinteraction
command. When switching the menu off by setting menu=off, the 
layout of

the text is okay, without the shift! However, when I use


you can test the upcoming beta

...



Hi Hans,

I compiled using:

ConTeXt  ver: 2011.05.16 11:00 MKIV  fmt: 2011.5.16  int: 
english/english


and now it works just fine!

The shift is gone! Thanks very much!

Regards,
Gerard Verhaag
___
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] How to put buttons side by side in interactive menu?

2011-05-18 Thread Verhaag, G.C.H.M.

Hi,

I use the well known feature:

  \startinteractionmenu[right]
\but [content] contents \\
\but [sample] sample \\
\but [PreviousJump] back \\
\but [CloseDocument] exit \\
\vfill
\stopinteractionmenu

to put a menu on the right of the screen of an interactive document.

Now I want to use two buttons side by side something like:

\but [left] left \but [right] \\

but this doesn't seem to work. I get an !Emergency stop.

Anybody any idea how to put the buttons side by side?

Regards,
Gerard Verhaag

P.S.
I use ConTeXt ver: 2011.05.16 11:00 MKIV
___
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] How to put buttons side by side in interactive menu?

2011-05-18 Thread Verhaag, G.C.H.M.

On 05/18/2011 11:58 AM, Wolfgang Schuster wrote:

Am 18.05.2011 um 11:25 schrieb Verhaag, G.C.H.M.:

   

Hi,

I use the well known feature:

  \startinteractionmenu[right]
\but [content] contents \\
\but [sample] sample \\
\but [PreviousJump] back \\
\but [CloseDocument] exit \\
\vfill
\stopinteractionmenu

to put a menu on the right of the screen of an interactive document.

Now I want to use two buttons side by side something like:

\but [left] left \but [right] \\

but this doesn't seem to work. I get an !Emergency stop.

Anybody any idea how to put the buttons side by side?
 

I don’t think this is possible because “\but” reads everything till “\\”
and therefore you can’t put two buttons on one line.

Wolfgang

...
   


Hi,

What a pity! Thanks anyway!

Regards,
Gerard Verhaag
___
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
___