[NTG-context] problem with t-filter/t-vim

2010-10-19 Thread Chen Shen
Hi Adityam,

I am using the t-filter/t-vim module, and got stuck with two problems with
it.
1. everything works fine if there is only one \definevimtyping declaration.
However, if i declare two of them, as in the following:

%%%
\definevimtyping[PythonCode][syntax=python]
\definevimtyping[CPPCode][syntax=cpp]

\startPythonCode
... % Code A
\stopPythonCode

\startPythonCode
... % Code B
\stopPythonCode
%%%

The counter for the temporary files is never incremented. So there is only
jobname-externalfilter-PythonCode-0.tmp in the directory.
Consequently, Code B appears twice in the produced PDF, while Code A never
appears.

2. Every line in the Python code becomes a new paragraph in ConTeXt. I
wonder if this could be changed.
I am using \setupwitespace[line], so the spacing between two lines of source
is too large.

I am using the dev/ branch in the github repository.
Thank you very much.

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

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

2010-10-19 Thread Herbert Voss
An example from the documentation:

\starttext

\startitemize[1,packed]
\head supported image formats in \PDFTEX \par
  \startitemize[a]
  \item png \item eps \item pdf
  \stopitemize
\head non supported image formats in \PDFTEX \par
  \startitemize[continue]
  \item jpg \item gif \item tif
  \stopitemize
\stopitemize

\stoptext

I get with mkIV (TeXLive2010)
[...]
systems : begin file .tex at line 3
! Math error: parameter \Umathquad\displaystyle is not set.
\mathematics ... #1\else \Ustartmath #1\Ustopmath
  \fi
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname
[...]

Herbert


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

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

2010-10-19 Thread luigi scarso
2010/10/19 Herbert Voss herbert.v...@fu-berlin.de:
 An example from the documentation:

 \starttext

 \startitemize[1,packed]
 \head supported image formats in \PDFTEX \par
      \startitemize[a]
      \item png \item eps \item pdf
      \stopitemize
 \head non supported image formats in \PDFTEX \par
      \startitemize[continue]
      \item jpg \item gif \item tif
      \stopitemize
 \stopitemize

 \stoptext

 I get with mkIV (TeXLive2010)
 [...]
 systems         : begin file .tex at line 3
 ! Math error: parameter \Umathquad\displaystyle is not set.
 \mathematics ... #1\else \Ustartmath #1\Ustopmath
                                                  \fi
 \dodosymbol ...bol \csname \??ss :#1:#2\endcsname
 [...]

 Herbert
It's ok with latest minimals.
Unfortunately minimals still suffers of cont-fil bug:
in context.mkiv/mkii
\loadcorefile{cont-fil}
should be
\loadmarkfile{cont-fil}

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

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


Re: [NTG-context] itemize

2010-10-19 Thread Hans Hagen

On 19-10-2010 11:17, luigi scarso wrote:

2010/10/19 Herbert Vossherbert.v...@fu-berlin.de:

An example from the documentation:

\starttext

\startitemize[1,packed]
\head supported image formats in \PDFTEX \par
  \startitemize[a]
  \item png \item eps \item pdf
  \stopitemize
\head non supported image formats in \PDFTEX \par
  \startitemize[continue]
  \item jpg \item gif \item tif
  \stopitemize
\stopitemize

\stoptext

I get with mkIV (TeXLive2010)
[...]
systems : begin file .tex at line 3
! Math error: parameter \Umathquad\displaystyle is not set.
\mathematics ... #1\else \Ustartmath #1\Ustopmath
  \fi
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname
[...]


If I remember right this is a bug in the luatex version that ships with 
texlive. Does


\def\Ustartmath{$}
\def\Ustopmath {$}

help?

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

