[NTG-context] [***SPAM***] Changing the font of the TOC-Title

2013-04-15 Thread H. Özoguz

Hello,

I know, that I can change the TOC-Title by

\setupheadtext[content=Whatever the TOC-Title may be]

How can I change the Font of the TOC-Title, is there a style key, or 
somewhat like that?
(Directly \setupheadtext[content=Whatever the TOC-Title may be, 
style=Chapterstyle] does not work, where Chapterstyle is a defined Font)


Huseyin


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

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] strange index behaviour with entries inside separatedlist

2013-04-15 Thread Wolfgang

Am 12.04.2013 14:07, schrieb Hans Hagen:

On 4/12/2013 12:59 PM, WolfgangZ wrote:

Am 12.04.2013 10:29, schrieb Wolfgang Schuster:


Am 12.04.2013 um 08:10 schrieb WolfgangZ wol...@gmx.net:


Hello,
I get wrong list entries when using my register entries inside
separate lists. Example case included, even if it is a bit longer.
For explanation, I have two lists, the correct index is in section
1.2 in the attached example and printed on page 3 (see test.pdf). The
one that causes trouble is set in section 1.3 (green table) and
printed on page 5. There the index links to page 4 instead of page 1,
on which the entry is placed.

The example gets more strange, as the wrong index entries only occurs
if there is no regular text below the table in section 1.3. For
testing you can uncomment line 70 in file test.tex.


Put the text before the index entry in your definition in \Listwrong
the output is correct:

   \define[1]\Listwrong{#1\Wrongliste{#1}}

Wolfgang


Great, this solves the problem! Is it possible to explain the reason for
the behavior of context to the order of the text entry and the command?


in order to track locations we need to inject a so called whatsit which
is an invivible but definitely present entity an din order to make this
work:

test

\index{xxx}

test

\index will bind to the next paragraph when it's a loner

otherwise we would get

test
whitespace or at least valid breakpoint
\index{xxx}
whitespace or at least valid breakpoint
test

which could show up as an unwanted extra whitespace and/or page break
with dislocated index entry

this kind of behaviour has always been part of context, as we want to be
able to do

\chapter{...}

\index{...}
\index{...}
\index{...}
\index{...}
\index{...}

some text ...

Hans



Many thanks for your answers!
Best 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
___


Re: [NTG-context] [***SPAM***] Changing the font of the TOC-Title

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 08:06 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hello,
 
 I know, that I can change the TOC-Title by
 
 \setupheadtext[content=Whatever the TOC-Title may be]
 
 How can I change the Font of the TOC-Title, is there a style key, or somewhat 
 like that?
 (Directly \setupheadtext[content=Whatever the TOC-Title may be, 
 style=Chapterstyle] does not work, where Chapterstyle is a defined Font)

The title for the TOC is placed with the \title command, to change it’s style 
you have
to change the values for \title, e.g.

  \setuphead[title][style=\ssc]

When you don’t want to change the style of all title-headings you can create
your heading with a different style, e.g.

  \definehead[toctitle][title]

  \setuphead[toctitle][style=\ssc]

  \starttext

  \toctitle[content]{\headtext{content}}

  \placecontent

  …

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


[NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Peter Sienkowski
Hi,

 I'm trying to have extra explanatory text on the side of figures that is
not part of the figure's caption. I can get a single figure to work but am
having problems when there are multiple figures one after the other.

I'm new to ConTeXT and have looked at the Details Manual but have not been
able to fix this.

 I've been using something like:

\starthanging{
\placefigure[force][fig:first]{Caption 1}
{\externalfigure[first-figure][width=\textwidth]}}
 \inother[width=5cm]{Some text for the other bit}
\stophanging

\starthanging{
\placefigure[force][fig:first]{Caption 2}
{\externalfigure[second-figure][width=\textwidth]}}
 \inother[width=5cm]{Some text for the other bit 2}
\stophanging

and the two figures will overlap.

Any help would be much appreciated.

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

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] [***SPAM***] Changing the font of the TOC-Title

2013-04-15 Thread Tim Li
I have achieved this by the following method:
 I think we'd better only change the label by \setupheadtext and chage its 
style by \setuphead. An example as follows \setupheadtext[content={CONTENTS}]
\def\mytitle#1{%
  \midaligned{#1}}
\setuphead
  [title]
  [style={\bfb},
   color=red,
   before={},
   after={\blank[3*big]},
   textcommand={\mytitle}] it works well for me :-) but please note that if you 
use \title in the frontmatter, the title also will be changed. Maybe you want 
to define your own title to solve this problem. Date: Mon, 15 Apr 2013 
08:06:54 +0200
 From: h.oezo...@mmnetz.de
 To: ntg-context@ntg.nl
 Subject: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
 
 Hello,
 
 I know, that I can change the TOC-Title by
 
 \setupheadtext[content=Whatever the TOC-Title may be]
 
 How can I change the Font of the TOC-Title, is there a style key, or 
 somewhat like that?
 (Directly \setupheadtext[content=Whatever the TOC-Title may be, 
 style=Chapterstyle] does not work, where Chapterstyle is a defined Font)
 
 Huseyin
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] [***SPAM***] Title of figure not below the figure, but on the right side

2013-04-15 Thread H. Özoguz

I usually use:

\startplacefigure [title=Some very explanative title.]

\externalfigure[tollesbild][width=2cm]

\stopplacefigure


And this sets the title under the figure, perfect for me in general. But 
now I have a figure, where the (pretty long) title-text should be on the 
right side, how to get this?


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

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] [***SPAM***] Changing the font of the TOC-Title

2013-04-15 Thread Tim Li
oh, sorry, I don't konw Wolfgang has replied to this question. Please take the 
method provided by Wolfgang.
 From: timli2...@outlook.com
To: ntg-context@ntg.nl
Subject: RE: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
Date: Mon, 15 Apr 2013 08:20:11 +




I have achieved this by the following method:

 I think we'd better only change the label by \setupheadtext and chage its 
style by \setuphead. An example as follows
 
\setupheadtext[content={CONTENTS}]
\def\mytitle#1{%
  \midaligned{#1}}
\setuphead
  [title]
  [style={\bfb},
   color=red,
   before={},
   after={\blank[3*big]},
   textcommand={\mytitle}]
 
it works well for me :-)
 
