[NTG-context] \margintext overflows in bottom margin

2013-01-17 Thread Devendra Ghate

I am using*\margintext* for comments in the margin. When a comment falls on
the last line of a page, I have to manually add 
*\setupmargintext[voffset=-2em]

*everytime to stop it from flowing into bottom margin.
Is there a way to automatically offset margin text to stop it from 
flowing into bottom margin.
I took a look at *typo-mar.mkiv* to see if an option exists to correct 
this without any success.


*MWE*

\setuplayout[height=6cm,width=5cm,rightmargin=5cm]
\unprotect
% setup the side notes
\setupmargindata
[margintext]
[location=outer,
 width=4.5cm,
 align=flushleft,
 stack=yes]

\starttext
  \showframe
  A \crlf A\crlf A\crlf
 %\setupmargindata[margintext][voffset=-2em]
  A\margintext{A margin text.A margin text.A margin text.A margin text.}
\stoptext

Devendra
___
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] Error: Missing number, treated as zero?

2013-01-17 Thread H. Özoguz

Am 17.01.2013 02:36, schrieb ntg-context-requ...@ntg.nl:

You should provide a working minimal example.

The errors message tells me there is a problem with \setupindenting (or the 
?indenting? setting) of your bigquote environment.

Wolfgang

And here it is:

% ConTeXt LuaTeX


\usemodule[annotation]


\define[2]\AnnotationCommand

{\startblockquote

\noindent #2%

\stopblockquote}

\defineannotation[bigquote]

\setupannotation[bigquote]

[alternative=command,

command=\AnnotationCommand

]


\starttext

He said:

\startbigquote

This is interesting!

\stopbigquote

\stoptext


% ConTeXt LuaTeX


With a different error, but this is the one causing the first error. 
Interesting: If I write:


\starttext

He said:

\startbigquote

This is interesting!

\stopbigquote

\stoptext


then there is no error at all. Whatever the matter is, for me the not 
understanable part is: This code was unchanged for weeks, and yesterday 
after updating the error occured, why, there must be a reason in the 
newest version for this, even if my code may be wrong in theory.


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

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


[NTG-context] Misbehaving flow charts

2013-01-17 Thread Marco Patzer
Hi,

I have a few questions regarding flow charts.

1) Setting “offset=none” yields to “Missing number, treated as zero.”
2) “option=test” should display a grid according to the manual, but
   it doesn't. It only displays the anchors.
3) What does the maxwidth option do?
4) What are the options “x” and “y” for?

I'd like to set  the width of the cells so that they fit within the
text width. Here is my attempt, but there are several issues.

\usemodule [chart]

\setupFLOWcharts
  [width=37mm,
   dx=1cm,
   offset=-1cm]

\showframe
\starttext
  \startFLOWchart [foo]
\dorecurse{3}{
  \startFLOWcell
\location   {\recurselevel,1}
\expanded{\text {Foo \recurselevel}}
  \stopFLOWcell}
  \stopFLOWchart
  \FLOWchart [foo]
\stoptext

The width is set manually to 37mm, which is ugly and not exact. To
get rid of the inter cell space I used a negative offset, which
clips the cell frame. How do I

5) set the width of the entire chart to \textwidth,
6) get rid of the left and right cell distance without clipping the
   frame?

Using a table it's simple to set up BTW:

\showframe
\starttext
\bTABLE [width=broad, distance=2cm, align=middle, rulethickness=2pt]
  \bTR \bTD Foo 1\eTD
   \bTD Foo 2\eTD
   \bTD Foo 3\eTD \eTR
\eTABLE
\stoptext

Marco


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

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

Re: [NTG-context] Error: Missing number, treated as zero?

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 11:36 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 17.01.2013 02:36, schrieb ntg-context-requ...@ntg.nl:
 You should provide a working minimal example.
 
 The errors message tells me there is a problem with \setupindenting (or the 
 ?indenting? setting) of your bigquote environment.
 
 Wolfgang
 And here it is:
 
 % ConTeXt LuaTeX
 
 \usemodule[annotation]
 
 \define[2]\AnnotationCommand
 {\startblockquote
 \noindent #2%
 \stopblockquote}
 
 \defineannotation[bigquote]
 
 \setupannotation[bigquote]
 [alternative=command,
 command=\AnnotationCommand]
 
 \starttext
 
 He said:
 
 \startbigquote
 This is interesting!
 \stopbigquote
 
 \stoptext