2010-10-19 Thread Herbert Voss
Am 19.10.2010 11:27, schrieb Hans Hagen:

 I get with mkIV (TeXLive2010)
 [...]
 systems : begin file .tex at line 3
 ! Math error: parameter \Umathquad\displaystyle is not set.
 \mathematics ... #1\else \Ustartmath #1\Ustopmath
   \fi
 \dodosymbol ...bol \csname \??ss :#1:#2\endcsname
 [...]
 
 If I remember right this is a bug in the luatex version that ships with
 texlive. Does
 
 \def\Ustartmath{$}
 \def\Ustopmath {$}
 
 help?

the same problem

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

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

2010-10-19 Thread Khaled Hosny
On Tue, Oct 19, 2010 at 11:27:35AM +0200, Hans Hagen wrote:
 On 19-10-2010 11:17, luigi scarso wrote:
 2010/10/19 Herbert Vossherbert.v...@fu-berlin.de:
 An example from the documentation:
 
 \starttext
 
 \startitemize[1,packed]
 \head supported image formats in \PDFTEX \par
   \startitemize[a]
   \item png \item eps \item pdf
   \stopitemize
 \head non supported image formats in \PDFTEX \par
   \startitemize[continue]
   \item jpg \item gif \item tif
   \stopitemize
 \stopitemize
 
 \stoptext
 
 I get with mkIV (TeXLive2010)
 [...]
 systems : begin file .tex at line 3
 ! Math error: parameter \Umathquad\displaystyle is not set.
 \mathematics ... #1\else \Ustartmath #1\Ustopmath
   \fi
 \dodosymbol ...bol \csname \??ss :#1:#2\endcsname
 [...]
 
 If I remember right this is a bug in the luatex version that ships
 with texlive. Does
 
 \def\Ustartmath{$}
 \def\Ustopmath {$}

The problem seems to be with \Umathquad\displaystyle not being said,
which usually means he is loading a math font that has no math
parameters. For lualatex this used to be some TTF version of CM fonts
that are erroneously have similar file names (with different extension)
to the TFM fonts so it gets loaded instead of the real CM fonts. On my
Debian system, the were two versions, one bundled with LyX and one with
some other latex fonts package.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2010-10-19 Thread Herbert Voss
Am 19.10.2010 11:40, schrieb Khaled Hosny:

 systems : begin file .tex at line 3
 ! Math error: parameter \Umathquad\displaystyle is not set.
 \mathematics ... #1\else \Ustartmath #1\Ustopmath
  \fi
 \dodosymbol ...bol \csname \??ss :#1:#2\endcsname
 [...]

 If I remember right this is a bug in the luatex version that ships
 with texlive. Does

 \def\Ustartmath{$}
 \def\Ustopmath {$}
 
 The problem seems to be with \Umathquad\displaystyle not being said,
 which usually means he is loading a math font that has no math
 parameters. For lualatex this used to be some TTF version of CM fonts
 that are erroneously have similar file names (with different extension)
 to the TFM fonts so it gets loaded instead of the real CM fonts. On my
 Debian system, the were two versions, one bundled with LyX and one with
 some other latex fonts package.

it looks like that there are no math fonts available:
[..]
!define font: forced type tfm of eufm7 not found
!define font: font with name eufm7 is not found
!define font: forced type tfm of eufb7 not found
!define font: font with name eufb7 is not found
!math virtual   : font LMMath7-Regular, no parameters set
!math virtual   : the mapping is incomplete for 'LMMath7-Regular' at 7pt
!math virtual   : font LMMath7-Regular, no parameters set
!math virtual   : font LMMath7-Regular, no parameters set
!math virtual   : font LMMath7-Regular, no parameters set
!math virtual   : font LMMath7-Regular, no parameters set
!math virtual   : font LMMath7-Regular, no parameters set
[...]

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

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] entries in registerentry

2010-10-19 Thread Jano Kula

Hi Steffen,

On 10/13/2010 07:23 PM, Steffen Wolfrum wrote:

Hi,

I don't understand the concept of entries in registerentry :o(

Say, you have this example:

\starttext
\placeregister[index]
\page
page 1
\setregisterentry[index]
  [entries:1={eins},
   entries:2={zwei},
   entries:3={drei},
   label=range]
\page
  page 2
  text
\page
  page 3
\finishregisterentry[index][label=range]
text
\stoptext


\setregisterentry writes only one index entry and entries:1, entries:2, 
entries:3 are the levels of this entry, so \setregisterentry in your 
example is equivalent to


\index{eins+zwei+drei}

and you get

eins
  zwei
drei number


Why does only have entries:3 the index range 2-4, both entries:1 and 2 are 
emtpy?
What should I write in order to have all of those entries referering to the same 
2-4?


Hans might have a better hint, I would write these entries three times.

Jano



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

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

2010-10-19 Thread Herbert Voss
Am 19.10.2010 11:27, schrieb Hans Hagen:

 If I remember right this is a bug in the luatex version that ships with
 texlive. 

I updated from http://tlcontrib.metatex.org/2010

and now it is ok

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

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

2010-10-19 Thread luigi scarso
2010/10/19 Herbert Voss herbert.v...@fu-berlin.de:
 Am 19.10.2010 11:27, schrieb Hans Hagen:

 If I remember right this is a bug in the luatex version that ships with
 texlive.

 I updated from http://tlcontrib.metatex.org/2010

 and now it is ok
hm, what does
# context --version
say ?
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] itemize

2010-10-19 Thread luigi scarso
2010/10/19 Herbert Voss herbert.v...@fu-berlin.de:
 Am 19.10.2010 13:00, schrieb luigi scarso:
 2010/10/19 Herbert Voss herbert.v...@fu-berlin.de:
 Am 19.10.2010 11:27, schrieb Hans Hagen:

 If I remember right this is a bug in the luatex version that ships with
 texlive.

 I updated from http://tlcontrib.metatex.org/2010

 and now it is ok
 hm, what does
 # context --version
 say ?

 MTXrun | main context file:
 /usr/local/texlive/2010/texmf-dist/tex/context/base/context.tex
 MTXrun | current version: 2010.07.30 11:35
Ah ok, perhaps latest current.


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

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


Re: [NTG-context] itemize

2010-10-19 Thread Herbert Voss
Am 19.10.2010 12:50, schrieb Herbert Voss:
 Am 19.10.2010 11:27, schrieb Hans Hagen:
 
 If I remember right this is a bug in the luatex version that ships with
 texlive. 
 
 I updated from http://tlcontrib.metatex.org/2010
 
 and now it is ok

But only for a moment ... :-(  But now I know
what happens.

The problem is that I run several context files
from a script. But the context sources are generated
before from within a LaTeX document. Before I run
this document with LaTeX I set TEXINPUTS to antother
value, but always with ...:$TEXINPUTS. After
running pdflatex the script then runs
all ConTeXt documents and it seems that the setting
of TEXINPUTS is not correct for the context runs.

When I do an unset TEXINPUTS inside the script
before running context on the files everything
works.

Why can the setting of TEXINPUTS a problem for
context?

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

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

2010-10-19 Thread Taco Hoekwater

On 10/19/2010 02:01 PM, Herbert Voss wrote:


Why can the setting of TEXINPUTS a problem for
context?


TEXINPUTS can *always* be a problem and really should not
be used at all any more. It is a historical environment
variable from the nineties, and it overrules just about
every path in a modern texmf tree.

If you need something special, use TEXMFLOCAL or TEXMFPROJECT
instead.

Best wishes,
Taco

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

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


[NTG-context] Caption textcommand option

2010-10-19 Thread Cedric Mauclair
Hi Hans and all,

Would it be possible to add an options to the captions with name
textcommand to typeset the caption text only. In French, we use a
point at the end of the captions, but if I want to use \about...
somewhere, I end up with the dot too, which I don't want.

Currently I have changed, rather crudely, the definition of
\putcompletecaption... to take that into account. Here is what I came
up with.

\def\DotAtEnd#1{#1.}
\setupcaptions[\c!textcommand=\DotAtEnd] % ADDED

\long\def\putcompletecaption
 ...
   \begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
% MODIFIED
 \fi
   \endgroup
  %\floatcaptionparameter\c!after % test for side effects first
   
\doifsomething{\floatcaptionparameter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}}
%% END YUCK!!