but please note that if you use \title in the frontmatter, the title also will 
be changed. Maybe you want to define your own title to solve this problem.
 Date: Mon, 15 Apr 2013 08:06:54 +0200
 From: h.oezo...@mmnetz.de
 To: ntg-context@ntg.nl
 Subject: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
 
 Hello,
 
 I know, that I can change the TOC-Title by
 
 \setupheadtext[content=Whatever the TOC-Title may be]
 
 How can I change the Font of the TOC-Title, is there a style key, or 
 somewhat like that?
 (Directly \setupheadtext[content=Whatever the TOC-Title may be, 
 style=Chapterstyle] does not work, where Chapterstyle is a defined Font)
 
 Huseyin
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

Re: [NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 10:18 schrieb Peter Sienkowski pet...@gmail.com:

 Hi,
 
  I'm trying to have extra explanatory text on the side of figures that is not 
 part of the figure's caption. I can get a single figure to work but am having 
 problems when there are multiple figures one after the other. 
 
 I'm new to ConTeXT and have looked at the Details Manual but have not been 
 able to fix this. 
 
  I've been using something like:
 
 \starthanging{
 \placefigure[force][fig:first]{Caption 1} 
 {\externalfigure[first-figure][width=\textwidth]}}
  \inother[width=5cm]{Some text for the other bit}
 \stophanging
 
 \starthanging{
 \placefigure[force][fig:first]{Caption 2} 
 {\externalfigure[second-figure][width=\textwidth]}}
  \inother[width=5cm]{Some text for the other bit 2}
 \stophanging
 
 and the two figures will overlap.
 
 Any help would be much appreciated. 

Your problem is that you use the hanging environment in a way which is just 
wrong,
the purpose of the command is to put a image etc. at the left/right side of the 
next
paragraph.

\useMPlibrary[dum]

\starttext

\starthanging{\externalfigure[dummy][width=4cm]}
\input tufte
\stophanging

\stoptext


What you can try is to put the margin text *in* the float itself because the 
text is
flushed at the begin of the next paragraph.

\starttext

\startplacefigure[location=force,title={First dummy caption}]
\inmargin{First margin dummy}
\externalfigure[dummy][width=\textwidth]
\stopplacefigure

\startplacefigure[location=force,title={Second dummy caption}]
\inmargin{Second margin dummy}
\externalfigure[dummy][width=\textwidth]
\stopplacefigure

\stoptext

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

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


Re: [NTG-context] Vertical location of combinations

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 06:34 schrieb Aditya Mahajan adit...@umich.edu:

 How do I control the vertical location of combinations?
 
 I want output similar to
 
 ABC
 \framed[frame=no, location=top]}\startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
 \stopcombination}
 DEF
 
 without having to explictly add a \frame.
 
 Looking at pack-com, I tried
 
 \useMPlibrary[dum]
 \setupcombination[location=top]
 
 \starttext
 ABC
 \startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
 \stopcombination
 DEF
 
 ABC
 \framed[frame=no, location=top]}\startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
 \stopcombination}
 DEF
 \stoptext
 
 but the combination is still aligned to the baseline of the caption.

The location-key controls the vertical alignment of the images in the 
combination
and I think the environment is meant as display element and not for inline as 
you 
try to use it. As you can see in pack-com.mkiv the content of the environment
is put a \vbox which explains the location when you use it in your text.

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

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


[NTG-context] How to change the color of numbers just before the footnote text?

2013-04-15 Thread Tim Li
Now I have to change the color of numbers just before the footnote text so that 
it can match the color of text area.  I try to do it like this: 
\def\myfootnotecolor#1{%\startcolor[red]#1\stopcolor} \setupfootnotes   
[numbercommand={\myfootnotecolor}] or \setupfootnotes   [foregroundcolor=red] 
either method has no effect.___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2013-04-15 Thread Hans Hagen

Hi,

As follow up on the combinations tread I made this:

\useMPlibrary[dum]

\starttext

\definecombination[mycombi][alternative=label]

\setuplabel[combination:mycombi][text={Item 
},numberconversion=character,stopper=!]


\startcombination[mycombi][2*2]
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
\stopcombination

\blank[2*big]

\startcombination[mycombi][nx=2,ny=1,continue=yes]
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
\stopcombination

\blank[2*big]

\startcombination[mycombi][alternative=text,nx=2,ny=2]
{\externalfigure[dummy][width=4cm,height=1cm]} {alpha}
{\externalfigure[dummy][width=4cm,height=1cm]} {beta}
{\externalfigure[dummy][width=4cm,height=1cm]} {gamma}
{\externalfigure[dummy][width=4cm,height=1cm]} {delta}
\stopcombination

\blank[2*big]

\startcombination[mycombi][2*2]
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
\stopcombination

\stoptext

A relative simple extension but probably useful.
--

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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 change the color of numbers just before the footnote text?

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 10:44 schrieb Tim Li timli2...@outlook.com:

 Now I have to change the color of numbers just before the footnote text so 
 that it can match the color of text area.  I try to do it like this:
  
 \def\myfootnotecolor#1{%
 \startcolor[red]#1\stopcolor}
  
 \setupfootnotes
[numbercommand={\myfootnotecolor}]
  
 or
  
 \setupfootnotes
[foregroundcolor=red]
  
 either method has no effect.

For the number in the running text you have to use

  \setupnote[footnote][textcolor=red]

while for the number in the footnote block you have to use

  \setupnotation[footnote][headcolor=red]

Wolfgang

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

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

[NTG-context] Joinedup itemization with margin

2013-04-15 Thread H. Özoguz

Hi there,

I want a joined itemization (I just want no empty lines between two 
items, is this what joinedup means?) with a margin on the left side, 
so that the complete itemization is indented. My try is this:

++
\starttext


\startitemize[joinedup]

\item First enumeration.

\item Second.

\item Third.

\stopitemize


\startitemize[joinedup, margin=1em]

\item First enumeration.

\item Second.

\item Third.

\stopitemize


\stoptext
++


The first example is without indentation, its fine. But the second 
example does not work properly, it makes the indentation, but ignores 
the joinedup, so that one has again empty lines between items. I think 
joinedup is the wrong feature, which is the correct one for my purpose?



Huseyin


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

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] options of \setupnotation and \setupnote

2013-04-15 Thread Tim Li
Could you tell me what's the options of these two commands that haven't been 
updated on the wiki? ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Joinedup itemization with margin

2013-04-15 Thread Marco Patzer
On 2013–04–15 H. Özoguz wrote:

 \startitemize[joinedup, margin=1em]

\startitemize[joinedup][margin=1em]