There is no error message when I run this example.

 % ConTeXt LuaTeX
 
 With a different error, but this is the one causing the first error. 
 Interesting: If I write:
 
 \starttext
 
 He said:
 
 \startbigquote
 This is interesting!
 \stopbigquote
 
 \stoptext
 
 then there is no error at all.

I can’t believe there is no error when you run this example because
you use the \startbiquote command which isn’t defined anywhere.

 Whatever the matter is, for me the not understanable part is: This code was 
 unchanged for weeks, and yesterday after updating the error occured, why, 
 there must be a reason in the newest version for this, even if my code may be 
 wrong in theory.

Even when there is a problem it’s difficult to tell where the problem lies 
without a example.

What you can try is to put this block in your document sand tell if it solves 
the problem:

\unprotect
\unexpanded\def\forgetparindent
  {\settrue\c_spac_indentation_indent_first % recently added
   \d_spac_indentation_par\zeropoint
   \parindent\zeropoint
   \let\v_spac_indentation_current\empty}
\protect

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] Error: Missing number, treated as zero?

2013-01-17 Thread Marco Patzer
On 2013–01–17 H. Özoguz wrote:

 % ConTeXt LuaTeX
 
 
 \usemodule[annotation]
 
 
 \define[2]\AnnotationCommand
 
 {\startblockquote

Remove the empty line:

\define[2]\AnnotationCommand{%%
  \startblockquote


Marco


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

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

[NTG-context] Break in Chapter-Title, but not in TOC

2013-01-17 Thread H. Özoguz

Hello,

if I have an chapter-title with
 \chapter{A chapter with \par a break}
then this break is also in the table of contents. How to prevent this?

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

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


[NTG-context] seeindex: no indent (random pattern?)

2013-01-17 Thread Andreas Mang
Hi there,

I have a problem with my index. There randomly (at least I do not see a 
pattern) is a missing indent in front of the words referenced by seeindex. 
Unfortunatelly, I cannot reproduce this nor do I see any pattern, as for why 
this problem exists.

Is someone having the same issue, and if so, could this person point me to the 
reason so that I / someone can do something about it?!

Minimal WORKING( - i.e. gives the desired output; it's there to explain my 
problem) example below.

Cheers,
Andreas

I know that I am not supposed to ask questions like this, but this bothers me 
for quite a while now. I thought that I will discover the problem (a pattern) 
at some point, but I give up.



\starttext
\index{IBVP}
\seeindex{Initial Boundary Value Problem}{IBVP}
\placeindex
\stoptext


I would expect:

Initial Boundary Value Problem
[  ]see IBVP

where [  ] represents the indent.

However, at some places in my index I get:

Initial Boundary Value Problem
see IBVP



___
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] Break in Chapter-Title, but not in TOC

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 12:53 schrieb H. Özoguz h.oezo...@mmnetz.de:

 \chapter{A chapter with \par a break}

\chapter{A chapter with\\a break}

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] Misbehaving flow charts

2013-01-17 Thread Marco Patzer
On 2013–01–17 Marco Patzer wrote:

 I have a few questions regarding flow charts.

One more issue:

0) \setupFLOWcharts [bodyfont=\bfx] does not work.

Marco


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

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

Re: [NTG-context] ntg-context Digest, Vol 103, Issue 49

2013-01-17 Thread H. Özoguz

Am 17.01.2013 13:13, schrieb ntg-context-requ...@ntg.nl:

There is no error message when I run this example.

Sorry, that was  my mistake, I meant this one:

++
\usemodule[annotation]


\define[2]\AnnotationCommand

{\startblockquote

\noindent #2%

\stopblockquote}


\defineannotation[bigquote]


\setupannotation[bigquote]

[alternative=command,

command=\AnnotationCommand]


\starttext


He said:

\startbigquote

This is interesting!

\stopbigquote


\stoptext

+++
With no line between He said and \startbigquote, that was the issue I 
meant with the second code. If I add one lineskip in the code, then the 
error disappears. But I want no skip in the compiled file.



The error is:


! LuaTeX error [string \directlua ]:1: invalid escape sequence near '\p'.


system  tex  error on line 20 in file minexample.tex: LuaTeX error ...


10 \setupannotation[bigquote]

