[NTG-context] Feature Request: showframe debugging

2013-08-20 Thread Thangalin
Hi,

\showframe
[
  labels=on,
  measurements=on,
  color=red,
]

Would produce an image similar to the attached, but with the black
lines drawn in the specified colour.

Using labels=on would show the names of the items that can be changed
with \setuplayout.
Using measurements=on would show the values for each of the items.

I don't know if there is any value separating the measurements from the labels.

Thank you!
<>___
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] Feature Request: define colour in relation to existing colour

2013-08-20 Thread Thangalin
Hi,

What would it take to extend \definecolor so that:

  \definecolor[ColourA][ColourB][t=0.5, a=1]

defines a new colour (ColourB) based on an existing colour (ColourA)?

I know that \definespotcolor[ColourA][ColourB][t=0.5, a=1] works, but
it seems like \definecolor would also be a natural fit.

Kind regards.
___
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] \looseness query

2013-08-20 Thread Alan Bowen
I am currently noticing an occasional difference in the effect of
\looseness=-1 between the betas up to May 5 and the three more recent
betas. Before I try to make adjustments, I thought it best to ask: Is there
a specifically ConTeXt alternative to the \looseness command that allows
one to adjust the number of lines in a particular paragraph?

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

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

Re: [NTG-context] Em dash using Hoefler

2013-08-20 Thread Khaled Hosny
On Tue, Aug 20, 2013 at 02:00:16PM +0200, Hans Hagen wrote:
> great ... another non standard use of names

There are no standard glyph names for TrueType/OpenType fonts. AGL is
completely optional, and is not part of any standard. Fonts can, and do,
use names that does not follow AGL (or no names at all, but LuaTeX’s
fontloader will probably synthesize names in this case).

Regards,
Khaled
___
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] Em dash using Hoefler

2013-08-20 Thread Hans Hagen

On 8/20/2013 2:07 PM, Martin Moncrieffe wrote:

Hi Matt,

On 20 Aug 2013, at 13:00, Matt Gushee mailto:m...@gushee.net>> wrote:


I don't think it's the font. I have been trying to produce an em dash
using the latest stable release from contextgarden.net
, with a couple
of different fonts--Alegreya, which is a free OpenType font, Latin
Modern, and one other that I don't remember. In my case, regardless of
the font, \emdash works but --- does not.


Thanks! I can confirm that \emdash works perfectly with the minimal
example I posted.


\startlines
first: –\space —
second: --\space ---
third: \endash \space \emdash
\stoplines

-- and --- are pseudo ligatures that use the tlig feature which is added 
to each font automatically but depends to some extent to how the font 
has glyphs defined


anyway, using --- is not something recommended

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] placefigure problem

2013-08-20 Thread Hans Hagen

On 8/20/2013 12:08 PM, Wim W. Wilhelm wrote:

Dear all,
I encountered a problem with TexLive 2013 context.
The problem persisted with the context beta.
With
LuaTex version beta-0.77.0-2013081719 (rev 4640)
and
ConTeXt  ver: 2013.08.18 18:32 MKIV beta  fmt: 2013.8.20  int:
english/english
I compiled:
\starttext
\chapter{c-titel}
\section{s1-titel}

\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/hemelbol.pdf][height=6cm]}

\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/afplatting.pdf][height=4cm]}

\section{s2-title}

\stoptext
The figures were placed in the middle of the page and the text did not wrap
around the figures.
Everything worked fine in TexLive 2012 context.
I'm a bit lost, any idea?
cheerio


[left,none] ... the first keyword determines the place

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] Em dash using Hoefler

2013-08-20 Thread Martin Moncrieffe
Hi Matt,

On 20 Aug 2013, at 13:00, Matt Gushee  wrote:

> I don't think it's the font. I have been trying to produce an em dash
> using the latest stable release from contextgarden.net, with a couple
> of different fonts--Alegreya, which is a free OpenType font, Latin
> Modern, and one other that I don't remember. In my case, regardless of
> the font, \emdash works but --- does not.