Options and key-value pairs cannot be mixed in ConTeXt.


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Marco Patzer
On 2013–04–15 Tim Li wrote:

 Could you tell me what's the options of these two commands that
 haven't been updated on the wiki?

The file strc-not.mkvi is quite well documented.

@Hans: The module documentation fails to build for this module.

  mtxrun --script modules --process $(mtxrun core-sys.mkiv)


! Missing \endcsname inserted.

system   tex  error on line 1 in file virtual://buffer.noname.2: 
Missing \endcsname inserted ...

empty file

to be read again
\hsize
\namedcounterparameter ...er \csname \??counter #1


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
I have asked Hans about this problem two days ago, but now the problem still. I 
make sure that my context standalone is the lastest. I download the 
context-setup-mswin.zip from the ConTeXt wiki and extract it to the D:\,  
double-clicking the firstsetup.bat. When it finish the rest, I add 
D:\context\tex\texmf-mswin\bin to User Path. Can this get the lastest ConTeXt 
standalone? I think it can. But when I input context in the cmd, it always 
tell me this error messages: d:\context
contextmtxrun  | forcing cache reload
resolvers   | resolving | looking for 'texmfcnf.lua' on given path 
'C:/Users/peng/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/bin/' from specification 'selfautoloc:'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/bin/share/texmf-local/web2c' from specification 
'selfautoloc:/share/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/bin/share/texmf-dist/web2c' from specification 
'selfautoloc:/share/texmf-dist/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/bin/texmf-local/web2c' from specification 
'selfautoloc:/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/bin/texmf-dist/web2c' from specification 
'selfautoloc:/texmf-dist/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/' from specification 'selfautodir:'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/share/texmf-local/web2c' from specification 
'selfautodir:/share/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/share/texmf-dist/web2c' from specification 
'selfautodir:/share/texmf-dist/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/texmf-local/web2c' from specification 
'selfautodir:/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/texmf-mswin/texmf-dist/web2c' from specification 
'selfautodir:/texmf-dist/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on given path 
'D:/context/tex/../texmf-local/web2c' from specification 
'selfautoparent:/../texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'D:/context/tex/' from specification 'selfautoparent:'
resolvers   | resolving | looking for 'texmfcnf.lua' on given path 
'D:/context/tex/share/texmf-local/web2c' from specification 
'selfautoparent:/share/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on given path 
'D:/context/tex/share/texmf-dist/web2c' from specification 
'selfautoparent:/share/texmf-dist/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on given path 
'D:/context/tex/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on given path 
'D:/context/tex/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-t-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'mtx-t-contexts.lua'
resolvers   | resolving | remembered file 'mtx-t-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembering file 'context.lua'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
d:\ I am only a newbie in ConTeXt so I don't know how to solve this problem. 
Is it mean that I have to wait for the updated binaries for windows?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : 

Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread luigi scarso
hm, have you seen the file setuptex.bat in the tex folder ?
You have to  call it before to start using  context.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
I have run the setuptex.bat just before running context, but the problem still  
:-(
  Date: Mon, 15 Apr 2013 14:19:11 +0200
 From: luigi.sca...@gmail.com
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user
 
 hm, have you seen the file setuptex.bat in the tex folder ?
 You have to  call it before to start using  context.
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] Deactivating gridsetting for TOC

2013-04-15 Thread H. Özoguz

Hi there,

thanks for the many helps today, again!

Because I use different font sizes for the titles in the TOC (depending 
on the title-level), I have problems with grid-setting. It makes 
sometimes blank lines between two titles in the toc. I understand that 
behaviour, it is because of the different sizes.


Instead of involved testings with different sizes and vertical spaces, 
can I simply switch off the grid-setting for the toc? That would be the 
easiest.

I tried
\placeongrid{\completecontent},
and that works, no more blank lines. But now the complete toc is set on 
one page only, but the toc is much to big for only one page, so it is 
set beyong the page buttom, and disappears in the pdf-nirvana :D


Is there a feature/option grid for toc in \completecontent or anything 
like that?


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

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] options of \setupnotation and \setupnote

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 13:17 schrieb Tim Li timli2...@outlook.com:

 Could you tell me what's the options of these two commands that haven't been 
 updated on the wiki?

http://www.ntg.nl/pipermail/ntg-context/2013/072165.html

Wolfgang

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

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

Re: [NTG-context] combinations

2013-04-15 Thread Sietse Brouwer
Hi Hans,

Is the following correct?
(1) [alternative=...] is a new key for \definecombination

(2) \definecombination[mycombiA][alternative=text] means you specify
the combination's contents as item, caption, item, caption, etc.

\startcombination[mycombiA][nx=2,ny=1]
 {item}{caption}
 {another item}{another caption}
\stopcombination

(3) \definecombination[mycombiB][alternative=label] means you specify
the combination's contents as item, item, item, etc.
\startcombination[mycombiB][nx=2,ny=1]
 {item}
 {another item}
\stopcombination
and the caption (label) will be placed automatically.

(4) You can setup the mycombiB labels like so:
\setuplabel[combination:mycombiB][
text={Item },
numberconversion=character,
stopper=!
]
(If you do not setup the mycombiB label, each item's label will be a
bold number.)

Cheers,
Sietse

On 15 April 2013 10:50, Hans Hagen pra...@wxs.nl wrote:

 Hi,

 As follow up on the combinations tread I made this:

 \useMPlibrary[dum]

 \starttext

 \definecombination[mycombi][alternative=label]

 \setuplabel[combination:mycombi][text={Item 
 },numberconversion=character,stopper=!]

 \startcombination[mycombi][2*2]
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 \stopcombination

 \blank[2*big]

 \startcombination[mycombi][nx=2,ny=1,continue=yes]
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 \stopcombination

 \blank[2*big]

 \startcombination[mycombi][alternative=text,nx=2,ny=2]
 {\externalfigure[dummy][width=4cm,height=1cm]} {alpha}
 {\externalfigure[dummy][width=4cm,height=1cm]} {beta}
 {\externalfigure[dummy][width=4cm,height=1cm]} {gamma}
 {\externalfigure[dummy][width=4cm,height=1cm]} {delta}
 \stopcombination

 \blank[2*big]

 \startcombination[mycombi][2*2]
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 \stopcombination

 \stoptext

 A relative simple extension but probably useful.
 --

 -
   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
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Tim Li
thanks for your help.
 From: schuster.wolfg...@gmail.com
