Re: [NTG-context] issues with typeface selection

2015-08-10 Thread Pablo Rodriguez
On 08/09/2015 07:02 PM, Hans Hagen wrote:
 [...]
 hm, hard to catch (esp if we want to do that everywhere it will be a 
 slow downer) ... i'll do it for cells but so far other mechanisms were 
 less sensitive for this (we'd need an extension to luatex for handling 
 such cases ... maybe i'll look into that later)
 
 as i don't upload today you can test
 
 \setupxtable[newtimes][foregroundstyle=\newtimes]
 \startxcell[newtimes]  ...\stopxcell

Many thanks for your fix, Hans.

It works perfect now.


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
___

[NTG-context] bug with definefloat and caption case

2015-08-10 Thread Brian R. Landy
When I setup a custom float with \definefloat[exhibit][exhibits], the 
word Exhibit in the caption is printed with the first letter 
uppercased for the first 32 exhibits.  However, starting with the 33rd 
exhibit, the first letter uppercase is lost.  For example:


  \definefloat[exhibit][exhibits]
  \starttext
  
\dorecurse{45}{\placeexhibit[here][fig:test\recurselevel]{title\recurselevel}{content\recurselevel}}
  \stoptext

yields exhibits with these titles:

  ...
  Exhibit 31
  Exhibit 32
  exhibit 33
  exhibit 34
  ...


This doesn't happen with the built-in types because they have entries in 
lang-txt.lua.  I am using 2015.08.05.  I wasn't


Best regards,
Brian
___
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 with definefloat and caption case

2015-08-10 Thread Hans Hagen

On 8/10/2015 4:35 PM, Brian R. Landy wrote:

When I setup a custom float with \definefloat[exhibit][exhibits], the
word Exhibit in the caption is printed with the first letter
uppercased for the first 32 exhibits.  However, starting with the 33rd
exhibit, the first letter uppercase is lost.  For example:

   \definefloat[exhibit][exhibits]
   \starttext

\dorecurse{45}{\placeexhibit[here][fig:test\recurselevel]{title\recurselevel}{content\recurselevel}}

   \stoptext

yields exhibits with these titles:

   ...
   Exhibit 31
   Exhibit 32
   exhibit 33
   exhibit 34
   ...


This doesn't happen with the built-in types because they have entries in
lang-txt.lua.  I am using 2015.08.05.  I wasn't


an interesting bug ... i wonder why it got unnoticed so long

i uploaded a fixed beta

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] color (rendering) intent

2015-08-10 Thread Hans Hagen

On 8/10/2015 5:23 PM, Henning Hraban Ramm wrote:


Am 2015-08-10 um 17:52 schrieb Hans Hagen pra...@wxs.nl:


On 8/10/2015 10:28 AM, Henning Hraban Ramm wrote:

Hi,
in http://wiki.contextgarden.net/Context_2009.10.27#Data_files
there’s:
• new parameter for \setupcolors: intent=none|overprint|knockout

I had \setupcolors[intent=overprint] in my environments, but since a few betas, 
I get „overprint“ printed on all pages, messing with the layout.


fixed in beta


Thank you! So I can document that key for \setupcolors? (Does it do anything? 
Different from \setupbackend?)


it should add some group info in the pdf


-
  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] Issues of Export

2015-08-10 Thread Hans Hagen

On 8/10/2015 10:30 AM, Henning Hraban Ramm wrote:

As listed on http://wiki.contextgarden.net/Export

Open Export issues as of 2014-01-20, still valid 2015-08-08
• Structure bug: Metadata ends up within the first section instead of 
in front of everything


ok, fixed for document level ... keep in mind that setting metadata 
always relates to the next element



• Names of metavariables are missing in div.xhtml


ok, i've added something


• Notes (footnotes): Only visual formatting, no semantical markup and 
no reference/ID


boring, so todo


• Delimited: Quotations have tagging *and* quotation marks, even in 
raw.xml


i added symbol and content element


• Firstpage/Lastpage is ignored in project structure


fuzzy, so todo


• Minimal example doesn’t create a cover at all


no beta yet

-
  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] color (rendering) intent

2015-08-10 Thread Henning Hraban Ramm