Thanks! I can confirm that \emdash works perfectly with the minimal example I 
posted.

Cheers.

__martin


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

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

Re: [NTG-context] Em dash using Hoefler

2013-08-20 Thread Matt Gushee
I don't think it's the font. I have been trying to produce an em dash
using the latest stable release from contextgarden.net, with a couple
of different fonts--Alegreya, which is a free OpenType font, Latin
Modern, and one other that I don't remember. In my case, regardless of
the font, \emdash works but --- does not.

--
Matt Gushee

On Tue, Aug 20, 2013 at 5:51 AM, Marco Patzer  wrote:
> On 2013–08–20 Martin Moncrieffe wrote:
>
>> Finder reports that my version of Hoefler is 8.0d2e1.
>
> This means we already have three different Hoefler versions in this
> thread.
>
>> […] shows the the em dash is present in the font.
>
> When I use a version with em dash, your example works here. Someone
> using a Mac is probably in a better position to help out.
>
> You can also try to use simplefonts, it works for me:
>
> \usemodule [simplefonts]
> \setmainfont [Hoefler-Text]
>
> \starttext
>   A test of Hoefler at 10 pt. The  emdash--- does not work...
> \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
> ___
___
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] Em dash using Hoefler

2013-08-20 Thread Hans Hagen

On 8/20/2013 1:02 PM, Wolfgang Schuster wrote:


Am 20.08.2013 um 11:52 schrieb Marco Patzer :


On 2013–08–20 Marco Patzer wrote:


On 2013–08–19 Martin Moncrieffe wrote:


Hopefully, this is the correct list for this question.  I'm trying
to typeset documents using the font Hoefler on MacOSX (10.8.4)
with ConTeXt 2013.05.28 from the TeXlive 2013 distribution.  All
works, but unfortunately, em dashes are not typeset correctly;
there are three dashes instead of a continuous line.


The font (at least my version) does not contain an em dash in slot
U+2014.


I checked a different version of the font (1.000) and it works. It
seems you're using a version not containing an em dash.


I can reproduce Martins problem but when I write – (Alt + -) and — (Alt + Shift 
+ -)
both symbols appear in the output.

I checked the font (Hoefler Text.ttc on Mac OS 10.8.4) and it contains a emdash
at slot 2014 but its named “emdash.standard”. There is also a character with
the name “emdash” in the font at slot F0010.


great ... another non standard use of names ... in a few years open type 
will be as big a mess as type one


you can play with:

local tlig = {
 -- endash= "hyphen hyphen",
 -- emdash= "hyphen hyphen hyphen",
[0x2013]  = { 0x002D, 0x002D },
[0x2014]  = { 0x002D, 0x002D, 0x002D },
 -- quotedblleft  = "quoteleft quoteleft",
 -- quotedblright = "quoteright quoteright",
 -- quotedblleft  = "grave grave",
 -- quotedblright = "quotesingle quotesingle",
 -- quotedblbase  = "comma comma",
}

in font-otc.lua (remake the format and wipe the font cache)

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] Em dash using Hoefler

2013-08-20 Thread Marco Patzer
On 2013–08–20 Martin Moncrieffe wrote:

> Finder reports that my version of Hoefler is 8.0d2e1.

This means we already have three different Hoefler versions in this
thread.

> […] shows the the em dash is present in the font.

When I use a version with em dash, your example works here. Someone
using a Mac is probably in a better position to help out.

You can also try to use simplefonts, it works for me:

\usemodule [simplefonts]
\setmainfont [Hoefler-Text]

\starttext
  A test of Hoefler at 10 pt. The  emdash--- does not work...
\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] Em dash using Hoefler

2013-08-20 Thread Martin Moncrieffe
Hi Marko,

On 20 Aug 2013, at 10:52, Marco Patzer  wrote:

> 
> I checked a different version of the font (1.000) and it works. It
> seems you're using a version not containing an em dash.


Thanks for looking into this. Finder reports that my version of Hoefler is 
8.0d2e1. Interestingly, bringing up the font panel, selecting Hoefler text 
followed by show characters (gear wheel in bottom left of font panel), shows 
the the em dash is present in the font.

Additionally, the following, typeset with lualatex, uses hoefler and does have 
the emdash. The resulting pdf file when intorrogated using pdffont  reports

> pdffont lat_hoef.pdf
 HoeflerText-Regular (Type0)


\documentclass{article}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont 
[Scale=1.05,ItalicFeatures={Contextuals={NoLineFinal,NoLineInitial}}] 
{Hoefler Text}

\begin{document}

This is hoefler at 10pt. This is an em dash---ok!

\end{document}

So, is there something wrong with the ConTeXt mapping?

__martin


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

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

Re: [NTG-context] Em dash using Hoefler

2013-08-20 Thread Wolfgang Schuster

Am 20.08.2013 um 11:52 schrieb Marco Patzer :

> On 2013–08–20 Marco Patzer wrote:
> 
>> On 2013–08–19 Martin Moncrieffe wrote:
>> 
>>> Hopefully, this is the correct list for this question.  I'm trying
>>> to typeset documents using the font Hoefler on MacOSX (10.8.4)
>>> with ConTeXt 2013.05.28 from the TeXlive 2013 distribution.  All
>>> works, but unfortunately, em dashes are not typeset correctly;
>>> there are three dashes instead of a continuous line.
>> 
>> The font (at least my version) does not contain an em dash in slot
>> U+2014.
> 
> I checked a different version of the font (1.000) and it works. It
> seems you're using a version not containing an em dash.

I can reproduce Martins problem but when I write – (Alt + -) and — (Alt + Shift 
+ -)
both symbols appear in the output.

I checked the font (Hoefler Text.ttc on Mac OS 10.8.4) and it contains a emdash
at slot 2014 but its named “emdash.standard”. There is also a character with
the name “emdash” in the font at slot F0010.

>> I get the same result here. However, if I compile with
>> 
>>  context --jit myfile.tex
>> 
>> I get Latin Modern instead of Hoefler. From the log file:
>> 
>>  fonts  > defining > font with asked name 'hoeflertext' is not found using 
>> lookup 'name'
>>  fonts  > defining > unknown font 'hoeflertext', loading aborted
>>  fonts  > defining > unable to define 'hoeflertext' as 
>> 'hoefler-12pt-rm-tf-0--0'
> 
> This problem persists. Can someone reproduce this?


Fails here with the following error message:

mtx-context | redirect texlua -> luajittex: luajittex --luaonly 
"/Users/wolf/context/beta/tex/texmf-osx-64/bin/mtxrun" --script context --jit 
test.tex --redirectedCan't create the Lua state.

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] Bug with \left( \right) in current beta

2013-08-20 Thread Hans Hagen

On 8/20/2013 11:34 AM, Janne Junnila wrote:

Hey,

The following does not work correctly in the current beta. It seems
like the "1" is parsed as a part of "(". Inserting a space between (
and 1 makes the example work.

\starttext
\startformula
\left(1 - \right)
\stopformula
\stoptext

Most of the fonts produce nothing for \left(1, cambria produces some
weird symbol.


ah, lookahead issue .. fixed in beta (uploading now)

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] placefigure problem

2013-08-20 Thread Wim W. Wilhelm
Dear all,

I encountered a problem with TexLive 2013 context.
The problem persisted with the context beta.

With
LuaTex version beta-0.77.0-2013081719 (rev 4640)
and
ConTeXt  ver: 2013.08.18 18:32 MKIV beta  fmt: 2013.8.20  int: english/english

I compiled:

\starttext
\chapter{c-titel}
\section{s1-titel}


\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/hemelbol.pdf][height=6cm]}