Date: Mon, 15 Apr 2013 15:01:54 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] options of \setupnotation and \setupnote


Am 15.04.2013 um 13:17 schrieb Tim Li timli2...@outlook.com:Could you tell me 
what's the options of these two commands that haven't been updated on the wiki?

http://www.ntg.nl/pipermail/ntg-context/2013/072165.html
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] the difference between \def and \define

2013-04-15 Thread Tim Li
In plain TeX, we always use \def for creating a new macro, but in ConTeXt, 
sometimes it won't work, especially when making own chapter titles. The \def 
can produce the error message like this : Argument of \... has an extra }. 
\define in ConTeXt can solve this problem. What's the difference between \def 
and \define? Can I use \define to replace all \def? 
   ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Bug in the latest beta

2013-04-15 Thread Jannik Voges
Hello ConTeXt-Users,


I have found a bug, when using \writetolist:

\starttext

\writetolist[chapter]{}{test}

\stoptext

That gives an error, but changing the list to a not predefined list doesn't.

For example

\definelist[chapter1]

\starttext

\writetolist[chapter1]{}{test}

\stoptext


Thanks

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

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

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 15:40 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Hi Hans,
 
 Is the following correct?
 (1) [alternative=...] is a new key for \definecombination

Yes but you can also change the alternative with \startcombination.

 (2) \definecombination[mycombiA][alternative=text] means you specify
 the combination's contents as item, caption, item, caption, etc.
 
 \startcombination[mycombiA][nx=2,ny=1]
 {item}{caption}
 {another item}{another caption}
 \stopcombination

Yes, alternative=text is the old combination mechanism which takes two
arguments for each entry for the content and the caption.

 (3) \definecombination[mycombiB][alternative=label] means you specify
 the combination's contents as item, item, item, etc.
 \startcombination[mycombiB][nx=2,ny=1]
 {item}
 {another item}
 \stopcombination
 and the caption (label) will be placed automatically.

Yes.

 (4) You can setup the mycombiB labels like so:
 \setuplabel[combination:mycombiB][
text={Item },
numberconversion=character,
stopper=!
 ]
 (If you do not setup the mycombiB label, each item's label will be a
 bold number.)

When you don’t set individual settings for a combination label the global
values from \setuplabel are used which are bold text and numbers.

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

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


Re: [NTG-context] Bug in the latest beta

2013-04-15 Thread Wolfgang Schuster

Am 14.04.2013 um 12:42 schrieb Jannik Voges researchj...@icloud.com:

 Hello ConTeXt-Users,
 
 
 I have found a bug, when using \writetolist:
 
 \starttext
 
 \writetolist[chapter]{}{test}
 
 \stoptext
 
 That gives an error, but changing the list to a not predefined list doesn't.
 
 For example
 
 \definelist[chapter1]
 
 \starttext
 
 \writetolist[chapter1]{}{test}
 
 \stoptext

Can you try your example with the current beta because I don’t get an error 
when I process your example.

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

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


Re: [NTG-context] the difference between \def and \define

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 15:47 schrieb Tim Li timli2...@outlook.com:

 In plain TeX, we always use \def for creating a new macro, but in ConTeXt, 
 sometimes it won't work, especially when making own chapter titles. The \def 
 can produce the error message like this : Argument of \... has an extra }. 
 \define in ConTeXt can solve this problem.
  
 What's the difference between \def and \define? Can I use \define to replace 
 all \def?

The \define command is a short form for \unexpanded\def which prevents commands 
to be expanded when used inside \edef or when passed to Lua.

Most of the high level commands are created to be unexpanded and expandable 
commands are used for internal functions.

Wolfgang

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

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

Re: [NTG-context] combinations

2013-04-15 Thread Hans Hagen

On 4/15/2013 3:40 PM, Sietse Brouwer wrote:


Is the following correct?


indeed

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Bug in the latest beta

2013-04-15 Thread Jannik Voges
Hello,


today I updated the beta and the error is gone. Thanks for the fix or sorry, if 
that error was caused by a corrupt installation.


Jannik


Am 14.04.2013 um 12:42 schrieb Jannik Voges researchj...@icloud.com:

 Hello ConTeXt-Users,
 
 
 I have found a bug, when using \writetolist:
 
 \starttext
 
 \writetolist[chapter]{}{test}
 
 \stoptext
 
 That gives an error, but changing the list to a not predefined list doesn't.
 
 For example
 
 \definelist[chapter1]
 
 \starttext
 
 \writetolist[chapter1]{}{test}
 
 \stoptext
 
 
 Thanks
 
 Jannik
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread Hans Hagen

On 4/15/2013 2:25 PM, Tim Li wrote:

I have run the setuptex.bat just before running context, but the problem
still  :-(


clueless ... are you sure that you use the right luatex binary in the 
downloaded garden distribution?


Hans

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] the difference between \def and \define

2013-04-15 Thread Marco Patzer
On 2013–04–15 Tim Li wrote:

 What's the difference between \def and \define?

\define is basically the same as \unexpanded\def. It uses a slightly
different syntax for specifying optional arguments:

  \define[3]\foo{First: #1, Second: #2, Third: #3}
  \unexpanded\def\foo#1#2#3{First: #1, Second: #2, Third: #3}

Furthermore, \define displays a message if the command is already
defined:

  systemcommand '\foo' is already defined

However, ConTeXt happily overwrites the existing macro.

 Can I use \define to replace all \def?

There is \defineexpandable, which uses the same syntax as \define,
but it's a simple \def, without \unexpanded which is the closest
replacement.

I don't think named parameters are possible with \define, but maybe
I'm mistaken.

  \def\bar#first#second{First: #first, Second: #second}

For you information, there's also

  \starttexdefinition mycmd #1
…
  \stoptexdefinition

  \starttexdefinition mycmd $#first #second
…
  \stoptexdefinition


  \starttexdefinition unexpanded mycmd #first #second
…
  \stoptexdefinition


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Deactivating gridsetting for TOC

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 14:27 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi there,
 
 thanks for the many helps today, again!
 
 Because I use different font sizes for the titles in the TOC (depending on 
 the title-level), I have problems with grid-setting. It makes sometimes blank 
 lines between two titles in the toc. I understand that behaviour, it is 
 because of the different sizes.
 
 Instead of involved testings with different sizes and vertical spaces, can I 
 simply switch off the grid-setting for the toc? That would be the easiest.
 I tried
 \placeongrid{\completecontent},
 and that works, no more blank lines. But now the complete toc is set on one 
 page only, but the toc is much to big for only one page, so it is set beyong 
 the page buttom, and disappears in the pdf-nirvana :D
 
 Is there a feature/option grid for toc in \completecontent or anything like 
 that?

You can try to add

  \definelayout[pagenumber][grid=no]

to your document where you replace pagenumber with the number of the page 
where your TOC starts.

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

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


Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Hans Hagen

On 4/15/2013 1:52 PM, Marco Patzer wrote:

On 2013–04–15 Tim Li wrote:


Could you tell me what's the options of these two commands that
haven't been updated on the wiki?


The file strc-not.mkvi is quite well documented.

@Hans: The module documentation fails to build for this module.

   mtxrun --script modules --process $(mtxrun core-sys.mkiv)


mtxrun --script modules --process auto:core-sys.mkiv

weird ... works here

Hans

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] the difference between \def and \define

