Re: [NTG-context] extra blank page in front of standardmakeup

2010-08-27 Thread Otared Kavian
Hi Mojca,

Both your example and Wolfgang's suggestion work fine with my installation 
(Minimals on Mac OS X 10.6.3, ConTeXt  ver: 2010.08.20 00:00) either with mkii, 
or mkiv.

Maybe you ahve a problem with your installation?

Best regards: OK

On 27 août 2010, at 16:53, Mojca Miklavec wrote:

> On Fri, Aug 27, 2010 at 15:47, Wolfgang Schuster
>  wrote:
>>  Am 27.08.10 12:28, schrieb Mojca Miklavec:
>>> 
>>> Dear list,
>>> 
>>> how can I prevent a blank page in front of title page in MKIV (apart
>>> from the fact that font switching is not working)? In MKII this is
>>> working perfectly fine.
>>> 
>>> \starttext
>>> \startstandardmakeup
>>> {\switchtobodyfont[50pt]\bf\centerline{Title}}
>>> \vskip 3cm
>>> {\switchtobodyfont[20pt]\centerline{\sl(manual)}} % \sl doesn't work
>>> either
>>> \stopstandardmakeup
>> 
>> Try to avoid \switchtobodyfont if possible.
>> 
>> \startstandardmakeup[align=middle]
>> {\definedfont[Bold at 50pt]Title}
>> \blank[3cm]
>> {\definedfont[Slanted at 20pt](manual)}
>> \stopstandardmakeup
> 
> I don't know what exactly is going on here, but not even
> \definedfont[Bold at 50pt] changes the font size. (Yes, I agree that
> it's a much better option to use this in comparison to
> \switchtobodyfont, I only slightly forgot about this alternative;
> thanks; but it doesn't work any better at the moment.)
> 
> (It could be something weird with my installation as well.)
> 
> 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
> ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

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


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Nicola
In article <4c782d26.6040...@wxs.nl>, Hans Hagen  wrote:

> On 27-8-2010 8:17, Nicola wrote:
> > In article
> > ,
> >   Mojca Miklavec  wrote:
> >
> >> TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).
> >
> > Right. I have tried
> >
> > unset TEXMFCACHE
> > texexec hello.tex
> >
> > in the command line and it just runs texexec (as expected).

Sorry, my mistake. If I unset TEXMFCACHE, then mtxrun is run also from 
the command line and the behaviour is consistent with what happens from 
TeXShop - which, in turn, is consistent with what Hans explains below.

> we used to have texmfstart as script runner (all scripts are located and 
> started by a runner which is faster than using some kpse locator esp 
> when having nested runs as with metafun in mkii)
> 
> so, texexec used to be
> 
>texmfstart texexec
> 
> however, nowadays mtxrun is the runner and it replaces texmfstart for 
> mkii as well and in order to do this, it needs the file database and 
> that one ends up in the cache so even for mkii there is a cache needed 
> (when I'm in the mood I'll check the lua texutil variant in which case 
> we can also kick out ruby which is currently only needed for mkii)
> 
> Hans

Everything is clear now. Thank you!

Nicola

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

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] creating own hyperlinks in bibliography