Am 2015-08-10 um 17:52 schrieb Hans Hagen pra...@wxs.nl:

 On 8/10/2015 10:28 AM, Henning Hraban Ramm wrote:
 Hi,
 in http://wiki.contextgarden.net/Context_2009.10.27#Data_files
 there’s:
  • new parameter for \setupcolors: intent=none|overprint|knockout
 
 I had \setupcolors[intent=overprint] in my environments, but since a few 
 betas, I get „overprint“ printed on all pages, messing with the layout.
 
 fixed in beta

Thank you! So I can document that key for \setupcolors? (Does it do anything? 
Different from \setupbackend?)


Greetlings, Hraban
---
http://www.fiee.net
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] Command that does not give the expected result (Metafun)

2015-08-10 Thread Wolfgang Schuster

Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com
10. August 2015 09:13
Dear Hans,
I tested without understanding what \unexpanded, and of course it works!

You can use ConTeXt’s \define command where you don’t have to think 
about \unexpanded etc., e.g.


\define[2]\ChapterCommand
  {\setbox\scratchbox\hbox to \leftmarginwidth{#1\hss}%
   \hskip-\dimexpr\leftmarginwidth+\leftmargindistance\relax
   \framed
 [background=titled,frame=off,offset=0pt]
 {\box\scratchbox
  \hskip\leftmargindistance
  #2}}

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] color (rendering) intent

2015-08-10 Thread Peter Rolf
Am 10.08.2015 um 18:58 schrieb Hans Hagen:
 On 8/10/2015 5:23 PM, Henning Hraban Ramm wrote:

 Am 2015-08-10 um 17:52 schrieb Hans Hagen pra...@wxs.nl:

 On 8/10/2015 10:28 AM, Henning Hraban Ramm wrote:
 Hi,
 in http://wiki.contextgarden.net/Context_2009.10.27#Data_files
 there’s:
 • new parameter for \setupcolors: intent=none|overprint|knockout

 I had \setupcolors[intent=overprint] in my environments, but since a
 few betas, I get „overprint“ printed on all pages, messing with the
 layout.

 fixed in beta

 Thank you! So I can document that key for \setupcolors? (Does it do
 anything? Different from \setupbackend?)
 
 it should add some group info in the pdf
 


If I remember correctly this sets the complete document (global) to
'overprint' (or 'knockout'). Only useful for grayscale only documents.
Don't set this parameter, if you want to use local overprinting (or
knockout)! There should be a warning about this in the documentation.

The \setupcolors setting is also far older than the PDF/A|X related
output 'intent' parameter in \setupbackend. No direct relation other
than that both parameters are prepress options.


Greetings,  Peter
___
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] cross-references between documents in a project (using \useexternaldocument)

2015-08-10 Thread Wolfgang Schuster

tala...@fastmail.fm mailto:tala...@fastmail.fm
6. August 2015 19:00
Perhaps I might ask a more preliminary question: when using project 
structure, is cross-document referencing possible between two product 
files, or only between two component files within a single product file?
You can create hyperlinks between different products and your example (I 
slightly modified it) works as expected with MkII where I get the 
chapter number in the links.


The missing numbers with MkIV can be a bug or not yet implemented.

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] color (rendering) intent

2015-08-10 Thread Henning Hraban Ramm
Am 2015-08-11 um 01:12 schrieb Peter Rolf indi...@gmx.net:

 Thank you! So I can document that key for \setupcolors? (Does it do
 anything? Different from \setupbackend?)
 
 it should add some group info in the pdf
 
 If I remember correctly this sets the complete document (global) to
 'overprint' (or 'knockout'). Only useful for grayscale only documents.
 Don't set this parameter, if you want to use local overprinting (or
 knockout)! There should be a warning about this in the documentation.
 
 The \setupcolors setting is also far older than the PDF/A|X related
 output 'intent' parameter in \setupbackend. No direct relation other
 than that both parameters are prepress options.

Thank you, I documented that in  
http://wiki.contextgarden.net/Command/setupcolors

Greetlings, Hraban
---
http://www.fiee.net
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
___

[NTG-context] Issues of Export

2015-08-10 Thread Henning Hraban Ramm
As listed on http://wiki.contextgarden.net/Export