2013-04-15 Thread Hans Hagen

On 4/15/2013 4:07 PM, Marco Patzer wrote:


I don't think named parameters are possible with \define, but maybe
I'm mistaken.


just use suffix .mkvi or put % macros=mkvi at the top of your file


-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] options of \setupnotation and \setupnote

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 16:11 schrieb Hans Hagen pra...@wxs.nl:

 On 4/15/2013 1:52 PM, Marco Patzer wrote:
 On 2013–04–15 Tim Li wrote:
 
 Could you tell me what's the options of these two commands that
 haven't been updated on the wiki?
 
 The file strc-not.mkvi is quite well documented.
 
 @Hans: The module documentation fails to build for this module.
 
   mtxrun --script modules --process $(mtxrun core-sys.mkiv)
 
 mtxrun --script modules --process auto:core-sys.mkiv
 
 weird ... works here

There is a error when try to process strc-not.mkvi which comes from this line:

%D \startlocalnotes[width=.3\hsize,n=0]

The argument has to be “footnote” and not a assignment, changing the lines to

%D \startlocalnotes[footnote]

fixes it.

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

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


Re: [NTG-context] the difference between \def and \define

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 16:12 schrieb Hans Hagen pra...@wxs.nl:

 On 4/15/2013 4:07 PM, Marco Patzer wrote:
 
 I don't think named parameters are possible with \define, but maybe
 I'm mistaken.
 
 just use suffix .mkvi or put % macros=mkvi at the top of your file

Marco tries to do something like

  \define[3]\Test{#one#two#three}

which doesn’t work.

Wolfgang

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

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


Re: [NTG-context] the difference between \def and \define

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote:

 I don't think named parameters are possible with \define, but maybe
 I'm mistaken.
 
 just use suffix .mkvi or put % macros=mkvi at the top of your file

That's how to enable named parameters for \def. I was talking about
\define. The arguments are provided as a number in brackets, which
makes it hard to refer to them by name:

  %% fails, of course
  \define[2]\foo{#first, #second}

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [***SPAM***] Title of figure not below the figure, but on the right side

2013-04-15 Thread Sietse Brouwer
 But now I have a figure, where the (pretty long)
 title-text should be on the right side, how to
 get this?

Define a float type `rightfigure` that inherits from `figure`;
then setup that float's caption with \setupcaption[rightfigure][...=...].
Like so:

\definefloat[rightfigure][rightfigure][figure]
\setupcaption[rightfigure][location=right]

\starttext
\placefigure{caption 1}{\framed{figure 1}}
\placerightfigure{caption 2}{\framed{figure 2}}
\placefigure{caption 3}{\framed{figure 3}}
\stoptext

Example stolen from:
http://wiki.contextgarden.net/Command/setupcaption
On what wiki pages did you look? Perhaps you could add a sentence
'For adjusting the captions and their location, see {{cmd|setupcaption}}.'
so that future users will be led to the page they need.

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

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] options of \setupnotation and \setupnote

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote:

 @Hans: The module documentation fails to build for this module.
 
mtxrun --script modules --process $(mtxrun core-sys.mkiv)
 
 mtxrun --script modules --process auto:core-sys.mkiv

Thanks, I didn't know that one.

 weird ... works here

Sorry, copy-paste error on my side (as Wolfgang already noticed).
It's strc-not.mkvi that fails, not core-sys.mkiv.


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Figures and Lua (continuing Number of pages by Lua of a figure to be inserted? somehow)

2013-04-15 Thread Aditya Mahajan

On Fri, 12 Apr 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


Hello,

I tried to make a more minimal example.

Still we have:

files:

./t3.mkiv
./T/Kn.pdf

and code:


\startluacode
test = function(fn)
  local fig = figures.push{name = fn}
if figures.identify().status.status ~= 0 then
  figures.check()
end
  figures.pop()

  return fn .. :  .. (fig.used.pages or ?) .. \\par
end
\stopluacode

\starttext
AAA

\startluacode
  context(test(T/Kn.pdf)) -- Found - OK
  context(test(Kn.pdf)) -- Not found - OK
\stopluacode

\setupexternalfigures[directory=T]

\startluacode
  context(test(Kn.pdf)) -- Not found (or unknown number of pages) - 
UNEXPECTED - why? (3rd call)

\stopluacode

\externalfigure[Kn.pdf][scale=625] % Found - OK
\stoptext


The 3rd call of 'test()' seems to not locate 'Kn.pdf' although the path was 
altered by preceding \setupexternalfigures.


How to modify the 'test()' to work properly even in the 3rd case?


Look at figres.setpath() in grph-inc.lua and search figures.paths and 
figures_paths to see how it is used.


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

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

Re: [NTG-context] New user of ConTeXt

2013-04-15 Thread Aditya Mahajan

On Wed, 10 Apr 2013, Tristan Lorino wrote:

\starttext

\setMPtext {1} {C'est le titre}
\startMPcode
pickup pencircle scaled .5mm ;
pair a; a :=(0.2cm,.5cm);
label.rt(\MPtext {1},a);


In MkIV, this should be label.rt(btex \MPtext{1} etex, a);
In MkII, you'd have to use label.rt(texttext(\MPtext{1}), a);

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

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


Re: [NTG-context] combinations

2013-04-15 Thread Sietse Brouwer
Perhaps the default for the label could be numberconversion=character
--- subfigures are more commonly numbered a, b, c, I think.

Wikified at
http://wiki.contextgarden.net/Command/setupcombinations
http://wiki.contextgarden.net/Command/startcombination

Cheers,
Sietse

On 15 April 2013 16:04, Hans Hagen pra...@wxs.nl wrote:

 On 4/15/2013 3:40 PM, Sietse Brouwer wrote:

 Is the following correct?


 indeed


 -
   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
 -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 18:45 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Perhaps the default for the label could be numberconversion=character
 --- subfigures are more commonly numbered a, b, c, I think.


To set default values it can be usefull to add a unnamed “combination” label, 
i.e.

  \definelabel[\v!combination]

and \definecombination is changed to

\appendtoks
\edef\p_pack_combinations_alternative{\combinationparameter\c!alternative}%
\setfalse\c_str_define_commands_label % no helper commands
\ifx\currentcombinationparent\empty
- 
\normalexpanded{\definelabel[\v!combination:\currentcombination]}[\c!text=]%
+ 
\normalexpanded{\definelabel[\v!combination:\currentcombination][\v!combination]}[\c!text=]%
\else
  
\normalexpanded{\definelabel[\v!combination:\currentcombination][\currentcombinationparent]}[\c!text=]%
\fi
\to \everydefinecombination

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

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


[NTG-context] [***SPAM***] Re: Deactivating gridsetting for TOC

2013-04-15 Thread H. Özoguz

You can try to add

   \definelayout[pagenumber][grid=no]

to your document where you replace pagenumber with the number of the page 
where your TOC starts.

Wolfgang


Thanks for this idea, but it does not work. The grid=no is simply 
ignored for the toc-page (as many grid=no options are ignored in many 
environments and commands, seems to be field open for improvements).


Is there another idear for a workaround? At the moment I have only one 
option: resigning these different font sizes in the toc, which are 
defined manually absolutely (possible, but awkward)


Is there maybe another trick to deactivate gridsetting, analogical to 
placeongrid, or tricks with tables, or so? I am experimenting here, too, 
of course :)


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

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

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote:

 As follow up on the combinations tread I made this:
 
 …
 
 A relative simple extension but probably useful.

How about making the first bracket pair optional if key-value
options are passed? This would allow for the following syntax:

\starttext

%% works:
%% \startcombination [][nx=3, ny=1]

%% suggestion, fails at the moment
\startcombination [nx=3, ny=1]
  {a}{x}
  {b}{x}
  {c}{x}
\stopcombination

\stoptext

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Deactivating gridsetting for TOC

2013-04-15 Thread H. Özoguz

Am 15.04.2013 19:03, schrieb ntg-context-requ...@ntg.nl:

Is there maybe another trick to deactivate gridsetting, analogical to
placeongrid, or tricks with tables, or so? I am experimenting here, too,
of course:)