2010-08-27 Thread Mojca Miklavec
On Fri, Aug 27, 2010 at 15:40, Taco Hoekwater wrote:
> On 08/27/2010 01:00 PM, Mojca Miklavec wrote:
>>
>> Dear Taco,
>>
>> I would like to add some additional fields to bibliography.
>>
>> I would like to have
>>
>> \newbibfield[cobissid]
>>
>> \startpublication
>>     [...]
>>     ...
>>     \cobissid{70615}
>> \stoppublication
>>
>> and then I would modify \setuppublicationlayout[book] to transform the
>> number written above into "cobiss.si-id: 70615" pointing to the
>> following URL:
>>
>> http://www.cobiss.si/scripts/cobiss?command=DISPLAY&base=cobib&rid=70615&lani=EN
>
> The simple answer is: search for DOI in the bib module and do whatever
> that does. But, just in case:
>
>  \unprotect
>  \newbibfield[cobissid]
>  \def\bibinsertcobissid#1#2#3%
>    {{\bibdoifelse{\@@p...@cobissid}%
>       {\edef\asci...@ea\detokenize\@EA{\@@p...@cobissid}}%
>        #1\expanded{\goto{\@@p...@thekey}{\ascii}}#2}{#3}}}
>   \protect
>
> should come close to what you had in mind, you hyst have to tweak the
> \goto arguments a bit.

Thank you very much. It was of extreme help. I'm now using

\unprotect
\def\bibinsertcobissid#1#2#3%
  {{\bibdoifelse{\@@p...@cobissid}%
  {\edef\asci...@ea\detokenize\@EA{\@@p...@cobissid}}%
   #1\expanded{\gotoCOBISS{\@@p...@thekey}{\ascii}}#2}{#3}}}
\protect

\def\gotoCOBISS#1#2%
  {\ifbibinteractionelse

{\useURL[bibfoo#1][http://www.cobiss.si/scripts/cobiss?command=DISPLAY&base=cobib&rid=#2]%
 \goto{#2}[url(bibfoo#1)]}%
{#2}}

and then

   \insertcobissid{ {\sc cobiss.si-id}: }{.}{}%

(Just for a reference in case that any other Cobiss user will ever
want to repeat the same.)

Now I have just remembered something that has bothered me earlier, but
I have never mentioned it so far. When interaction is off, DOI gets
written in plain text which is perfectly OK, but when interaction is
on, it gets written in typewriter font as if it was URL. I see no
reason for writing out DOI number in typewriter font since it's not
really URL on its own, it only points to some URL. This is exactly the
modification that I have done above for COBISS numbers. What do you
think about that aspect?

Thank you very much,
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
___


Re: [NTG-context] tiny failure with bib module

2010-08-27 Thread Hans Hagen

On 27-8-2010 3:42, Taco Hoekwater wrote:

On 08/27/2010 12:13 PM, Mojca Miklavec wrote:

Dear Taco,

the following minimal example:

\usemodule[bib]

\startpublication
[k=key,t=book]
\title{Title}
\author[]{Author}[A.]{}{The}
\stoppublication

\starttext
\cite[alternative=data][key]
\stoptext

creates an error in mkii (and works fine in mkiv):

! Undefined control sequence.
\@@pvdatabook ...up }{\egroup . }{\insertcrossref



This should help, somewhere after \usemodule:

\let\insertcrossref\bibinsertcrossref


I've added

\let\insertcrossref\gobblethreearguments

to the mkii/mkiv files

-
  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] Postscript Type1 fonts & MK IV

2010-08-27 Thread Wolfgang Schuster

 Am 28.08.10 01:16, schrieb John Magolske:

I'd like to get some Postscript Type1 fonts working with MK IV
(installed via the minimals under Linux). I placed the *.pfb fonts
in ~/.fonts and did:

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

...but the output doesn't show any of the *.pfb fonts. The *.ttf fonts
installed alongside them in ~/.fonts do show up, and I can create PDFs
with those ttf fonts using the `context` command, but I'm not sure how
to proceed with the Postscript fonts.


ConTeXt needs also the afm files for type 1 fonts.

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] formla: listing and subnumbering

2010-08-27 Thread Hans Hagen

On 27-8-2010 2:27, Peter Schorsch wrote:

Hi,

in my work I have a lot of formulas inkl. subformulas. Doing the examples at
the wiki two questions came up:
  a) how to generate a table of formulas?


i'll have a look at it


-
  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] extra blank page in front of standardmakeup

2010-08-27 Thread Mojca Miklavec
On Fri, Aug 27, 2010 at 15:47, Wolfgang Schuster
 wrote:
>  Am 27.08.10 12:28, schrieb Mojca Miklavec:
>>
>> Dear list,
>>
>> how can I prevent a blank page in front of title page in MKIV (apart
>> from the fact that font switching is not working)? In MKII this is
>> working perfectly fine.
>>
>> \starttext
>> \startstandardmakeup
>> {\switchtobodyfont[50pt]\bf\centerline{Title}}
>> \vskip 3cm
>> {\switchtobodyfont[20pt]\centerline{\sl(manual)}} % \sl doesn't work
>> either
>> \stopstandardmakeup
>
> Try to avoid \switchtobodyfont if possible.
>
> \startstandardmakeup[align=middle]
> {\definedfont[Bold at 50pt]Title}
> \blank[3cm]
> {\definedfont[Slanted at 20pt](manual)}
> \stopstandardmakeup

I don't know what exactly is going on here, but not even
\definedfont[Bold at 50pt] changes the font size. (Yes, I agree that
it's a much better option to use this in comparison to
\switchtobodyfont, I only slightly forgot about this alternative;
thanks; but it doesn't work any better at the moment.)

(It could be something weird with my installation as well.)

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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Hans Hagen

On 27-8-2010 8:17, Nicola wrote:

In article
,
  Mojca Miklavec  wrote:


TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).


Right. I have tried

unset TEXMFCACHE
texexec hello.tex

in the command line and it just runs texexec (as expected).

But from TeXShop (using the engines for MKII and XeTeX described at
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation), for
some reason mtxrun is run before texexec on the first compilation, which
creates the cache in the location specified by texmfcnf.lua (unless I
set TEXMFCACHE). And sourcing setuptex doesn't change anything. Maybe
some other environment variable should be set in those engines?


we used to have texmfstart as script runner (all scripts are located and 
started by a runner which is faster than using some kpse locator esp 
when having nested runs as with metafun in mkii)


so, texexec used to be

  texmfstart texexec

however, nowadays mtxrun is the runner and it replaces texmfstart for 
mkii as well and in order to do this, it needs the file database and 
that one ends up in the cache so even for mkii there is a cache needed 
(when I'm in the mood I'll check the lua texutil variant in which case 
we can also kick out ruby which is currently only needed for mkii)


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
___


[NTG-context] Postscript Type1 fonts & MK IV

2010-08-27 Thread John Magolske
I'd like to get some Postscript Type1 fonts working with MK IV
(installed via the minimals under Linux). I placed the *.pfb fonts
in ~/.fonts and did:

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

...but the output doesn't show any of the *.pfb fonts. The *.ttf fonts
installed alongside them in ~/.fonts do show up, and I can create PDFs
with those ttf fonts using the `context` command, but I'm not sure how
to proceed with the Postscript fonts.

Thanks for any suggestions,

John


-- 
John Magolske
http://B79.net/contact
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Fwd: Debian_installation - repositories not found

2010-08-27 Thread John Magolske
> For Debian/unstable you do NOT need *ANY* of those. Everything is
> in Debian unstable and testing!!
> ...
> Just do
>   apt-get install context
> should be enough. But that is not the most recent context, I haven't
> found time for packaging a more current version for now. I hope
> that I can manage it in the next weeks.

I decided to install the minimals for now so as to be able to follow
the latest ConTeXt developments. Thanks for maintaining the Debian
packages, volunteering for various projects myself, I understand it
all takes time.

Regards,

John

-- 
John Magolske
http://B79.net/contact
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] diff mp-base.mp plain.mp

2010-08-27 Thread Yury G. Kudryashov
Hi!

In mp-base.mp dotlabel calls label twice. Once with t_, and once without. Is 
it intentional? plain.mp from texlive calls label only once with t_.

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

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] Making a feedback form

2010-08-27 Thread Hans Hagen

On 27-8-2010 3:03, Cecil Westerhof wrote:

I want to make a feedback form with ConTeXt. I hoped that there would
be templates for this, but I did not find any. Are there no templates,
or did I not look good?


there is the widgets manual on the website .. still valid

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] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Nicola
In article 
,
 Mojca Miklavec  wrote:

> TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).

Right. I have tried 

unset TEXMFCACHE
texexec hello.tex

in the command line and it just runs texexec (as expected).

But from TeXShop (using the engines for MKII and XeTeX described at 
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation), for 
some reason mtxrun is run before texexec on the first compilation, which 
creates the cache in the location specified by texmfcnf.lua (unless I 
set TEXMFCACHE). And sourcing setuptex doesn't change anything. Maybe 
some other environment variable should be set in those engines?

Nicola

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

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] tiny failure with bib module