11 [alternative=command,

12 command=\AnnotationCommand]

13

14 \starttext

15

16 He said:

17 \startbigquote

18 This is interesting!

19 \stopbigquote

20 

21 \stoptext

22



\ctxcommand #1-\directlua {commands.#1}

to be read again

\par

l.20

?

++


@Marco: To remove the empty line with

\define[2]\AnnotationCommand{%%
  \startblockquote

does not resolve this.

And again: No change from me in this code, first error yesterday. Maybe I 
changed another thing, what could that be?
Thanks for help.


Huseyin





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

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


Re: [NTG-context] ntg-context Digest, Vol 103, Issue 49

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 15:16 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 17.01.2013 13:13, schrieb ntg-context-requ...@ntg.nl:
 There is no error message when I run this example.
 Sorry, that was  my mistake, I meant this one:
 
 ++
 \usemodule[annotation]
 
 \define[2]\AnnotationCommand
 {\startblockquote
 \noindent #2%
 \stopblockquote}
 
 \defineannotation[bigquote]
 
 \setupannotation[bigquote]
 [alternative=command,
 command=\AnnotationCommand]

Change this setup to:

\setupannotation
  [bigquote]
  [alternative=command,
   display=yes,
   command=\AnnotationCommand]

I’ll take a look where the error comes from.

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

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


[NTG-context] No page break between chapter-title and section-title in TOC

2013-01-17 Thread H. Özoguz

Hi there,

one simple question again:

I have
\chapter{Blub}... \section{Blub} \section{...} \section{}
and so the chapter title is in the table of content (TOC) above the next 
section-titles.


I want to prevent a page-break in the TOC between the chapter-title and 
the next section-titles, how to do that?


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

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


[NTG-context] Thickness of right border for table cell

2013-01-17 Thread Troy Henderson
In order to change the width of the bottom border of the first row of a
natural table to 2bp, I can do

\setupTABLE[row][1][after={\hrule width\hsize height 2bp}]

and I have tried doing

\setupTABLE[column][1][after={\vrule height\vsize width 2bp}]

to change the width of the right border of the first column, but this does
not work.  I would appreciate some expertise on this.

Thanks,

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

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

[NTG-context] Bug in label and setuphead

2013-01-17 Thread Aditya Mahajan

Hi,

(This is based on a question on tex.se: 
http://tex.stackexchange.com/q/94170/323)


If a new head is defined based on an existing head, it still uses the 
label of the previous head.


\definehead[whatever][chapter]

\setuplabeltext[en][whatever=Whatever~]
\setuplabeltext[en][chapter=Chapter~]

\starttext
\whatever{Animals}
\chapter{Plants}
\stoptext

Uses the label Chapter for both heads. This is because the .tuc file 
contains label=chapter for both elements.


utilitydata_structures_lists.collected={
 {
  [metadata]=1,
  [numberdata]=3,
  [references]={
   [block]=bodypart,
   [internal]=1,
   [realpage]=1,
   [section]=1,
  },
  [titledata]={
   [label]=chapter,
   [title]=Animals,
  },
 },
 {
  [metadata]=4,
  [numberdata]=6,
  [references]={
   [block]=bodypart,
   [internal]=2,
   [realpage]=2,
   [section]=2,
  },
  [titledata]={
   [label]=chapter,
   [title]=Plants,
  },
 },
}


Adding

\setuphead[whatever][label=whatever]

does not change anything. This looks like a bug to me.

Otherwise, what is the right way of changing the label of a section head?

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] Thickness of right border for table cell

2013-01-17 Thread Aditya Mahajan

On Thu, 17 Jan 2013, Troy Henderson wrote:


In order to change the width of the bottom border of the first row of a
natural table to 2bp, I can do

\setupTABLE[row][1][after={\hrule width\hsize height 2bp}]

and I have tried doing

\setupTABLE[column][1][after={\vrule height\vsize width 2bp}]

to change the width of the right border of the first column, but this does
not work.  I would appreciate some expertise on this.


Use metapost backgrounds.

I had made a proposal for fences for which we can specify the thickness 
each side:


http://thread.gmane.org/gmane.comp.tex.context.devel/2022

But I think that it never made it to the core.

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

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


[NTG-context] setupformulas reset not working

2013-01-17 Thread Zenlima
Hi,

In my work I have standalone formulas and formulas inside a paragraph
(see idea of module pararef). For standalone formulas the default
settings are ok. But for the formuals inside the paragraphs I need to
change the afer- and beforespaces. So I have to change the spaces
before and after a formula often.

Unlucky \startformula[spacebefore=...,spaceafter=...] is not working.
So I try to achieve it via the big setup function:
\setupformulas[spacebefore=...,spaceafter=...] - not nice but it works
(except that strange space \formulaparameter).

But now after that paragraph I want to reset the spaces of
setupformulas. In the file strc-math.mkiv says that the spaces are
defined like this:
...
c!spacebefore=\v!big,
\c!spaceafter=\formulaparameter\c!spacebefore,
...
So I tried after \stopformula to reset the spaces with:

\setupformulas[spacebefore=\v!big,spaceafter=\formulaparameter\c!spacebefore]
and

\setupformulas[spacebefore=\big,spaceafter=\formulaparameter\spacebefore]
but both failed.

Is there any possibility to reset the spaces of setupformulas? And what
kind of space is \formulaparameter?

H.
___
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] Mixing Body and Math Fonts