Huseyin


Ok, maybe it is possible with a combination of \placeongrid and a 
command, which forces page-break of the toc on specified titles, or 
lines. Is there a pissibility to manually page-break the toc?

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

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] Deactivating gridsetting for TOC

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 19:34 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 15.04.2013 19:03, schrieb ntg-context-requ...@ntg.nl:
 Is there maybe another trick to deactivate gridsetting, analogical to
 placeongrid, or tricks with tables, or so? I am experimenting here, too,
 of course:)
 
 Huseyin
 
 Ok, maybe it is possible with a combination of \placeongrid and a command, 
 which forces page-break of the toc on specified titles, or lines. Is there a 
 pissibility to manually page-break the toc?

%\setuplayout[grid=yes]

\showgrid

\setuplist[chapter][style=\tfb]
\setuplist[section][style=\tfa]

\starttext

\setuplayout[grid=no]

\completecontent

\page

\setuplayout[grid=yes]

\dorecurse{10}
  {\chapter{Chapter #1}
   \dorecurse{10}
 {\section{Section #1.##1}
  \input ward\par}}

\stoptext

Wolfgang

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

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


Re: [NTG-context] Vertical location of combinations

2013-04-15 Thread Aditya Mahajan

On Mon, 15 Apr 2013, Wolfgang Schuster wrote:



Am 15.04.2013 um 06:34 schrieb Aditya Mahajan adit...@umich.edu:


How do I control the vertical location of combinations?

I want output similar to

ABC
\framed[frame=no, location=top]}\startcombination[2]
 {\externalfigure[dummay][width=2cm]}{One}
 {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination}
DEF

without having to explictly add a \frame.

Looking at pack-com, I tried

\useMPlibrary[dum]
\setupcombination[location=top]

\starttext
ABC
\startcombination[2]
 {\externalfigure[dummay][width=2cm]}{One}
 {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination
DEF

ABC
\framed[frame=no, location=top]}\startcombination[2]
 {\externalfigure[dummay][width=2cm]}{One}
 {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination}
DEF
\stoptext

but the combination is still aligned to the baseline of the caption.


The location-key controls the vertical alignment of the images in the 
combination
and I think the environment is meant as display element and not for inline as 
you
try to use it. As you can see in pack-com.mkiv the content of the environment
is put a \vbox which explains the location when you use it in your text.


Thanks. I'll just create a macro to wrap everything around a framed.

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

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


Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-15 Thread Aditya Mahajan

On Mon, 15 Apr 2013, Tim Li wrote:


 Date: Mon, 15 Apr 2013 14:19:11 +0200

From: luigi.sca...@gmail.com
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user

hm, have you seen the file setuptex.bat in the tex folder ?
You have to  call it before to start using  context.

I have run the setuptex.bat just before running context, but the problem still  
:-(


Just to make sure, are you following the following procedure:

1. Open cmd prompt.
2. run C:\path-to-context\setuptex.bat
3. run context filename.tex

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

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


[NTG-context] tikz-cd - commutative diagrams

2013-04-15 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

The tikz module works, as per the attached attached test file. I need some  
commutative diagrams and found something relatively recent and interesting:


http://www.ctan.org/pkg/tikz-cd

But \input'ing the file tikz-cd.tex after the tikz module does not work; I  
get an undefined control sequence for a normal tikz command. I commented  
the LaTeX commands


% \ProvidesPackage{tikz-cd}[2012/12/30 v0.3c Commutative diagrams with  
tikz.]

% \RequirePackage{tikz}[2010/10/13] % pgf version 2.10 required

and the rest is just pgf syntax. What else do I need to do to get this  
working properly? Do I need to place tikz-cd in the pgf tree? If so, where?


In the attached I have not used any code that depends on tikz-cd; comment

\usemodule[tikz-cd]

and the file runs fine. Thanks for any advice and

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

tikz.tex
Description: TeX document


tikz-cd.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Title of figure not below the figure, but on the right side

2013-04-15 Thread H. Özoguz

Am 15.04.2013 19:03, schrieb ntg-context-requ...@ntg.nl:

Define a float type `rightfigure` that inherits from `figure`;
then setup that float's caption with \setupcaption[rightfigure][...=...].
Like so:

\definefloat[rightfigure][rightfigure][figure]
\setupcaption[rightfigure][location=right]

\starttext
\placefigure{caption 1}{\framed{figure 1}}
\placerightfigure{caption 2}{\framed{figure 2}}
\placefigure{caption 3}{\framed{figure 3}}
\stoptext

Thanks, that works!

So I use now:

\definefloat[rightfigure][rightfigure][figure]

\setupcaption[rightfigure][location=right]

\startplacerightfigure[

title={Tolles Bild},

reference=fig:demo, number=no]

{\framed{figure}}

\stopplacerightfigure


How can I now tell, where to place the figure? There are keys like 
here, or force, or bottom and so on, how to use them in this 
configuration? (my tries failed so far)


Huseyin


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

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] Zoom to a box when clicking

2013-04-15 Thread Aditya Mahajan
For a presentation, I want to display a series of images as a combination 
and be able to click on an image to zoom into that image and click again 
to zoom out. Is it possible to do that?


In general, can I create a hyperlink such that clicking on it zooms in on 
a particular rectangular region on a page?



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

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


[NTG-context] vskip in lines

2013-04-15 Thread H. Özoguz
With \vskip-0.9cm one can relocate 0.9cm. If one uses grid-setting, it 
would be easier to give the dimension in lines, like

\vskip-2*line – but this gives an error, how to do that correctly?

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

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] vskip in lines

