Re: [NTG-context] naming of labels: Is »()« allowed?

2011-12-08 Thread Otared Kavian
Hi Paul,

It seems that the left parenthesis causes trouble when giving a label to a 
reference:

   \definereferenceformat[eqref][left=(,right=)]

   \starttext
   \placeformula[N)]
   \startformula
\Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = p_n^{(1)}
   \stopformula

   This works: \type{\eqref[N)]} gives \eqref[N)].
   
  \starttext
   \placeformula[(N]
   \startformula
\Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = p_n^{(1)}
   \stopformula

   This does not work: \type{\eqref[(N]} gives \eqref[(N].

This is not really an issue, since it is not necessary to name a label « (N) » 
or « (N »…

Best regards: OK

On 8 déc. 2011, at 02:18, Paul Menzel wrote:

 
\definereferenceformat[eqref][left=(,right=)]
 
\starttext
\placeformula[(N)]
\startformula
   \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = 
 p_n^{(1)}
\stopformula
 
Is it working? \eqref[(N)]
 
\CONTEXT\ \contextmark\ \contextversion
\stoptext


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

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

[NTG-context] Keep struggling with old style numerals!

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

Hi ConTeXt user's,

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


I use the following settings in my preamble:

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

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

Perhaps something changed that I missed! Thanks in advance!

Regards
Gerard Verhaag

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

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

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


Re: [NTG-context] Keep struggling with old style numerals!

2011-12-08 Thread Paul Menzel
Dear Gerard,


Am Donnerstag, den 08.12.2011, 10:56 +0100 schrieb Verhaag, G.C.H.M.:

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

what version did you use before?

 I use the following settings in my preamble:
 
 \usetypescript[schola]
 \setupbodyfont[schola,10pt]
 
 \definefontfeature [oldstyle] [default] [onum=yes]
 \addff{oldstyle}
 
 Perhaps something changed that I missed! Thanks in advance!

Do you get an error message or are the settings just not applied? An
output file from a working ConTeXt version and one from the current one
would be nice too.


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] headers: numberconversion=something or \definestructureconversionset

2011-12-08 Thread Philipp A.
hi list,

i want to make an exercise sheet style. exercises are already correctly
rendered as “*Exercise 1: Text*”, but sub-exercises should simply be
like “*a)*”.

what i tried:

\definestructureconversionset[ex][numbers,characters][numbers]
\setupheads[numberconversion=ex]

and

\setuphead[subsection][numberconversion=characters, …]

but i have no idea what i’m doing in the first case and even less idea of
what i’m doing wrong in the second.

documentation would help in both cases, but contextgarden just has some
(for me) incomprehensible examples.

thanks,
philipp

--

what i’d really love to have is the following commands, but i’ll figure it
out once i have above problem solved.

“\sheet” reads the current sheet number from the file name and gives “*Sheet
1*” as title level header.
“\exercise[descr]” gives “*Exercise 1*” without and “*Exercise 1:
descr*” as section level header.
“\subexercise[descr]” gives “*a)*” without and “*a: descr)*” with
description as subsection level header.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Wrong bookmark for publications list

2011-12-08 Thread Marco
There  is an  inconsistency concerning  the bookmarks  for
the  publications  list.  It generates  the  section  head
“References”, but the PDF bookmark “pubs”.

\setupinteraction [state=start]
\placebookmarks
\starttext

% generates bookmark ”pubs”
\completepublications

% workaround:

% generates bookmark ”References”
\startchapter [title=References]
  \placepublications
\stopchapter

\stoptext

Marco


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

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

Re: [NTG-context] Keep struggling with old style numerals!

2011-12-08 Thread Andreas Harder

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

 Hi ConTeXt user's,
 
 A few days ago I installed the latest ConTeXt version but now my oldstyle 
 settings don't seem to work any more!
 
 I use the following settings in my preamble:
 
 \usetypescript[schola]
 \setupbodyfont[schola,10pt]
 
 \definefontfeature [oldstyle] [default] [onum=yes]
 \addff{oldstyle}

Hi,

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

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

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

\setuphead[section][style=osf]

\setupbodyfont[schola]

\starttext
  \section{0123456789 -- ---}
  {\addff{osf}0123456789 -- ---} \par
  {\osf 0123456789 -- ---} \par
  {\setff{oldstyle}0123456789 -- ---} \par
  {\os 0123456789 -- ---}
\stoptext


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

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 with \setuplayout[setups=*strict]?

2011-12-08 Thread Pablo Rodríguez
Hi there,

I read a previous message on this list form Wolgang that

\setuplayout[setups=*strict]

is the ConTeXt way to avoid orphan and widow lines.

I have tried that before checking that

\widowpenalty=1\clubpenalty=1\raggedbottom

doesn't change anything on my documents.

The problem with the first code is that it breaks some pages in clearly
wrong places (it breaks the page on the seventh line of a A4 page).

I don't know how I could provide an example, since the document is a
personal document that I cannot share with third parties.

Is there no other way to avoid orphan and widow lines? I need it urgently.

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Keep struggling with old style numerals! SOLVED!

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

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

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

   

Hi ConTeXt user's,

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

I use the following settings in my preamble:

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

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

Hi,

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

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

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

\setuphead[section][style=osf]

\setupbodyfont[schola]


   


Hi,

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


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

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

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


[NTG-context] MetaFun: Is the maximum of `vloggrid` limited to 10?

2011-12-08 Thread Paul Menzel
Dear ConTeXt folks,


the `vloggrid` command is described in section 9 of the MetaFun manual
[1].

vloggrid (Min, Max, Step, Length, Height)

Can somebody confirm that `Max` can be at most 10?