2013-01-17 Thread Troy Henderson
I normally use

\setupbodyfont[lucida]

to use Lucida as my body AND math font.  I also use

\usemodule[simplefonts]
\setmainfont[Myriad Pro]

to use Myriad Pro as my body font (when no math is used).  I would like to,
however, now mix these so that I can use Lucida for my math and Myriad Pro
everywhere else.  What is the best way to accomplish this?

Thanks,

Troy Henderson
___
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] mkiv: Charis SIL / SmallCaps

2013-01-17 Thread Zenlima
Hi,

I wonder how to make that the font Chris SIL
(http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiid=CharisSIL_download)
displays its Smallcaps. I checked the font with fontforge and it really
contains the Smallcaps and also the smcp table.

But for whatever reason I cannot get context to show the smallcaps. I
tried an example out of this mailing list: 

\definefontfeature[smallcapitals] [smcp=yes]
\definefontfeature[oldstylenumber][onum=yes]

%\setupbodyfont[pagella]
\setupbodyfont [charissil]

\starttext

{VA abc \setff{smallcapitals} VA abc}
{VA abc \addff{smallcapitals} VA abc}
{12345 \setff{oldstylenumber} 12345}
{VA {\kap VAabc}}
{VA {\cap VAabc}}
{VA {\CAP VAabc}}
{VA {\sc VAabc}}

\stoptext

In the above example I only get smallcaps with the \kap and \cap - but
then also the big letters are transformed into smallcaps :-(.

With pagella is works fine - but not with charissil. What have I to do
in order the get the smallcaps to work with context? 

Thanks,
H. 
___
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] mkiv: Charis SIL / SmallCaps

2013-01-17 Thread Marco Patzer
On 2013–01–17 Zenlima wrote:

 But for whatever reason I cannot get context to show the smallcaps. I
 tried an example out of this mailing list: 
 
 \definefontfeature[smallcapitals] [smcp=yes]

\definefontfeature[smallcapitals] [smcp=yes, script=latn]


Marco


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

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

Re: [NTG-context] mkiv: Charis SIL / SmallCaps

2013-01-17 Thread Hans Hagen

On 1/17/2013 11:53 PM, Marco Patzer wrote:

On 2013–01–17 Zenlima wrote:


But for whatever reason I cannot get context to show the smallcaps. I
tried an example out of this mailing list:

\definefontfeature[smallcapitals] [smcp=yes]


\definefontfeature[smallcapitals] [smcp=yes, script=latn]


\definefontfeature[smallcapitals] [default] [smcp=yes, script=latn]

or otherwise also set up kerns