I am sure there is a better way though.

Regards.

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

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] Caption textcommand option

2010-10-19 Thread Cedric Mauclair
Sorry, the message was not over.

I was hilighting the interesting part :

\def\DotAtEnd#1{#1.}
\setupcaptions[\c!textcommand=\DotAtEnd] % ADDED

\long\def\putcompletecaption#1#2%
  ...
  \begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
  ...


-- Cédric



On Tue, Oct 19, 2010 at 14:24, Cedric Mauclair
cedric.maucl...@gmail.com wrote:
 Hi Hans and all,

 Would it be possible to add an options to the captions with name
 textcommand to typeset the caption text only. In French, we use a
 point at the end of the captions, but if I want to use \about...
 somewhere, I end up with the dot too, which I don't want.

 Currently I have changed, rather crudely, the definition of
 \putcompletecaption... to take that into account. Here is what I came
 up with.

 \def\DotAtEnd#1{#1.}
 \setupcaptions[\c!textcommand=\DotAtEnd] % ADDED

 \long\def\putcompletecaption
  ...
       \begstrut\floatcaptionparameter\c!textcommand{#2}\endstrut\endgraf
 % MODIFIED
     \fi
   \endgroup
  %\floatcaptionparameter\c!after % test for side effects first
   
 \doifsomething{\floatcaptionparameter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}}
 %% END YUCK!!

 I am sure there is a better way though.

 Regards.

 -- Cédric

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

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] Caption textcommand option

2010-10-19 Thread Wolfgang Schuster

Am 19.10.2010 um 14:24 schrieb Cedric Mauclair:

 Hi Hans and all,
 
 Would it be possible to add an options to the captions with name
 textcommand to typeset the caption text only. In French, we use a
 point at the end of the captions, but if I want to use \about...
 somewhere, I end up with the dot too, which I don't want.
 
 Currently I have changed, rather crudely, the definition of
 \putcompletecaption... to take that into account. Here is what I came
 up with.

Make a complete example to show us what do you want to achieve before you try 
to modify commands.

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] What is the replacement for the 'stop_run' callback?

2010-10-19 Thread Tad Ashlock
On Sun, Oct 17, 2010 at 10:24, Hans Hagen pra...@wxs.nl wrote:

 On 17-10-2010 4:06, Tad Ashlock wrote:

  I'm trying to update a ConTeXt module of mine.  It does some data
 gathering
 during the ConTeXt run, and then processes it after the run is complete.
  This used to work last year:

 local id, err = callback.register('stop_run', new_stop_run_function)

 But now err is set to callback 'stop_run' is frozen (actions performed at
 the end of a run).


 indeed


  After trying various approaches for a couple of hours, I'm calling for
 help.
 :)


  Here's what I ended up with:

 \startluacode
 print('%%% TEST1')
 local function after_run (head, groupcode)
 print('%%% TEST2')
 return head, true
 end
 nodes.tasks.appendaction('finalizers','after','after_run')
 \stopluacode
 \starttext
 \input knuth
 \stoptext

 In the output, I see the TEST1 line, but not the TEST2 line.


 because after_run is not seen,

 function myprivatenamespace.after_run ...


 nodes.tasks.appendaction('finalizers','after','myprivatenamespace.after_run')


  I don't know what head and groupcode are, but those seem to be the
 expected parameters for an action.  I don't know why it returns head,
 true, but that was recommended in a posting (
 http://archive.contextgarden.net/message/20100410.005025.76ac9efd.en.html
 ).


 whatever, it's not the place to hook in your finalizer as there finalizers
 are just a specific place in node list processing


  I have no idea if 'finalizers' is the right parameter, but I didn't see
 any
 others that looked like it could be synonymous with 'stop_run'.


 You can use (preferable no messages there):

  luatex.registerstopactions(yourfunction)

 or for messages:

  statistics.register(banner,function() return text end)

 in this case returning false (or nil) will not show the statistic which
 makes sense if there's nothing useful to report.

 At some point there will be a formal description for this.

 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
 -