2010-08-27 Thread Mojca Miklavec
On Fri, Aug 27, 2010 at 15:42, Taco Hoekwater  wrote:
> On 08/27/2010 12:13 PM, Mojca Miklavec wrote:
>>
>> Dear Taco,
>>
>> the following minimal example:
>>
>> \usemodule[bib]
>>
>> \startpublication
>>        [k=key,t=book]
>>        \title{Title}
>>        \author[]{Author}[A.]{}{The}
>> \stoppublication
>>
>> \starttext
>> \cite[alternative=data][key]
>> \stoptext
>>
>> creates an error in mkii (and works fine in mkiv):
>>
>> ! Undefined control sequence.
>> \@@pvdatabook ...up }{\egroup . }{\insertcrossref
>
>
> This should help, somewhere after \usemodule:
>
>  \let\insertcrossref\bibinsertcrossref

This does help somehow: it stops complaining, but the result is totally broken.

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
___


Re: [NTG-context] extra blank page in front of standardmakeup

2010-08-27 Thread Wolfgang Schuster

 Am 27.08.10 12:28, schrieb Mojca Miklavec:

Dear list,

how can I prevent a blank page in front of title page in MKIV (apart
from the fact that font switching is not working)? In MKII this is
working perfectly fine.

\starttext
\startstandardmakeup
{\switchtobodyfont[50pt]\bf\centerline{Title}}
\vskip 3cm
{\switchtobodyfont[20pt]\centerline{\sl(manual)}} % \sl doesn't work either
\stopstandardmakeup


Try to avoid \switchtobodyfont if possible.

\startstandardmakeup[align=middle]
{\definedfont[Bold at 50pt]Title}
\blank[3cm]
{\definedfont[Slanted at 20pt](manual)}
\stopstandardmakeup

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] tiny failure with bib module