btw, there is a smallcaps feature predefined.

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] Bug in label and setuphead

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 19:20 schrieb Aditya Mahajan adit...@umich.edu:

 Hi,
 
 (This is based on a question on tex.se: 
 http://tex.stackexchange.com/q/94170/323)
 
 If a new head is defined based on an existing head, it still uses the label 
 of the previous head.
 
 \definehead[whatever][chapter]
 
 \setuplabeltext[en][whatever=Whatever~]
 \setuplabeltext[en][chapter=Chapter~]
 
 \starttext
 \whatever{Animals}
 \chapter{Plants}
 \stoptext
 
 Uses the label Chapter for both heads. This is because the .tuc file contains 
 label=chapter for both elements.
 
 utilitydata_structures_lists.collected={
 {
  [metadata]=1,
  [numberdata]=3,
  [references]={
   [block]=bodypart,
   [internal]=1,
   [realpage]=1,
   [section]=1,
  },
  [titledata]={
   [label]=chapter,
   [title]=Animals,
  },
 },
 {
  [metadata]=4,
  [numberdata]=6,
  [references]={
   [block]=bodypart,
   [internal]=2,
   [realpage]=2,
   [section]=2,
  },
  [titledata]={
   [label]=chapter,
   [title]=Plants,
  },
 },
 }
 
 
 Adding
 
 \setuphead[whatever][label=whatever]
 
 does not change anything. This looks like a bug to me.
 
 Otherwise, what is the right way of changing the label of a section head?


\setuphead[…][bodypartlabel=…]

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] setupformulas reset not working

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 21:48 schrieb Zenlima p...@zenlima.eu:

 Hi,
 
 In my work I have standalone formulas and formulas inside a paragraph
 (see idea of module pararef). For standalone formulas the default
 settings are ok. But for the formuals inside the paragraphs I need to
 change the afer- and beforespaces. So I have to change the spaces
 before and after a formula often.
 
 Unlucky \startformula[spacebefore=...,spaceafter=...] is not working.
 So I try to achieve it via the big setup function:
 \setupformulas[spacebefore=...,spaceafter=...] - not nice but it works
 (except that strange space \formulaparameter).
 
 But now after that paragraph I want to reset the spaces of
 setupformulas. In the file strc-math.mkiv says that the spaces are
 defined like this:
   ...
   c!spacebefore=\v!big,
   \c!spaceafter=\formulaparameter\c!spacebefore,
   ...
 So I tried after \stopformula to reset the spaces with:
   
 \setupformulas[spacebefore=\v!big,spaceafter=\formulaparameter\c!spacebefore]
 and
   
 \setupformulas[spacebefore=\big,spaceafter=\formulaparameter\spacebefore]
 but both failed.

\setupformla[spacebefore=big,spaceafter=big]

 Is there any possibility to reset the spaces of setupformulas? And what
 kind of space is \formulaparameter?

\formulaparameter is a command to access the values of the keys for the 
\setupformula command,
e.g. \formulaparameter{spacebefore} results in “big”.

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] Mixing Body and Math Fonts

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 22:35 schrieb Troy Henderson thend...@gmail.com:

 I normally use
 
 \setupbodyfont[lucida]
 
 to use Lucida as my body AND math font.  I also use
 
 \usemodule[simplefonts]
 \setmainfont[Myriad Pro]
 
 to use Myriad Pro as my body font (when no math is used).  I would like to, 
 however, now mix these so that I can use Lucida for my math and Myriad Pro 
 everywhere else.  What is the best way to accomplish this?

\usemodule[simplefonts]

\setmainfont[Myriad Pro]
\setmathfont[lucida] % use “lucidaot” for the opentype version of the font

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] Mixing Body and Math Fonts

2013-01-17 Thread Troy Henderson

 \setmathfont[lucida]


Thank you very much.

Troy
___
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] Mixing Body and Math Fonts

2013-01-17 Thread Troy Henderson

 \setmathfont[lucida]


This is probably asking too much, but is it possible to have the Lucida
math fonts with no serifs (or at least as many characters that are
available with sans serif)?

\setmathfont[lucida,sans]

does not work.

Troy
___
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] Mixing Body and Math Fonts

2013-01-17 Thread Troy Henderson
\startformula
   {\mathss F(x) = \int_a^x f(t)\,dt}
\stopformula

is about as good as I could expect since (to my knowledge) Lucida does not
contain a complete sans math set.  Is there a way to get the affect above
by default without having to enclose every formula in {\mathss ... }?

Troy
___
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] Mixing Body and Math Fonts

2013-01-17 Thread Aditya Mahajan

On Thu, 17 Jan 2013, Troy Henderson wrote:


\startformula
  {\mathss F(x) = \int_a^x f(t)\,dt}
\stopformula

is about as good as I could expect since (to my knowledge) Lucida does not
contain a complete sans math set.  Is there a way to get the affect above
by default without having to enclose every formula in {\mathss ... }?


(Untested)

\appendtoks \mathss \to \everymathematics

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
___