Hans,

The registerstopactions() function was the solution I was looking for, but
I've verified that both of the solutions work as expected.  I tested them
with both a single ConTeXt source file and a set of files in a Project -
Product - Component structure.

I'll wiki this soon.

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

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] problem with t-filter/t-vim

2010-10-19 Thread Aditya Mahajan

On Tue, 19 Oct 2010, Chen Shen wrote:


I am using the t-filter/t-vim module, and got stuck with two problems with
it.
1. everything works fine if there is only one \definevimtyping declaration.
However, if i declare two of them, as in the following:

%%%
\definevimtyping[PythonCode][syntax=python]
\definevimtyping[CPPCode][syntax=cpp]

\startPythonCode
... % Code A
\stopPythonCode

\startPythonCode
... % Code B
\stopPythonCode
%%%

The counter for the temporary files is never incremented. So there is only
jobname-externalfilter-PythonCode-0.tmp in the directory.
Consequently, Code B appears twice in the produced PDF, while Code A never
appears.


A grouping bug. Does it work with the latest version from the deb branch.


2. Every line in the Python code becomes a new paragraph in ConTeXt. I
wonder if this could be changed.
I am using \setupwitespace[line], so the spacing between two lines of source
is too large.


That is by design. Currently, 2context.vim simply adds some markup, and 
the resutant file is read using


\startlines

\stoplines

\start-stop-lines converts each line to a paragraph. You can try

\startsetups vim:setups
\setupwhitespace[none]
\stopsetups

\setupvimtyping[setups=vim:setups]

to see if it helps.

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] Caption textcommand option

2010-10-19 Thread Cedric Mauclair
On Tue, Oct 19, 2010 at 14:46, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 19.10.2010 um 14:24 schrieb Cedric Mauclair:

 Hi Hans and all,

 Would it be possible to add an options to the captions with name
 textcommand to typeset the caption text only. In French, we use a
 point at the end of the captions, but if I want to use \about...
 somewhere, I end up with the dot too, which I don't want.

 Currently I have changed, rather crudely, the definition of
 \putcompletecaption... to take that into account. Here is what I came
 up with.

 Make a complete example to show us what do you want to achieve before you try 
 to modify commands.

Here is a minimal example. I would like the first caption and the
second reference.

Hope this is clear.

-- Cédric


 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
 ___



doted-caption.pdf
Description: Adobe PDF document


doted-caption.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
___


[NTG-context] Failure to Install minimals on iBook G3

2010-10-19 Thread Robert Blackstone
Hello,
I tried in vain to install the minimals on an old (2003) but still
functional iBook G3, running under OSX 10.4.11. After having received
some 4MB, I get the message: dyld: incompatible cpu-subtype plus a
reference to line 103 of first-setup.sh.
Does anybody on this list know what could be done about this. Btw,
this iBook can handle TeX and ConTeXt. I installed MacTeX 2009 and
everything works. But I would prefer the minimals.

Thanks in advance.

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

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] Failure to Install minimals on iBook G3

2010-10-19 Thread Arthur Reutenauer
Hello Robert,

On Tue, Oct 19, 2010 at 06:27:44PM +0200, Robert Blackstone wrote:
 I tried in vain to install the minimals on an old (2003) but still
 functional iBook G3, running under OSX 10.4.11. After having received
 some 4MB, I get the message: dyld: incompatible cpu-subtype plus a
 reference to line 103 of first-setup.sh.

  This is a binary compatibility problem: the LuaTeX executable for Macs