Open Export issues as of 2014-01-20, still valid 2015-08-08
• Structure bug: Metadata ends up within the first section instead of 
in front of everything
• Names of metavariables are missing in div.xhtml
• Notes (footnotes): Only visual formatting, no semantical markup and 
no reference/ID
• Delimited: Quotations have tagging *and* quotation marks, even in 
raw.xml
• Firstpage/Lastpage is ignored in project structure
• Minimal example doesn’t create a cover at all


Greetlings, Hraban
---
http://www.fiee.net
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
___

[NTG-context] color (rendering) intent

2015-08-10 Thread Henning Hraban Ramm
Hi,
in http://wiki.contextgarden.net/Context_2009.10.27#Data_files
there’s:
• new parameter for \setupcolors: intent=none|overprint|knockout

I had \setupcolors[intent=overprint] in my environments, but since a few betas, 
I get „overprint“ printed on all pages, messing with the layout.
Now I changed this to \setupcolors[intent={Uncoated FOGRA29 (ISO 
12647-2:2004)}], and it works again. As far as I can see, it doesn’t change 
anything, I find no color intent mentioned in the PDF.

The color profiles are listed in http://wiki.contextgarden.net/PDFX for 
\setupbackend; intent in \setupcolors is not documented.

Can you shed any light on that?


Greetlings, Hraban
---
http://www.fiee.net
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
___

[NTG-context] About fonts

2015-08-10 Thread Fabrice Couvreur
Hi,
I want to have the title of the chapters, sections and sub-sections in sans
serif Helvetica, body text and mathematics in Palatino.
Is this the right approach ?
Thanks,
Fabrice

\definetypeface [me] [rm]  [serif][palatino]   [default]
\definetypeface [me] [ss]   [sans]  [helvetica]  [default]
\definetypeface [me] [mm] [math]  [palatino]   [default]

\setupbodyfont[me,11pt]

\setuphead
  [chapter,section,subsection]
  [command=\ChapterCommand,
   textstyle=\ss,
   color=darkred]
___
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] Command that does not give the expected result (Metafun)

2015-08-10 Thread Fabrice Couvreur
Dear Hans,
I tested without understanding what \unexpanded, and of course it works !
Thank you,
Fabrice

2015-08-09 15:40 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 8/9/2015 1:27 PM, Fabrice Couvreur wrote:

 Hi Hans,
 In the document Metafun, you use commands that I like, and I try to
 understand the definition and operation, which is not always easy with
 TeX commands.
 Also, in the following code, this does not give the expected result.
 Thank you.
 Fabrice

 \showframe

 \setupcolors
[state=start]

 \setuppagenumbering[location=,alternative]

 \startuniqueMPgraphic{titled}
 path p ;
 p := unitsquare xscaled OverlayWidth yscaled OverlayHeight ;
 pickup pencircle scaled 1mm ;
 drawoptions(withcolor .625yellow) ;
 draw llcorner p--lrcorner p ;
 setbounds currentpicture to p ;
 \stopuniqueMPgraphic

 \defineoverlay[titled][\uniqueMPgraphic{titled}]

 \def\ChapterCommand#1#2%
{\setbox0=\hbox to \leftmarginwidth{#1\hss}%
 \hskip-\leftmarginwidth
 \hskip-\leftmargindistance
 \framed
   [background=titled,frame=off,offset=0pt]
   {\box0
\hskip\leftmargindistance
#2}}

 \setuphead
[chapter,section,subsection]
[command=\ChapterCommand,
 color=darkred]

 \starttext
 \chapter{First}
 \section{First}
 \subsection{First}
 \stoptext


 \unexpanded\def\ChapterCommand#1#2%

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

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

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

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

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

Re: [NTG-context] color (rendering) intent

2015-08-10 Thread Hans Hagen

On 8/10/2015 10:28 AM, Henning Hraban Ramm wrote:

Hi,
in http://wiki.contextgarden.net/Context_2009.10.27#Data_files
there’s:
• new parameter for \setupcolors: intent=none|overprint|knockout

I had \setupcolors[intent=overprint] in my environments, but since a few betas, 
I get „overprint“ printed on all pages, messing with the layout.


fixed in beta

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
___