2010-08-27 Thread Taco Hoekwater

On 08/27/2010 12:13 PM, Mojca Miklavec wrote:

Dear Taco,

the following minimal example:

\usemodule[bib]

\startpublication
[k=key,t=book]
\title{Title}
\author[]{Author}[A.]{}{The}
\stoppublication

\starttext
\cite[alternative=data][key]
\stoptext

creates an error in mkii (and works fine in mkiv):

! Undefined control sequence.
\@@pvdatabook ...up }{\egroup . }{\insertcrossref



This should help, somewhere after \usemodule:

  \let\insertcrossref\bibinsertcrossref

Best wishes,
Taco

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

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


Re: [NTG-context] creating own hyperlinks in bibliography

2010-08-27 Thread Taco Hoekwater

On 08/27/2010 01:00 PM, Mojca Miklavec wrote:

Dear Taco,

I would like to add some additional fields to bibliography. I know
that I have already asked the same question twice (for url and doi)
and each time it has been built into the core functionality, while my
current request is "too local" to do that.

I would like to have

\newbibfield[cobissid]

\startpublication
 [...]
 ...
 \cobissid{70615}
\stoppublication

and then I would modify \setuppublicationlayout[book] to transform the
number written above into "cobiss.si-id: 70615" pointing to the
following URL:
 
http://www.cobiss.si/scripts/cobiss?command=DISPLAY&base=cobib&rid=70615&lani=EN

That is very similar to what DOI does at the moment, but while DOI is
quite international, COBISS ID is really local, but it is *the* system
used in the whole country.

Is there any simple&  safe way to achieve that?


The simple answer is: search for DOI in the bib module and do whatever
that does. But, just in case:

  \unprotect
  \newbibfield[cobissid]
  \def\bibinsertcobissid#1#2#3%
{{\bibdoifelse{\@@p...@cobissid}%
   {\edef\asci...@ea\detokenize\@EA{\@@p...@cobissid}}%
#1\expanded{\goto{\@@p...@thekey}{\ascii}}#2}{#3}}}
   \protect

should come close to what you had in mind, you hyst have to tweak the
\goto arguments a bit.

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] Making a feedback form

2010-08-27 Thread Cecil Westerhof
I want to make a feedback form with ConTeXt. I hoped that there would
be templates for this, but I did not find any. Are there no templates,
or did I not look good?

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

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] formla: listing and subnumbering

2010-08-27 Thread Peter Schorsch
Hi,

in my work I have a lot of formulas inkl. subformulas. Doing the examples at 
the wiki two questions came up:
 a) how to generate a table of formulas?
 b) what is the right/better way for subnumbering?