2013-04-15 Thread Aditya Mahajan

On Mon, 15 Apr 2013, H. Özoguz wrote:

With \vskip-0.9cm one can relocate 0.9cm. If one uses grid-setting, it 
would be easier to give the dimension in lines, like

\vskip-2*line – but this gives an error, how to do that correctly?


(Ubtested) \vksip -2\lineheight or \blank[-2*line]

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

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

Re: [NTG-context] vskip in lines

2013-04-15 Thread Marco Patzer
On 2013–04–15 H. Özoguz wrote:

 With \vskip-0.9cm one can relocate 0.9cm. If one uses grid-setting,
 it would be easier to give the dimension in lines, like
 \vskip-2*line – but this gives an error, how to do that correctly?

  \vskip-\lineheight

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Hans Hagen

On 4/15/2013 4:30 PM, Marco Patzer wrote:

On 2013–04–15 Hans Hagen wrote:


@Hans: The module documentation fails to build for this module.

   mtxrun --script modules --process $(mtxrun core-sys.mkiv)


mtxrun --script modules --process auto:core-sys.mkiv


Thanks, I didn't know that one.


weird ... works here


Sorry, copy-paste error on my side (as Wolfgang already noticed).
It's strc-not.mkvi that fails, not core-sys.mkiv.


a more mkiv-ishc example is:

\startlocalnotes[footnote]
  \placetable
{Some Table}
\placeontopofeachother
  {\starttable[|l|r|]
   \HL
   \VL Nota\footnote{Bene} \VL Bene\footnote{Nota} \VL\SR
   \VL Bene\footnote{Nota} \VL Nota\footnote{Bene} \VL\SR
   \HL
   \stoptable}

{\setupnotation[footnote][alternative={serried},distance=.5em,after=\hskip1em]%
   \placelocalnotes[footnote]}
\stoplocalnotes




-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Zoom to a box when clicking

2013-04-15 Thread Hans Hagen

On 4/15/2013 9:24 PM, Aditya Mahajan wrote:

For a presentation, I want to display a series of images as a
combination and be able to click on an image to zoom into that image and
click again to zoom out. Is it possible to do that?

In general, can I create a hyperlink such that clicking on it zooms in
on a particular rectangular region on a page?


see s-pre-17.mkiv

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Zoom to a box when clicking

2013-04-15 Thread Aditya Mahajan

On Mon, 15 Apr 2013, Hans Hagen wrote:


On 4/15/2013 9:24 PM, Aditya Mahajan wrote:

For a presentation, I want to display a series of images as a
combination and be able to click on an image to zoom into that image and
click again to zoom out. Is it possible to do that?

In general, can I create a hyperlink such that clicking on it zooms in
on a particular rectangular region on a page?


see s-pre-17.mkiv


Interesting. I will try to adapt that code. Though the MkIV is a bit of 
black magic.


Two observations:

  context auto:s-pre-17.mkiv

does not generate the pdf file, because I guess, inputfilename is not 
s-pre-17.mkiv.



On linux, opening the presentation in full screen mode (in Adobe 
Reader) does not zoom the pdf. It works if I get rid of the full screen 
mode, which defeats the purpose. Evince, as expected, chokes on the PDF.