\starttext
\type{draw vloggrid(0, 11, 10, 15cm, 5cm);}

\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor 
.5white);

draw vloggrid(0, 11, 10, 15cm, 5cm);
\stopMPcode

\type{draw vloggrid(0, 11, 1, 15cm, 5cm);}

\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor 
.5white);

draw vloggrid(0, 11, 1, 15cm, 5cm);
\stopMPcode

\type{draw vloggrid(0, 11, 5, 15cm, 5cm);}

\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor 
.5white);

draw vloggrid(0, 11, 5, 15cm, 5cm);
\stopMPcode

\type{draw vloggrid(0, 11, 5, 15cm, 5cm);}

\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor 
.5white);

draw vloggrid(0, 10, .5, 15cm, 5cm);
\stopMPcode

\CONTEXT\ \contextmark\ \contextversion
\stoptext

To create grid like the log-log grid in [2] I guess I need to compose
the bigger grid from these “basic” grids then?


Thanks,

Paul


[1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf
[2] 
https://de.wikipedia.org/wiki/Doppeltlogarithmisches_Papier#Doppeltlogarithmisches_Papier


fun.pdf
Description: Adobe PDF document
\starttext
\type{draw vloggrid(0, 11, 10, 15cm, 5cm);}

\startMPcode
		drawoptions(withpen pencircle scaled .25pt withcolor .5white);

		draw vloggrid(0, 11, 10, 15cm, 5cm);
\stopMPcode

\type{draw vloggrid(0, 11, 1, 15cm, 5cm);}

\startMPcode
		drawoptions(withpen pencircle scaled .25pt withcolor .5white);

		draw vloggrid(0, 11, 1, 15cm, 5cm);
\stopMPcode

\type{draw vloggrid(0, 11, 5, 15cm, 5cm);}

\startMPcode
		drawoptions(withpen pencircle scaled .25pt withcolor .5white);

		draw vloggrid(0, 11, 5, 15cm, 5cm);
\stopMPcode

\type{draw vloggrid(0, 11, 5, 15cm, 5cm);}

\startMPcode
		drawoptions(withpen pencircle scaled .25pt withcolor .5white);

		draw vloggrid(0, 10, .5, 15cm, 5cm);
\stopMPcode

\CONTEXT\ \contextmark\ \contextversion
\stoptext


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] MetaFun: Is the maximum of `vloggrid` limited to 10?

2011-12-08 Thread Hans Hagen

On 8-12-2011 14:54, Paul Menzel wrote:


To create grid like the log-log grid in [2] I guess I need to compose
the bigger grid from these “basic” grids then?


at some point it runs off your page i guess

\starttext

\startMPcode
draw vloggrid(0, 10, 10, 10cm, 6cm) withcolor red ;
draw vloggrid(0, 10,  5, 10cm, 5cm) withcolor green ;
draw vloggrid(0, 10,  2, 10cm, 4cm) withcolor blue ;
draw vloggrid(0, 10,  1, 10cm, 3cm) withcolor yellow ;
draw vloggrid(0,  5,  3, 10cm, 2cm) withcolor magenta ;
draw vloggrid(0,  5,  2, 10cm, 1cm) withcolor cyan ;
\stopMPcode

\stoptext


-
  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] MetaFun: Is the maximum of `vloggrid` limited to 10?

2011-12-08 Thread Paul Menzel
Am Donnerstag, den 08.12.2011, 16:40 +0100 schrieb Hans Hagen:
 On 8-12-2011 14:54, Paul Menzel wrote:
 
  To create grid like the log-log grid in [2] I guess I need to compose
  the bigger grid from these “basic” grids then?
 
 at some point it runs off your page i guess

But the width parameter should prevent that, should not it? In this case
10 cm?

[…]


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] naming of labels: Is »()« allowed?

2011-12-08 Thread Hans Hagen

On 8-12-2011 09:36, Otared Kavian wrote:

Hi Paul,

It seems that the left parenthesis causes trouble when giving a label to a 
reference:

\definereferenceformat[eqref][left=(,right=)]

\starttext
\placeformula[N)]
\startformula
\Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = 
p_n^{(1)}
\stopformula

This works: \type{\eqref[N)]} gives \eqref[N)].

   \starttext
\placeformula[(N]
\startformula
\Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = 
p_n^{(1)}
\stopformula

This does not work: \type{\eqref[(N]} gives \eqref[(N].

This is not really an issue, since it is not necessary to name a label « (N) » 
or « (N »…


indeed, formula:n-lparent makes more sense then

keep in mind that references are parsed .. think of a comma separated 
list of:


component:::inner
component:::inner
component:inner
special(operation{argument,argument})
special(operation)
special(\operation)
special()
inner{argument}
inner{\argument}
outer::
outer::inner
outer::special(operation{argument,argument})
outer::special(operation{argument,\argument})
outer::special(operation)
outer::special(\operation)
outer::special()
outer::inner{argument}
special(outer::operation)

so, letters, digits and dashes and single colons are quite ok in tags

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] Possible bug in \unit

2011-12-08 Thread Ian Lawrence
 I solved this = getting what I wanted by writing my own macro:

\define[3]\physicalquantitye{\hbox{#1 \times \unit{10^#2 #3}}}
%  \physicalquantitye{number}{exponent}{unit} -- gives short form of unit


That makes sense to me and is working fine.

There are a few more like this on the wiki (units page), in case anyone finds 
them useful.

On 7 Dec 2011, at 21:27, Marco wrote:
 
 
 Another thing:
 
 \unit{3.4e-5} yields to 3.4⁻⁵ that's expected according to
 the manual. But  how to get 3.4·10⁻⁵ (either  with \cot or
 \times)?
 



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

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
___