running on PowerPC processors are built on an Intel Mac using a
cross-compilation technique.  I'm afraid nothing can be done at the
moment.

 Does anybody on this list know what could be done about this. Btw,
 this iBook can handle TeX and ConTeXt. I installed MacTeX 2009 and
 everything works. But I would prefer the minimals.

  Yes, for MacTeX (actually TeX Live) the binaries are built on a actual
G3.  But we can't use TeX Live binaries in the Minimals because we need
a more recent LuaTeX.

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

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] Failure to Install minimals on iBook G3

2010-10-19 Thread Mojca Miklavec
On Tue, Oct 19, 2010 at 18:44, Arthur Reutenauer wrote:
        Hello Robert,

 On Tue, Oct 19, 2010 at 06:27:44PM +0200, Robert Blackstone wrote:
 I tried in vain to install the minimals on an old (2003) but still
 functional iBook G3, running under OSX 10.4.11. After having received
 some 4MB, I get the message: dyld: incompatible cpu-subtype plus a
 reference to line 103 of first-setup.sh.

  This is a binary compatibility problem: the LuaTeX executable for Macs
 running on PowerPC processors are built on an Intel Mac using a
 cross-compilation technique.  I'm afraid nothing can be done at the
 moment.

The nothing can be done is not entirely true. We should still be
able to compile a new binary on an older machine (yours, for example),
it only makes it very clumsy to compile on several machines.

However, in one way this is a bit weird. We have a non-neglegible
number of PPC users of minimals and nobody has complained about that
problem so far, so nobody was even aware of the problem. Back in May
we had a complaint from Tiger users (on Intel) that we were able to
solve after two days of debugging. So ... there is a hope to fix this,
but only after quite some debugging, if anyone is ready to do the
debugging.


But the other side of the coin is that ... Mac OS X Lion is
approaching with inevitable speed. Once that one is out and installed
on our machines, we'll have serious problems anyway since 10.7 won't
allow cross-compilation for Tiger. And the number of Tiger users is
not neglegible at all ...

As far as TeX Live is concerned, the binaries for PPC are compiled on Panther.

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
___


[NTG-context] amssymb

2010-10-19 Thread kosubek com
 Dear Sirs,

I have a problem with displaying some special characters from the AMS
Symbol-fontset, e.g. \blacksquare, \blacktriangle, ...

The symbols are displayed under MkII but not under MkIV.
(MkII and MkIV-version: 2010.05.24)

The symbols  are defined in math-ent.lua, but how can I call this file
to show the missing symbols?

Is it possible to make a link to the now-non-existing Module amsl so I
can use old ConTeXt-documents without changes?

Thanks for your help
Bernd Kosubek




signature.asc
Description: OpenPGP 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] duplex, marking

2010-10-19 Thread kosubek com
 Dear Sirs,

I have trouble with

\setuplayout[location=duplex]

and

\setuplayout[marking=color]

(MkII-version: 2010.05.24 / MkIV-version: dito)

A modified sample (from the ConTeXt-documentation cont-en.pdf, section
1.6) will show the problem:

\setuppapersize[B5][A4]
\setuplayout[location=duplex,marking=color]
\setuppagenumbering[alternative=doublesided]

\starttext
page 1
\page
page 2
\page
page 3
\page
page 4
\stoptext

The result are 4 pages on the left upper corner (-- odd pages) (MkII
and(!) MkIV).
instead of upper right/upper left (pages 1 and 2) upper right/upper left
(pages 3 and 4).

The option
location={duplex,left}
gives the same results.

The color-bars are only displayed at MkIV, with MkII only the cropmarks
are shown.

Can anybody help me with the duplex option in MkiII and MkIV and getting
color-bars in MkII?

Thanks for your help
Bernd Kosubek




signature.asc
Description: OpenPGP 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] Caption textcommand option