a) I tried the example for generating a table of formulas from the wiki
(http://wiki.contextgarden.net/Math/Display#List_of_Formulas) but instead of 
a list I get in the pdf a »no list method«. What do I missed here?

b) I found two descriped ways how to create formula (sub-)numbering:
 1) using \formulanumber and \subformulanumber (third example from 
http://wiki.contextgarden.net/Math/Display#The_Manual_Method). But context 
always reports here: ! Undefined control sequence.
 ...^{\vfrac {1}{2}} &\subformulanumber 
  {b}\cr a^2 + b^2 &= c^2 
&\...
  2) using the \NR[..] like it is described on 
http://wiki.contextgarden.net/Multiline_equations#Working_with_equation_numbering
 
and http://dl.contextgarden.net/myway/mathalign.pdf. This way compiles 
through. 

But which way is the future context way? In which way can I combine 
subnumbering and including to list some (not all) subformulas?

Thanks for your help

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

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] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Peter Schorsch
I summarized this small discussion in the wiki as I also made a systemwide 
installation (http://wiki.contextgarden.net/ConTeXt_Minimals#Cache)



Nicola wrote:

> In article
> ,
>  Mojca Miklavec  wrote:
>  
>> The variable TEXMFCACHE is set in
>> tex/texmf/web2c/texmfcnf.lua
>> and that one should do the job. Under usual circumstances at least.
>> 
>> If that one is not being respected, something might be wrong. Do you
>> have any other texmfcnf.lua file somewhere else?
> 
> No, I export TEXMFCACHE in my .profile, because I want the cache to be
> inside my home folder. After running setuptex, ConTeXt minimals uses
> that rather than the path specified in texmfcnf.lua. Since now I know
> that luatex-cache can be shared, for me this is perfectly fine. I just
> had to adjust the TeXShop engines (I am on Mac OS X) by explicitly
> setting TEXMFCACHE for XeTeX and MKII, besides MKIV.
> 
> So, if I get it right, the value in texmfcnf.lua is used unless
> TEXMFCACHE is set.
> 
> Nicola
> 
> 
___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
> 
> 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] creating own hyperlinks in bibliography

2010-08-27 Thread Mojca Miklavec
Dear Taco,

I would like to add some additional fields to bibliography. I know
that I have already asked the same question twice (for url and doi)
and each time it has been built into the core functionality, while my
current request is "too local" to do that.

I would like to have

\newbibfield[cobissid]

\startpublication
[...]
...
\cobissid{70615}
\stoppublication

and then I would modify \setuppublicationlayout[book] to transform the
number written above into "cobiss.si-id: 70615" pointing to the
following URL:

http://www.cobiss.si/scripts/cobiss?command=DISPLAY&base=cobib&rid=70615&lani=EN

That is very similar to what DOI does at the moment, but while DOI is
quite international, COBISS ID is really local, but it is *the* system
used in the whole country.

Is there any simple & safe way to achieve that?

Thank you very much,
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
___


Re: [NTG-context] extra blank page in front of standardmakeup