\placefigure[none,left]{}{\externalfigure[c:/context/tekeningen/afplatting.pdf][height=4cm]}

\section{s2-title}

\stoptext

The figures were placed in the middle of the page and the text did not wrap
around the figures.
Everything worked fine in TexLive 2012 context.
I'm a bit lost, any idea?

cheerio
Wim W. Wilhelm

___
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] Em dash using Hoefler

2013-08-20 Thread Marco Patzer
On 2013–08–20 Marco Patzer wrote:

> On 2013–08–19 Martin Moncrieffe wrote:
> 
> > Hopefully, this is the correct list for this question.  I'm trying
> > to typeset documents using the font Hoefler on MacOSX (10.8.4)
> > with ConTeXt 2013.05.28 from the TeXlive 2013 distribution.  All
> > works, but unfortunately, em dashes are not typeset correctly;
> > there are three dashes instead of a continuous line.
> 
> The font (at least my version) does not contain an em dash in slot
> U+2014.

I checked a different version of the font (1.000) and it works. It
seems you're using a version not containing an em dash.

> I get the same result here. However, if I compile with
> 
>   context --jit myfile.tex
> 
> I get Latin Modern instead of Hoefler. From the log file:
> 
>   fonts  > defining > font with asked name 'hoeflertext' is not found using 
> lookup 'name'
>   fonts  > defining > unknown font 'hoeflertext', loading aborted
>   fonts  > defining > unable to define 'hoeflertext' as 
> 'hoefler-12pt-rm-tf-0--0'

This problem persists. Can someone reproduce this?

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] Bug with \left( \right) in current beta

2013-08-20 Thread Janne Junnila
Hey,

The following does not work correctly in the current beta. It seems
like the "1" is parsed as a part of "(". Inserting a space between (
and 1 makes the example work.

\starttext
\startformula
\left(1 - \right)
\stopformula
\stoptext

Most of the fonts produce nothing for \left(1, cambria produces some
weird symbol.

-- Janne
___
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] Em dash using Hoefler

2013-08-20 Thread Marco Patzer
On 2013–08–19 Martin Moncrieffe wrote:

> Hopefully, this is the correct list for this question.  I'm trying
> to typeset documents using the font Hoefler on MacOSX (10.8.4)
> with ConTeXt 2013.05.28 from the TeXlive 2013 distribution.  All
> works, but unfortunately, em dashes are not typeset correctly;
> there are three dashes instead of a continuous line.

The font (at least my version) does not contain an em dash in slot
U+2014.

> I'm obviously missing something and would appreciate help in correcting this.

It rather seems that not you, but the font is missing something.

> A minimal example that produces the error is:
> 
> \usetypescriptfile[osx]
> \usetypescript[hoefler]
> \setupbodyfont[hoefler,11pt]
> 
> \starttext
> 
> A test of Hoefler at 10 pt. The  emdash--- does not work...
> 
> \stoptext 
> 
> 
> files are compiled using "context myfile.tex"

I get the same result here. However, if I compile with

  context --jit myfile.tex

I get Latin Modern instead of Hoefler. From the log file:

  fonts  > defining > font with asked name 'hoeflertext' is not found using 
lookup 'name'
  fonts  > defining > unknown font 'hoeflertext', loading aborted
  fonts  > defining > unable to define 'hoeflertext' as 
'hoefler-12pt-rm-tf-0--0'

The font is there:

  mtxrun --script fonts --list --all hoefler

  hoeflertext  hoeflertext   /home/marco/.fonts/HoeflerText.otf
  hoeflertextnormalhoeflertext   /home/marco/.fonts/HoeflerText.otf
  hoeflertextregular   hoeflertext   /home/marco/.fonts/HoeflerText.otf

Why does the font lookup differ between luatex and luajittex?

Hoefler Version: OTF 1.0;PS 001.001;Core 116;AOCW 1.0 161


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
___