2010-10-19 Thread Wolfgang Schuster

Am 19.10.2010 um 16:55 schrieb Cedric Mauclair:

 Would it be possible to add an options to the captions with name
 textcommand to typeset the caption text only. In French, we use a
 point at the end of the captions, but if I want to use \about...
 somewhere, I end up with the dot too, which I don't want.
 
 [...]
 
 Make a complete example to show us what do you want to achieve before you 
 try to modify commands.
 
 Here is a minimal example. I would like the first caption and the second 
 reference.


Indeed, there is no simple way to achieve what you want and textcommand
is the easiest solution (but i would include the strut in the command), e.g.


example id=1
\unprotected\long\def\putcompletecaption#1#2%
  
{\doifsomething{\floatcaptionparameter\c!spacebefore}{\blank[\floatcaptionparameter\c!spacebefore]}%
% \floatcaptionparameter\c!before % test for side effects first
   \noindent
   \xdef\lastcaptiontag{\strut#1}%
   \dostartattributes{\??kj\currentfloat}\c!style\c!color\empty
 \ifnofloatnumber
 \else
   
\hbox{\doattributes{\??kj\currentfloat}\c!headstyle\c!headcolor{\strut#1}}%
   \ifnofloatcaption \else \ifemptyfloatcaption \else
 \doifelsenothing{\floatcaptionparameter\c!spaceinbetween}
   {\scratchskip\floatcaptionparameter\c!distance\relax
\dotfskip\scratchskip\emergencystretch.5\scratchskip}
   {\blank[\floatcaptionparameter\c!spaceinbetween]}%
   \fi \fi
 \fi
 \ifnofloatcaption
   \globallet\lastcaptionht\!!zeropoint
   \globallet\lastcaptiondp\!!zeropoint
 \else
   \doattributes{\??kj\currentfloat}\c!textstyle\c!textcolor
 {\xdef\lastcaptionht{\strutheight}%
  \xdef\lastcaptiondp{\strutdepth}%
%\begstrut#2\endstrut\endgraf}%
 \floatcaptionparameter\c!textcommand{\begstrut#2\endstrut}%
 \endgraf}%
 \fi
   \dostopattributes
% \floatcaptionparameter\c!after % test for side effects first
   
\doifsomething{\floatcaptionparameter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}}

\starttext

This is some text with a reference to a table named \about[tab:table].

\placetable[here][tab:table]{My caption.}{...}

\setupcaptions[textcommand=\groupedcommand{}{.}]

This is some text with a reference to a table named \about[tab:other-table].

\placetable[here][tab:other-table]{My caption}{...}

\stoptext
/example


but it’s possible to get the desired result also with a selector, e.g.


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

\startsetups select:caption
\setupselector[caption][n=1]
\stopsetups

\setupcaptions[setups=select:caption]

\starttext

This is some text with a reference to a table named \about[tab:table].

\placetable[here][tab:table]{\select{caption}{My caption.}{My caption}}{...}

\stoptext
/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] \setuphead

2010-10-19 Thread Hans Hagen

On 18-10-2010 10:12, Herbert Voss wrote:

Am 18.10.2010 10:08, schrieb Thomas Schmitz:


I want to know if the wiki text is outdated or not.
However, I am looking for an example where deeptextcommand
is really needed


I happen to need deeptextcommand ...

\definetype
  [boldtype]
  [style=\ttbf]

\definehead
  [summary]
  [subsubsubsubject]

\setuphead
  [summary]
  [style=,
   deeptextcommand=\boldtype,
   command=\MySummaryHead,
   color=blue]

\startsummary[title={bla \relax}]



\stopsummary

In the proces I figured out that in mkiv the argument was not passed 
expanded so that's fixed in the next beta


\type is typical a command that needs to be applied directly

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] Failure to Install minimals on iBook G3

2010-10-19 Thread Martin Schröder
2010/10/19 Mojca Miklavec mojca.miklavec.li...@gmail.com:
 allow cross-compilation for Tiger. And the number of Tiger users is
 not neglegible at all ...

Maybe you should ask for donations to get a Tiger PPC build machine
for the minimals?

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

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] Caption textcommand option

2010-10-19 Thread Alan BRASLAU
On Tuesday 19 October 2010 20:15:37 Wolfgang Schuster wrote:
 
 but it’s possible to get the desired result also with a selector, e.g.
 
 
 example id=2
 \defineselector[caption][max=2,n=2]
 
 \startsetups select:caption
 \setupselector[caption][n=1]
 \stopsetups
 
 \setupcaptions[setups=select:caption]
 
 \starttext
 
 This is some text with a reference to a table named \about[tab:table].
 
 \placetable[here][tab:table]{\select{caption}{My caption.}{My
 caption}}{...}
 
 \stoptext
 /example


I sytematically use the selector mechanism for short caption/full caption,
the short caption gets used for the list of figures and list of tables.
 \setupselector [caption] [n=1]
 \placelistoffigures [criterium=all]

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

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


Re: [NTG-context] Missing cont-fil on minimals ?

2010-10-19 Thread Henning Hraban Ramm


Am 2010-10-18 um 20:31 schrieb Arthur Reutenauer:

Thank you, got that (i.e. changed it in context.mkii and  
context.mkiv),

but it's to be changed in the distribution


 It's already changed :-)


I just tried to update and get the same problem.


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
___


Re: [NTG-context] Failure to Install minimals on iBook G3

2010-10-19 Thread Henning Hraban Ramm
I've still my old G3 iBook running 10.4.11 and could compile PPC  
binaries on that - but not very regularly, i.e. you would have to  
remind me if new binaries are needed, and it may last a few days,  
since the iBook is normally stowed away.
I just try the compilation, I guess it'll need some hours on that  
machine...



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
___


Re: [NTG-context] Failure to Install minimals on iBook G3

2010-10-19 Thread Henning Hraban Ramm

Am 2010-10-19 um 22:35 schrieb Martin Schröder:


2010/10/19 Mojca Miklavec mojca.miklavec.li...@gmail.com:

allow cross-compilation for Tiger. And the number of Tiger users is
not neglegible at all ...


Maybe you should ask for donations to get a Tiger PPC build machine
for the minimals?


I can donate a G4/400, it's just sitting idle under my desk anyway.

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
___


Re: [NTG-context] Failure to Install minimals on iBook G3

2010-10-19 Thread Robert Blackstone
Thank you, Arthur and Mojca, for your quick and clear response.

It is probably not worth bothering for this particular machine. I have
access to the minimals on several other Macs (including a much older,
not to say ancient PowerMac G4, also on Tiger). So I'm not
particularly needy in this respect.
I rescued this iBook from a garbage dump, in fact there were two of
them, both defect, from which I have been able to make one working
machine, and I just thought that it would have been nice to have
ConTeXt-minimals on it.

But it is puzzling. I never had any problems with two other PPC Macs,
so what makes this one essentially different? (No answer needed.)

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

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

2010-10-19 Thread S Barmeier
Sorry to keep going on about this, but trying to load the
project/environment with either of

\project myproject
\environment myenvironment

in the component (directly after \startcomponent) gives me an error. It
compiles fine without these commands, but then the \ruby command does
not work. What am I doing wrong?

Thank you.
Severin
 Thank you, it's almost working. I am making use of projects, products,
 environments and components.
 My \usemodule[ruby] sits in my environment file, but I'm using the \ruby
 command down in the component file. The environment is only called in
 the project file, but the component links back to the product (with
 \product - I guess that's how you do it?) and the product back to the
 project. The error occurs, no matter at which level
 (project/product/component) I am compiling. Do I really need to call the
 module in each component? I thought the component should trace back to
 the higher levels to find which modules to load...
 
 Load the project or the environment file in your component.

 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
___