2010-08-27 Thread Hans Hagen

On 27-8-2010 12:28, Mojca Miklavec wrote:

Dear list,

how can I prevent a blank page in front of title page in MKIV (apart
from the fact that font switching is not working)? In MKII this is
working perfectly fine.

\starttext
\startstandardmakeup
{\switchtobodyfont[50pt]\bf\centerline{Title}}
\vskip 3cm
{\switchtobodyfont[20pt]\centerline{\sl(manual)}} % \sl doesn't work either
\stopstandardmakeup
bla
\stoptext


ok here ... maybe i should upload a new zip? a bit tricky due to changes 
in lua code so i'd rather wait a while



Mojca (a proud user of MKII :) :) :)


(the last user of MKII)

when in a few years MKVI will show up you will change to MKIV won't you?

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] font sizes not obeyed

2010-08-27 Thread Hans Hagen

On 27-8-2010 12:20, Mojca Miklavec wrote:

\starttext
Title

\switchtobodyfont[5pt] Title

\switchtobodyfont[10pt] Title

\switchtobodyfont[14pt] Title

\switchtobodyfont[15pt] Title

\switchtobodyfont[50pt] Title

\stoptext



what is weird?

anyhow, keep in mind that when one does

{\switch... }

auto defs are often local and when that happens a lot (say in section 
titles) things can get slow



--

-
  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] Problems with the installation of the minimals on Win XP

2010-08-27 Thread Vyatcheslav Yatskovsky

Hi, Mojca

I've updated the installer this summer, and it work fine for me till now.

I'm very reluctant to install svn on my machine, I'd better send the 
files to someone having control over server.


I sent the latest executable to Mari.

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

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] extra blank page in front of standardmakeup

2010-08-27 Thread Mojca Miklavec
Dear list,

how can I prevent a blank page in front of title page in MKIV (apart
from the fact that font switching is not working)? In MKII this is
working perfectly fine.

\starttext
\startstandardmakeup
{\switchtobodyfont[50pt]\bf\centerline{Title}}
\vskip 3cm
{\switchtobodyfont[20pt]\centerline{\sl(manual)}} % \sl doesn't work either
\stopstandardmakeup
bla
\stoptext

Thank you very much,
   Mojca (a proud user of MKII :) :) :)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Problems with the installation of the minimals on Win XP :-(

2010-08-27 Thread Mojca Miklavec
On Thu, Aug 26, 2010 at 17:40, Florian Baudach wrote:
> I solved it, but I think in a very ugly way:
>
> 1. I downloaded the kpathsea60071.dll via http and copied the file to
> /context/bin
> 2. I downloaded also curl.exe (Don't know if it was necessary :-( )
> 3. The I got the errors: MSVCP71.DLL and MSVCR71.DLL not found

Akira replied that the two files are present in xetex-w32.tar.bz2 (on
w32tex.org). If needed, we can add them to the zip for installation
(it is probably also needed for runtime files then, not only for
installation, right?).

Is there any other user with the same experience?

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] font sizes not obeyed

2010-08-27 Thread Mojca Miklavec
Dear list,

yes, I do understand that it is somehow polite to use some kind of
\definebodyfontenvironment for weird font sizes (but don't understand
why this is needed), but the following example somehow works in MKII
and produces really weird result in MKIV:

\starttext
Title

\switchtobodyfont[5pt] Title

\switchtobodyfont[10pt] Title

\switchtobodyfont[14pt] Title

\switchtobodyfont[15pt] Title

\switchtobodyfont[50pt] Title

\stoptext

Is there any tiny patch for the core to fix such weird behaviour or is
it forbidden to switch to font sizes in this way?

Thank you,
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] tiny failure with bib module

2010-08-27 Thread Mojca Miklavec
Dear Taco,

the following minimal example:

\usemodule[bib]

\startpublication
[k=key,t=book]
\title{Title}
\author[]{Author}[A.]{}{The}
\stoppublication

\starttext
\cite[alternative=data][key]
\stoptext