I might have to install a Windows VM just for using Adobe Acrobat :(

Aditya

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

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


Re: [NTG-context] Zoom to a box when clicking

2013-04-15 Thread Grant Rettke
On Mon, Apr 15, 2013 at 3:48 PM, Aditya Mahajan adit...@umich.edu wrote:
 On linux, opening the presentation in full screen mode (in Adobe Reader)
 does not zoom the pdf. It works if I get rid of the full screen mode, which
 defeats the purpose. Evince, as expected, chokes on the PDF.
 I might have to install a Windows VM just for using Adobe Acrobat :(

I use the latest acrobat reader for Windows under Ubuntu 12.04 under
stock WINE successfully, give that a try first.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Zoom to a box when clicking

2013-04-15 Thread Hans Hagen

On 4/15/2013 10:48 PM, Aditya Mahajan wrote:

On Mon, 15 Apr 2013, Hans Hagen wrote:


On 4/15/2013 9:24 PM, Aditya Mahajan wrote:

For a presentation, I want to display a series of images as a
combination and be able to click on an image to zoom into that image and
click again to zoom out. Is it possible to do that?

In general, can I create a hyperlink such that clicking on it zooms in
on a particular rectangular region on a page?


see s-pre-17.mkiv


Interesting. I will try to adapt that code. Though the MkIV is a bit of
black magic.

Two observations:

   context auto:s-pre-17.mkiv

does not generate the pdf file, because I guess, inputfilename is not
s-pre-17.mkiv.


indeed, you can try --global in such cases:

context --global s-pre-17.mkiv

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Zoom to a box when clicking

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote:

 Two observations:
 
context auto:s-pre-17.mkiv
 
 does not generate the pdf file, because I guess, inputfilename is not
 s-pre-17.mkiv.
 
 indeed, you can try --global in such cases:
 
 context --global s-pre-17.mkiv

This works on my machine:

  context  s-pre-17.mkiv


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Zoom to a box when clicking

2013-04-15 Thread Hans Hagen

On 4/16/2013 12:02 AM, Marco Patzer wrote:

On 2013–04–15 Hans Hagen wrote:


Two observations:

   context auto:s-pre-17.mkiv

does not generate the pdf file, because I guess, inputfilename is not
s-pre-17.mkiv.


indeed, you can try --global in such cases:

context --global s-pre-17.mkiv


This works on my machine:

   context  s-pre-17.mkiv


hm, i thought that i'd blocked that kind of auto global running .. needs 
checking


Hans


-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Zoom to a box when clicking

2013-04-15 Thread Hans Hagen

On 4/16/2013 12:16 AM, Hans Hagen wrote:

On 4/16/2013 12:02 AM, Marco Patzer wrote:

On 2013–04–15 Hans Hagen wrote:


Two observations:

   context auto:s-pre-17.mkiv

does not generate the pdf file, because I guess, inputfilename is not
s-pre-17.mkiv.


indeed, you can try --global in such cases:

context --global s-pre-17.mkiv


This works on my machine:

   context  s-pre-17.mkiv


hm, i thought that i'd blocked that kind of auto global running .. needs
checking


the next beta will be more strick again (we don't want arbitrary files 
in the tree to be processed); of course that needs checking then


Hans

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2013-04-15 Thread Hans Hagen

On 4/15/2013 7:23 PM, Marco Patzer wrote:

On 2013–04–15 Hans Hagen wrote:


As follow up on the combinations tread I made this:

…

A relative simple extension but probably useful.


How about making the first bracket pair optional if key-value
options are passed? This would allow for the following syntax:

\starttext

%% works:
%% \startcombination [][nx=3, ny=1]

%% suggestion, fails at the moment
\startcombination [nx=3, ny=1]
   {a}{x}
   {b}{x}
   {c}{x}
\stopcombination

\stoptext


ok
-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2013-04-15 Thread Hans Hagen

On 4/15/2013 6:58 PM, Wolfgang Schuster wrote:


Am 15.04.2013 um 18:45 schrieb Sietse Brouwer sbbrou...@gmail.com:


Perhaps the default for the label could be numberconversion=character
--- subfigures are more commonly numbered a, b, c, I think.



To set default values it can be usefull to add a unnamed “combination” label, 
i.e.

   \definelabel[\v!combination]

and \definecombination is changed to

\appendtoks
 \edef\p_pack_combinations_alternative{\combinationparameter\c!alternative}%
 \setfalse\c_str_define_commands_label % no helper commands
 \ifx\currentcombinationparent\empty
- 
\normalexpanded{\definelabel[\v!combination:\currentcombination]}[\c!text=]%
+ 
\normalexpanded{\definelabel[\v!combination:\currentcombination][\v!combination]}[\c!text=]%
 \else
   
\normalexpanded{\definelabel[\v!combination:\currentcombination][\currentcombinationparent]}[\c!text=]%
 \fi
\to \everydefinecombination


ok, but

\normalexpanded
  {\definelabel
 [\v!combination:\currentcombination]%

[\v!combination\ifx\currentcombinationparent\empty\else:\currentcombinationparent\fi]}%
 [\c!text=]%

-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Peter Sienkowski
Wolfgang, thank you very much for your answer about placing text.

Using:

\startplacefigure[location=force,title={First dummy caption}]
\inmargin{First margin dummy}
\externalfigure[dummy][width=\textwidth]
\stopplacefigure

The text in the \inmargin section appears at the bottom of the figure. This
works for about one line of text. For some of the figures I'm trying to put
3-4 lines in a wide margin and would like the text to appear at the top or
the middle of the figure.

I asked a question over at Stackexchange on this:

http://tex.stackexchange.com/questions/107856/placing-text-in-the-margin-next-to-a-figure-using-context

Using \starthanging \stophanging put the text in the correct place but then
the figures ran into each other.

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

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] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
I really have done the 1, 2 and 3 as you said, but it failed to start context, 
unless have set the TEXMFCNF to D:\context\texmf\web2c.
 weird. Date: Mon, 15 Apr 2013 13:58:00 -0400
 From: adit...@umich.edu
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user
 
 On Mon, 15 Apr 2013, Tim Li wrote:
 
   Date: Mon, 15 Apr 2013 14:19:11 +0200
  From: luigi.sca...@gmail.com
  To: ntg-context@ntg.nl
  Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user
 
  hm, have you seen the file setuptex.bat in the tex folder ?
  You have to  call it before to start using  context.
  I have run the setuptex.bat just before running context, but the problem 
  still  :-(
 
 Just to make sure, are you following the following procedure:
 
 1. Open cmd prompt.
 2. run C:\path-to-context\setuptex.bat
 3. run context filename.tex
 
 Aditya
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Sadness from a Windows ConTeXt user

2013-04-15 Thread Tim Li
This problem can be sovled if I copy the web2c folder under the texmf to 
texmf-local. It seems that ConTeXt can't find the configuration file but this 
problem won't happen in the TeXLive 2012.
 From: timli2...@outlook.com
To: ntg-context@ntg.nl
Date: Tue, 16 Apr 2013 01:27:35 +
Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user




I really have done the 1, 2 and 3 as you said, but it failed to start context, 
unless have set the TEXMFCNF to D:\context\texmf\web2c.
 
weird.
 Date: Mon, 15 Apr 2013 13:58:00 -0400
 From: adit...@umich.edu
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user
 
 On Mon, 15 Apr 2013, Tim Li wrote:
 
   Date: Mon, 15 Apr 2013 14:19:11 +0200
  From: luigi.sca...@gmail.com
  To: ntg-context@ntg.nl
  Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user
 
  hm, have you seen the file setuptex.bat in the tex folder ?
  You have to  call it before to start using  context.
  I have run the setuptex.bat just before running context, but the problem 
  still  :-(
 
 Just to make sure, are you following the following procedure:
 
 1. Open cmd prompt.
 2. run C:\path-to-context\setuptex.bat
 3. run context filename.tex
 
 Aditya
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  

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

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
___