creates an error in mkii (and works fine in mkiv):

! Undefined control sequence.
\@@pvdatabook ...up }{\egroup . }{\insertcrossref
  { in~}{}{. }}}{\insertseri...

\dotypesetapublication ...ve {\getvalue {pbdt-#1}}
  \fi \egroup
\next1 #1,->\dobibdata {#1}
   \doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance \...

\bibdataref ...e \processcommalist [#1]\dobibdata
  \bibalternative \v!right
\docite ...alue {bib\@@currentalternative ref}[#2]
  \else \processcommalist [#...
l.12 \cite[alternative=data][key]

?

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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Mojca Miklavec
On Fri, Aug 27, 2010 at 10:54, Nicola wrote:
> In article
> ,
>  Mojca Miklavec  wrote:
>
>> The variable TEXMFCACHE is set in
>>     tex/texmf/web2c/texmfcnf.lua
>> and that one should do the job. Under usual circumstances at least.
>>
>> If that one is not being respected, something might be wrong. Do you
>> have any other texmfcnf.lua file somewhere else?
>
> No, I export TEXMFCACHE in my .profile, because I want the cache to be
> inside my home folder.

Oh, that's another story then.

> After running setuptex, ConTeXt minimals uses
> that rather than the path specified in texmfcnf.lua. Since now I know
> that luatex-cache can be shared, for me this is perfectly fine.

> I just
> had to adjust the TeXShop engines (I am on Mac OS X) by explicitly
> setting TEXMFCACHE for XeTeX and MKII, besides MKIV.

TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).

> So, if I get it right, the value in texmfcnf.lua is used unless
> TEXMFCACHE is set.

True.

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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Nicola
In article 
,
 Mojca Miklavec  wrote:
 
> The variable TEXMFCACHE is set in
> tex/texmf/web2c/texmfcnf.lua
> and that one should do the job. Under usual circumstances at least.
> 
> If that one is not being respected, something might be wrong. Do you
> have any other texmfcnf.lua file somewhere else?

No, I export TEXMFCACHE in my .profile, because I want the cache to be 
inside my home folder. After running setuptex, ConTeXt minimals uses 
that rather than the path specified in texmfcnf.lua. Since now I know 
that luatex-cache can be shared, for me this is perfectly fine. I just 
had to adjust the TeXShop engines (I am on Mac OS X) by explicitly 
setting TEXMFCACHE for XeTeX and MKII, besides MKIV.

So, if I get it right, the value in texmfcnf.lua is used unless 
TEXMFCACHE is set.

Nicola

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

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] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Nicola
In article <4c76dc46.70...@wxs.nl>, Hans Hagen  wrote:

> > Is there any reason why exporting TEXMFCACHE is commented out in
> > setuptex?
> 
> You can set it up in a texmfcnf.lua file in your texmf-local/web2c tree.
> 
> Anyway, it is unlike to conflict as I hash the path so one cache can 
> serve many trees.

Ah, I hadn't realized that! That simplifies things a lot!

Thanks,
Nicola

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

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] align header in table

2010-08-27 Thread Jerónimo Alaminos Prats



El 26/08/2010, a las 20:29, Jerónimo Alaminos Prats escribió:

> Hi all,
> I've been following the examples in the garden to write the following table
> 
> 
> \chardef\characteralignmentmode=1
> 
> \startTABLE
> \setupTABLE[column][alignmentcharacter={,},aligncharacter=yes,align=middle]
> \setupTABLE[frame=off]
> \setupTABLE[row][first][bottomframe=on]
> \NC \alpha \NC \beta \NC error absoluto\NC error relativo \NC \NR 
> \NC 2 \NC 2,1  \NC 0,1 \NC 0,05 \NC \NR
> \NC 2\times 10\high{-4}   \NC 2,1\times 10\high{-4}  \NC 0,1\times 
> 10\high{-4} \NC 0,05 \NC \NR
> \NC 2\times 10\high{4}\NC 2,1\times 10\high{4}  \NC 0,1\times 
> 10\high{4} \NC 0,05 \NC\NR
> \stopTABLE
> 
> 
> Is there a way to have the entries of first row centered? 
> The obvious \setupTABLE[row][first][align=middle] do not have any effect.
> Thanks,
> Jeronimo.
> 
> 


I forgot about table. Sorry for the noise. The result that I was looking for 
it's explained in the articles of Aditya on table macros. 


\starttable[|l|cq1,5 |cq1,5 |cq1,2 |] 
\NC\REF[cB]{\alpha} \NC \REF[cB]{$\alpha^{*}$} \NC \REF[cB]{error absoluto}\NC 
\REF[cB]{error relativo} \NC \AR 
\HL
\NC 2   \NC 2,1  \NC 0,1 \NC 0,05 \NC \AR
\NC 2\times 10\high{-4} \NC 2,1\times 10\high{-4}  \NC 0,1\times 10\high{-4} 
\NC 0,05 \NC \AR
\NC 2\times 10\high{4}  \NC 2,1\times 10\high{4}  \NC 0,1\times 10\high{4} \NC 
0,05 \NC\AR
\HL
\stoptable

Best,
Jeronimo.


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

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] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Mojca Miklavec
On Thu, Aug 26, 2010 at 21:03, Nicola  wrote:
> Hi,
> according to the wiki “ConTeXt minimals does not touch anything outside
> its installation folder”, but if TEXMFCACHE is not set by setuptex,
> actually many files may be written outside the ConTeXt minimals folder,
> and (as in my case) they may conflict with the files written by ConTeXt
> from TeX Live in the same cache folder.
>
> Is there any reason why exporting TEXMFCACHE is commented out in
> setuptex?

The variable TEXMFCACHE is set in
tex/texmf/web2c/texmfcnf.lua
and that one should do the job. Under usual circumstances at least.

If that one is not being respected, something might be wrong. Do you
have any other texmfcnf.lua file somewhere else?

(Note that you are also free to rename setuptex and modify it
according to your own needs, but it makes sense to debug this first.)

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
___


Re: [NTG-context] Problems with the installation of the minimals on Win XP

2010-08-27 Thread Mojca Miklavec
On Thu, Aug 26, 2010 at 23:57, Vyatcheslav Yatskovsky wrote:
> Hi!
>
> Why not to use my Win installer? ;)
>
> @Mojca or someone at the server: I see that
> http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe
> contains quite old version of the installer. Can you please update it if I
> send you the files?

You should have commit rights for the repository. (But unless we solve
other problems, your installer probably won't work properly either.)

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
___


Re: [NTG-context] Problems with the installation of the minimals on Win XP :-(

2010-08-27 Thread Mojca Miklavec
On Thu, Aug 26, 2010 at 17:40, Florian Baudach wrote:
> I solved it, but I think in a very ugly way:
>
> 1. I downloaded the kpathsea60071.dll via http and copied the file to
> /context/bin

In theory that file should be in the new setup zip now, even though it
is true that these files do not get updated under windows (one cannot
"selfupdate" binaries under windows, so updating should become a
two-step process).

> 2. I downloaded also curl.exe (Don't know if it was necessary :-( )

It shouldn't be, but I have no idea what exactly/what else was going wrong.

> 3. The I got the errors: MSVCP71.DLL and MSVCR71.DLL not found

Just a question: are these two files related to Windows 7 and absent
on Windows XP? Do we need to add them to minimals then?

> 4. I searched for this files and found them fortunately on my work pc (It is
> not recommanded to download this file in the internet! )
> 5. I copied this files to /context/bin
> 6. I commented the rsync part of the installation script (Don't know if it
> was necessary ? )
> 7. Started the modified script.
> 8. ConteXt works now :-).

I cannot comment too much about the rest; my only question at the
moment is: do we need to add the two DLL files for non-windows7 users?
I added Akira to CC since he probably knows the requirements better
than I do (and I have no XP at hand).

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
___